Socket
Socket
Sign inDemoInstall

vue-autonumeric

Package Overview
Dependencies
1
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.1.0

10

CHANGELOG.md
## Changelog for vue-autoNumeric
### 1.1.0
+ Fix issue #10 When using an object to modify both the `:value` and `:options` props, the options is not always modified before the value
+ Fix the issue where updating the `options` to new ones with a higher `decimalPlacesRawValue` loses the additional decimal places
+ Now allows to update the `options` by passing an array of options (with objects and predefined option names)
+ When the `options` and `value` are both set at the same time, `vue-autonumeric` now always update the `options` first, before setting the `value`.
+ This allows to use objects with the value and a predefined option name to modify the vue-autonumeric component.
+ Note: There is a know bug yet; if you use multiple `vue-autonumeric` component sharing the same `v-model` but *different* options, changing the value/option *may* not work correctly.
+ This is due to the fact that when vue-autonumeric detects a value change, it `set()` it since it does not come from a user interaction.
+ However if one of the `vue-autonumeric` component has a `decimalPlaces` option set to `2`, and another set to `5`, then the first component will drop the additional decimal places when using `set()`...which in turn will make the other component aware of that new value change, and the second component will then use that new cropped value as well.
### 1.0.7

@@ -4,0 +14,0 @@ + Fix issue #9 Modifying the `options` will always lose the decimal places precision after `2` places

56

