From 5b9807d2c4b2e0ca6c0a6c591977b3ec648a657f Mon Sep 17 00:00:00 2001 From: RodrigoTomeES Date: Sat, 18 Nov 2023 14:33:47 +0100 Subject: [PATCH] fix: cryto API is now imported with node namespace This fix the use of this library in Cloudflare workers --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index dfbc157..fad37dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { BinaryToTextEncoding, webcrypto } from "crypto"; +import { BinaryToTextEncoding, webcrypto } from "node:crypto"; import isPlainObject from "./isPlainObject"; import { encoders } from "./encoders";