nostr-tools

2.20.02.21.0
lib/esm/nip49.js
~lib/esm/nip49.jsModified
+5−5
Index: package/lib/esm/nip49.js
===================================================================
--- package/lib/esm/nip49.js
+++ package/lib/esm/nip49.js
@@ -1,11 +1,12 @@
 // nip49.ts
-import { scrypt } from "@noble/hashes/scrypt";
-import { xchacha20poly1305 } from "@noble/ciphers/chacha";
-import { concatBytes as concatBytes2, randomBytes } from "@noble/hashes/utils";
+import { bech32 as bech322 } from "@scure/base";
+import { scrypt } from "@noble/hashes/scrypt.js";
+import { xchacha20poly1305 } from "@noble/ciphers/chacha.js";
+import { concatBytes as concatBytes2, randomBytes } from "@noble/hashes/utils.js";
 
 // nip19.ts
-import { bytesToHex, concatBytes, hexToBytes } from "@noble/hashes/utils";
+import { bytesToHex, concatBytes, hexToBytes } from "@noble/hashes/utils.js";
 import { bech32 } from "@scure/base";
 var Bech32MaxSize = 5e3;
 function encodeBech32(prefix, data) {
   let words = bech32.toWords(data);
@@ -15,9 +16,8 @@
   return encodeBech32(prefix, bytes);
 }
 
 // nip49.ts
-import { bech32 as bech322 } from "@scure/base";
 function encrypt(sec, password, logn = 16, ksb = 2) {
   let salt = randomBytes(16);
   let n = 2 ** logn;
   let key = scrypt(password.normalize("NFKC"), salt, { N: n, r: 8, p: 1, dkLen: 32 });