Skip to content

Commit

Permalink
Fixing regression due to rollup config, fixes #185
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Sep 4, 2024
1 parent 0248be0 commit cc08ba1
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dist/filesize.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 10.1.5
* @version 10.1.6
*/
'use strict';

Expand Down Expand Up @@ -173,7 +173,7 @@ function filesize (arg, {

if (pad && round > 0) {
const i = result[0].toString(),
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD),
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
tmp = i.toString().split(x),
s = tmp[1] || EMPTY,
l = s.length,
Expand Down
4 changes: 2 additions & 2 deletions dist/filesize.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 10.1.5
* @version 10.1.6
*/
const ARRAY = "array";
const BIT = "bit";
Expand Down Expand Up @@ -169,7 +169,7 @@ const STRINGS = {

if (pad && round > 0) {
const i = result[0].toString(),
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD),
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
tmp = i.toString().split(x),
s = tmp[1] || EMPTY,
l = s.length,
Expand Down
4 changes: 2 additions & 2 deletions 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.

4 changes: 2 additions & 2 deletions dist/filesize.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
* @license BSD-3-Clause
* @version 10.1.5
* @version 10.1.6
*/
(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";
Expand Down Expand Up @@ -169,7 +169,7 @@ const STRINGS = {

if (pad && round > 0) {
const i = result[0].toString(),
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD),
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
tmp = i.toString().split(x),
s = tmp[1] || EMPTY,
l = s.length,
Expand Down
4 changes: 2 additions & 2 deletions dist/filesize.min.js

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

Loading

0 comments on commit cc08ba1

Please sign in to comment.