Socket
Socket
Sign inDemoInstall

react-imask

Package Overview
Dependencies
7
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.1 to 6.0.0-alpha.0

esm/index.js

14

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) :
(global = global || self, factory(global.ReactIMask = {}, global.React, global.PropTypes, global.IMask));
}(this, function (exports, React, PropTypes, IMask) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('imask/esm'), require('react'), require('prop-types'), require('imask/esm/imask')) :
typeof define === 'function' && define.amd ? define(['exports', 'imask/esm', 'react', 'prop-types', 'imask/esm/imask'], factory) :
(global = global || self, factory(global.ReactIMask = {}, null, global.React, global.PropTypes, global.IMask));
}(this, (function (exports, esm, React, PropTypes, IMask) { 'use strict';

@@ -199,3 +199,3 @@ React = React && React.hasOwnProperty('default') ? React['default'] : React;

// for details see https://github.com/uNmAnNeR/imaskjs/issues/134
typeof props.value !== 'string' && this.maskRef.value === '')) {
typeof props.value !== 'string' && this.maskRef.value === '' && !this.maskRef.el.isActive)) {
this.maskValue = props.value;

@@ -235,3 +235,3 @@ }

var maskOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this._extractMaskOptionsFromProps(Object.assign({}, this.props));
this.maskRef = new IMask(this.element, maskOptions).on('accept', this._onAccept.bind(this)).on('complete', this._onComplete.bind(this));
this.maskRef = IMask(this.element, maskOptions).on('accept', this._onAccept.bind(this)).on('complete', this._onComplete.bind(this));
this.maskValue = this.props.value;

@@ -316,3 +316,3 @@ }

}));
})));
//# sourceMappingURL=react-imask.js.map

@@ -5,6 +5,7 @@ {

"license": "MIT",
"version": "5.2.1",
"version": "6.0.0-alpha.0",
"homepage": "https://imask.js.org/",
"description": "React input mask",
"main": "dist/react-imask.js",
"module": "esm/index.js",
"repository": "https://github.com/uNmAnNeR/imaskjs/tree/master/packages/react-imask",

@@ -21,3 +22,3 @@ "scripts": {

"dependencies": {
"imask": "^5.2.1",
"imask": "^6.0.0-alpha.0",
"prop-types": "^15.7.2"

@@ -31,3 +32,3 @@ },

},
"gitHead": "471137fa1e64c1adbeb6a2bddbc0616d29c0df7b"
"gitHead": "2e2a8a513ea51b1a8b1efb33459f8c089febcb49"
}

@@ -23,2 +23,3 @@ # React IMask Plugin

unmask={true} // true|false|'typed'
inputRef={el => this.input = el} // access to nested input
onAccept={

@@ -25,0 +26,0 @@ // depending on prop above first argument is

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc