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 3.0.0 to 3.0.1

8

dist/VueCountUp.cjs.js

@@ -8,6 +8,6 @@ 'use strict';

var _isFunction = _interopDefault(require('lodash-es/isFunction'));
var CountUp = _interopDefault(require('countup.js'));
var countup_js = require('countup.js');
var ICountUp = {
__countup__: CountUp,
__countup__: countup_js.CountUp,
name: 'ICountUp',

@@ -51,3 +51,3 @@ props: {

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

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

instance.start(function() {
return that.$emit('ready', instance, CountUp);
return that.$emit('ready', instance, countup_js.CountUp);
});

@@ -60,0 +60,0 @@ that.instance = instance;

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

@@ -4,0 +4,0 @@ var ICountUp = {

@@ -7,7 +7,5 @@ (function(global, factory) {

: (global.VueCountUp = factory(global.CountUp));
})(this, function(CountUp) {
})(this, function(countup_js) {
'use strict';
CountUp = CountUp && CountUp.hasOwnProperty('default') ? CountUp['default'] : CountUp;
/** Detect free variable `global` from Node.js. */

@@ -173,3 +171,3 @@ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;

var ICountUp = {
__countup__: CountUp,
__countup__: countup_js.CountUp,
name: 'ICountUp',

@@ -213,3 +211,3 @@ props: {

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

@@ -219,3 +217,3 @@ if (instance.error);

instance.start(function() {
return that.$emit('ready', instance, CountUp);
return that.$emit('ready', instance, countup_js.CountUp);
});

@@ -222,0 +220,0 @@ that.instance = instance;

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

!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",{})}}});
!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";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,o=Object.prototype,u=o.hasOwnProperty,r=o.toString,c=i?i.toStringTag:void 0;var s=Object.prototype.toString;var a="[object Null]",f="[object Undefined]",p=i?i.toStringTag:void 0;function l(t){return null==t?void 0===t?f:a:p&&p in Object(t)?function(t){var n=u.call(t,c),e=t[c];try{t[c]=void 0}catch(t){}var i=r.call(t);return n?t[c]=e:delete t[c],i}(t):function(t){return s.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=l(t);return n==h||n==b||n==d||n==j}return{__countup__:t.CountUp,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.CountUp(e,n.endVal,n.options);i.error||(i.start(function(){return n.$emit("ready",i,t.CountUp)}),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
{
"author": "xLsDg <xlsdg@qq.com> (https://blog.xlsdg.org/)",
"author": "xLsDg <xlsdg@qq.com> (https://xlsdg.org/)",
"browser": "dist/VueCountUp.js",

@@ -14,3 +14,3 @@ "bugs": {

"bili": "^3.4.2",
"eslint": "^5.14.1",
"eslint": "^5.15.0",
"eslint-config-alloy": "^1.4.2",

@@ -25,5 +25,5 @@ "eslint-config-prettier": "^4.1.0",

"stylelint-config-standard": "^18.2.0",
"stylelint-order": "^2.0.0",
"vue-eslint-parser": "^6.0.2",
"vue-template-compiler": "^2.6.7"
"stylelint-order": "^2.1.0",
"vue-eslint-parser": "^6.0.3",
"vue-template-compiler": "^2.6.8"
},

@@ -65,5 +65,5 @@ "engines": {

},
"source": "src/index.jsx",
"source": "src/index.js",
"unpkg": "dist/VueCountUp.min.js",
"version": "3.0.0"
"version": "3.0.1"
}

@@ -5,10 +5,8 @@ # vue-countup-v2

## Installation
``` bash
```bash
$ npm install --save countup.js vue-countup-v2
```
## Usage

@@ -20,6 +18,3 @@

<ICountUp
:startVal="startVal"
:endVal="endVal"
:decimals="decimals"
:duration="duration"
:options="options"

@@ -40,6 +35,3 @@ @ready="onReady"

return {
startVal: 0,
endVal: 120500,
decimals: 0,
duration: 2.5,
options: {

@@ -75,6 +67,2 @@ useEasing: true,

* `startVal` **[Number]**
Optional; `0` by defualt. The value you want to begin at.
* `endVal` **[Number]**

@@ -84,10 +72,2 @@

* `decimals` **[Number]**
Optional; `0` by defualt. Number of decimal places in number.
* `duration` **[Number]**
Optional; `2` by defualt. Duration in seconds.
* `options` **[Object]**

@@ -99,3 +79,2 @@

## Static Methods

@@ -110,5 +89,4 @@

## License
# License
MIT
import _isFunction from 'lodash-es/isFunction';
import CountUp from 'countup.js';
import { CountUp } from 'countup.js';

@@ -4,0 +4,0 @@ const ICountUp = {

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