diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 16:09:41 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 16:09:41 -0800 |
| commit | 3525548be5b107f6b9bd3f88fcc67bd0c92e817a (patch) | |
| tree | 1b83a53434cdf1005384ce626569445adef9fb7f /src/lib | |
| parent | 58367706577969351879fb09adb75c4e9441bf83 (diff) | |
| download | coinos-ui-3525548be5b107f6b9bd3f88fcc67bd0c92e817a.tar.gz coinos-ui-3525548be5b107f6b9bd3f88fcc67bd0c92e817a.zip | |
fix imports
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/nip07.ts | 2 | ||||
| -rw-r--r-- | src/lib/nip17.ts | 2 | ||||
| -rw-r--r-- | src/lib/nip44.ts | 14 |
3 files changed, 9 insertions, 9 deletions
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;
|
