rollup 3.18.0 → 3.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/rollup CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  /*
4
4
  @license
5
- Rollup.js v3.18.0
6
- Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
5
+ Rollup.js v3.19.0
6
+ Thu, 09 Mar 2023 19:00:13 GMT - commit cff3bbcb34cf35a765a8bcbbd56ba643bd1de68d
7
7
 
8
8
  https://github.com/rollup/rollup
9
9
 
@@ -1462,6 +1462,7 @@ function prettyBytes(number, options) {
1462
1462
  options = {
1463
1463
  bits: false,
1464
1464
  binary: false,
1465
+ space: true,
1465
1466
  ...options,
1466
1467
  };
1467
1468
 
@@ -1469,8 +1470,10 @@ function prettyBytes(number, options) {
1469
1470
  ? (options.binary ? BIBIT_UNITS : BIT_UNITS)
1470
1471
  : (options.binary ? BIBYTE_UNITS : BYTE_UNITS);
1471
1472
 
1473
+ const separator = options.space ? ' ' : '';
1474
+
1472
1475
  if (options.signed && number === 0) {
1473
- return ` 0 ${UNITS[0]}`;
1476
+ return ` 0${separator}${UNITS[0]}`;
1474
1477
  }
1475
1478
 
1476
1479
  const isNegative = number < 0;
@@ -1492,7 +1495,7 @@ function prettyBytes(number, options) {
1492
1495
 
1493
1496
  if (number < 1) {
1494
1497
  const numberString = toLocaleString(number, options.locale, localeOptions);
1495
- return prefix + numberString + ' ' + UNITS[0];
1498
+ return prefix + numberString + separator + UNITS[0];
1496
1499
  }
1497
1500
 
1498
1501
  const exponent = Math.min(Math.floor(options.binary ? Math.log(number) / Math.log(1024) : Math.log10(number) / 3), UNITS.length - 1);
@@ -1506,7 +1509,7 @@ function prettyBytes(number, options) {
1506
1509
 
1507
1510
  const unit = UNITS[exponent];
1508
1511
 
1509
- return prefix + numberString + ' ' + unit;
1512
+ return prefix + numberString + separator + unit;
1510
1513
  }
1511
1514
 
1512
1515
  function printTimings(timings) {
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v3.18.0
4
- Wed, 01 Mar 2023 18:45:12 GMT - commit 25bdc129d21685b69a00ee55397d42ac6eff6449
3
+ Rollup.js v3.19.0
4
+ Thu, 09 Mar 2023 19:00:13 GMT - commit cff3bbcb34cf35a765a8bcbbd56ba643bd1de68d
5
5
 
6
6
  https://github.com/rollup/rollup
7
7