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

awesome-mask

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

awesome-mask - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

4

index.js

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

setTimeout(function () {
ev.target.value = mask ? _vanillaMasker2.default.toPattern(ev.target.value, mask) : ev.target.value;
ev.target.value = mask && mask.length > 0 ? _vanillaMasker2.default.toPattern(ev.target.value, mask) : ev.target.value;
}, 0);

@@ -29,2 +29,3 @@ };

bind: function bind(el, binding) {
if (binding.value.length < 1) return;
el.dataset.mask = binding.value;

@@ -35,2 +36,3 @@ el.setAttribute('maxlength', el.dataset.mask.length);

unbind: function unbind(el) {
if (binding.value.length < 1) return;
el.removeAttribute('maxlength');

@@ -37,0 +39,0 @@ el.removeEventListener('keydown', inputHandler);

{
"name": "awesome-mask",
"version": "0.2.7",
"version": "0.2.8",
"description": "An awesome mask directive for Vue.js using vanilla-masker from `https://github.com/BankFacil/vanilla-masker`",

@@ -5,0 +5,0 @@ "main": "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