@mcurros2/microm 1.1.302-0 → 1.1.303-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/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -48559,6 +48559,8 @@ const $0d3d02f42e5246df$export$6dabbcb26357acf4 = ({ min: min, max: max }, error
|
|
|
48559
48559
|
if (!value) return null;
|
|
48560
48560
|
if (typeof value !== 'string' || typeof value !== 'number') return _error;
|
|
48561
48561
|
let valid = true;
|
|
48562
|
+
if (typeof value === 'string') value = parseFloat(value);
|
|
48563
|
+
if (typeof value !== 'number') return _error;
|
|
48562
48564
|
if (value < min) valid = false;
|
|
48563
48565
|
if (value > max) valid = false;
|
|
48564
48566
|
return valid ? null : _error;
|