abler-api 1.0.81 → 1.0.82
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 +2 -2
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1411,10 +1411,10 @@ class apiUtil$2 {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
static validCek(cek, checkExpired = true) {
|
|
1413
1413
|
if (!cek) {
|
|
1414
|
-
throw [
|
|
1414
|
+
throw [errCfg.CEK_EXPIRED, t("或尚未申请")];
|
|
1415
1415
|
}
|
|
1416
1416
|
if (checkExpired && this.cekExpired(cek)) {
|
|
1417
|
-
throw
|
|
1417
|
+
throw errCfg.CEK_EXPIRED;
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
static encryptContentText(contentText, cek) {
|
|
@@ -1477,7 +1477,7 @@ class apiUtil$2 {
|
|
|
1477
1477
|
// const req = RequestContext.get('req');
|
|
1478
1478
|
// console.log("headers", req.headers);
|
|
1479
1479
|
// console.error(e);
|
|
1480
|
-
throw [
|
|
1480
|
+
throw [errCfg.DECRYPT_FAIL, e.message];
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
static decryptContent(content, cek) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abler-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.82",
|
|
4
4
|
"description": "API服务相关工具",
|
|
5
5
|
"main": "./dist/cjs/pp-util.js",
|
|
6
6
|
"-module": "./dist/es/pp-util.js",
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"basic-auth": "^2.0.1",
|
|
24
24
|
"node-cron": "^3.0.1"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "d5cf3bc2f6e07d25121b1b4100fca6e4344750c2"
|
|
27
27
|
}
|