chore: bump pkgs
This commit is contained in:
parent
a37a396ed1
commit
104091d31b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@snort/system-react",
|
"name": "@snort/system-react",
|
||||||
"version": "1.5.5",
|
"version": "1.5.6",
|
||||||
"description": "React hooks for @snort/system",
|
"description": "React hooks for @snort/system",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
@ -17,7 +17,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@snort/shared": "^1.0.17",
|
"@snort/shared": "^1.0.17",
|
||||||
"@snort/system": "^1.5.4",
|
"@snort/system": "^1.5.6",
|
||||||
"react": "^18.2.0"
|
"react": "^18.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@snort/system",
|
"name": "@snort/system",
|
||||||
"version": "1.5.4",
|
"version": "1.5.6",
|
||||||
"description": "Snort nostr system package",
|
"description": "Snort nostr system package",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
@ -20,7 +20,7 @@ export interface ToNostrEventTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class NostrHashtagLink implements ToNostrEventTag {
|
export class NostrHashtagLink implements ToNostrEventTag {
|
||||||
constructor(readonly tag: string) {}
|
constructor(readonly tag: string) { }
|
||||||
|
|
||||||
equals(other: ToNostrEventTag): boolean {
|
equals(other: ToNostrEventTag): boolean {
|
||||||
const otherTag = other.toEventTag();
|
const otherTag = other.toEventTag();
|
||||||
@ -33,7 +33,7 @@ export class NostrHashtagLink implements ToNostrEventTag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class UnknownTag implements ToNostrEventTag {
|
export class UnknownTag implements ToNostrEventTag {
|
||||||
constructor(readonly value: Array<string>) {}
|
constructor(readonly value: Array<string>) { }
|
||||||
|
|
||||||
equals(other: ToNostrEventTag): boolean {
|
equals(other: ToNostrEventTag): boolean {
|
||||||
const otherTag = other.toEventTag();
|
const otherTag = other.toEventTag();
|
||||||
@ -241,7 +241,7 @@ export class NostrLink implements ToNostrEventTag {
|
|||||||
static fromEvent(ev: TaggedNostrEvent | NostrEvent) {
|
static fromEvent(ev: TaggedNostrEvent | NostrEvent) {
|
||||||
let relays = "relays" in ev ? ev.relays : undefined;
|
let relays = "relays" in ev ? ev.relays : undefined;
|
||||||
const eventRelays = removeUndefined(
|
const eventRelays = removeUndefined(
|
||||||
ev.tags.filter(a => a[0] === "relays" || a[0] === "relay" || a[0] === "r").map(a => sanitizeRelayUrl(a[1])),
|
ev.tags.filter(a => a[0] === "relays" || a[0] === "relay" || a[0] === "r").flatMap(a => a.slice(1).map(b => sanitizeRelayUrl(b))),
|
||||||
);
|
);
|
||||||
relays = appendDedupe(relays, eventRelays);
|
relays = appendDedupe(relays, eventRelays);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user