Skip to content

Commit cc08ba1

Browse files
committedSep 4, 2024
Fixing regression due to rollup config, fixes #185
1 parent 0248be0 commit cc08ba1

10 files changed

+16
-16
lines changed
 

‎dist/filesize.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
55
* @license BSD-3-Clause
6-
* @version 10.1.5
6+
* @version 10.1.6
77
*/
88
'use strict';
99

@@ -173,7 +173,7 @@ function filesize (arg, {
173173

174174
if (pad && round > 0) {
175175
const i = result[0].toString(),
176-
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD),
176+
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
177177
tmp = i.toString().split(x),
178178
s = tmp[1] || EMPTY,
179179
l = s.length,

‎dist/filesize.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
55
* @license BSD-3-Clause
6-
* @version 10.1.5
6+
* @version 10.1.6
77
*/
88
const ARRAY = "array";
99
const BIT = "bit";
@@ -169,7 +169,7 @@ const STRINGS = {
169169

170170
if (pad && round > 0) {
171171
const i = result[0].toString(),
172-
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD),
172+
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
173173
tmp = i.toString().split(x),
174174
s = tmp[1] || EMPTY,
175175
l = s.length,

‎dist/filesize.esm.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/filesize.esm.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/filesize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
55
* @license BSD-3-Clause
6-
* @version 10.1.5
6+
* @version 10.1.6
77
*/
88
(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";
99
const BIT = "bit";
@@ -169,7 +169,7 @@ const STRINGS = {
169169

170170
if (pad && round > 0) {
171171
const i = result[0].toString(),
172-
x = separator || (i.match(/(\D)/g)?.pop() ?? PERIOD),
172+
x = separator || ((i.match(/(\D)/g) || []).pop() ?? PERIOD),
173173
tmp = i.toString().split(x),
174174
s = tmp[1] || EMPTY,
175175
l = s.length,

‎dist/filesize.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)