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.
@@ -675,7 +675,7 @@ class apiUtil$2 {
675
675
  * @param req
676
676
  * @param res
677
677
  * @param noErr
678
- * @returns {Promise<*>}
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.56",
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.62",
19
- "abler-i18n": "^1.0.9",
20
- "abler-messenger": "^1.1.19",
21
- "abler-net": "^1.0.23",
22
- "abler-util": "^1.0.23",
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": "8027625bd8e5fd989382976d42a2404d4f4b68ce"
46
+ "gitHead": "817cbcb28593b6d119f12b0ae084c8015de77fca"
47
47
  }