@midwayjs/validate 3.0.0-beta.13 → 3.0.0-beta.14
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/CHANGELOG.md +11 -0
- package/dist/service.d.ts +7 -7
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.0.0-beta.14](https://github.com/midwayjs/midway/compare/v3.0.0-beta.13...v3.0.0-beta.14) (2022-01-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* cos config definition & 3.x doc update ([#1515](https://github.com/midwayjs/midway/issues/1515)) ([0ac7ac5](https://github.com/midwayjs/midway/commit/0ac7ac5805b7ab8873f8792fc1712a74e3223172))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.0.0-beta.13](https://github.com/midwayjs/midway/compare/v3.0.0-beta.12...v3.0.0-beta.13) (2021-12-30)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @midwayjs/validate
|
package/dist/service.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import * as DefaultConfig from './config/config.default';
|
|
|
2
2
|
import * as Joi from 'joi';
|
|
3
3
|
import { MidwayI18nServiceSingleton } from '@midwayjs/i18n';
|
|
4
4
|
export declare class ValidateService {
|
|
5
|
-
validateConfig: typeof DefaultConfig.validate;
|
|
6
|
-
i18nConfig: any;
|
|
7
|
-
i18nService: MidwayI18nServiceSingleton;
|
|
8
|
-
messages: {};
|
|
9
|
-
init(): Promise<void>;
|
|
10
|
-
validate
|
|
5
|
+
protected validateConfig: typeof DefaultConfig.validate;
|
|
6
|
+
protected i18nConfig: any;
|
|
7
|
+
protected i18nService: MidwayI18nServiceSingleton;
|
|
8
|
+
protected messages: {};
|
|
9
|
+
protected init(): Promise<void>;
|
|
10
|
+
validate<T extends new (...args: any[]) => any>(ClzType: T, value: any, options?: {
|
|
11
11
|
errorStatus?: number;
|
|
12
12
|
locale?: string;
|
|
13
13
|
validationOptions?: Joi.ValidationOptions;
|
|
14
|
-
}): Joi.ValidationResult<
|
|
14
|
+
}): Joi.ValidationResult<T>;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=service.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/validate",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.14",
|
|
4
4
|
"description": "Midway Component for mongoose",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -23,15 +23,15 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@midwayjs/i18n": "^3.0.0-beta.
|
|
26
|
+
"@midwayjs/i18n": "^3.0.0-beta.14",
|
|
27
27
|
"joi": "^17.2.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@midwayjs/core": "^3.0.0-beta.
|
|
31
|
-
"@midwayjs/decorator": "^3.0.0-beta.
|
|
32
|
-
"@midwayjs/express": "^3.0.0-beta.
|
|
33
|
-
"@midwayjs/koa": "^3.0.0-beta.
|
|
34
|
-
"@midwayjs/mock": "^3.0.0-beta.
|
|
30
|
+
"@midwayjs/core": "^3.0.0-beta.14",
|
|
31
|
+
"@midwayjs/decorator": "^3.0.0-beta.14",
|
|
32
|
+
"@midwayjs/express": "^3.0.0-beta.14",
|
|
33
|
+
"@midwayjs/koa": "^3.0.0-beta.14",
|
|
34
|
+
"@midwayjs/mock": "^3.0.0-beta.14"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "95695ada36190cf376e93a1a8866b3fb6dde06bc"
|
|
37
37
|
}
|