Socket
Socket
Sign inDemoInstall

react-imask

Package Overview
Dependencies
10
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.2 to 7.1.3

19

dist/react-imask.js

@@ -202,2 +202,3 @@ (function (global, factory) {

var _maskRef$current;
if (!initialized) return;
(_maskRef$current = maskRef.current) == null ? void 0 : _maskRef$current.destroy();

@@ -251,4 +252,6 @@ maskRef.current = null;

const mask = maskRef.current;
if (mask && initialized && lastAcceptValue !== value) mask.value = value;
setLastAcceptState(state);
if (mask && initialized) {
if (lastAcceptValue !== value) mask.value = value;
setLastAcceptState(state);
}
}, [value]);

@@ -261,4 +264,6 @@ React.useEffect(() => {

const mask = maskRef.current;
if (mask && initialized && lastAcceptUnmaskedValue !== unmaskedValue) mask.unmaskedValue = unmaskedValue;
setLastAcceptState(state);
if (mask && initialized) {
if (lastAcceptUnmaskedValue !== unmaskedValue) mask.unmaskedValue = unmaskedValue;
setLastAcceptState(state);
}
}, [unmaskedValue]);

@@ -271,4 +276,6 @@ React.useEffect(() => {

const mask = maskRef.current;
if (mask && initialized && lastAcceptTypedValue !== typedValue) mask.typedValue = typedValue;
setLastAcceptState(state);
if (mask && initialized) {
if (lastAcceptTypedValue !== typedValue) mask.typedValue = typedValue;
setLastAcceptState(state);
}
}, [typedValue]);

@@ -275,0 +282,0 @@ React.useEffect(() => _destroyMask, [_destroyMask]);

@@ -18,2 +18,3 @@ import IMask from 'imask/esm/imask';

var _maskRef$current;
if (!initialized) return;
(_maskRef$current = maskRef.current) == null ? void 0 : _maskRef$current.destroy();

@@ -67,4 +68,6 @@ maskRef.current = null;

const mask = maskRef.current;
if (mask && initialized && lastAcceptValue !== value) mask.value = value;
setLastAcceptState(state);
if (mask && initialized) {
if (lastAcceptValue !== value) mask.value = value;
setLastAcceptState(state);
}
}, [value]);

@@ -77,4 +80,6 @@ useEffect(() => {

const mask = maskRef.current;
if (mask && initialized && lastAcceptUnmaskedValue !== unmaskedValue) mask.unmaskedValue = unmaskedValue;
setLastAcceptState(state);
if (mask && initialized) {
if (lastAcceptUnmaskedValue !== unmaskedValue) mask.unmaskedValue = unmaskedValue;
setLastAcceptState(state);
}
}, [unmaskedValue]);

@@ -87,4 +92,6 @@ useEffect(() => {

const mask = maskRef.current;
if (mask && initialized && lastAcceptTypedValue !== typedValue) mask.typedValue = typedValue;
setLastAcceptState(state);
if (mask && initialized) {
if (lastAcceptTypedValue !== typedValue) mask.typedValue = typedValue;
setLastAcceptState(state);
}
}, [typedValue]);

@@ -91,0 +98,0 @@ useEffect(() => _destroyMask, [_destroyMask]);

{
"name": "react-imask",
"version": "7.1.2",
"version": "7.1.3",
"license": "MIT",

@@ -63,3 +63,3 @@ "author": "Alexey Kryazhev",

"dependencies": {
"imask": "^7.1.2",
"imask": "^7.1.3",
"prop-types": "^15.8.1"

@@ -73,3 +73,3 @@ },

},
"gitHead": "5a9af3e0e523887ab6464b4e1e08075b98990785",
"gitHead": "7c0f22588bf9d72b42d7cc566362a27e485b6295",
"devDependencies": {

@@ -76,0 +76,0 @@ "@types/react": "^18.2.14",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc