applesauce-accounts 6.0.0 → 6.2.0

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.
@@ -5,6 +5,7 @@ export type NostrConnectAccountSignerData = {
5
5
  clientKey: string;
6
6
  remote: string;
7
7
  relays: string[];
8
+ bunkerSecret?: string;
8
9
  };
9
10
  /** An account type for NIP-46 signers */
10
11
  export declare class NostrConnectAccount<Metadata extends unknown = unknown> extends BaseAccount<NostrConnectSigner, NostrConnectAccountSignerData, Metadata> {
@@ -12,6 +12,7 @@ export class NostrConnectAccount extends BaseAccount {
12
12
  clientKey: bytesToHex(this.signer.signer.key),
13
13
  remote: this.signer.remote,
14
14
  relays: this.signer.relays,
15
+ bunkerSecret: this.signer.bunkerSecret,
15
16
  },
16
17
  });
17
18
  }
@@ -20,6 +21,7 @@ export class NostrConnectAccount extends BaseAccount {
20
21
  relays: json.signer.relays,
21
22
  pubkey: json.pubkey,
22
23
  remote: json.signer.remote,
24
+ bunkerSecret: json.signer.bunkerSecret,
23
25
  signer: new PrivateKeySigner(hexToBytes(json.signer.clientKey)),
24
26
  });
25
27
  const account = new NostrConnectAccount(json.pubkey, signer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "applesauce-accounts",
3
- "version": "6.0.0",
3
+ "version": "6.2.0",
4
4
  "description": "A simple nostr account management system",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,8 +32,8 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "applesauce-core": "^6.0.0",
36
- "applesauce-signers": "^6.0.0",
35
+ "applesauce-core": "^6.2.0",
36
+ "applesauce-signers": "^6.2.0",
37
37
  "nanoid": "^5.1.5",
38
38
  "rxjs": "^7.8.1"
39
39
  },