@pristine-ts/validation 1.0.411 → 1.0.416
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.
|
@@ -3,4 +3,16 @@ export declare const bodyValidationMetadataKeyname = "@bodyValidation";
|
|
|
3
3
|
* The bodyValidation decorator can be used to validate the body of a request.
|
|
4
4
|
* @param classType The class that the request body is expected to fit.
|
|
5
5
|
*/
|
|
6
|
-
export declare const bodyValidation: (classType: Function) => (
|
|
6
|
+
export declare const bodyValidation: (classType: Function) => (
|
|
7
|
+
/**
|
|
8
|
+
* The class on which the decorator is used.
|
|
9
|
+
*/
|
|
10
|
+
target: any,
|
|
11
|
+
/**
|
|
12
|
+
* The method on which the decorator is used.
|
|
13
|
+
*/
|
|
14
|
+
propertyKey: string | symbol,
|
|
15
|
+
/**
|
|
16
|
+
* The descriptor of the property.
|
|
17
|
+
*/
|
|
18
|
+
descriptor: PropertyDescriptor) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/validation",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.416",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/validation.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/validation.module.js",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@pristine-ts/class-validator": "^2.0.4",
|
|
16
|
-
"@pristine-ts/common": "^1.0.
|
|
17
|
-
"@pristine-ts/core": "^1.0.
|
|
18
|
-
"@pristine-ts/data-mapping": "^1.0.
|
|
19
|
-
"@pristine-ts/networking": "^1.0.
|
|
16
|
+
"@pristine-ts/common": "^1.0.416",
|
|
17
|
+
"@pristine-ts/core": "^1.0.416",
|
|
18
|
+
"@pristine-ts/data-mapping": "^1.0.416",
|
|
19
|
+
"@pristine-ts/networking": "^1.0.416"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"src/*.{js,ts}"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "8b89ec32581da344372c3da63edd87703e0690bf"
|
|
64
64
|
}
|