xctc-utils 1.4.7 → 1.4.8
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/dist/crypto/index.d.ts +2 -0
- package/dist/crypto/index.js +2 -1
- package/package.json +1 -1
package/dist/crypto/index.d.ts
CHANGED
package/dist/crypto/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.decrypt = exports.encrypt = void 0;
|
|
6
|
+
exports.decrypt = exports.encrypt = exports.cryptojs = void 0;
|
|
7
7
|
var crypto_js_1 = __importDefault(require("crypto-js"));
|
|
8
8
|
var utils_1 = require("../utils");
|
|
9
9
|
function formatVal(val) {
|
|
@@ -12,6 +12,7 @@ function formatVal(val) {
|
|
|
12
12
|
key = val;
|
|
13
13
|
return crypto_js_1.default.enc.Utf8.parse(key);
|
|
14
14
|
}
|
|
15
|
+
exports.cryptojs = crypto_js_1.default;
|
|
15
16
|
// 加密
|
|
16
17
|
function encrypt(word, key, iv) {
|
|
17
18
|
if (word instanceof Object) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xctc-utils",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8",
|
|
4
4
|
"description": "localStorage存储\r ```\r sessionStorage存储\r ```\r crypto-js加密、解密\r ```\r 微信授权登录、微信分享\r ```\r 设备环境获取\r ```\r 是否是微信浏览器\r ```\r 时间戳转时间,字符串转时间戳",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|