This commit is contained in:
tiero
2023-01-06 01:34:40 +01:00
parent fd09837da2
commit 5a88dd6491
2 changed files with 5 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ To create a Nostr Connect instance, you need to provide the ephemeral key and th
import { Connect } from '@nostr-connect/connect'; import { Connect } from '@nostr-connect/connect';
const connect = new Connect({ secretKey: sk, relay: 'wss://relay.nostr-connect.com' }); const connect = new Connect({ secretKey: sk, relay: 'wss://nostr.vulpem.com' });
connect.events.on('connect', ( walletPubkey:string ) => { connect.events.on('connect', ( walletPubkey:string ) => {
console.log('connected with wallet: ' + walletPubkey); console.log('connected with wallet: ' + walletPubkey);
}); });

View File

@@ -33,16 +33,16 @@
"singleQuote": true, "singleQuote": true,
"trailingComma": "es5" "trailingComma": "es5"
}, },
"name": "nostr-connect-ts", "name": "@nostr-connect/connect",
"author": "tiero", "author": "tiero",
"module": "dist/nostr-connect-ts.esm.js", "module": "dist/connect.esm.js",
"size-limit": [ "size-limit": [
{ {
"path": "dist/nostr-connect-ts.cjs.production.min.js", "path": "dist/connect.cjs.production.min.js",
"limit": "10 KB" "limit": "10 KB"
}, },
{ {
"path": "dist/nostr-connect-ts.esm.js", "path": "dist/connect.esm.js",
"limit": "10 KB" "limit": "10 KB"
} }
], ],