nostr-tools 2.23.7 → 2.23.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,15 +13,17 @@ export declare function toBunkerURL(bunkerPointer: BunkerPointer): string;
13
13
  and returns a BunkerPointer -- or null in case of error */
14
14
  export declare function parseBunkerInput(input: string): Promise<BunkerPointer | null>;
15
15
  export declare function queryBunkerProfile(nip05: string): Promise<BunkerPointer | null>;
16
+ export type ClientMetadata = {
17
+ name?: string;
18
+ url?: string;
19
+ image?: string;
20
+ };
16
21
  export type NostrConnectParams = {
17
22
  clientPubkey: string;
18
23
  relays: string[];
19
24
  secret: string;
20
25
  perms?: string[];
21
- name?: string;
22
- url?: string;
23
- image?: string;
24
- };
26
+ } & ClientMetadata;
25
27
  export declare function createNostrConnectURI(params: NostrConnectParams): string;
26
28
  export type BunkerSignerParams = {
27
29
  pool?: AbstractSimplePool;
@@ -71,7 +73,7 @@ export declare class BunkerSigner implements Signer {
71
73
  /**
72
74
  * Calls the "connect" method on the bunker.
73
75
  */
74
- connect(): Promise<void>;
76
+ connect(clientMetadata?: ClientMetadata): Promise<void>;
75
77
  /**
76
78
  * Calls the "logout" method on the bunker and closes the local session.
77
79
  * The client secret key should be discarded by the caller after this.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "nostr-tools",
4
- "version": "2.23.7",
4
+ "version": "2.23.8",
5
5
  "description": "Tools for making a Nostr client.",
6
6
  "repository": {
7
7
  "type": "git",