@midwayjs/validate 3.20.0 → 3.20.3
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/configuration.js +0 -6
- package/locales/zh_CN.json +1 -1
- package/package.json +7 -7
package/dist/configuration.js
CHANGED
|
@@ -31,12 +31,6 @@ let ValidateConfiguration = class ValidateConfiguration {
|
|
|
31
31
|
await container.getAsync(pipe_1.ParseBoolPipe);
|
|
32
32
|
await container.getAsync(pipe_1.ParseFloatPipe);
|
|
33
33
|
await container.getAsync(pipe_1.DecoratorValidPipe);
|
|
34
|
-
this.decoratorService.registerParameterHandler(constants_1.VALID_KEY, ({ parameterIndex, originParamType, originArgs, metadata }) => {
|
|
35
|
-
if (!metadata.schema) {
|
|
36
|
-
metadata.schema = this.validateService.getSchema(originParamType);
|
|
37
|
-
}
|
|
38
|
-
return originArgs[parameterIndex];
|
|
39
|
-
});
|
|
40
34
|
// register web param default pipe
|
|
41
35
|
this.decoratorService.registerParameterPipes(core_1.WEB_ROUTER_PARAM_KEY, [
|
|
42
36
|
pipe_1.ValidationPipe,
|
package/locales/zh_CN.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/validate",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.3",
|
|
4
4
|
"description": "Midway Component for mongoose",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@midwayjs/i18n": "^3.20.
|
|
26
|
+
"@midwayjs/i18n": "^3.20.3",
|
|
27
27
|
"joi": "17.13.3"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@midwayjs/core": "^3.20.
|
|
31
|
-
"@midwayjs/express": "^3.20.
|
|
32
|
-
"@midwayjs/koa": "^3.20.
|
|
33
|
-
"@midwayjs/mock": "^3.20.
|
|
30
|
+
"@midwayjs/core": "^3.20.3",
|
|
31
|
+
"@midwayjs/express": "^3.20.3",
|
|
32
|
+
"@midwayjs/koa": "^3.20.3",
|
|
33
|
+
"@midwayjs/mock": "^3.20.3"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "a0918e46838e220fd000997796dbc8d669d28746"
|
|
36
36
|
}
|