From 597ea52d1c38dc8db55f96e459085b154dcbe14f Mon Sep 17 00:00:00 2001 From: eternallycyf <969475322@qq.com> Date: Sat, 9 Dec 2023 01:41:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(@ims-utils):=20use=20esmodul?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/utils/package.json | 5 +++-- packages/utils/src/ase/index.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/utils/package.json b/packages/utils/package.json index 79be5ba..11aa8ad 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -25,7 +25,8 @@ }, "devDependencies": { "@babel/runtime": "^7.23.1", - "@types/js-cookie": "^3.0.6" + "@types/js-cookie": "^3.0.6", + "@types/crypto-js": "^4.1.1" }, "peerDependencies": { "lodash": "^4.17.21", @@ -36,4 +37,4 @@ "access": "public", "registry": "https://registry.npmjs.org" } -} +} \ No newline at end of file diff --git a/packages/utils/src/ase/index.tsx b/packages/utils/src/ase/index.tsx index 309da2f..b387c21 100644 --- a/packages/utils/src/ase/index.tsx +++ b/packages/utils/src/ase/index.tsx @@ -1,4 +1,4 @@ -const CryptoJS = require('crypto-js'); +import * as CryptoJS from 'crypto-js'; const DEFAULT_KEY = { SHARE_KEY: 'ase',