New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.5.2 to 0.5.3

5

index.js

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

}
if (isMoney && inputText.value > 0) {
if (isMoney && inputText.value.length > 0) {
inputText.value = _vanillaMasker2.default.toMoney(inputText.value);

@@ -48,6 +48,7 @@ } else {

// this is only for v-model
if (binding.value.length < 1) return;
if (binding.value === 'money') {
applyMaskToDefault(el, binding.value, true);
return;
}
if (binding.value.length < 1) return;
el.dataset.mask = binding.value;

@@ -54,0 +55,0 @@ el.setAttribute('maxlength', el.dataset.mask.length);

2

package.json
{
"name": "awesome-mask",
"version": "0.5.2",
"version": "0.5.3",
"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