@webiny/validation 5.29.0 → 5.30.0
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/package.json +7 -7
- package/validators/creditCard.d.ts +1 -1
- package/validators/dateGte.d.ts +1 -1
- package/validators/dateLte.d.ts +1 -1
- package/validators/email.d.ts +1 -1
- package/validators/eq.d.ts +1 -1
- package/validators/gt.d.ts +1 -1
- package/validators/gte.d.ts +1 -1
- package/validators/in.d.ts +1 -1
- package/validators/lt.d.ts +1 -1
- package/validators/lte.d.ts +1 -1
- package/validators/maxLength.d.ts +1 -1
- package/validators/minLength.d.ts +1 -1
- package/validators/number.d.ts +1 -1
- package/validators/numeric.d.ts +1 -1
- package/validators/password.d.ts +1 -1
- package/validators/timeGte.d.ts +1 -1
- package/validators/timeLte.d.ts +1 -1
- package/validators/url.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/validation",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.30.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@babel/runtime": "7.18.
|
|
17
|
+
"@babel/runtime": "7.18.6",
|
|
18
18
|
"isnumeric": "0.3.3",
|
|
19
19
|
"lodash": "4.17.21"
|
|
20
20
|
},
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"@babel/preset-env": "^7.16.4",
|
|
25
25
|
"@babel/preset-typescript": "^7.16.0",
|
|
26
26
|
"@types/lodash": "^4.14.178",
|
|
27
|
-
"@webiny/cli": "^5.
|
|
28
|
-
"@webiny/project-utils": "^5.
|
|
27
|
+
"@webiny/cli": "^5.30.0",
|
|
28
|
+
"@webiny/project-utils": "^5.30.0",
|
|
29
29
|
"babel-plugin-lodash": "^3.3.4",
|
|
30
|
-
"jest": "^
|
|
30
|
+
"jest": "^28.1.0",
|
|
31
31
|
"merge": "^1.2.1",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
33
|
"ttypescript": "^1.5.13",
|
|
34
|
-
"typescript": "4.
|
|
34
|
+
"typescript": "4.7.4"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"build": "yarn webiny run build",
|
|
42
42
|
"watch": "yarn webiny run watch"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "3cadc5d26e565586b28772afbc18ae554ce7b782"
|
|
45
45
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const _default: (value: any) => void;
|
|
2
1
|
/**
|
|
3
2
|
* @name creditCard
|
|
4
3
|
* @description Credit card validator. This validator will check if the given value is a credit card number.
|
|
@@ -12,4 +11,5 @@ declare const _default: (value: any) => void;
|
|
|
12
11
|
* // Invalid
|
|
13
12
|
* });
|
|
14
13
|
*/
|
|
14
|
+
declare const _default: (value: any) => void;
|
|
15
15
|
export default _default;
|
package/validators/dateGte.d.ts
CHANGED
package/validators/dateLte.d.ts
CHANGED
package/validators/email.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const _default: (value: any) => void;
|
|
2
1
|
/**
|
|
3
2
|
* @name email
|
|
4
3
|
* @description Email validator. This validator checks if the given value is a valid email address.
|
|
@@ -12,4 +11,5 @@ declare const _default: (value: any) => void;
|
|
|
12
11
|
* // Invalid
|
|
13
12
|
* });
|
|
14
13
|
*/
|
|
14
|
+
declare const _default: (value: any) => void;
|
|
15
15
|
export default _default;
|
package/validators/eq.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[] | undefined) => void;
|
|
2
1
|
/**
|
|
3
2
|
* @name eq
|
|
4
3
|
* @description Equality validator. This validator checks if the given values are equal.
|
|
@@ -13,4 +12,5 @@ declare const _default: (value: any, params?: string[] | undefined) => void;
|
|
|
13
12
|
* // Invalid
|
|
14
13
|
* });
|
|
15
14
|
*/
|
|
15
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
16
16
|
export default _default;
|
package/validators/gt.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[] | undefined) => void;
|
|
2
1
|
/**
|
|
3
2
|
* @name gt
|
|
4
3
|
* @description "Greater than" validator. This validator checks if the given values is greater than the `min` value.
|
|
@@ -13,4 +12,5 @@ declare const _default: (value: any, params?: string[] | undefined) => void;
|
|
|
13
12
|
* // Invalid
|
|
14
13
|
* });
|
|
15
14
|
*/
|
|
15
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
16
16
|
export default _default;
|
package/validators/gte.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[] | undefined) => void;
|
|
2
1
|
/**
|
|
3
2
|
* @name gte
|
|
4
3
|
* @description "Greater than or equals" validator. This validator checks if the given values is greater than or equal to the `min` value.
|
|
@@ -13,4 +12,5 @@ declare const _default: (value: any, params?: string[] | undefined) => void;
|
|
|
13
12
|
* // Invalid
|
|
14
13
|
* });
|
|
15
14
|
*/
|
|
15
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
16
16
|
export default _default;
|
package/validators/in.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[]
|
|
1
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
2
2
|
export default _default;
|
package/validators/lt.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[]
|
|
1
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
2
2
|
export default _default;
|
package/validators/lte.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[]
|
|
1
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[]
|
|
1
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[]
|
|
1
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
2
2
|
export default _default;
|
package/validators/number.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: (value: any) => void;
|
|
2
1
|
/**
|
|
3
2
|
* @function number
|
|
4
3
|
* @description This validator checks of the given value is a number
|
|
5
4
|
* @param {any} value
|
|
6
5
|
* @return {boolean}
|
|
7
6
|
*/
|
|
7
|
+
declare const _default: (value: any) => void;
|
|
8
8
|
export default _default;
|
package/validators/numeric.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: (value: any) => void;
|
|
2
1
|
/**
|
|
3
2
|
* @function number
|
|
4
3
|
* @description This validator checks if the given value is numeric
|
|
5
4
|
* @param {any} value
|
|
6
5
|
* @return {boolean}
|
|
7
6
|
*/
|
|
7
|
+
declare const _default: (value: any) => void;
|
|
8
8
|
export default _default;
|
package/validators/password.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[]
|
|
1
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
2
2
|
export default _default;
|
package/validators/timeGte.d.ts
CHANGED
package/validators/timeLte.d.ts
CHANGED
package/validators/url.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (value: any, params?: string[]
|
|
1
|
+
declare const _default: (value: any, params?: string[]) => void;
|
|
2
2
|
export default _default;
|