abler-api 1.0.56 → 1.0.60
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 +2 -2
- package/package.json +7 -7
package/dist/cjs/pp-util.js
CHANGED
|
@@ -675,7 +675,7 @@ class apiUtil$2 {
|
|
|
675
675
|
* @param req
|
|
676
676
|
* @param res
|
|
677
677
|
* @param noErr
|
|
678
|
-
* @returns {
|
|
678
|
+
* @returns {string | undefined}
|
|
679
679
|
*/
|
|
680
680
|
static extractToken(req, res, noErr) {
|
|
681
681
|
configNeeded();
|
|
@@ -1381,7 +1381,7 @@ class apiUtil$2 {
|
|
|
1381
1381
|
static decryptContent(content, cek) {
|
|
1382
1382
|
this.validCek(cek);
|
|
1383
1383
|
try {
|
|
1384
|
-
const result = ppCrypto.decryptData(content, cek.key, 'utf8');
|
|
1384
|
+
const result = ppCrypto.decryptData(content, cek.key, 'base64', 'utf8');
|
|
1385
1385
|
if (result.startsWith('{') || result.startsWith('[')) {
|
|
1386
1386
|
return JSON.parse(result);
|
|
1387
1387
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abler-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.60",
|
|
4
4
|
"description": "API服务相关工具",
|
|
5
5
|
"main": "./dist/cjs/pp-util.js",
|
|
6
6
|
"-module": "./dist/es/pp-util.js",
|
|
@@ -15,11 +15,11 @@
|
|
|
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.66",
|
|
19
|
+
"abler-i18n": "^1.0.12",
|
|
20
|
+
"abler-messenger": "^1.1.23",
|
|
21
|
+
"abler-net": "^1.0.27",
|
|
22
|
+
"abler-util": "^1.0.27",
|
|
23
23
|
"basic-auth": "^2.0.1",
|
|
24
24
|
"node-cron": "^3.0.1",
|
|
25
25
|
"proxy-agent": "6.5.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"rollup-plugin-json": "^4.0.0",
|
|
44
44
|
"rollup-plugin-terser": "^7.0.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "817cbcb28593b6d119f12b0ae084c8015de77fca"
|
|
47
47
|
}
|