@webiny/validation 5.37.2-beta.3 → 5.37.3-beta.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/index.js CHANGED
@@ -66,4 +66,6 @@ validation.setValidator("dateGte", _dateGte.default);
66
66
  validation.setValidator("dateLte", _dateLte.default);
67
67
  validation.setValidator("timeGte", _timeGte.default);
68
68
  validation.setValidator("timeLte", _timeLte.default);
69
- validation.setValidator("slug", _slug.default);
69
+ validation.setValidator("slug", _slug.default);
70
+
71
+ //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/validation",
3
- "version": "5.37.2-beta.3",
3
+ "version": "5.37.3-beta.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,8 +24,8 @@
24
24
  "@babel/preset-env": "7.22.7",
25
25
  "@babel/preset-typescript": "7.22.5",
26
26
  "@types/lodash": "4.14.191",
27
- "@webiny/cli": "5.37.2-beta.3",
28
- "@webiny/project-utils": "5.37.2-beta.3",
27
+ "@webiny/cli": "5.37.3-beta.0",
28
+ "@webiny/project-utils": "5.37.3-beta.0",
29
29
  "jest": "29.5.0",
30
30
  "rimraf": "3.0.2",
31
31
  "ttypescript": "1.5.15",
@@ -39,5 +39,5 @@
39
39
  "build": "yarn webiny run build",
40
40
  "watch": "yarn webiny run watch"
41
41
  },
42
- "gitHead": "e69288bf5e710060b14497aae8317034c6cb4bcc"
42
+ "gitHead": "5dbaca4f2294bd7a6718ece14752f5f554d0d842"
43
43
  }
package/types.js CHANGED
@@ -2,4 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
5
+ });
6
+
7
+ //# sourceMappingURL=types.js.map
package/validation.js CHANGED
@@ -159,4 +159,6 @@ class Validation {
159
159
  }
160
160
  }
161
161
  var _default = Validation;
162
- exports.default = _default;
162
+ exports.default = _default;
163
+
164
+ //# sourceMappingURL=validation.js.map
@@ -21,4 +21,6 @@ class ValidationError extends Error {
21
21
  }
22
22
  }
23
23
  var _default = ValidationError;
24
- exports.default = _default;
24
+ exports.default = _default;
25
+
26
+ //# sourceMappingURL=validationError.js.map
@@ -52,4 +52,6 @@ var _default = value => {
52
52
  }
53
53
  throw new _validationError.default("Credit card number invalid.");
54
54
  };
55
- exports.default = _default;
55
+ exports.default = _default;
56
+
57
+ //# sourceMappingURL=creditCard.js.map
@@ -25,4 +25,6 @@ var _default = (value, params) => {
25
25
  }
26
26
  throw new _validationError.default(`Value needs to be greater than or equal to "${gteDate.toISOString()}".`);
27
27
  };
28
- exports.default = _default;
28
+ exports.default = _default;
29
+
30
+ //# sourceMappingURL=dateGte.js.map
@@ -25,4 +25,6 @@ var _default = (value, params) => {
25
25
  }
26
26
  throw new _validationError.default(`Value needs to be lesser than or equal to "${lteDate.toISOString()}".`);
27
27
  };
28
- exports.default = _default;
28
+ exports.default = _default;
29
+
30
+ //# sourceMappingURL=dateLte.js.map
@@ -32,4 +32,6 @@ var _default = value => {
32
32
  }
33
33
  throw new _validationError.default("Value must be a valid e-mail address.");
34
34
  };
35
- exports.default = _default;
35
+ exports.default = _default;
36
+
37
+ //# sourceMappingURL=email.js.map
package/validators/eq.js CHANGED
@@ -33,4 +33,6 @@ var _default = (value, params) => {
33
33
  }
34
34
  throw new _validationError.default("Value must be equal to " + params[0] + ".");
35
35
  };
36
- exports.default = _default;
36
+ exports.default = _default;
37
+
38
+ //# sourceMappingURL=eq.js.map
package/validators/gt.js CHANGED
@@ -29,4 +29,6 @@ var _default = (value, params) => {
29
29
  }
30
30
  throw new _validationError.default("Value needs to be greater than " + params[0] + ".");
31
31
  };
32
- exports.default = _default;
32
+ exports.default = _default;
33
+
34
+ //# sourceMappingURL=gt.js.map
package/validators/gte.js CHANGED
@@ -29,4 +29,6 @@ var _default = (value, params) => {
29
29
  }
30
30
  throw new _validationError.default("Value needs to be greater than or equal to " + params[0] + ".");
31
31
  };
32
- exports.default = _default;
32
+ exports.default = _default;
33
+
34
+ //# sourceMappingURL=gte.js.map
package/validators/in.js CHANGED
@@ -17,4 +17,6 @@ var _default = (value, params) => {
17
17
  }
18
18
  throw new _validationError.default("Value must be one of the following: " + params.join(", ") + ".");
19
19
  };
20
- exports.default = _default;
20
+ exports.default = _default;
21
+
22
+ //# sourceMappingURL=in.js.map
@@ -16,4 +16,6 @@ var _default = value => {
16
16
  }
