applesauce-signers 0.0.0-next-20250327153627 → 0.0.0-next-20250330150216

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.
@@ -167,7 +167,7 @@ export declare class NostrConnectSigner implements Nip07Interface {
167
167
  /** Builds an array of signing permissions for event kinds */
168
168
  static buildSigningPermissions(kinds: number[]): string[];
169
169
  /** Create a {@link NostrConnectSigner} from a bunker:// URI */
170
- static fromBunkerURI(uri: string, options: Omit<NostrConnectSignerOptions, "relays"> & {
170
+ static fromBunkerURI(uri: string, options?: Omit<NostrConnectSignerOptions, "relays"> & {
171
171
  permissions?: string[];
172
172
  signer?: SimpleSigner;
173
173
  }): Promise<NostrConnectSigner>;
@@ -329,7 +329,7 @@ export class NostrConnectSigner {
329
329
  static async fromBunkerURI(uri, options) {
330
330
  const { remote, relays, secret } = NostrConnectSigner.parseBunkerURI(uri);
331
331
  const client = new NostrConnectSigner({ relays, remote, ...options });
332
- await client.connect(secret, options.permissions);
332
+ await client.connect(secret, options?.permissions);
333
333
  return client;
334
334
  }
335
335
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-signers",
3
- "version": "0.0.0-next-20250327153627",
3
+ "version": "0.0.0-next-20250330150216",
4
4
  "description": "Signer classes for applesauce",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "@noble/hashes": "^1.7.1",
37
37
  "@noble/secp256k1": "^1.7.1",
38
38
  "@scure/base": "^1.2.4",
39
- "applesauce-core": "0.0.0-next-20250327153627",
39
+ "applesauce-core": "0.0.0-next-20250330150216",
40
40
  "debug": "^4.4.0",
41
41
  "nanoid": "^5.0.9",
42
42
  "nostr-tools": "^2.10.4"