Socket
Socket
Sign inDemoInstall

inputmask

Package Overview
Dependencies
Maintainers
1
Versions
189
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inputmask - npm Package Compare versions

Comparing version 5.0.9-beta.7 to 5.0.9-beta.10

0

bundle.js

@@ -0,0 +0,0 @@ import "./lib/polyfills/Object.getPrototypeOf";

@@ -0,0 +0,0 @@ import "./inputmask.js";

@@ -0,0 +0,0 @@ import "./inputmask.js";

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

@@ -0,0 +0,0 @@ export default {

@@ -0,0 +0,0 @@ export default function (owner, key, value) {

@@ -0,0 +0,0 @@ import extend from "./extend";

@@ -0,0 +0,0 @@ export default function extend() {

@@ -0,0 +0,0 @@ import window from "./global/window";

@@ -0,0 +0,0 @@ const escapeRegexRegex = new RegExp("(\\" + ["/", ".", "*", "+", "?", "|", "(", ")", "[", "]", "{", "}", "\\", "$", "^"].join("|\\") + ")", "gim");

2

lib/eventhandlers.js

@@ -443,3 +443,3 @@ import {

if (opts.clearIncomplete) {
resetMaskSet.call(inputmask);
resetMaskSet.call(inputmask, false);
if (opts.clearMaskOnLostFocus) {

@@ -446,0 +446,0 @@ buffer = [];

@@ -0,0 +0,0 @@ import Inputmask from "./inputmask";

@@ -0,0 +0,0 @@ const canUseDOM = !!(

@@ -74,4 +74,3 @@ import {keys} from "./keycode.js";

resetMaskSet.call(inputmask);
maskset.tests = {}; //reset tests ~ possible after alternating
resetMaskSet.call(inputmask, false);
initialNdx = opts.radixPoint ? determineNewCaretPosition.call(inputmask, {

@@ -78,0 +77,0 @@ begin: 0,

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ import window from "./global/window";

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ export {keyCode, toKey, toKeyCode, keys};

@@ -0,0 +0,0 @@ import $ from "./dependencyLibs/inputmask.dependencyLib";

@@ -227,3 +227,3 @@ import {keys} from "./keycode.js";

if (opts.clearIncomplete) {
resetMaskSet.call(inputmask);
resetMaskSet.call(inputmask, false);
}

@@ -230,0 +230,0 @@ }

@@ -0,0 +0,0 @@ export default function (isGroup, isOptional, isQuantifier, isAlternator) {

@@ -0,0 +0,0 @@ // https://tc39.github.io/ecma262/#sec-array.prototype.includes

@@ -0,0 +0,0 @@ const reduce = Function.bind.call(Function.call, Array.prototype.reduce);

@@ -0,0 +0,0 @@ if (typeof Object.getPrototypeOf !== "function") {

@@ -0,0 +0,0 @@ if (!String.prototype.includes) {

@@ -297,2 +297,3 @@ import window from "./global/window";

//tobe put on prototype?
//soft ~ undefined reset validpositions; soft = false also reset tests; soft = true only reset the maskset
function resetMaskSet(soft) {

@@ -306,2 +307,5 @@ const maskset = this.maskset;

}
if(soft === false) {
maskset.tests = {};
}
}

@@ -308,0 +312,0 @@

@@ -0,0 +0,0 @@ export {

@@ -266,3 +266,3 @@ import {

lrp = determineLastRequiredPosition.call(inputmask, true),
aml = seekPrevious.call(inputmask, lrp.l);
aml = lrp.l; // seekPrevious.call(inputmask, lrp.l);

@@ -273,3 +273,8 @@ if (lrp.def === undefined || lrp.def.newBlockMarker || lrp.def.optionality || lrp.def.optionalQuantifier) {

var test = getTestTemplate.call(inputmask, i).match;
if ((test.static !== true && maskset.validPositions[i] === undefined && test.optionality !== true && test.optionalQuantifier !== true) || (test.static === true && buffer[i] !== getPlaceholder.call(inputmask, i, test))) {
if ((test.static !== true &&
maskset.validPositions[i] === undefined &&
(test.optionality === false || test.optionality === undefined || (test.optionality && test.newBlockMarker == false)) &&
(test.optionalQuantifier === false || test.optionalQuantifier === undefined)) ||
(test.static === true && test.def != "" && buffer[i] !== getPlaceholder.call(inputmask, i, test))
) {
complete = false;

@@ -280,2 +285,3 @@ break;

}
return complete;

@@ -528,4 +534,3 @@ }

if (start === true) {
resetMaskSet.call(inputmask);
maskset.tests = {}; //refresh tests after possible alternating
resetMaskSet.call(inputmask, false);
start = 0;

@@ -532,0 +537,0 @@ end = buffer.length;

@@ -0,0 +0,0 @@ Copyright (c) 2010 - 2018 Robin Herbots

{
"name": "inputmask",
"version": "5.0.9-beta.7",
"version": "5.0.9-beta.10",
"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",

@@ -0,0 +0,0 @@ # Inputmask

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc