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',