rollup 3.18.0-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 +8 -5
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +460 -314
- package/dist/es/shared/watch.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +2 -2
- package/dist/shared/fsevents-importer.js +2 -2
- package/dist/shared/index.js +2 -2
- package/dist/shared/loadConfigFile.js +2 -2
- package/dist/shared/rollup.js +460 -314
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch-proxy.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/package.json +30 -30
package/dist/bin/rollup
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
@license
|
|
5
|
-
Rollup.js v3.
|
|
6
|
-
|
|
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
|
|
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 +
|
|
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 +
|
|
1512
|
+
return prefix + numberString + separator + unit;
|
|
1510
1513
|
}
|
|
1511
1514
|
|
|
1512
1515
|
function printTimings(timings) {
|
package/dist/es/rollup.js
CHANGED