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

inputmask-core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inputmask-core - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGES.md

@@ -0,1 +1,5 @@

## 2.0.1 / 2015-07-14
Fixed taking input for patterns with leading static parts when the cursor or entire selection is in the static part.
## 2.0.0 / 2015-04-03

@@ -2,0 +6,0 @@

10

lib/index.js

@@ -219,7 +219,5 @@ 'use strict';

// If a range of characters was selected and it includes the first editable
// character, make sure any input given is applied to it.
if (this.selection.start !== this.selection.end &&
this.selection.start < this.pattern.firstEditableIndex &&
this.selection.end > this.pattern.firstEditableIndex) {
// If the cursor or selection is prior to the first editable character, make
// sure any input given is applied to it.
if (inputIndex < this.pattern.firstEditableIndex) {
inputIndex = this.pattern.firstEditableIndex

@@ -484,2 +482,2 @@ }

module.exports = InputMask
module.exports = InputMask
{
"name": "inputmask-core",
"version": "2.0.0",
"version": "2.0.1",
"description": "Standalone input mask implementation, independent of any GUI",

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

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