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 6.0.3 to 6.0.5

esm/mixin-c3942261.js

16

dist/react-imask.js

@@ -269,3 +269,9 @@ (function (global, factory) {

value: function _onAccept() {
if (this.props.onAccept) this.props.onAccept(this.maskValue, this.maskRef);
var _this$props;
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
args[_key2] = arguments[_key2];
}
if (this.props.onAccept) (_this$props = this.props).onAccept.apply(_this$props, [this.maskValue, this.maskRef].concat(args));
}

@@ -275,3 +281,9 @@ }, {

value: function _onComplete() {
if (this.props.onComplete) this.props.onComplete(this.maskValue, this.maskRef);
var _this$props2;
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
args[_key3] = arguments[_key3];
}
if (this.props.onComplete) (_this$props2 = this.props).onComplete.apply(_this$props2, [this.maskValue, this.maskRef].concat(args));
}

@@ -278,0 +290,0 @@ }, {

2

esm/index.js
import 'imask/esm';
export { I as IMaskMixin } from './mixin-6598536f.js';
export { I as IMaskMixin } from './mixin-c3942261.js';
import 'react';

@@ -4,0 +4,0 @@ import 'prop-types';

@@ -1,2 +0,2 @@

import { I as IMaskMixin, _ as _objectWithoutProperties } from './mixin-6598536f.js';
import { I as IMaskMixin, _ as _objectWithoutProperties } from './mixin-c3942261.js';
import React from 'react';

@@ -3,0 +3,0 @@ import 'prop-types';

@@ -1,4 +0,4 @@

export { I as default } from './mixin-6598536f.js';
export { I as default } from './mixin-c3942261.js';
import 'react';
import 'prop-types';
import 'imask/esm/imask';

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

"license": "MIT",
"version": "6.0.3",
"version": "6.0.5",
"homepage": "https://imask.js.org/",

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

"dependencies": {
"imask": "^6.0.3",
"imask": "^6.0.5",
"prop-types": "^15.7.2"

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

},
"gitHead": "228f2a4dce7125d0c7156868fcb5364b4487c8e6"
"gitHead": "5af8593f94a26c3cb73033b4b7bc77c679c52567"
}

@@ -24,2 +24,4 @@ # React IMask Plugin

inputRef={el => this.input = el} // access to nested input
// DO NOT USE onChange TO HANDLE CHANGES!
// USE onAccept INSTEAD
onAccept={

@@ -45,3 +47,3 @@ // depending on prop above first argument is

const StyledInput = styled.input`
color: paleviolet;
color: green;
`;

@@ -48,0 +50,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