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

vue-countup-v2

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-countup-v2 - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

31

dist/VueCountUp.cjs.js

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

var isFunction = _interopDefault(require('lodash-es/isFunction'));
var _isFunction = _interopDefault(require('lodash-es/isFunction'));
var CountUp = _interopDefault(require('countup.js'));

@@ -15,7 +15,2 @@

props: {
startVal: {
type: Number,
required: false,
default: 0,
},
endVal: {

@@ -25,12 +20,2 @@ type: Number,

},
decimals: {
type: Number,
required: false,
default: 0,
},
duration: {
type: Number,
required: false,
default: 2,
},
options: {

@@ -52,3 +37,3 @@ type: Object,

if (that.instance && isFunction(that.instance.update)) {
if (that.instance && _isFunction(that.instance.update)) {
that.instance.update(value);

@@ -69,3 +54,3 @@ }

var dom = that.$el;
var instance = new CountUp(dom, that.startVal, that.endVal, that.decimals, that.duration, that.options);
var instance = new CountUp(dom, that.endVal, that.options);

@@ -87,3 +72,3 @@ if (instance.error);

if (that.instance && isFunction(that.instance.printValue)) {
if (that.instance && _isFunction(that.instance.printValue)) {
return that.instance.printValue(value);

@@ -95,3 +80,3 @@ }

if (that.instance && isFunction(that.instance.start) && isFunction(callback)) {
if (that.instance && _isFunction(that.instance.start) && _isFunction(callback)) {
return that.instance.start(callback);

@@ -103,3 +88,3 @@ }

if (that.instance && isFunction(that.instance.pauseResume)) {
if (that.instance && _isFunction(that.instance.pauseResume)) {
return that.instance.pauseResume();

@@ -111,3 +96,3 @@ }

if (that.instance && isFunction(that.instance.reset)) {
if (that.instance && _isFunction(that.instance.reset)) {
return that.instance.reset();

@@ -119,3 +104,3 @@ }

if (that.instance && isFunction(that.instance.update)) {
if (that.instance && _isFunction(that.instance.update)) {
return that.instance.update(newEndVal);

@@ -122,0 +107,0 @@ }

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

import isFunction from 'lodash-es/isFunction';
import _isFunction from 'lodash-es/isFunction';
import CountUp from 'countup.js';

@@ -8,7 +8,2 @@

props: {
startVal: {
type: Number,
required: false,
default: 0,
},
endVal: {

@@ -18,12 +13,2 @@ type: Number,

},
decimals: {
type: Number,
required: false,
default: 0,
},
duration: {
type: Number,
required: false,
default: 2,
},
options: {

@@ -45,3 +30,3 @@ type: Object,

if (that.instance && isFunction(that.instance.update)) {
if (that.instance && _isFunction(that.instance.update)) {
that.instance.update(value);

@@ -62,3 +47,3 @@ }

var dom = that.$el;
var instance = new CountUp(dom, that.startVal, that.endVal, that.decimals, that.duration, that.options);
var instance = new CountUp(dom, that.endVal, that.options);

@@ -80,3 +65,3 @@ if (instance.error);

if (that.instance && isFunction(that.instance.printValue)) {
if (that.instance && _isFunction(that.instance.printValue)) {
return that.instance.printValue(value);

@@ -88,3 +73,3 @@ }

if (that.instance && isFunction(that.instance.start) && isFunction(callback)) {
if (that.instance && _isFunction(that.instance.start) && _isFunction(callback)) {
return that.instance.start(callback);

@@ -96,3 +81,3 @@ }

if (that.instance && isFunction(that.instance.pauseResume)) {
if (that.instance && _isFunction(that.instance.pauseResume)) {
return that.instance.pauseResume();

@@ -104,3 +89,3 @@ }

if (that.instance && isFunction(that.instance.reset)) {
if (that.instance && _isFunction(that.instance.reset)) {
return that.instance.reset();

@@ -112,3 +97,3 @@ }

if (that.instance && isFunction(that.instance.update)) {
if (that.instance && _isFunction(that.instance.update)) {
return that.instance.update(newEndVal);

@@ -115,0 +100,0 @@ }

@@ -175,7 +175,2 @@ (function(global, factory) {

props: {
startVal: {
type: Number,
required: false,
default: 0,
},
endVal: {

@@ -185,12 +180,2 @@ type: Number,

},
decimals: {
type: Number,
required: false,
default: 0,
},
duration: {
type: Number,
required: false,
default: 2,
},
options: {

@@ -228,3 +213,3 @@ type: Object,

var dom = that.$el;
var instance = new CountUp(dom, that.startVal, that.endVal, that.decimals, that.duration, that.options);
var instance = new CountUp(dom, that.endVal, that.options);

@@ -231,0 +216,0 @@ if (instance.error);

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

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("countup.js")):"function"==typeof define&&define.amd?define(["countup.js"],e):t.VueCountUp=e(t.CountUp)}(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e="object"==typeof global&&global&&global.Object===Object&&global,n="object"==typeof self&&self&&self.Object===Object&&self,i=(e||n||Function("return this")()).Symbol,r=Object.prototype,u=r.hasOwnProperty,o=r.toString,a=i?i.toStringTag:void 0;var s=Object.prototype.toString;var c="[object Null]",f="[object Undefined]",l=i?i.toStringTag:void 0;function d(t){return null==t?void 0===t?f:c:l&&l in Object(t)?function(t){var e=u.call(t,a),n=t[a];try{t[a]=void 0}catch(t){}var i=o.call(t);return e?t[a]=n:delete t[a],i}(t):function(t){return s.call(t)}(t)}var p="[object AsyncFunction]",h="[object Function]",b="[object GeneratorFunction]",y="[object Proxy]";function j(t){if(!function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(t))return!1;var e=d(t);return e==h||e==b||e==p||e==y}return{__countup__:t,name:"ICountUp",props:{startVal:{type:Number,required:!1,default:0},endVal:{type:Number,required:!0},decimals:{type:Number,required:!1,default:0},duration:{type:Number,required:!1,default:2},options:{type:Object,required:!1}},data:function(){return{instance:null}},watch:{endVal:{handler:function(t){this.instance&&j(this.instance.update)&&this.instance.update(t)},deep:!1}},methods:{init:function(){var e=this;if(!e.instance){var n=e.$el,i=new t(n,e.startVal,e.endVal,e.decimals,e.duration,e.options);i.error||(i.start(function(){return e.$emit("ready",i,t)}),e.instance=i)}},uninit:function(){this.instance=null},printValue:function(t){if(this.instance&&j(this.instance.printValue))return this.instance.printValue(t)},start:function(t){if(this.instance&&j(this.instance.start)&&j(t))return this.instance.start(t)},pauseResume:function(){if(this.instance&&j(this.instance.pauseResume))return this.instance.pauseResume()},reset:function(){if(this.instance&&j(this.instance.reset))return this.instance.reset()},update:function(t){if(this.instance&&j(this.instance.update))return this.instance.update(t)}},mounted:function(){this.init()},beforeDestroy:function(){this.uninit()},render:function(t){return t("span",{})}}});
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("countup.js")):"function"==typeof define&&define.amd?define(["countup.js"],n):t.VueCountUp=n(t.CountUp)}(this,function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var n="object"==typeof global&&global&&global.Object===Object&&global,e="object"==typeof self&&self&&self.Object===Object&&self,i=(n||e||Function("return this")()).Symbol,r=Object.prototype,u=r.hasOwnProperty,o=r.toString,s=i?i.toStringTag:void 0;var c=Object.prototype.toString;var a="[object Null]",f="[object Undefined]",l=i?i.toStringTag:void 0;function p(t){return null==t?void 0===t?f:a:l&&l in Object(t)?function(t){var n=u.call(t,s),e=t[s];try{t[s]=void 0}catch(t){}var i=o.call(t);return n?t[s]=e:delete t[s],i}(t):function(t){return c.call(t)}(t)}var d="[object AsyncFunction]",h="[object Function]",b="[object GeneratorFunction]",j="[object Proxy]";function y(t){if(!function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}(t))return!1;var n=p(t);return n==h||n==b||n==d||n==j}return{__countup__:t,name:"ICountUp",props:{endVal:{type:Number,required:!0},options:{type:Object,required:!1}},data:function(){return{instance:null}},watch:{endVal:{handler:function(t){this.instance&&y(this.instance.update)&&this.instance.update(t)},deep:!1}},methods:{init:function(){var n=this;if(!n.instance){var e=n.$el,i=new t(e,n.endVal,n.options);i.error||(i.start(function(){return n.$emit("ready",i,t)}),n.instance=i)}},uninit:function(){this.instance=null},printValue:function(t){if(this.instance&&y(this.instance.printValue))return this.instance.printValue(t)},start:function(t){if(this.instance&&y(this.instance.start)&&y(t))return this.instance.start(t)},pauseResume:function(){if(this.instance&&y(this.instance.pauseResume))return this.instance.pauseResume()},reset:function(){if(this.instance&&y(this.instance.reset))return this.instance.reset()},update:function(t){if(this.instance&&y(this.instance.update))return this.instance.update(t)}},mounted:function(){this.init()},beforeDestroy:function(){this.uninit()},render:function(t){return t("span",{})}}});
//# sourceMappingURL=VueCountUp.min.js.map

@@ -14,15 +14,15 @@ {

"bili": "^3.4.2",
"eslint": "^5.12.0",
"eslint": "^5.14.1",
"eslint-config-alloy": "^1.4.2",
"eslint-config-prettier": "^3.3.0",
"eslint-plugin-vue": "^5.1.0",
"prettier": "^1.15.3",
"rollup-plugin-prettier": "^0.5.0",
"rollup-plugin-vue": "^4.4.0",
"stylelint": "^9.9.0",
"stylelint-config-prettier": "^4.0.0",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-vue": "^5.2.2",
"prettier": "^1.16.4",
"rollup-plugin-prettier": "^0.6.0",
"rollup-plugin-vue": "^4.7.2",
"stylelint": "^9.10.1",
"stylelint-config-prettier": "^5.0.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-order": "^2.0.0",
"vue-eslint-parser": "^5.0.0",
"vue-template-compiler": "^2.5.22"
"vue-eslint-parser": "^6.0.2",
"vue-template-compiler": "^2.6.7"
},

@@ -66,3 +66,3 @@ "engines": {

"unpkg": "dist/VueCountUp.min.js",
"version": "2.0.0"
"version": "3.0.0"
}
# vue-countup-v2
> Vue.js(v2.x+) component wrap for CountUp.js(v1.x+)
> Vue.js component wrap for CountUp.js

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

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

import isFunction from 'lodash-es/isFunction';
import _isFunction from 'lodash-es/isFunction';
import CountUp from 'countup.js';

@@ -8,7 +8,2 @@

props: {
startVal: {
type: Number,
required: false,
default: 0
},
endVal: {

@@ -18,12 +13,2 @@ type: Number,

},
decimals: {
type: Number,
required: false,
default: 0
},
duration: {
type: Number,
required: false,
default: 2
},
options: {

@@ -45,3 +30,3 @@ type: Object,

if (that.instance && isFunction(that.instance.update)) {
if (that.instance && _isFunction(that.instance.update)) {
that.instance.update(value);

@@ -63,6 +48,3 @@ }

dom,
that.startVal,
that.endVal,
that.decimals,
that.duration,
that.options

@@ -85,3 +67,3 @@ );

if (that.instance && isFunction(that.instance.printValue)) {
if (that.instance && _isFunction(that.instance.printValue)) {
return that.instance.printValue(value);

@@ -93,3 +75,3 @@ }

if (that.instance && isFunction(that.instance.start) && isFunction(callback)) {
if (that.instance && _isFunction(that.instance.start) && _isFunction(callback)) {
return that.instance.start(callback);

@@ -101,3 +83,3 @@ }

if (that.instance && isFunction(that.instance.pauseResume)) {
if (that.instance && _isFunction(that.instance.pauseResume)) {
return that.instance.pauseResume();

@@ -109,3 +91,3 @@ }

if (that.instance && isFunction(that.instance.reset)) {
if (that.instance && _isFunction(that.instance.reset)) {
return that.instance.reset();

@@ -117,3 +99,3 @@ }

if (that.instance && isFunction(that.instance.update)) {
if (that.instance && _isFunction(that.instance.update)) {
return that.instance.update(newEndVal);

@@ -120,0 +102,0 @@ }

Sorry, the diff of this file is not supported yet

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