abler-api 1.0.84 → 1.0.88
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/cjs/pp-util.js +3 -3
- package/package.json +7 -7
package/dist/cjs/pp-util.js
CHANGED
|
@@ -294,8 +294,8 @@ class apiUtil$2 {
|
|
|
294
294
|
static cekEncryptOptions = {
|
|
295
295
|
algorithm: "aes-256-gcm",
|
|
296
296
|
// iv: 随机
|
|
297
|
-
|
|
298
|
-
|
|
297
|
+
encryptedEncoding: "base64",
|
|
298
|
+
decryptedEncoding: "utf8"
|
|
299
299
|
};
|
|
300
300
|
|
|
301
301
|
// static apiCallRecSaver;
|
|
@@ -1694,7 +1694,7 @@ class apiUtil$2 {
|
|
|
1694
1694
|
result = this.decryptContent(params.encryptedContent, cek);
|
|
1695
1695
|
console.log('CEK 解密结果:', result);
|
|
1696
1696
|
} else {
|
|
1697
|
-
let content =
|
|
1697
|
+
let content = ppCrypto.rsaDecrypt(params);
|
|
1698
1698
|
result = JSON.parse(content.decryptedContent);
|
|
1699
1699
|
// result = await commonUtil.rsaDecrypt(params);
|
|
1700
1700
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abler-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.88",
|
|
4
4
|
"description": "API服务相关工具",
|
|
5
5
|
"main": "./dist/cjs/pp-util.js",
|
|
6
6
|
"-module": "./dist/es/pp-util.js",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"author": "peng_peng",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"abler-db": "^1.0.
|
|
19
|
-
"abler-i18n": "^1.0.
|
|
20
|
-
"abler-messenger": "^1.1.
|
|
21
|
-
"abler-net": "^1.0.
|
|
22
|
-
"abler-util": "^1.0.
|
|
18
|
+
"abler-db": "^1.0.94",
|
|
19
|
+
"abler-i18n": "^1.0.25",
|
|
20
|
+
"abler-messenger": "^1.1.49",
|
|
21
|
+
"abler-net": "^1.0.50",
|
|
22
|
+
"abler-util": "^1.0.48",
|
|
23
23
|
"basic-auth": "^2.0.1",
|
|
24
24
|
"node-cron": "^3.0.1"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "b2a3f5b47193ab69fccd04ef3b7fcdda83d8aa38"
|
|
27
27
|
}
|