Socket
Socket
Sign inDemoInstall

react-imask

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-imask - npm Package Compare versions

Comparing version 4.1.5 to 5.0.0

17

dist/react-imask.js
(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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc