Comparing version 3.4.1 to 3.4.2
@@ -6,3 +6,3 @@ /** | ||
* @license BSD-3-Clause | ||
* @version 3.4.1 | ||
* @version 3.4.2 | ||
*/ | ||
@@ -125,3 +125,3 @@ (function (global) { | ||
// Partial application for functional programming | ||
filesize.partial = (descriptor = {}) => arg => filesize(arg, descriptor); | ||
filesize.partial = opt => arg => filesize(arg, opt); | ||
@@ -128,0 +128,0 @@ // CommonJS, AMD, script tag |
@@ -8,3 +8,3 @@ "use strict"; | ||
* @license BSD-3-Clause | ||
* @version 3.4.1 | ||
* @version 3.4.2 | ||
*/ | ||
@@ -140,6 +140,5 @@ (function (global) { | ||
// Partial application for functional programming | ||
filesize.partial = function () { | ||
var descriptor = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; | ||
filesize.partial = function (opt) { | ||
return function (arg) { | ||
return filesize(arg, descriptor); | ||
return filesize(arg, opt); | ||
}; | ||
@@ -146,0 +145,0 @@ }; |
{ | ||
"name": "filesize", | ||
"description": "JavaScript library to generate a human readable String describing the file size", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"homepage": "http://filesizejs.com", | ||
@@ -6,0 +6,0 @@ "author": "Jason Mulligan <jason.mulligan@avoidwork.com>", |
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
14104
289