abler-api 0.2.7 → 0.2.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.
@@ -1167,11 +1167,10 @@ class apiUtil$2 {
1167
1167
  static async tokenDataExist(token) {
1168
1168
  return await kvStorage.stored(token);
1169
1169
  }
1170
- static checkParametersOK(params) {
1170
+ static checkParametersOK(params, ...args) {
1171
1171
  configNeeded();
1172
1172
  let paramSufix = params._param_sufix || "";
1173
- for (let i = 1; i < arguments.length; i++) {
1174
- let paramName = arguments[i];
1173
+ for (let paramName of args) {
1175
1174
  let paramExists = false;
1176
1175
  if (paramName.includes("/")) {
1177
1176
  let names = paramName.split("/");
@@ -1204,7 +1203,7 @@ class apiUtil$2 {
1204
1203
  return paramSufix;
1205
1204
  }
1206
1205
  static async parametersOK(params) {
1207
- return await apiUtil$2.checkParametersOK(params);
1206
+ return await apiUtil$2.checkParametersOK(...arguments);
1208
1207
  }
1209
1208
 
1210
1209
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.2.7",
3
+ "version": "0.2.8",
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": "^0.1.61",
19
- "abler-i18n": "^0.1.27",
20
- "abler-messenger": "^0.1.20",
21
- "abler-net": "^0.1.17",
22
- "abler-util": "^0.3.8",
18
+ "abler-db": "^0.1.62",
19
+ "abler-i18n": "^0.1.28",
20
+ "abler-messenger": "^0.1.21",
21
+ "abler-net": "^0.1.18",
22
+ "abler-util": "^0.3.9",
23
23
  "basic-auth": "^2.0.1",
24
24
  "node-cron": "^3.0.1",
25
25
  "q": "^1.5.1"
@@ -29,7 +29,7 @@
29
29
  "@babel/eslint-parser": "^7.18.2",
30
30
  "@babel/plugin-transform-runtime": "^7.18.0",
31
31
  "@babel/preset-env": "^7.18.2",
32
- "@babel/runtime": "^7.18.0",
32
+ "@babel/runtime": "^7.24.6",
33
33
  "@rollup/plugin-babel": "^5.3.1",
34
34
  "@rollup/plugin-commonjs": "^22.0.0",
35
35
  "@rollup/plugin-eslint": "^8.0.2",
@@ -42,5 +42,5 @@
42
42
  "rollup-plugin-json": "^4.0.0",
43
43
  "rollup-plugin-terser": "^7.0.2"
44
44
  },
45
- "gitHead": "9bc8a0b5bc82e6ebc9738b689bb43a5f67176050"
45
+ "gitHead": "5835a6ad303f0bc1067c336b3702539208f51e43"
46
46
  }