17
17
  throw new _validationError.default("Value needs to be an integer.");
18
18
  };
19
- exports.default = _default;
19
+ exports.default = _default;
20
+
21
+ //# sourceMappingURL=integer.js.map
@@ -16,4 +16,6 @@ var _default = value => {
16
16
  throw new _validationError.default("Value needs to be a valid JSON.");
17
17
  }
18
18
  };
19
- exports.default = _default;
19
+ exports.default = _default;
20
+
21
+ //# sourceMappingURL=json.js.map
package/validators/lt.js CHANGED
@@ -16,4 +16,6 @@ var _default = (value, params) => {
16
16
  }
17
17
  throw new _validationError.default("Value needs to be less than " + params[0] + ".");
18
18
  };
19
- exports.default = _default;
19
+ exports.default = _default;
20
+
21
+ //# sourceMappingURL=lt.js.map
package/validators/lte.js CHANGED
@@ -16,4 +16,6 @@ var _default = (value, params) => {
16
16
  }
17
17
  throw new _validationError.default("Value needs to be less than or equal to " + params[0] + ".");
18
18
  };
19
- exports.default = _default;
19
+ exports.default = _default;
20
+
21
+ //# sourceMappingURL=lte.js.map
@@ -28,4 +28,6 @@ var _default = (value, params) => {
28
28
  }
29
29
  throw new _validationError.default("Value requires " + params[0] + " items at most.");
30
30
  };
31
- exports.default = _default;
31
+ exports.default = _default;
32
+
33
+ //# sourceMappingURL=maxLength.js.map
@@ -28,4 +28,6 @@ var _default = (value, params) => {
28
28
  }
29
29
  throw new _validationError.default("Value requires at least " + params[0] + " items.");
30
30
  };
31
- exports.default = _default;
31
+ exports.default = _default;
32
+
33
+ //# sourceMappingURL=minLength.js.map
@@ -23,4 +23,6 @@ var _default = value => {
23
23
  }
24
24
  throw new _validationError.default("Value needs to be a number.");
25
25
  };
26
- exports.default = _default;
26
+ exports.default = _default;
27
+
28
+ //# sourceMappingURL=number.js.map
@@ -30,4 +30,6 @@ var _default = value => {
30
30
  }
31
31
  throw new _validationError.default("Value needs to be numeric.");
32
32
  };
33
- exports.default = _default;
33
+ exports.default = _default;
34
+
35
+ //# sourceMappingURL=numeric.js.map
@@ -17,4 +17,6 @@ var _default = (value, params) => {
17
17
  throw new _validationError.default(`Password must contain at least ${length} characters`);
18
18
  }
19
19
  };
20
- exports.default = _default;
20
+ exports.default = _default;
21
+
22
+ //# sourceMappingURL=password.js.map
@@ -16,4 +16,6 @@ var _default = value => {
16
16
  }
17
17
  throw new _validationError.default("Value must be a valid phone number.");
18
18
  };
19
- exports.default = _default;
19
+ exports.default = _default;
20
+
21
+ //# sourceMappingURL=phone.js.map
@@ -14,4 +14,6 @@ var _default = value => {
14
14
  throwError();
15
15
  }
16
16
  };
17
- exports.default = _default;
17
+ exports.default = _default;
18
+
19
+ //# sourceMappingURL=required.js.map
@@ -16,4 +16,6 @@ var _default = value => {
16
16
  }
17
17
  throw new _validationError.default("Slug must consist of only 'a-z', '0-9' and '-' (for example: 'some-slug' or 'some-slug-2')");
18
18
  };
19
- exports.default = _default;
19
+ exports.default = _default;
20
+
21
+ //# sourceMappingURL=slug.js.map
@@ -63,4 +63,6 @@ const compareTime = (time, compareTo) => {
63
63
  }
64
64
  return -1;
65
65
  };
66
- exports.compareTime = compareTime;
66
+ exports.compareTime = compareTime;
67
+
68
+ //# sourceMappingURL=index.js.map
@@ -25,4 +25,6 @@ var _default = (value, params) => {
25
25
  }
26
26
  throw new _validationError.default(`Value needs to be greater than or equal to "${gteValue}".`);
27
27
  };
28
- exports.default = _default;
28
+ exports.default = _default;
29
+
30
+ //# sourceMappingURL=timeGte.js.map
@@ -25,4 +25,6 @@ var _default = (value, params) => {
25
25
  }
26
26
  throw new _validationError.default(`Value needs to be lesser than or equal to "${lteValue}".`);
27
27
  };
28
- exports.default = _default;
28
+ exports.default = _default;
29
+
30
+ //# sourceMappingURL=timeLte.js.map
package/validators/url.js CHANGED
@@ -48,4 +48,6 @@ var _default = (value, params) => {
48
48
  }
49
49
  throw new _validationError.default("Value must be a valid URL.");
50
50
  };
51
- exports.default = _default;
51
+ exports.default = _default;
52
+
53
+ //# sourceMappingURL=url.js.map