@scenid/react-formulator 1.2.4 → 1.2.5
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/dist/index.cjs.js +3 -1
- package/dist/index.esm.js +3 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -28582,7 +28582,9 @@ function requireTypeValidator () {
|
|
|
28582
28582
|
|
|
28583
28583
|
_validator["default"].isZipCode = function (value, _ref3, other) {
|
|
28584
28584
|
var localeFrom = _ref3.localeFrom;
|
|
28585
|
-
|
|
28585
|
+
var locale = String(other[localeFrom]);
|
|
28586
|
+
if (!_validator["default"].isPostalCodeLocales.includes(locale)) return true;
|
|
28587
|
+
return _validator["default"].isPostalCode(value, locale);
|
|
28586
28588
|
};
|
|
28587
28589
|
|
|
28588
28590
|
var _default = _validator["default"];
|
package/dist/index.esm.js
CHANGED
|
@@ -28542,7 +28542,9 @@ function requireTypeValidator () {
|
|
|
28542
28542
|
|
|
28543
28543
|
_validator["default"].isZipCode = function (value, _ref3, other) {
|
|
28544
28544
|
var localeFrom = _ref3.localeFrom;
|
|
28545
|
-
|
|
28545
|
+
var locale = String(other[localeFrom]);
|
|
28546
|
+
if (!_validator["default"].isPostalCodeLocales.includes(locale)) return true;
|
|
28547
|
+
return _validator["default"].isPostalCode(value, locale);
|
|
28546
28548
|
};
|
|
28547
28549
|
|
|
28548
28550
|
var _default = _validator["default"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scenid/react-formulator",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"repository": "https://dennykoch@bitbucket.org/scenid/react-formulator.git",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
50
50
|
"@rollup/plugin-node-resolve": "^13.2.1",
|
|
51
51
|
"@scenid/cloud-icons": "^2.6.0",
|
|
52
|
-
"@scenid/formulator": "^2.3.
|
|
52
|
+
"@scenid/formulator": "^2.3.4",
|
|
53
53
|
"@storybook/addon-actions": "^6.4.22",
|
|
54
54
|
"@storybook/addon-essentials": "^6.4.22",
|
|
55
55
|
"@storybook/addon-interactions": "^6.4.22",
|