@webiny/validation 5.37.6 → 5.37.7

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,6 +66,4 @@ 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);
70
-
71
- //# sourceMappingURL=index.js.map
69
+ validation.setValidator("slug", _slug.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/validation",
3
- "version": "5.37.6",
3
+ "version": "5.37.7",
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.6",
28
- "@webiny/project-utils": "5.37.6",
27
+ "@webiny/cli": "5.37.7",
28
+ "@webiny/project-utils": "5.37.7",
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": "53e962c150c2732178d0431d7dfb0f6e9caa3381"
42
+ "gitHead": "115054c51d8e6699eed34ab574ae30cb6a716be0"
43
43
  }
package/types.js CHANGED
@@ -2,6 +2,4 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
- });
6
-
7
- //# sourceMappingURL=types.js.map
5
+ });
package/validation.js CHANGED
@@ -159,6 +159,4 @@ class Validation {
159
159
  }
160
160
  }
161
161
  var _default = Validation;
162
- exports.default = _default;
163
-
164
- //# sourceMappingURL=validation.js.map
162
+ exports.default = _default;
@@ -21,6 +21,4 @@ class ValidationError extends Error {
21
21
  }
22
22
  }
23
23
  var _default = ValidationError;
24
- exports.default = _default;
25
-
26
- //# sourceMappingURL=validationError.js.map
24
+ exports.default = _default;
@@ -52,6 +52,4 @@ var _default = value => {
52
52
  }
53
53
  throw new _validationError.default("Credit card number invalid.");
54
54
  };
55
- exports.default = _default;
56
-
57
- //# sourceMappingURL=creditCard.js.map
55
+ exports.default = _default;
@@ -25,6 +25,4 @@ 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;
29
-
30
- //# sourceMappingURL=dateGte.js.map
28
+ exports.default = _default;
@@ -25,6 +25,4 @@ 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;
29
-
30
- //# sourceMappingURL=dateLte.js.map
28
+ exports.default = _default;
@@ -32,6 +32,4 @@ 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;
36
-
37
- //# sourceMappingURL=email.js.map
35
+ exports.default = _default;
package/validators/eq.js CHANGED
@@ -33,6 +33,4 @@ 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;
37
-
38
- //# sourceMappingURL=eq.js.map
36
+ exports.default = _default;
package/validators/gt.js CHANGED
@@ -29,6 +29,4 @@ 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;
33
-
34
- //# sourceMappingURL=gt.js.map
32
+ exports.default = _default;
package/validators/gte.js CHANGED
@@ -29,6 +29,4 @@ 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;
33
-
34
- //# sourceMappingURL=gte.js.map
32
+ exports.default = _default;
package/validators/in.js CHANGED
@@ -17,6 +17,4 @@ 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;
21
-
22
- //# sourceMappingURL=in.js.map
20
+ exports.default = _default;
@@ -16,6 +16,4 @@ var _default = value => {
16
16
  }
17
17
  throw new _validationError.default("Value needs to be an integer.");
18
18
  };
19
- exports.default = _default;
20
-
21
- //# sourceMappingURL=integer.js.map
19
+ exports.default = _default;
@@ -16,6 +16,4 @@ var _default = value => {
16
16
  throw new _validationError.default("Value needs to be a valid JSON.");
17
17
  }
18
18
  };
19
- exports.default = _default;
20
-
21
- //# sourceMappingURL=json.js.map
19
+ exports.default = _default;
package/validators/lt.js CHANGED
@@ -16,6 +16,4 @@ 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;
20
-
21
- //# sourceMappingURL=lt.js.map
19
+ exports.default = _default;
package/validators/lte.js CHANGED
@@ -16,6 +16,4 @@ 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;
20
-
21
- //# sourceMappingURL=lte.js.map
19
+ exports.default = _default;
@@ -28,6 +28,4 @@ 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;
32
-
33
- //# sourceMappingURL=maxLength.js.map
31
+ exports.default = _default;
@@ -28,6 +28,4 @@ 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;
32
-
33
- //# sourceMappingURL=minLength.js.map
31
+ exports.default = _default;
@@ -23,6 +23,4 @@ var _default = value => {
23
23
  }
24
24
  throw new _validationError.default("Value needs to be a number.");
25
25
  };
26
- exports.default = _default;
27
-
28
- //# sourceMappingURL=number.js.map
26
+ exports.default = _default;
@@ -30,6 +30,4 @@ var _default = value => {
30
30
  }
31
31
  throw new _validationError.default("Value needs to be numeric.");
32
32
  };
33
- exports.default = _default;
34
-
35
- //# sourceMappingURL=numeric.js.map
33
+ exports.default = _default;
@@ -17,6 +17,4 @@ 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;
21
-
22
- //# sourceMappingURL=password.js.map
20
+ exports.default = _default;
@@ -16,6 +16,4 @@ var _default = value => {
16
16
  }
17
17
  throw new _validationError.default("Value must be a valid phone number.");
18
18
  };
19
- exports.default = _default;
20
-
21
- //# sourceMappingURL=phone.js.map
19
+ exports.default = _default;
@@ -14,6 +14,4 @@ var _default = value => {
14
14
  throwError();
15
15
  }
16
16
  };
17
- exports.default = _default;
18
-
19
- //# sourceMappingURL=required.js.map
17
+ exports.default = _default;
@@ -16,6 +16,4 @@ 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;
20
-
21
- //# sourceMappingURL=slug.js.map
19
+ exports.default = _default;
@@ -63,6 +63,4 @@ const compareTime = (time, compareTo) => {
63
63
  }
64
64
  return -1;
65
65
  };
66
- exports.compareTime = compareTime;
67
-
68
- //# sourceMappingURL=index.js.map
66
+ exports.compareTime = compareTime;
@@ -25,6 +25,4 @@ 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;
29
-
30
- //# sourceMappingURL=timeGte.js.map
28
+ exports.default = _default;
@@ -25,6 +25,4 @@ 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;
29
-
30
- //# sourceMappingURL=timeLte.js.map
28
+ exports.default = _default;
package/validators/url.js CHANGED
@@ -48,6 +48,4 @@ var _default = (value, params) => {
48
48
  }
49
49
  throw new _validationError.default("Value must be a valid URL.");
50
50
  };
51
- exports.default = _default;
52
-
53
- //# sourceMappingURL=url.js.map
51
+ exports.default = _default;