Bump versions
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@coracle.social/lib",
|
"name": "@coracle.social/lib",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A collection of utilities.",
|
"description": "A collection of utilities.",
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import type {Filter} from '@coracle.social/util'
|
|||||||
import {Pool} from "./Pool"
|
import {Pool} from "./Pool"
|
||||||
import {Executor} from "./Executor"
|
import {Executor} from "./Executor"
|
||||||
import {Relays} from "./target/Relays"
|
import {Relays} from "./target/Relays"
|
||||||
import type {Subscription} from "./Subscribe"
|
|
||||||
|
|
||||||
export const defaultPool = new Pool()
|
export const defaultPool = new Pool()
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@coracle.social/network",
|
"name": "@coracle.social/network",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "Utilities for connecting with nostr relays.",
|
"description": "Utilities for connecting with nostr relays.",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type {Event} from 'nostr-tools'
|
import type {Event} from 'nostr-tools'
|
||||||
import {matchFilter as nostrToolsMatchFilter} from 'nostr-tools'
|
import {matchFilter as nostrToolsMatchFilter} from 'nostr-tools'
|
||||||
import {prop, avg, hash, identity, groupBy, randomId, uniq} from '@coracle.social/lib'
|
import {prop, avg, hash, groupBy, randomId, uniq} from '@coracle.social/lib'
|
||||||
import type {Rumor} from './Events'
|
import type {Rumor} from './Events'
|
||||||
import {decodeAddress, addressFromEvent, encodeAddress} from './Address'
|
import {decodeAddress, addressFromEvent, encodeAddress} from './Address'
|
||||||
import {isReplaceableKind} from './Kinds'
|
import {isReplaceableKind} from './Kinds'
|
||||||
@@ -57,7 +57,7 @@ export const getFilterId = (filter: Filter) => {
|
|||||||
const v = filter[k as keyof Filter]
|
const v = filter[k as keyof Filter]
|
||||||
const s = Array.isArray(v) ? v.join(',') : v
|
const s = Array.isArray(v) ? v.join(',') : v
|
||||||
|
|
||||||
parts.push([k, v].join(':'))
|
parts.push([k, s].join(':'))
|
||||||
}
|
}
|
||||||
|
|
||||||
return hash(parts.join('|'))
|
return hash(parts.join('|'))
|
||||||
|
|||||||
@@ -1,11 +1,9 @@
|
|||||||
import type {EventTemplate} from 'nostr-tools'
|
|
||||||
import {first, splitAt, identity, sortBy, uniq, shuffle, pushToMapKey} from '@coracle.social/lib'
|
import {first, splitAt, identity, sortBy, uniq, shuffle, pushToMapKey} from '@coracle.social/lib'
|
||||||
import {Tags, Tag} from '@coracle.social/util'
|
import {Tags, Tag} from '@coracle.social/util'
|
||||||
import type {Rumor} from './Events'
|
import type {Rumor} from './Events'
|
||||||
import {getAddress, isReplaceable} from './Events'
|
import {getAddress, isReplaceable} from './Events'
|
||||||
import {isShareableRelayUrl} from './Relays'
|
import {isShareableRelayUrl} from './Relays'
|
||||||
import {GROUP_DEFINITION, COMMUNITY_DEFINITION} from './Kinds'
|
import {addressFromEvent, decodeAddress, isCommunityAddress, isGroupAddress} from './Address'
|
||||||
import {addressFromEvent, decodeAddress, isContextAddress, isCommunityAddress, isGroupAddress} from './Address'
|
|
||||||
|
|
||||||
export enum RelayMode {
|
export enum RelayMode {
|
||||||
Read = "read",
|
Read = "read",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@coracle.social/util",
|
"name": "@coracle.social/util",
|
||||||
"version": "0.0.2",
|
"version": "0.0.3",
|
||||||
"author": "hodlbod",
|
"author": "hodlbod",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"description": "A collection of utilities.",
|
"description": "A collection of utilities.",
|
||||||
|
|||||||
Reference in New Issue
Block a user