react-imask
Advanced tools
Comparing version 4.1.5 to 5.0.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('prop-types'), require('imask')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'react', 'prop-types', 'imask'], factory) : | ||
(factory((global.ReactIMask = {}),global.React,global.PropTypes,global.IMask)); | ||
}(this, (function (exports,React,PropTypes,IMask) { 'use strict'; | ||
(global = global || self, factory(global.ReactIMask = {}, global.React, global.PropTypes, global.IMask)); | ||
}(this, function (exports, React, PropTypes, IMask) { 'use strict'; | ||
@@ -158,2 +158,3 @@ React = React && React.hasOwnProperty('default') ? React['default'] : React; | ||
commit: PropTypes.func, | ||
overwrite: PropTypes.bool, | ||
// events | ||
@@ -209,3 +210,3 @@ onAccept: PropTypes.func, | ||
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(MaskedComponent)).call.apply(_getPrototypeOf2, [this].concat(args))); | ||
_this._inputRef = _this._inputRef.bind(_assertThisInitialized(_assertThisInitialized(_this))); | ||
_this._inputRef = _this._inputRef.bind(_assertThisInitialized(_this)); | ||
return _this; | ||
@@ -221,5 +222,5 @@ } | ||
}, { | ||
key: "componentWillReceiveProps", | ||
value: function componentWillReceiveProps(nextProps) { | ||
var props = _objectSpread({}, this.props, nextProps); | ||
key: "componentDidUpdate", | ||
value: function componentDidUpdate() { | ||
var props = this.props; | ||
@@ -344,8 +345,8 @@ var maskOptions = this._extractMaskOptionsFromProps(props); | ||
exports.IMaskInput = IMaskInput; | ||
exports.IMaskMixin = IMaskMixin; | ||
exports.IMaskInput = IMaskInput; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); | ||
})); | ||
//# sourceMappingURL=react-imask.js.map |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "4.1.5", | ||
"version": "5.0.0", | ||
"homepage": "https://unmanner.github.io/imaskjs/", | ||
@@ -25,3 +25,3 @@ "description": "React input mask", | ||
"dependencies": { | ||
"imask": "^4.1.5", | ||
"imask": "^5.0.0", | ||
"prop-types": "^15.6.0" | ||
@@ -35,3 +35,3 @@ }, | ||
}, | ||
"gitHead": "d4e0024b449fc7893c298d7d6901bc405a365854" | ||
"gitHead": "b97fdd47e29ada59917cefd8f28e39a7c15ebd93" | ||
} |
@@ -23,2 +23,3 @@ import React from 'react'; | ||
commit: PropTypes.func, | ||
overwrite: PropTypes.bool, | ||
@@ -84,4 +85,4 @@ // events | ||
componentWillReceiveProps (nextProps) { | ||
const props = {...this.props, ...nextProps}; | ||
componentDidUpdate () { | ||
const props = this.props; | ||
const maskOptions = this._extractMaskOptionsFromProps(props); | ||
@@ -151,3 +152,2 @@ if (maskOptions.mask) { | ||
return props; | ||
@@ -187,2 +187,3 @@ } | ||
}; | ||
MaskedComponent.propTypes = MASK_PROPS; | ||
@@ -189,0 +190,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
472
33563
+ Addedimask@5.2.1(transitive)
- Removedimask@4.1.5(transitive)
Updatedimask@^5.0.0