Socket
Socket
Sign inDemoInstall

inputmask

Package Overview
Dependencies
0
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.9-beta.53 to 5.0.9-beta.54

dist/colormask.css

4

lib/defaults.js

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

import {keys, ignorables} from "./keycode.js";
import {keys} from "./keycode.js";

@@ -53,4 +53,2 @@ export default {

supportsInputType: ["text", "tel", "url", "password", "search"], //list with the supported input types
//specify keyCodes which should not be considered in the keypress event, otherwise the preventDefault will stop their default behavior especially in FF
ignorables: Object.keys(ignorables),
isComplete: null, //override for isComplete - args => buffer, opts - return true || false

@@ -57,0 +55,0 @@ preValidation: null, //hook to preValidate the input. Usefull for validating regardless the definition. args => buffer, pos, char, isSelection, opts, maskset, caretPos, strict => return true/false/command object

@@ -98,3 +98,3 @@ import {

inputmask.isComposing = (c == keys.Process || c == keys.Unidentified);
inputmask.ignorable = c.length > 1; // opts.ignorables.includes(c);
inputmask.ignorable = c.length > 1 && !(input.tagName.toLowerCase() === "textarea" && k == keys.Enter);
return EventHandlers.keypressEvent.call(this, e, checkval, writeOut, strict, ndx);

@@ -101,0 +101,0 @@ },

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

export {keyCode, toKey, toKeyCode, keys, ignorables};
export {keyCode, toKey, toKeyCode, keys};

@@ -3,0 +3,0 @@ const ignorables = {

@@ -145,5 +145,5 @@ import {keys} from "./keycode.js";

if (input.tagName.toLowerCase() !== "textarea") {
opts.ignorables.push(keys.Enter);
}
// if (input.tagName.toLowerCase() !== "textarea") {
// opts.ignorables.push(keys.Enter);
// }

@@ -150,0 +150,0 @@ var elementType = input.getAttribute("type");

{
"name": "inputmask",
"version": "5.0.9-beta.53",
"version": "5.0.9-beta.54",
"description": "Inputmask is a javascript library which creates an input mask. Inputmask can run against vanilla javascript, jQuery and jqlite.",

@@ -5,0 +5,0 @@ "main": "dist/inputmask.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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