From 1e91f8a290650e4b98951106aab9f4b7c6906c80 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Sun, 15 Oct 2023 12:38:49 +0530 Subject: [PATCH] fix(node): use webcrypto export from `node:crypto` --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 03084a9c..161cf860 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -import crypto from 'node:crypto' +import { webcrypto as crypto } from 'node:crypto' import { urlAlphabet } from './url-alphabet/index.js' diff --git a/package.json b/package.json index 06137368..d1014538 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "url" ], "scripts": { - "clean": "rm -R coverage", + "clean": "rm -rf coverage", "start": "vite test/demo/ --open", "unit": "uvu . .test.js$", "test:coverage": "c8 pnpm unit",