@medipass/utils 11.55.3 → 11.56.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/CHANGELOG.md +11 -0
- package/package.json +3 -3
- package/validate-form.js +6 -0
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
|
+
# [11.56.0](https://github.com/medipass/web/compare/@medipass/utils@11.55.3...@medipass/utils@11.56.0) (2021-11-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add length greater than with spaces form validation ([#583](https://github.com/medipass/web/issues/583)) ([685036d](https://github.com/medipass/web/commit/685036d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [11.55.3](https://github.com/medipass/web/compare/@medipass/utils@11.55.2...@medipass/utils@11.55.3) (2021-11-04)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/utils",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.56.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -44,10 +44,10 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@babel/plugin-transform-runtime": "7.8.3",
|
|
47
|
-
"@medipass/web-sdk": "^11.18.
|
|
47
|
+
"@medipass/web-sdk": "^11.18.10",
|
|
48
48
|
"redux-mock-store": "^1.3.0",
|
|
49
49
|
"redux-thunk": "^2.2.0",
|
|
50
50
|
"rimraf": "^2.6.2"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4659e95ce28f3bf1f05b290b4d5fb57a7b2c7bc9"
|
|
53
53
|
}
|
package/validate-form.js
CHANGED
|
@@ -67,6 +67,11 @@ var isLengthWithSpacesLessThanOrEqualTo = function isLengthWithSpacesLessThanOrE
|
|
|
67
67
|
return !value || value.length <= length ? undefined : "Must be less than or equal to " + length + " characters";
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
|
+
var isLengthWithSpacesGreaterThanOrEqualTo = function isLengthWithSpacesGreaterThanOrEqualTo(length) {
|
|
71
|
+
return function (value) {
|
|
72
|
+
return !value || value.length >= length ? undefined : "Must be greater than or equal to " + length + " characters";
|
|
73
|
+
};
|
|
74
|
+
};
|
|
70
75
|
var isGreaterThanOrEqualTo = function isGreaterThanOrEqualTo(length) {
|
|
71
76
|
return function (value) {
|
|
72
77
|
return !value || parseFloat(value, 10) >= length ? undefined : "Must be greater than or equal to " + length;
|
|
@@ -351,6 +356,7 @@ exports.isGreaterThanOrEqualTo = isGreaterThanOrEqualTo;
|
|
|
351
356
|
exports.isLengthEqualTo = isLengthEqualTo;
|
|
352
357
|
exports.isLengthGreaterThanOrEqualTo = isLengthGreaterThanOrEqualTo;
|
|
353
358
|
exports.isLengthLessThanOrEqualTo = isLengthLessThanOrEqualTo;
|
|
359
|
+
exports.isLengthWithSpacesGreaterThanOrEqualTo = isLengthWithSpacesGreaterThanOrEqualTo;
|
|
354
360
|
exports.isLengthWithSpacesLessThanOrEqualTo = isLengthWithSpacesLessThanOrEqualTo;
|
|
355
361
|
exports.isLessThanOrEqualTo = isLessThanOrEqualTo;
|
|
356
362
|
exports.isMoreThanThreeYears = isMoreThanThreeYears;
|