DM styles update
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@snort/system",
|
||||
"version": "1.0.16",
|
||||
"version": "1.0.17",
|
||||
"description": "Snort nostr system package",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
@ -30,10 +30,12 @@
|
||||
"@noble/curves": "^1.0.0",
|
||||
"@noble/hashes": "^1.3.1",
|
||||
"@scure/base": "^1.1.1",
|
||||
"@snort/shared": "^1.0.4",
|
||||
"@stablelib/xchacha20": "^1.0.1",
|
||||
"debug": "^4.3.4",
|
||||
"dexie": "^3.2.4",
|
||||
"uuid": "^9.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@snort/shared": "^1.0.4"
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ import { RequestBuilder } from "./request-builder";
|
||||
import { NoteStore } from "./note-collection";
|
||||
import { Query } from "./query";
|
||||
import { NostrEvent, ReqFilter } from "./nostr";
|
||||
import { ProfileLoaderService } from "./profile-cache";
|
||||
|
||||
export * from "./nostr-system";
|
||||
export { default as EventKind } from "./event-kind";
|
||||
@ -46,6 +47,7 @@ export interface SystemInterface {
|
||||
DisconnectRelay(address: string): void;
|
||||
BroadcastEvent(ev: NostrEvent): void;
|
||||
WriteOnceToRelay(relay: string, ev: NostrEvent): Promise<void>;
|
||||
get ProfileLoader(): ProfileLoaderService
|
||||
}
|
||||
|
||||
export interface SystemSnapshot {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { ExternalStore } from "@snort/shared";
|
||||
|
||||
import { SystemSnapshot, SystemInterface } from ".";
|
||||
import { SystemSnapshot, SystemInterface, ProfileLoaderService } from ".";
|
||||
import { AuthHandler, ConnectionStateSnapshot, RelaySettings } from "./connection";
|
||||
import { NostrEvent } from "./nostr";
|
||||
import { NoteStore } from "./note-collection";
|
||||
@ -20,6 +20,10 @@ export class SystemWorker extends ExternalStore<SystemSnapshot> implements Syste
|
||||
throw new Error("SharedWorker is not supported");
|
||||
}
|
||||
}
|
||||
|
||||
get ProfileLoader(): ProfileLoaderService {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
|
||||
HandleAuth?: AuthHandler;
|
||||
|
||||
|
Reference in New Issue
Block a user