Socket
Socket
Sign inDemoInstall

vue-currency-input

Package Overview
Dependencies
10
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.22.1 to 1.22.2

8

dist/vue-currency-input.esm.js
/**
* Vue Currency Input 1.22.1
* Vue Currency Input 1.22.2
* (c) 2018-2020 Matthias Stiller

@@ -434,10 +434,10 @@ * @license MIT

optionsFromBinding);
var listeners = (vnode.data && vnode.data.on) || (vnode.componentOptions && vnode.componentOptions.listeners);
var listeners = (vnode.data && vnode.data.on) || (vnode.componentOptions && vnode.componentOptions.listeners) || {};
var emit = function (event, data) {
if (listeners[event]) {
listeners[event].fns(vnode.componentOptions ? data : { target: { value: data } });
listeners[event](vnode.componentOptions ? data : { target: { value: data } });
}
};
el.$ci = new NumberInput(inputElement, options, {
onChange: function () { return emit('change', inputElement.value); },
onChange: function () { emit('change', inputElement.value); },
onInput: function () { emit('input', inputElement.value); }

@@ -444,0 +444,0 @@ });

/**
* Vue Currency Input 1.22.1
* Vue Currency Input 1.22.2
* (c) 2018-2020 Matthias Stiller

@@ -440,10 +440,10 @@ * @license MIT

optionsFromBinding);
var listeners = (vnode.data && vnode.data.on) || (vnode.componentOptions && vnode.componentOptions.listeners);
var listeners = (vnode.data && vnode.data.on) || (vnode.componentOptions && vnode.componentOptions.listeners) || {};
var emit = function (event, data) {
if (listeners[event]) {
listeners[event].fns(vnode.componentOptions ? data : { target: { value: data } });
listeners[event](vnode.componentOptions ? data : { target: { value: data } });
}
};
el.$ci = new NumberInput(inputElement, options, {
onChange: function () { return emit('change', inputElement.value); },
onChange: function () { emit('change', inputElement.value); },
onInput: function () { emit('input', inputElement.value); }

@@ -450,0 +450,0 @@ });

{
"name": "vue-currency-input",
"description": "Easy input of currency formatted numbers for Vue.js.",
"version": "1.22.1",
"version": "1.22.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "unpkg": "dist/vue-currency-input.umd.js",

@@ -16,7 +16,7 @@ import { DEFAULT_OPTIONS } from './api'

}
const listeners = (vnode.data && vnode.data.on) || (vnode.componentOptions && vnode.componentOptions.listeners)
const listeners = (vnode.data && vnode.data.on) || (vnode.componentOptions && vnode.componentOptions.listeners) || {}
const emit = (event, data) => {
if (listeners[event]) {
listeners[event].fns(vnode.componentOptions ? data : { target: { value: data } })
listeners[event](vnode.componentOptions ? data : { target: { value: data } })
}

@@ -26,3 +26,3 @@ }

el.$ci = new NumberInput(inputElement, options, {
onChange: () => emit('change', inputElement.value),
onChange: () => { emit('change', inputElement.value) },
onInput: () => { emit('input', inputElement.value) }

@@ -29,0 +29,0 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc