Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maskito/core

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maskito/core - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

11

index.esm.js

@@ -99,3 +99,3 @@ const MASKITO_DEFAULT_ELEMENT_PREDICATE = e => e.querySelector('input,textarea') || e;

function getLeadingFixedCharacters(mask, validatedValuePart, newCharacter, initialElementState) {
let leadingFixedCharacters = ``;
let leadingFixedCharacters = '';

@@ -223,3 +223,3 @@ for (let i = validatedValuePart.length; i < mask.length; i++) {

if (selection.length < 2) {
selection.push(...Array(2 - selection.length).fill(unmaskedValue.length));
selection.push(...new Array(2 - selection.length).fill(unmaskedValue.length));
}

@@ -267,3 +267,4 @@

}, maskExpression, initialElementState);
const isInvalidCharsInsertion = value.slice(0, unmaskedFrom) === calibrateValueByMask({
const isInvalidCharsInsertion = // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
value.slice(0, unmaskedFrom) === calibrateValueByMask({
value: newUnmaskedLeadingValuePart,

@@ -351,3 +352,3 @@ selection: [newCaretIndex, newCaretIndex]

*
* @return will return `true` only if the {@linkcode HotkeyCode} matches and only the necessary
* @return will return `true` only if the {@link HotkeyCode} matches and only the necessary
* {@link HotkeyModifier modifiers} have been pressed

@@ -629,3 +630,3 @@ */

});
this.eventListener.listen(`compositionend`, () => {
this.eventListener.listen('compositionend', () => {
this.ensureValueFitsMask();

@@ -632,0 +633,0 @@ this.updateHistory(this.elementState);

@@ -203,3 +203,3 @@ (function (global, factory) {

function getLeadingFixedCharacters(mask, validatedValuePart, newCharacter, initialElementState) {
var leadingFixedCharacters = "";
var leadingFixedCharacters = '';

@@ -337,3 +337,3 @@ for (var i = validatedValuePart.length; i < mask.length; i++) {

if (selection.length < 2) {
selection.push.apply(selection, __spreadArray([], __read(Array(2 - selection.length).fill(unmaskedValue.length))));
selection.push.apply(selection, __spreadArray([], __read(new Array(2 - selection.length).fill(unmaskedValue.length))));
}

@@ -390,3 +390,4 @@

}, maskExpression, initialElementState);
var isInvalidCharsInsertion = value.slice(0, unmaskedFrom) === calibrateValueByMask({
var isInvalidCharsInsertion = // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
value.slice(0, unmaskedFrom) === calibrateValueByMask({
value: newUnmaskedLeadingValuePart,

@@ -488,3 +489,3 @@ selection: [newCaretIndex, newCaretIndex]

*
* @return will return `true` only if the {@linkcode HotkeyCode} matches and only the necessary
* @return will return `true` only if the {@link HotkeyCode} matches and only the necessary
* {@link HotkeyModifier modifiers} have been pressed

@@ -812,3 +813,3 @@ */

_this.eventListener.listen("compositionend", function () {
_this.eventListener.listen('compositionend', function () {
_this.ensureValueFitsMask();

@@ -815,0 +816,0 @@

@@ -26,3 +26,3 @@ export declare const enum HotkeyModifier {

*
* @return will return `true` only if the {@linkcode HotkeyCode} matches and only the necessary
* @return will return `true` only if the {@link HotkeyCode} matches and only the necessary
* {@link HotkeyModifier modifiers} have been pressed

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

{
"name": "@maskito/core",
"version": "1.5.0",
"version": "1.5.1",
"description": "The main zero-dependency and framework-agnostic Maskito's package to create an input mask",

@@ -5,0 +5,0 @@ "keywords": [

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