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

input-core

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

input-core - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/functions/inputValue.js

@@ -48,3 +48,3 @@ 'use strict';

} else {
if (item && item.char === maskPart.char || input) {
if (item && (item.char === maskPart.char || item.type !== _charTypesEnum2.default.USER) || input) {
valueIndex++;

@@ -51,0 +51,0 @@ }

@@ -213,2 +213,5 @@ 'use strict';

this.selection.start = this.selection.end - 1;
if (this.selection.start < 0) {
this.selection.start = 0;
}
}

@@ -215,0 +218,0 @@

{
"name": "input-core",
"version": "0.1.0",
"version": "0.1.1",
"description": "Core abilities of masked-input. Usefull to create custom input processors",

@@ -5,0 +5,0 @@ "main": "./lib/inputCore",

@@ -29,2 +29,4 @@ # Set of input tools for formatting

0.1.1 Fix bug with removing static symbol
0.1.0 First publish

@@ -31,0 +33,0 @@

@@ -29,3 +29,3 @@ import charTypes from '../constants/charTypesEnum.js';

} else {
if (item && item.char === maskPart.char || input) {
if (item && (item.char === maskPart.char || item.type !== charTypes.USER) || input) {
valueIndex++;

@@ -32,0 +32,0 @@ }

@@ -157,2 +157,5 @@ import defineMaskList from './functions/defineMaskList';

this.selection.start = this.selection.end - 1;
if (this.selection.start < 0) {
this.selection.start = 0;
}
}

@@ -165,3 +168,3 @@

if (this.selection.start === this.selection.end) {
this.selection.end++;
this.selection.end++;
}

@@ -168,0 +171,0 @@

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