dist/vue-autonumeric.js
/**
* vue-autonumeric v1.0.7 (https://github.com/autoNumeric/vue-autoNumeric)
* vue-autonumeric v1.1.0 (https://github.com/autoNumeric/vue-autoNumeric)
* © 2018 Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>

@@ -396,2 +396,11 @@ * Released under the MIT License.

computed: {
anInfo: function anInfo() {
return {
value: this.value,
options: this.options
};
}
},
methods: {

@@ -426,25 +435,36 @@ updateVModel: function updateVModel(event) {

watch: {
value: function value(newValue, oldValue) {
try {
if (!this.userInteraction) {
if (newValue !== oldValue) {
this.anElement.set(newValue);
anInfo: function anInfo(newValue, oldValue) {
if (oldValue.options && (0, _stringify2.default)(newValue.options) !== (0, _stringify2.default)(oldValue.options)) {
var optionsToUse = void 0;
if (this.resetOnOptions) {
if (Array.isArray(newValue.options)) {
newValue.options = _AutoNumeric2.default.mergeOptions(newValue.options);
}
var decimalPlacesRawValue = this.anElement.getSettings().decimalPlacesRawValue;
var newOptions = _AutoNumeric2.default._getOptionObject(newValue.options);
if (newOptions.decimalPlaces && newOptions.decimalPlaces > decimalPlacesRawValue) {
optionsToUse = (0, _assign2.default)({}, _AutoNumeric2.default.getDefaultConfig(), newOptions);
} else {
optionsToUse = (0, _assign2.default)({}, _AutoNumeric2.default.getDefaultConfig(), { decimalPlacesRawValue: decimalPlacesRawValue }, newOptions);
}
} else {
optionsToUse = newValue.options;
}
} catch (error) {
console.error(error);
this.anElement.update(optionsToUse);
}
this.resetUserInteraction();
},
options: function options(newValue, oldValue) {
if ((0, _stringify2.default)(newValue) !== (0, _stringify2.default)(oldValue)) {
if (this.resetOnOptions) {
var decimalPlacesRawValue = this.anElement.getSettings().decimalPlacesRawValue;
var optionsToReset = (0, _assign2.default)({}, _AutoNumeric2.default.getDefaultConfig(), { decimalPlacesRawValue: decimalPlacesRawValue });
this.anElement.update(optionsToReset);
if (newValue.value !== void 0) {
try {
if (!this.userInteraction) {
if (newValue.value !== oldValue.value) {
this.anElement.set(newValue.value);
}
}
} catch (error) {
console.error(error);
}
this.anElement.update(newValue);
this.resetUserInteraction();
}

@@ -451,0 +471,0 @@ }

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

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("AutoNumeric")):"function"==typeof define&&define.amd?define("VueAutonumeric",["AutoNumeric"],e):"object"==typeof exports?exports.VueAutonumeric=e(require("AutoNumeric")):t.VueAutonumeric=e(t.AutoNumeric)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=9)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(6),o=n(7);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(32);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VueAutonumeric=void 0;var r=n(10),o=function(t){return t&&t.__esModule?t:{default:t}}(r);"undefined"!=typeof window&&window.Vue&&Vue.component("vue-autonumeric",o.default),e.VueAutonumeric=o.default,e.default=o.default},function(t,e,n){var r=n(11)(n(12),null,null,null);t.exports=r.exports},function(t,e){t.exports=function(t,e,n,r){var o,u=t=t||{},i=typeof t.default;"object"!==i&&"function"!==i||(o=t,u=t.default);var c="function"==typeof u?u.options:u;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),n&&(c._scopeId=n),r){var f=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var e=r[t];f[t]=function(){return e}}),c.computed=f}return{esModule:o,exports:u,options:c}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),u=r(o),i=n(15),c=r(i),f=n(43),a=r(f),s={};e.default={name:"VueAutonumeric",render:function(t){var e="input"===this.tag,n=void 0;return n=e?{type:"text",placeholder:this.placeholder}:{contenteditable:!0},t(this.tag,{attrs:n,ref:"autoNumericElement",on:{keydown:this.setUserInteraction,paste:this.setUserInteraction,wheel:this.setUserInteraction,drop:this.setUserInteraction,keyup:this.resetUserInteraction,blur:this.resetUserInteraction,"autoNumeric:rawValueModified":this.updateVModel}})},props:{value:{type:Number,required:!1},options:{type:[Object,String,Array],required:!1,default:function(){return s}},resetOnOptions:{type:Boolean,required:!1,default:!0},placeholder:{type:String,required:!1},tag:{type:String,required:!1,default:"input"}},data:function(){return{anElement:null,userInteraction:!1}},mounted:function(){var t=this,e=void 0;if(Array.isArray(this.options)){var n={};this.options.forEach(function(r){e=t.manageOptionElement(r),n=(0,c.default)(n,e)}),e=n}else e=this.manageOptionElement(this.options);this.anElement=new a.default(this.$refs.autoNumericElement,e),null!==this.value&&""!==this.value&&(this.anElement.set(this.value),this.updateVModel(),this.resetUserInteraction())},methods:{updateVModel:function(t){null!==this.anElement&&this.$emit("input",this.anElement.getNumber(),t)},setUserInteraction:function(){this.userInteraction=!0},resetUserInteraction:function(){this.userInteraction=!1},manageOptionElement:function(t){var e=void 0;return"string"==typeof t||t instanceof String?void 0!==(e=a.default.getPredefinedOptions()[t])&&null!==e||(console.warn("The given pre-defined options ["+t+"] is not recognized by autoNumeric.\nSwitching back to the default options."),e=s):e=t,e}},watch:{value:function(t,e){try{this.userInteraction||t!==e&&this.anElement.set(t)}catch(t){console.error(t)}this.resetUserInteraction()},options:function(t,e){if((0,u.default)(t)!==(0,u.default)(e)){if(this.resetOnOptions){var n=this.anElement.getSettings().decimalPlacesRawValue,r=(0,c.default)({},a.default.getDefaultConfig(),{decimalPlacesRawValue:n});this.anElement.update(r)}this.anElement.update(t)}}}}},function(t,e,n){t.exports={default:n(14),__esModule:!0}},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){t.exports={default:n(16),__esModule:!0}},function(t,e,n){n(17),t.exports=n(0).Object.assign},function(t,e,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(28)})},function(t,e,n){var r=n(1),o=n(0),u=n(19),i=n(21),c=function(t,e,n){var f,a,s,l=t&c.F,p=t&c.G,d=t&c.S,h=t&c.P,v=t&c.B,y=t&c.W,m=p?o:o[e]||(o[e]={}),x=m.prototype,b=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(f in n)(a=!l&&b&&void 0!==b[f])&&f in m||(s=a?b[f]:n[f],m[f]=p&&"function"!=typeof b[f]?n[f]:v&&a?u(s,r):y&&b[f]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):h&&"function"==typeof s?u(Function.call,s):s,h&&((m.virtual||(m.virtual={}))[f]=s,t&c.R&&x&&!x[f]&&i(x,f,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(22),o=n(27);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(23),o=n(24),u=n(26),i=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=u(e,!0),r(n),o)try{return i(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),o=n(1).document,u=r(o)&&r(o.createElement);t.exports=function(t){return u?o.createElement(t):{}}},function(t,e,n){var r=n(2);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(29),o=n(40),u=n(41),i=n(42),c=n(6),f=Object.assign;t.exports=!f||n(4)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=f({},t)[n]||Object.keys(f({},e)).join("")!=r})?function(t,e){for(var n=i(t),f=arguments.length,a=1,s=o.f,l=u.f;f>a;)for(var p,d=c(arguments[a++]),h=s?r(d).concat(s(d)):r(d),v=h.length,y=0;v>y;)l.call(d,p=h[y++])&&(n[p]=d[p]);return n}:f},function(t,e,n){var r=n(30),o=n(39);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(31),o=n(5),u=n(33)(!1),i=n(36)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),f=0,a=[];for(n in c)n!=i&&r(c,n)&&a.push(n);for(;e.length>f;)r(c,n=e[f++])&&(~u(a,n)||a.push(n));return a}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(5),o=n(34),u=n(35);t.exports=function(t){return function(e,n,i){var c,f=r(e),a=o(f.length),s=u(i,a);if(t&&n!=n){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(8),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(8),o=Math.max,u=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):u(t,e)}},function(t,e,n){var r=n(37)("keys"),o=n(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t){return Object(r(t))}},function(e,n){e.exports=t}]).default});
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("AutoNumeric")):"function"==typeof define&&define.amd?define("VueAutonumeric",["AutoNumeric"],e):"object"==typeof exports?exports.VueAutonumeric=e(require("AutoNumeric")):t.VueAutonumeric=e(t.AutoNumeric)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=9)}([function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(4)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(6),o=n(7);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(32);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VueAutonumeric=void 0;var r=n(10),o=function(t){return t&&t.__esModule?t:{default:t}}(r);"undefined"!=typeof window&&window.Vue&&Vue.component("vue-autonumeric",o.default),e.VueAutonumeric=o.default,e.default=o.default},function(t,e,n){var r=n(11)(n(12),null,null,null);t.exports=r.exports},function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(o=t,i=t.default);var c="function"==typeof i?i.options:i;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns),n&&(c._scopeId=n),r){var a=Object.create(c.computed||null);Object.keys(r).forEach(function(t){var e=r[t];a[t]=function(){return e}}),c.computed=a}return{esModule:o,exports:i,options:c}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),i=r(o),u=n(15),c=r(u),a=n(43),f=r(a),s={};e.default={name:"VueAutonumeric",render:function(t){var e="input"===this.tag,n=void 0;return n=e?{type:"text",placeholder:this.placeholder}:{contenteditable:!0},t(this.tag,{attrs:n,ref:"autoNumericElement",on:{keydown:this.setUserInteraction,paste:this.setUserInteraction,wheel:this.setUserInteraction,drop:this.setUserInteraction,keyup:this.resetUserInteraction,blur:this.resetUserInteraction,"autoNumeric:rawValueModified":this.updateVModel}})},props:{value:{type:Number,required:!1},options:{type:[Object,String,Array],required:!1,default:function(){return s}},resetOnOptions:{type:Boolean,required:!1,default:!0},placeholder:{type:String,required:!1},tag:{type:String,required:!1,default:"input"}},data:function(){return{anElement:null,userInteraction:!1}},mounted:function(){var t=this,e=void 0;if(Array.isArray(this.options)){var n={};this.options.forEach(function(r){e=t.manageOptionElement(r),n=(0,c.default)(n,e)}),e=n}else e=this.manageOptionElement(this.options);this.anElement=new f.default(this.$refs.autoNumericElement,e),null!==this.value&&""!==this.value&&(this.anElement.set(this.value),this.updateVModel(),this.resetUserInteraction())},computed:{anInfo:function(){return{value:this.value,options:this.options}}},methods:{updateVModel:function(t){null!==this.anElement&&this.$emit("input",this.anElement.getNumber(),t)},setUserInteraction:function(){this.userInteraction=!0},resetUserInteraction:function(){this.userInteraction=!1},manageOptionElement:function(t){var e=void 0;return"string"==typeof t||t instanceof String?void 0!==(e=f.default.getPredefinedOptions()[t])&&null!==e||(console.warn("The given pre-defined options ["+t+"] is not recognized by autoNumeric.\nSwitching back to the default options."),e=s):e=t,e}},watch:{anInfo:function(t,e){if(e.options&&(0,i.default)(t.options)!==(0,i.default)(e.options)){var n=void 0;if(this.resetOnOptions){Array.isArray(t.options)&&(t.options=f.default.mergeOptions(t.options));var r=this.anElement.getSettings().decimalPlacesRawValue,o=f.default._getOptionObject(t.options);n=o.decimalPlaces&&o.decimalPlaces>r?(0,c.default)({},f.default.getDefaultConfig(),o):(0,c.default)({},f.default.getDefaultConfig(),{decimalPlacesRawValue:r},o)}else n=t.options;this.anElement.update(n)}if(void 0!==t.value){try{this.userInteraction||t.value!==e.value&&this.anElement.set(t.value)}catch(t){console.error(t)}this.resetUserInteraction()}}}}},function(t,e,n){t.exports={default:n(14),__esModule:!0}},function(t,e,n){var r=n(0),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){t.exports={default:n(16),__esModule:!0}},function(t,e,n){n(17),t.exports=n(0).Object.assign},function(t,e,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(28)})},function(t,e,n){var r=n(1),o=n(0),i=n(19),u=n(21),c=function(t,e,n){var a,f,s,l=t&c.F,p=t&c.G,d=t&c.S,v=t&c.P,h=t&c.B,y=t&c.W,m=p?o:o[e]||(o[e]={}),g=m.prototype,x=p?r:d?r[e]:(r[e]||{}).prototype;p&&(n=e);for(a in n)(f=!l&&x&&void 0!==x[a])&&a in m||(s=f?x[a]:n[a],m[a]=p&&"function"!=typeof x[a]?n[a]:h&&f?i(s,r):y&&x[a]==s?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(s):v&&"function"==typeof s?i(Function.call,s):s,v&&((m.virtual||(m.virtual={}))[a]=s,t&c.R&&g&&!g[a]&&u(g,a,s)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(20);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(22),o=n(27);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(23),o=n(24),i=n(26),u=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(2);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){t.exports=!n(3)&&!n(4)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(2),o=n(1).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(2);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var r=n(29),o=n(40),i=n(41),u=n(42),c=n(6),a=Object.assign;t.exports=!a||n(4)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=u(t),a=arguments.length,f=1,s=o.f,l=i.f;a>f;)for(var p,d=c(arguments[f++]),v=s?r(d).concat(s(d)):r(d),h=v.length,y=0;h>y;)l.call(d,p=v[y++])&&(n[p]=d[p]);return n}:a},function(t,e,n){var r=n(30),o=n(39);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(31),o=n(5),i=n(33)(!1),u=n(36)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),a=0,f=[];for(n in c)n!=u&&r(c,n)&&f.push(n);for(;e.length>a;)r(c,n=e[a++])&&(~i(f,n)||f.push(n));return f}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(5),o=n(34),i=n(35);t.exports=function(t){return function(e,n,u){var c,a=r(e),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(8),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(8),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(37)("keys"),o=n(38);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(1),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(7);t.exports=function(t){return Object(r(t))}},function(e,n){e.exports=t}]).default});
{
"name": "vue-autonumeric",
"version": "1.0.7",
"version": "1.1.0",
"description": "An AutoNumeric wrapper for Vue.js",

@@ -5,0 +5,0 @@ "author": "Alexandre Bonneau <alexandre.bonneau@linuxfr.eu>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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