@peng_kai/kit 0.3.0-beta.26 → 0.3.0-beta.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@peng_kai/kit",
3
3
  "type": "module",
4
- "version": "0.3.0-beta.26",
4
+ "version": "0.3.0-beta.27",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "ISC",
package/utils/index.ts CHANGED
@@ -1,7 +1,4 @@
1
- import { Utf8 as cryptUtf8 } from 'crypto-es/lib/core';
2
- import { AES as cryptoAES } from 'crypto-es/lib/aes';
3
- import { ECB as cryptoModeECB } from 'crypto-es/lib/mode-ecb';
4
- import { Pkcs7 as cryptoPkcs7 } from 'crypto-es/lib/cipher-core';
1
+ import { Utf8 as cryptUtf8, AES as cryptoAES, ECB as cryptoModeECB, Pkcs7 as cryptoPkcs7 } from 'crypto-es';
5
2
  import { at as objAt } from 'lodash-es';
6
3
 
7
4
  export { desensitize, randomString } from './string';
package/utils/string.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { Base64 } from 'crypto-es/lib/enc-base64';
2
- import { Utf8 } from 'crypto-es/lib/core';
1
+ import { Base64, Utf8 } from 'crypto-es';
3
2
 
4
3
  /**
5
4
  * 字符串脱敏,省略中间字符串