Comparing version 1.7.3 to 1.7.4
@@ -9,3 +9,3 @@ module.exports = function(grunt) { | ||
" * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n" + | ||
" * @copyright <%= pkg.author.name %> <%= grunt.template.today('yyyy') %>\n" + | ||
" * @copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" + | ||
" * @license <%= pkg.licenses[0].type %> <<%= pkg.licenses[0].url %>>\n" + | ||
@@ -12,0 +12,0 @@ " * @link <%= pkg.homepage %>\n" + |
@@ -5,7 +5,7 @@ /** | ||
* @author Jason Mulligan <jason.mulligan@avoidwork.com> | ||
* @copyright Jason Mulligan 2013 | ||
* @copyright 2013 Jason Mulligan | ||
* @license BSD-3 <http://opensource.org/licenses/BSD-3-Clause> | ||
* @link https://github.com/avoidwork/filesize.js | ||
* @link http://filesizejs.com | ||
* @module filesize | ||
* @version 1.7.3 | ||
* @version 1.7.4 | ||
*/ | ||
@@ -49,3 +49,3 @@ | ||
// Flipping a negative number to determine the size | ||
if (neg) num = num - (num * 2); | ||
if (neg) num = Math.abs(num); | ||
@@ -52,0 +52,0 @@ while (i--) { |
@@ -5,8 +5,8 @@ /** | ||
* @author Jason Mulligan <jason.mulligan@avoidwork.com> | ||
* @copyright Jason Mulligan 2013 | ||
* @copyright 2013 Jason Mulligan | ||
* @license BSD-3 <http://opensource.org/licenses/BSD-3-Clause> | ||
* @link https://github.com/avoidwork/filesize.js | ||
* @link http://filesizejs.com | ||
* @module filesize | ||
* @version 1.7.3 | ||
* @version 1.7.4 | ||
*/ | ||
(function(e){"use strict";var t=function(e){var t=10,n,r,i,s,o,u,a,f,l,c,h,p,d,v;typeof arguments[2]!="undefined"?(u=arguments[1],l=arguments[2]):typeof arguments[1]=="boolean"?l=arguments[1]:u=arguments[1];if(isNaN(e)||typeof u!="undefined"&&isNaN(u))throw Error("Invalid arguments");l=l===!0,u=l?1:typeof u=="undefined"?2:parseInt(u,t),o=Number(e),s=o<0,h=[["B",0],["Kb",128],["KB",1024],["Mb",131072],["MB","1.049e+6"],["Gb","1.342e+8"],["GB","1.074e+9"],["Tb","1.374e+11"],["TB","1.1e+12"],["Pb","1.407e+14"],["PB","1.126e+15"]],i=h.length,f="",a=/\.(.*)/,n=/b$/,r=/^B$/,v=/^0$/,s&&(o-=o*2);while(i--){c=h[i][1],p=h[i][0],i>3&&(c=Number(c));if(o>=c){f=(r.test(p)?o:o/c).toFixed(u),l&&(n.test(p)&&(p=p.toLowerCase()),p=p.slice(0,1),d=a.exec(f),d!==null&&typeof d[1]!="undefined"&&v.test(d[1])&&(f=parseInt(f,t))),f+=p;break}}return(s?"-":"")+f};switch(!0){case typeof exports!="undefined":module.exports=t;break;case typeof define=="function":define(function(){return t});break;default:e.filesize=t}})(this); | ||
(function(e){"use strict";var t=function(e){var t=10,n,r,i,s,o,u,a,f,l,c,h,p,d,v;typeof arguments[2]!="undefined"?(u=arguments[1],l=arguments[2]):typeof arguments[1]=="boolean"?l=arguments[1]:u=arguments[1];if(isNaN(e)||typeof u!="undefined"&&isNaN(u))throw Error("Invalid arguments");l=l===!0,u=l?1:typeof u=="undefined"?2:parseInt(u,t),o=Number(e),s=o<0,h=[["B",0],["Kb",128],["KB",1024],["Mb",131072],["MB","1.049e+6"],["Gb","1.342e+8"],["GB","1.074e+9"],["Tb","1.374e+11"],["TB","1.1e+12"],["Pb","1.407e+14"],["PB","1.126e+15"]],i=h.length,f="",a=/\.(.*)/,n=/b$/,r=/^B$/,v=/^0$/,s&&(o=Math.abs(o));while(i--){c=h[i][1],p=h[i][0],i>3&&(c=Number(c));if(o>=c){f=(r.test(p)?o:o/c).toFixed(u),l&&(n.test(p)&&(p=p.toLowerCase()),p=p.slice(0,1),d=a.exec(f),d!==null&&typeof d[1]!="undefined"&&v.test(d[1])&&(f=parseInt(f,t))),f+=p;break}}return(s?"-":"")+f};switch(!0){case typeof exports!="undefined":module.exports=t;break;case typeof define=="function":define(function(){return t});break;default:e.filesize=t}})(this); |
{ | ||
"name": "filesize", | ||
"description": "JavaScript library to generate a human readable String describing the file size", | ||
"version": "1.7.3", | ||
"homepage": "https://github.com/avoidwork/filesize.js", | ||
"version": "1.7.4", | ||
"homepage": "http://filesizejs.com", | ||
"author": { | ||
@@ -7,0 +7,0 @@ "name": "Jason Mulligan", |
@@ -37,3 +37,3 @@ (function (global) { | ||
// Flipping a negative number to determine the size | ||
if (neg) num = num - (num * 2); | ||
if (neg) num = Math.abs(num); | ||
@@ -40,0 +40,0 @@ while (i--) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11805