nostr-bray 1.16.1 → 1.16.2
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.
- package/dist/cli.js +9 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -216,7 +216,15 @@ const pool = new RelayPool({
|
|
|
216
216
|
defaultRelays: config.relays,
|
|
217
217
|
});
|
|
218
218
|
const nip65 = new Nip65Manager(pool, config.relays);
|
|
219
|
-
|
|
219
|
+
let ctx;
|
|
220
|
+
if (config.bunkerUri) {
|
|
221
|
+
const { BunkerContext } = await import('./bunker-context.js');
|
|
222
|
+
ctx = await BunkerContext.connect(config.bunkerUri);
|
|
223
|
+
console.error(`Connected to bunker — signing as ${ctx.activeNpub}`);
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
ctx = new IdentityContext(config.secretKey, config.secretFormat);
|
|
227
|
+
}
|
|
220
228
|
const nwcUri = config.nwcUri;
|
|
221
229
|
config.secretKey = '';
|
|
222
230
|
config.nwcUri = undefined;
|
package/package.json
CHANGED