From 7ce0f4efef5456f1193459046ccae64b0fbda1fa Mon Sep 17 00:00:00 2001 From: Tim Shamilov Date: Thu, 25 Apr 2024 22:26:34 -0400 Subject: [PATCH 1/2] fix: broken cjs export --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f045aa84..7931d1db 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,4 +7,5 @@ global.Buffer = Buffer; // @ts-expect-error subtle isn't full implemented and Cryptokey is missing global.crypto = QuickCrypto; -export default QuickCrypto; +module.exports = crypto; +export default crypto; From e844199086a04a18552e10236acd877aaa653f34 Mon Sep 17 00:00:00 2001 From: Timothy Shamilov Date: Fri, 26 Apr 2024 13:06:04 -0400 Subject: [PATCH 2/2] Update index.ts --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7931d1db..b33c2e18 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,5 +7,5 @@ global.Buffer = Buffer; // @ts-expect-error subtle isn't full implemented and Cryptokey is missing global.crypto = QuickCrypto; -module.exports = crypto; -export default crypto; +module.exports = QuickCrypto; +export default QuickCrypto;