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 5.1.6 to 5.1.7

36

dist/react-imask.js

@@ -48,16 +48,20 @@ (function (global, factory) {

function _objectSpread(target) {
function _objectSpread2(target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (i % 2) {
var source = arguments[i] != null ? arguments[i] : {};
var ownKeys = Object.keys(source);
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
if (typeof Object.getOwnPropertySymbols === 'function') {
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
}));
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
} else {
Object.defineProperties(target, Object.getOwnPropertyDescriptors(arguments[i]));
}
ownKeys.forEach(function (key) {
_defineProperty(target, key, source[key]);
});
}

@@ -260,3 +264,3 @@

value: function render() {
return React.createElement(ComposedComponent, _objectSpread({}, this._extractNonMaskProps(this.props), {
return React.createElement(ComposedComponent, _objectSpread2({}, this._extractNonMaskProps(this.props), {
defaultValue: this.props.value,

@@ -269,3 +273,3 @@ inputRef: this._inputRef

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

@@ -285,3 +289,3 @@ this.maskValue = this.props.value;

value: function _extractMaskOptionsFromProps(props) {
props = _objectSpread({}, props); // keep only mask options props
props = _objectSpread2({}, props); // keep only mask options props

@@ -298,3 +302,3 @@ Object.keys(props).filter(function (prop) {

value: function _extractNonMaskProps(props) {
props = _objectSpread({}, props);
props = _objectSpread2({}, props);
MASK_PROPS_NAMES.forEach(function (maskProp) {

@@ -341,3 +345,3 @@ delete props[maskProp];

return React.createElement('input', _objectSpread({}, props, {
return React.createElement('input', _objectSpread2({}, props, {
ref: inputRef

@@ -344,0 +348,0 @@ }));

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "5.1.6",
"version": "5.1.7",
"homepage": "https://unmanner.github.io/imaskjs/",

@@ -21,3 +21,3 @@ "description": "React input mask",

"dependencies": {
"imask": "^5.1.6",
"imask": "^5.1.7",
"prop-types": "^15.7.2"

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

},
"gitHead": "6ee2986e44766c3369d3fe5dca15bec93df25b9b"
"gitHead": "df5348e6aa3314341d20690f85f0e5b2ba70b92b"
}

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