Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/*
.idea/*
node_modules/
.idea/
test/webpack/
7 changes: 4 additions & 3 deletions dist/filesize.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function filesize (arg, {
}

// Partial application for functional programming
filesize.partial = function partial ({
function partial ({
bits = false,
pad = false,
base = -1,
Expand Down Expand Up @@ -231,6 +231,7 @@ filesize.partial = function partial ({
roundingMethod,
precision
});
};
}

exports["default"] = filesize;
exports.filesize = filesize;
exports.partial = partial;
4 changes: 2 additions & 2 deletions dist/filesize.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const STRINGS = {
}

// Partial application for functional programming
filesize.partial = function partial ({
function partial ({
bits = false,
pad = false,
base = -1,
Expand Down Expand Up @@ -225,4 +225,4 @@ filesize.partial = function partial ({
roundingMethod,
precision
});
};export{filesize as default};
}export{filesize,partial};
2 changes: 1 addition & 1 deletion dist/filesize.esm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/filesize.esm.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license BSD-3-Clause
* @version 10.0.3
*/
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?module.exports=f():typeof define==='function'&&define.amd?define(f):(g=typeof globalThis!=='undefined'?globalThis:g||self,g.filesize=f());})(this,(function(){'use strict';const ARRAY = "array";
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports):typeof define==='function'&&define.amd?define(['exports'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.filesize={}));})(this,(function(exports){'use strict';const ARRAY = "array";
const BIT = "bit";
const BITS = "bits";
const BYTE = "byte";
Expand Down Expand Up @@ -189,7 +189,7 @@ const STRINGS = {
}

// Partial application for functional programming
filesize.partial = function partial ({
function partial ({
bits = false,
pad = false,
base = -1,
Expand Down Expand Up @@ -225,4 +225,4 @@ filesize.partial = function partial ({
roundingMethod,
precision
});
};return filesize;}));
}exports.filesize=filesize;exports.partial=partial;Object.defineProperty(exports,'__esModule',{value:true});}));
2 changes: 1 addition & 1 deletion dist/filesize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading