@midwayjs/validate 4.0.0-alpha.1 → 4.0.0-beta.2

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/README.md CHANGED
@@ -9,4 +9,4 @@ Document: [https://midwayjs.org](https://midwayjs.org)
9
9
 
10
10
  ## License
11
11
 
12
- [MIT]((http://github.com/midwayjs/midway/blob/master/LICENSE))
12
+ [MIT]((https://github.com/midwayjs/midway/blob/master/LICENSE))
@@ -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,
@@ -1,5 +1,5 @@
1
1
  {
2
- "alternatives.all": "{{#label}} 不能匹配上所以可选项",
2
+ "alternatives.all": "{{#label}} 不能匹配上所有可选项",
3
3
  "alternatives.any": "{{#label}} 不能匹配上任何可选项",
4
4
  "alternatives.match": "{{#label}} 不能匹配上任何可选项",
5
5
  "alternatives.one": "{{#label}} 匹配超过一个可选项",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/validate",
3
- "version": "4.0.0-alpha.1",
3
+ "version": "4.0.0-beta.2",
4
4
  "description": "Midway Component for mongoose",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -19,18 +19,18 @@
19
19
  "index.d.ts"
20
20
  ],
21
21
  "engines": {
22
- "node": ">=12"
22
+ "node": ">=20"
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@midwayjs/i18n": "^4.0.0-alpha.1",
26
+ "@midwayjs/i18n": "^4.0.0-beta.2",
27
27
  "joi": "17.13.3"
28
28
  },
29
29
  "devDependencies": {
30
- "@midwayjs/core": "^4.0.0-alpha.1",
31
- "@midwayjs/express": "^4.0.0-alpha.1",
32
- "@midwayjs/koa": "^4.0.0-alpha.1",
33
- "@midwayjs/mock": "^4.0.0-alpha.1"
30
+ "@midwayjs/core": "^4.0.0-beta.2",
31
+ "@midwayjs/express": "^4.0.0-beta.2",
32
+ "@midwayjs/koa": "^4.0.0-beta.2",
33
+ "@midwayjs/mock": "^4.0.0-beta.2"
34
34
  },
35
- "gitHead": "14bb4da91805a1cf52f190c0d37a74b395dd6372"
35
+ "gitHead": "53bfef4c5279da5f09025e4610bdbf64f94f60bd"
36
36
  }