From eef86903ef0dfc1f0b052afd54ea712c95b69263 Mon Sep 17 00:00:00 2001 From: pfitzpaddy Date: Mon, 9 Jan 2017 13:20:54 +0430 Subject: [PATCH] npm/bower to v0.0.9 --- Gruntfile.js | 2 +- bower.json | 2 +- dist/angular-filter-count-to.min.js | 4 +- npm-debug.log | 42 +++++++++---------- package.json | 2 +- ...count-to.js => angular-filter-count-to.js} | 0 6 files changed, 26 insertions(+), 26 deletions(-) rename src/{angular-count-to.js => angular-filter-count-to.js} (100%) diff --git a/Gruntfile.js b/Gruntfile.js index acff46d..29de8ba 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -8,7 +8,7 @@ module.exports = function(grunt) { banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' }, build: { - src: 'src/angular-count-to.js', + src: 'src/angular-filter-count-to.js', dest: 'dist/<%= pkg.name %>.min.js' } }, diff --git a/bower.json b/bower.json index a315401..07e9803 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "angular-filter-count-to", - "version": "0.0.8", + "version": "0.0.9", "main": [ "dist/angular-filter-count-to.min.js" ], diff --git a/dist/angular-filter-count-to.min.js b/dist/angular-filter-count-to.min.js index f2d5d74..cae6e35 100644 --- a/dist/angular-filter-count-to.min.js +++ b/dist/angular-filter-count-to.min.js @@ -1,2 +1,2 @@ -/*! angular-filter-count-to 2017-01-08 */ -angular.module("ngCountTo",[]).directive("ngCountTo",["$filter","$timeout",function(a,b){return{replace:!1,scope:!0,link:function(c,d,e){var f,g,h,i,j,k,l,m=d[0],n=function(){g=30,j=0,c.timoutId=null,c.filter=e.filter,c.fractionSize=e.fractionSize?e.fractionSize:0,c.params=e.params?e.params:c.fractionSize,k=parseFloat(e.ngCountTo)||0,c.value=parseFloat(e.value,10)||0,h=1e3*parseFloat(e.duration)||0,i=Math.ceil(h/g),l=(k-c.value)/i,f=c.value},o=function(){c.timoutId=b(function(){f+=l,j++,j>=i?(b.cancel(c.timoutId),f=k,m.textContent=c.filter?a(c.filter)(k,c.params,c.fractionSize):Math.round(countTo)):(m.textContent=c.filter?a(c.filter)(f,c.params,c.fractionSize):Math.round(f),o())},g)},p=function(){c.timoutId&&b.cancel(c.timoutId),n(),o()};return e.$observe("ngCountTo",function(a){a&&p()}),e.$observe("value",function(){p()}),!0}}}]); \ No newline at end of file +/*! angular-filter-count-to 2017-01-09 */ +angular.module("ngCountTo",[]).directive("ngCountTo",["$filter","$timeout",function(a,b){return{replace:!1,scope:!0,link:function(c,d,e){var f,g,h,i,j,k,l,m=d[0],n=function(){g=30,j=0,c.timoutId=null,c.filter=e.filter,c.fractionSize=e.fractionSize?e.fractionSize:0,c.params=e.params?e.params:c.fractionSize,k=parseFloat(e.ngCountTo)||0,c.value=parseFloat(e.value,10)||0,h=1e3*parseFloat(e.duration)||0,i=Math.ceil(h/g),l=(k-c.value)/i,f=c.value},o=function(){c.timoutId=b(function(){f+=l,j++,j>=i?(b.cancel(c.timoutId),f=k,m.textContent=c.filter?a(c.filter)(k,c.params,c.fractionSize):Math.round(k)):(m.textContent=c.filter?a(c.filter)(f,c.params,c.fractionSize):Math.round(f),o())},g)},p=function(){c.timoutId&&b.cancel(c.timoutId),n(),o()};return e.$observe("ngCountTo",function(a){a&&p()}),e.$observe("value",function(){p()}),!0}}}]); \ No newline at end of file diff --git a/npm-debug.log b/npm-debug.log index 5a2a128..13b7eb4 100644 --- a/npm-debug.log +++ b/npm-debug.log @@ -19,27 +19,27 @@ 7 verbose parsed url href: '.' } 8 silly lockFile 3a52ce78- . 9 verbose lock . /Users/fitzpaddy/.npm/3a52ce78-.lock -10 verbose tar pack [ '/Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package.tgz', +10 verbose tar pack [ '/Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package.tgz', 10 verbose tar pack '.' ] -11 verbose tarball /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package.tgz +11 verbose tarball /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package.tgz 12 verbose folder . -13 info prepublish angular-filter-count-to@0.0.7 +13 info prepublish angular-filter-count-to@0.0.8 14 silly lockFile 1f1177db-tar tar://. 15 verbose lock tar://. /Users/fitzpaddy/.npm/1f1177db-tar.lock -16 silly lockFile fbd65594-ilter-count-to-0-0-7-package-tgz tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package.tgz -17 verbose lock tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package.tgz /Users/fitzpaddy/.npm/fbd65594-ilter-count-to-0-0-7-package-tgz.lock +16 silly lockFile f812bc0b-ilter-count-to-0-0-8-package-tgz tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package.tgz +17 verbose lock tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package.tgz /Users/fitzpaddy/.npm/f812bc0b-ilter-count-to-0-0-8-package-tgz.lock 18 silly lockFile 1f1177db-tar tar://. 19 silly lockFile 1f1177db-tar tar://. -20 silly lockFile fbd65594-ilter-count-to-0-0-7-package-tgz tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package.tgz -21 silly lockFile fbd65594-ilter-count-to-0-0-7-package-tgz tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package.tgz -22 silly lockFile 8ee9fe5e-ar-filter-count-to-0-0-7-package /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package -23 verbose lock /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package /Users/fitzpaddy/.npm/8ee9fe5e-ar-filter-count-to-0-0-7-package.lock -24 silly lockFile 8ee9fe5e-ar-filter-count-to-0-0-7-package /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package -25 silly lockFile 8ee9fe5e-ar-filter-count-to-0-0-7-package /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.7/package +20 silly lockFile f812bc0b-ilter-count-to-0-0-8-package-tgz tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package.tgz +21 silly lockFile f812bc0b-ilter-count-to-0-0-8-package-tgz tar:///Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package.tgz +22 silly lockFile 89322e35-ar-filter-count-to-0-0-8-package /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package +23 verbose lock /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package /Users/fitzpaddy/.npm/89322e35-ar-filter-count-to-0-0-8-package.lock +24 silly lockFile 89322e35-ar-filter-count-to-0-0-8-package /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package +25 silly lockFile 89322e35-ar-filter-count-to-0-0-8-package /Users/fitzpaddy/.npm/angular-filter-count-to/0.0.8/package 26 silly lockFile 3a52ce78- . 27 silly lockFile 3a52ce78- . 28 silly publish { name: 'angular-filter-count-to', -28 silly publish version: '0.0.7', +28 silly publish version: '0.0.8', 28 silly publish description: 'AngularJS directive to animate counting to a number', 28 silly publish devDependencies: { grunt: '~0.4.1', 'grunt-contrib-uglify': '~0.2.2' }, 28 silly publish homepage: 'http://pfitzpaddy.github.io/angular-filter-count-to/', @@ -50,36 +50,36 @@ 28 silly publish license: 'MIT', 28 silly publish readmeFilename: 'README.md', 28 silly publish readme: '# Angular Filter Count-To\n\nThis project is an animated counter for Angularjs. The directive counts from one number to another over a configured duration. This forked version updates the original repository by including [AngularJS filter](https://docs.angularjs.org/api/ng/filter) options as well as the ability to display floating values.\n[Demo](http://pfitzpaddy.github.io/angular-filter-count-to/)\n\n\n## Install via npm\n\n```\n$ npm install angular-filter-count-to\n```\n## Install via bower\n\n```\n$ bower install angular-filter-count-to\n```\n\n## How to use angular count-to\n\nInject the `count-to` directive in your app.\n\n```\nvar myApp = angular.module(\'myApp\', [\'ngCountTo\']);\n```\n\nApply the directive to a dom element.\n```\n \n \n```\n\n```\n \n \n```\n\n\n### Attributes\n\nThe following attributes can be set as numbers on the directive element.\n\n- ```ng-count-to``` the number to count to.\n- ```value``` the number to start counting from.\n- ```duration``` how long the count should take in seconds.\n- ```filter``` the [AngularJS filter](https://docs.angularjs.org/api/ng/filter).\n- ```params``` the string of filter options.\n- ```fraction-size``` the decimal formatting.\n', -28 silly publish gitHead: 'dd5009007e5a766d8ff87330a4357a17a068f5f0', +28 silly publish gitHead: '576214e8faa39039810db5f11df52aa1414a07e0', 28 silly publish bugs: { url: 'https://github.com/pfitzpaddy/angular-filter-count-to/issues' }, -28 silly publish _id: 'angular-filter-count-to@0.0.7', +28 silly publish _id: 'angular-filter-count-to@0.0.8', 28 silly publish scripts: {}, -28 silly publish _shasum: 'c57c90091f1ce496b34f3d34393c92fa88910d34', +28 silly publish _shasum: '7a1778e7521478f80202e519f32af10ea194b3c5', 28 silly publish _from: '.' } 29 verbose request where is /angular-filter-count-to 30 verbose request registry https://registry.npmjs.org/ -31 verbose request id cf9acb196509fc3b +31 verbose request id b1371e2341bfb98a 32 verbose url raw /angular-filter-count-to 33 verbose url resolving [ 'https://registry.npmjs.org/', './angular-filter-count-to' ] 34 verbose url resolved https://registry.npmjs.org/angular-filter-count-to 35 verbose request where is https://registry.npmjs.org/angular-filter-count-to -36 info trying registry request attempt 1 at 11:38:33 +36 info trying registry request attempt 1 at 12:07:34 37 http PUT https://registry.npmjs.org/angular-filter-count-to 38 http 403 https://registry.npmjs.org/angular-filter-count-to 39 verbose headers { 'content-type': 'application/json', 39 verbose headers 'cache-control': 'max-age=300', 39 verbose headers 'content-length': '95', 39 verbose headers 'accept-ranges': 'bytes', -39 verbose headers date: 'Sun, 08 Jan 2017 07:08:35 GMT', +39 verbose headers date: 'Sun, 08 Jan 2017 07:37:36 GMT', 39 verbose headers via: '1.1 varnish', 39 verbose headers connection: 'keep-alive', -39 verbose headers 'x-served-by': 'cache-hhn1539-HHN', +39 verbose headers 'x-served-by': 'cache-hhn1530-HHN', 39 verbose headers 'x-cache': 'MISS', 39 verbose headers 'x-cache-hits': '0', -39 verbose headers 'x-timer': 'S1483859314.011758,VS0,VE1417', +39 verbose headers 'x-timer': 'S1483861055.412455,VS0,VE1342', 39 verbose headers vary: 'Accept-Encoding' } 40 error publish Failed PUT 403 -41 error Error: "You cannot publish over the previously published version 0.0.7." : angular-filter-count-to +41 error Error: "You cannot publish over the previously published version 0.0.8." : angular-filter-count-to 41 error at RegClient. (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:308:14) 41 error at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:246:65) 41 error at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:236:22) diff --git a/package.json b/package.json index e743363..ceb383a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-filter-count-to", - "version": "0.0.8", + "version": "0.0.9", "description": "AngularJS directive to animate counting to a number", "devDependencies": { "grunt": "~0.4.1", diff --git a/src/angular-count-to.js b/src/angular-filter-count-to.js similarity index 100% rename from src/angular-count-to.js rename to src/angular-filter-count-to.js