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 1.0.1 to 1.0.2

2

dist/vue-countup.js

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

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("countup"));else if("function"==typeof define&&define.amd)define(["countup"],t);else{var n=t("object"==typeof exports?require("countup"):e.CountUp);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),u=n.n(r),i=n(4),o=n.n(i),a={__countup__:o.a,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(e){var t=this;t.instance&&u()(t.instance.update)&&t.instance.update(e)},deep:!1}},methods:{init:function(){var e=this;if(!e.instance){var t=e.$el,n=new o.a(t,e.startVal,e.endVal,e.decimals,e.duration,e.options);n.error||(n.start(function(){return e.$emit("ready",n,o.a)}),e.instance=n)}},uninit:function(){this.instance=null}},mounted:function(){this.init()},beforeDestroy:function(){this.uninit()},start:function(e){var t=this;if(t.instance&&u()(t.instance.start)&&u()(e))return t.instance.start(e)},pauseResume:function(){var e=this;if(e.instance&&u()(e.instance.pauseResume))return e.instance.pauseResume()},reset:function(){var e=this;if(e.instance&&u()(e.instance.reset))return e.instance.reset()},update:function(e){var t=this;if(t.instance&&u()(t.instance.update))return t.instance.update(e)},render:function(e){return e("span",{})}};t.default=a},function(e,t,n){function r(e){if(!i(e))return!1;var t=u(e);return t==a||t==c||t==o||t==s}var u=n(2),i=n(3),o="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";e.exports=r},function(e,t){function n(e){return u.call(e)}var r=Object.prototype,u=r.toString;e.exports=n},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(t,n){t.exports=e}])});
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("countup.js"));else if("function"==typeof define&&define.amd)define(["countup.js"],t);else{var n=t("object"==typeof exports?require("countup.js"):e.CountUp);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),u=n.n(r),i=n(4),o=n.n(i),a={__countup__:o.a,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(e){var t=this;t.instance&&u()(t.instance.update)&&t.instance.update(e)},deep:!1}},methods:{init:function(){var e=this;if(!e.instance){var t=e.$el,n=new o.a(t,e.startVal,e.endVal,e.decimals,e.duration,e.options);n.error||(n.start(function(){return e.$emit("ready",n,o.a)}),e.instance=n)}},uninit:function(){this.instance=null}},mounted:function(){this.init()},beforeDestroy:function(){this.uninit()},start:function(e){var t=this;if(t.instance&&u()(t.instance.start)&&u()(e))return t.instance.start(e)},pauseResume:function(){var e=this;if(e.instance&&u()(e.instance.pauseResume))return e.instance.pauseResume()},reset:function(){var e=this;if(e.instance&&u()(e.instance.reset))return e.instance.reset()},update:function(e){var t=this;if(t.instance&&u()(t.instance.update))return t.instance.update(e)},render:function(e){return e("span",{})}};t.default=a},function(e,t,n){function r(e){if(!i(e))return!1;var t=u(e);return t==a||t==c||t==o||t==s}var u=n(2),i=n(3),o="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";e.exports=r},function(e,t){function n(e){return u.call(e)}var r=Object.prototype,u=r.toString;e.exports=n},function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},function(t,n){t.exports=e}])});
//# sourceMappingURL=vue-countup.js.map
{
"name": "vue-countup-v2",
"version": "1.0.1",
"version": "1.0.2",
"description": "Vue.js(v2.x+) component wrap for CountUp.js(v1.x+)",

@@ -5,0 +5,0 @@ "keywords": [

@@ -53,3 +53,3 @@ # vue-countup-v2

methods: {
onReady: function(instance, ECharts) {
onReady: function(instance, CountUp) {
const that = this;

@@ -56,0 +56,0 @@ instance.update(that.endVal + 100);

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