chore: bump pkgs

This commit is contained in:
kieran 2024-12-26 14:35:30 +00:00
parent e9fd593468
commit f8f07a02bb
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941
6 changed files with 9 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@snort/system-react",
"version": "1.6.0",
"version": "1.6.1",
"description": "React hooks for @snort/system",
"main": "dist/index.js",
"module": "src/index.ts",
@ -17,7 +17,7 @@
],
"dependencies": {
"@snort/shared": "^1.0.17",
"@snort/system": "^1.6.0",
"@snort/system": "^1.6.1",
"react": "^18.2.0"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@snort/system",
"version": "1.6.0",
"version": "1.6.1",
"description": "Snort nostr system package",
"type": "module",
"main": "dist/index.js",

View File

@ -14,7 +14,7 @@ export interface TaggedNostrEvent extends NostrEvent {
/**
* A list of relays this event was seen on
*/
relays: Array<string>;
relays?: Array<string>;
/**
* Additional context

View File

@ -1,4 +1,4 @@
import { SortedMap, dedupe } from "@snort/shared";
import { SortedMap, appendDedupe, dedupe } from "@snort/shared";
import { EventExt, EventType, TaggedNostrEvent } from ".";
import { findTag } from "./utils";
import { EventEmitter } from "eventemitter3";
@ -72,7 +72,7 @@ export class KeyedReplaceableNoteStore extends HookedNoteStore {
const existing = this.#events.get(keyOnEvent);
if (a.created_at > (existing?.created_at ?? 0)) {
if (existing) {
a.relays = dedupe([...(existing.relays ?? []), ...a.relays]);
a.relays = appendDedupe(existing.relays, a.relays);
}
this.#events.set(keyOnEvent, a);
changes.push(a);

View File

@ -1,6 +1,6 @@
{
"name": "@snort/wallet",
"version": "0.2.3",
"version": "0.2.4",
"description": "Snort wallet system package",
"type": "module",
"main": "dist/index.js",
@ -23,7 +23,7 @@
"@lightninglabs/lnc-web": "^0.3.1-alpha",
"@scure/base": "^1.1.6",
"@snort/shared": "^1.0.17",
"@snort/system": "^1.6.0",
"@snort/system": "^1.6.1",
"debug": "^4.3.4",
"eventemitter3": "^5.0.1"
},

View File

@ -1,6 +1,6 @@
{
"name": "@snort/worker-relay",
"version": "1.3.0",
"version": "1.3.1",
"description": "A nostr relay in a service worker",
"main": "dist/index.js",
"types": "dist/index.d.ts",