diff --git a/benchmark/aead.js b/benchmark/aead.js index 66c75d3..2e8d728 100644 --- a/benchmark/aead.js +++ b/benchmark/aead.js @@ -117,7 +117,7 @@ export const ciphers = { encrypt: (buf, opts) => siv(opts.key, opts.nonce).encrypt(buf), decrypt: (buf, opts) => siv(opts.key, opts.nonce).decrypt(buf), }, - } + }, }; export async function main() { @@ -130,7 +130,7 @@ export async function main() { } // ESM is broken. -import url from 'url'; +import url from 'node:url'; if (import.meta.url === url.pathToFileURL(process.argv[1]).href) { main(); } diff --git a/benchmark/aes.js b/benchmark/aes.js index a8f914c..54980f9 100644 --- a/benchmark/aes.js +++ b/benchmark/aes.js @@ -372,7 +372,7 @@ export async function main() { } // ESM is broken. -import url from 'url'; +import url from 'node:url'; if (import.meta.url === url.pathToFileURL(process.argv[1]).href) { main(); } diff --git a/benchmark/ciphers.js b/benchmark/ciphers.js index abf0393..c222c44 100644 --- a/benchmark/ciphers.js +++ b/benchmark/ciphers.js @@ -84,7 +84,7 @@ export async function main() { } // ESM is broken. -import url from 'url'; +import url from 'node:url'; if (import.meta.url === url.pathToFileURL(process.argv[1]).href) { main(); } diff --git a/benchmark/cross_test.test.js b/benchmark/cross_test.test.js index 584f329..72448d5 100644 --- a/benchmark/cross_test.test.js +++ b/benchmark/cross_test.test.js @@ -15,7 +15,7 @@ describe('Big', () => { }); // ESM is broken. -import url from 'url'; +import url from 'node:url'; if (import.meta.url === url.pathToFileURL(process.argv[1]).href) { should.run(); diff --git a/benchmark/poly.js b/benchmark/poly.js index 6bcd316..20d5745 100644 --- a/benchmark/poly.js +++ b/benchmark/poly.js @@ -50,7 +50,7 @@ export async function main() { } // ESM is broken. -import url from 'url'; +import url from 'node:url'; if (import.meta.url === url.pathToFileURL(process.argv[1]).href) { main(); }