Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Feb 10, 2024
1 parent ec34299 commit 70b52a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webcrypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
// from `crypto` to `cryptoNode`, which imports native module.
// Makes the utils un-importable in browsers without a bundler.
// Once node.js 18 is deprecated, we can just drop the import.
import { randomBytes, getWebcryptoSubtle } from './crypto.js';
//
// Use full path so that Node.js can rewrite it to `cryptoNode.js`.
// @ts-ignore: `tsc` doesn't understand `@noble/ciphers/crypto` is a valid import.
import { randomBytes, getWebcryptoSubtle } from '@noble/ciphers/crypto';
import { Cipher, concatBytes } from './utils.js';
import { number } from './_assert.js';
import { AsyncCipher } from './utils.js';
Expand Down

0 comments on commit 70b52a4

Please sign in to comment.