react-imask
Advanced tools
Comparing version 6.6.2 to 6.6.3
@@ -138,6 +138,9 @@ (function (global, factory) { | ||
_extractNonMaskProps(props) { | ||
const cloneProps = Object.assign({}, (_objectDestructuringEmpty(props), props)); | ||
const _ref = props, | ||
cloneProps = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
MASK_PROPS_NAMES.forEach(maskProp => { | ||
delete cloneProps[maskProp]; | ||
}); | ||
if (!('defaultValue' in cloneProps)) cloneProps.defaultValue = props.mask ? '' : cloneProps.value; | ||
delete cloneProps.value; | ||
return cloneProps; | ||
@@ -144,0 +147,0 @@ } |
@@ -115,6 +115,9 @@ import { a as _objectDestructuringEmpty } from './_rollupPluginBabelHelpers-2cac7098.js'; | ||
_extractNonMaskProps(props) { | ||
const cloneProps = Object.assign({}, (_objectDestructuringEmpty(props), props)); | ||
const _ref = props, | ||
cloneProps = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref)); | ||
MASK_PROPS_NAMES.forEach(maskProp => { | ||
delete cloneProps[maskProp]; | ||
}); | ||
if (!('defaultValue' in cloneProps)) cloneProps.defaultValue = props.mask ? '' : cloneProps.value; | ||
delete cloneProps.value; | ||
return cloneProps; | ||
@@ -121,0 +124,0 @@ } |
{ | ||
"name": "react-imask", | ||
"version": "6.6.2", | ||
"version": "6.6.3", | ||
"license": "MIT", | ||
@@ -23,3 +23,3 @@ "author": "Alexey Kryazhev", | ||
"dependencies": { | ||
"imask": "^6.6.2", | ||
"imask": "^6.6.3", | ||
"prop-types": "^15.8.1" | ||
@@ -33,3 +33,3 @@ }, | ||
}, | ||
"gitHead": "1d54172d7ba720e80be6c95470a5a13b839fa7ba", | ||
"gitHead": "39b147d9b1d457804409ff8c636f476ed8b5f916", | ||
"devDependencies": { | ||
@@ -36,0 +36,0 @@ "@types/react": "^18.0.20", |
Sorry, the diff of this file is not supported yet
75286
749
Updatedimask@^6.6.3