Browse Source

chore: update nostr-tools (#248)

imwald
Cody Tseng 12 months ago committed by GitHub
parent
commit
84ef234d38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      package-lock.json
  2. 2
      package.json
  3. 6
      src/providers/NostrProvider/bunker.signer.ts

8
package-lock.json generated

@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
"i18next-browser-languagedetector": "^8.0.4",
"lru-cache": "^11.0.2",
"lucide-react": "^0.469.0",
"nostr-tools": "^2.10.4",
"nostr-tools": "^2.12.0",
"nstart-modal": "^1.4.0",
"path-to-regexp": "^8.2.0",
"qrcode.react": "^4.2.0",
@ -7101,9 +7101,9 @@ @@ -7101,9 +7101,9 @@
}
},
"node_modules/nostr-tools": {
"version": "2.10.4",
"resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.10.4.tgz",
"integrity": "sha512-biU7sk+jxHgVASfobg2T5ttxOGGSt69wEVBC51sHHOEaKAAdzHBLV/I2l9Rf61UzClhliZwNouYhqIso4a3HYg==",
"version": "2.12.0",
"resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-2.12.0.tgz",
"integrity": "sha512-pUWEb020gTvt1XZvTa8AKNIHWFapjsv2NKyk43Ez2nnvz6WSXsrTFE0XtkNLSRBjPn6EpxumKeNiVzLz74jNSA==",
"dependencies": {
"@noble/ciphers": "^0.5.1",
"@noble/curves": "1.2.0",

2
package.json

@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
"i18next-browser-languagedetector": "^8.0.4",
"lru-cache": "^11.0.2",
"lucide-react": "^0.469.0",
"nostr-tools": "^2.10.4",
"nostr-tools": "^2.12.0",
"nstart-modal": "^1.4.0",
"path-to-regexp": "^8.2.0",
"qrcode.react": "^4.2.0",

6
src/providers/NostrProvider/bunker.signer.ts

@ -41,11 +41,7 @@ export class BunkerSigner implements ISigner { @@ -41,11 +41,7 @@ export class BunkerSigner implements ISigner {
if (!this.signer) {
throw new Error('Not logged in')
}
const pubkey = await this.getPublicKey()
return this.signer.signEvent({
...draftEvent,
pubkey
})
return this.signer.signEvent(draftEvent)
}
async nip04Encrypt(pubkey: string, plainText: string) {

Loading…
Cancel
Save