@bearei/server-common 0.0.103 → 0.0.104
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/access/access.guard.js +7 -4
- package/dist/access/access.guard.js.map +1 -1
- package/dist/access/access.interceptor.js +9 -4
- package/dist/access/access.interceptor.js.map +1 -1
- package/dist/base/base.service.js +21 -11
- package/dist/base/base.service.js.map +1 -1
- package/dist/decorator/is-captcha.decorator.d.ts +1 -1
- package/dist/decorator/is-captcha.decorator.js.map +1 -1
- package/dist/decorator/is-nanoid.decorator.d.ts +1 -1
- package/dist/decorator/is-nanoid.decorator.js.map +1 -1
- package/dist/decorator/is-password.decorator.d.ts +1 -1
- package/dist/decorator/is-password.decorator.js.map +1 -1
- package/dist/decorator/is-version.decorator.d.ts +1 -1
- package/dist/decorator/is-version.decorator.js.map +1 -1
- package/dist/external/external.service.js +4 -2
- package/dist/external/external.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/util/sign.util.js +2 -1
- package/dist/util/sign.util.js.map +1 -1
- package/package.json +6 -5
package/dist/util/sign.util.js
CHANGED
|
@@ -32,11 +32,12 @@ const handleSignString = (object) => {
|
|
|
32
32
|
.sort((a, b) => a[0].toLowerCase().localeCompare(b[0].toLowerCase()))
|
|
33
33
|
.reduce((accumulator, [_, value]) => (value ? [...accumulator, value] : accumulator), [])
|
|
34
34
|
.join('&')}`;
|
|
35
|
-
signString.length > 56
|
|
35
|
+
if (signString.length > 56) {
|
|
36
36
|
(0, error_util_1.throwAPIError)({
|
|
37
37
|
code: '400005',
|
|
38
38
|
message: 'The maximum length of the signature string is more than 56 strings'
|
|
39
39
|
})(app_interface_1.APIError.BAD_REQUEST);
|
|
40
|
+
}
|
|
40
41
|
return signString;
|
|
41
42
|
};
|
|
42
43
|
exports.handleSignString = handleSignString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sign.util.js","sourceRoot":"","sources":["../../src/util/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"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "bearei <bear_ei@outlook.com>",
|
|
@@ -55,9 +55,10 @@
|
|
|
55
55
|
"@types/jest": "^29.5.2",
|
|
56
56
|
"@types/node": "^20.3.1",
|
|
57
57
|
"@types/supertest": "^6.0.0",
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^7.0
|
|
59
|
-
"@typescript-eslint/parser": "^7.0
|
|
60
|
-
"eslint": "^
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^8.7.0",
|
|
59
|
+
"@typescript-eslint/parser": "^8.7.0",
|
|
60
|
+
"@typescript-eslint/typescript-estree": "^8.7.0",
|
|
61
|
+
"eslint": "^9.11.1",
|
|
61
62
|
"eslint-config-prettier": "^9.0.0",
|
|
62
63
|
"eslint-plugin-prettier": "^5.0.0",
|
|
63
64
|
"globals": "^15.9.0",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"ts-loader": "^9.4.3",
|
|
71
72
|
"ts-node": "^10.9.1",
|
|
72
73
|
"tsconfig-paths": "^4.2.0",
|
|
73
|
-
"typescript": "
|
|
74
|
+
"typescript": "5.5.4",
|
|
74
75
|
"typescript-eslint": "^8.1.0"
|
|
75
76
|
},
|
|
76
77
|
"jest": {
|