nostr-tools

2.20.02.21.0
lib/cjs/nip13.js
~lib/cjs/nip13.jsModified
+4−4
Index: package/lib/cjs/nip13.js
===================================================================
--- package/lib/cjs/nip13.js
+++ package/lib/cjs/nip13.js
@@ -24,13 +24,13 @@
   getPow: () => getPow,
   minePow: () => minePow
 });
 module.exports = __toCommonJS(nip13_exports);
-var import_utils2 = require("@noble/hashes/utils");
-var import_sha256 = require("@noble/hashes/sha256");
+var import_utils2 = require("@noble/hashes/utils.js");
+var import_sha2 = require("@noble/hashes/sha2.js");
 
 // utils.ts
-var import_utils = require("@noble/hashes/utils");
+var import_utils = require("@noble/hashes/utils.js");
 var utf8Decoder = new TextDecoder("utf-8");
 var utf8Encoder = new TextEncoder();
 
 // nip13.ts
@@ -67,7 +67,7 @@
   return event;
 }
 function fastEventHash(evt) {
   return (0, import_utils2.bytesToHex)(
-    (0, import_sha256.sha256)(utf8Encoder.encode(JSON.stringify([0, evt.pubkey, evt.created_at, evt.kind, evt.tags, evt.content])))
+    (0, import_sha2.sha256)(utf8Encoder.encode(JSON.stringify([0, evt.pubkey, evt.created_at, evt.kind, evt.tags, evt.content])))
   );
 }