From 3525548be5b107f6b9bd3f88fcc67bd0c92e817a Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Feb 2026 16:09:41 -0800 Subject: fix imports --- src/lib/nip07.ts | 2 +- src/lib/nip17.ts | 2 +- src/lib/nip44.ts | 14 +++++++------- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lib') diff --git a/src/lib/nip07.ts b/src/lib/nip07.ts index 9f675950..4c2048e2 100644 --- a/src/lib/nip07.ts +++ b/src/lib/nip07.ts @@ -1,4 +1,4 @@ -import { bytesToHex } from '@noble/hashes/utils'; +import { bytesToHex } from '@noble/hashes/utils.js'; import { finalizeEvent } from 'nostr-tools/pure'; import { unwrapEvent } from 'nostr-tools/nip17'; import { getPrivateKey } from '$lib/nostr'; diff --git a/src/lib/nip17.ts b/src/lib/nip17.ts index 6f29940d..d7ce181d 100644 --- a/src/lib/nip17.ts +++ b/src/lib/nip17.ts @@ -1,4 +1,4 @@ -import { bytesToHex, hexToBytes } from '@noble/hashes/utils'; +import { bytesToHex, hexToBytes } from '@noble/hashes/utils.js'; import { finalizeEvent, getEventHash, generateSecretKey, getPublicKey } from 'nostr-tools/pure'; import { SimplePool } from 'nostr-tools/pool'; diff --git a/src/lib/nip44.ts b/src/lib/nip44.ts index 313d6f6b..4583c27a 100644 --- a/src/lib/nip44.ts +++ b/src/lib/nip44.ts @@ -2,13 +2,13 @@ // https://github.com/paulmillr/nip44/blob/main/javascript/index.ts // Modified slightly to deal with a dependency issue -import { chacha20 } from '@noble/ciphers/chacha'; -import { equalBytes } from '@noble/ciphers/utils'; -import { secp256k1 } from '@noble/curves/secp256k1'; -import { extract as hkdf_extract, expand as hkdf_expand } from '@noble/hashes/hkdf'; -import { hmac } from '@noble/hashes/hmac'; -import { sha256 } from '@noble/hashes/sha256'; -import { concatBytes, randomBytes, utf8ToBytes } from '@noble/hashes/utils'; +import { chacha20 } from '@noble/ciphers/chacha.js'; +import { equalBytes } from '@noble/ciphers/utils.js'; +import { secp256k1 } from '@noble/curves/secp256k1.js'; +import { extract as hkdf_extract, expand as hkdf_expand } from '@noble/hashes/hkdf.js'; +import { hmac } from '@noble/hashes/hmac.js'; +import { sha256 } from '@noble/hashes/sha256.js'; +import { concatBytes, randomBytes, utf8ToBytes } from '@noble/hashes/utils.js'; import { base64 } from '@scure/base'; declare const TextDecoder: any; -- cgit v1.2.3