@rollup/wasm-node 4.27.3 → 4.27.4

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
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  /*
3
3
  @license
4
- Rollup.js v4.27.3
5
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
4
+ Rollup.js v4.27.4
5
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
6
6
 
7
7
  https://github.com/rollup/rollup
8
8
 
@@ -1426,67 +1426,79 @@ function prettyMilliseconds(milliseconds, options) {
1426
1426
  const parsed = parseMilliseconds(milliseconds);
1427
1427
  const days = BigInt(parsed.days);
1428
1428
 
1429
- add(days / 365n, 'year', 'y');
1430
- add(days % 365n, 'day', 'd');
1431
- add(Number(parsed.hours), 'hour', 'h');
1429
+ if (options.hideYearAndDays) {
1430
+ add((BigInt(days) * 24n) + BigInt(parsed.hours), 'hour', 'h');
1431
+ } else {
1432
+ if (options.hideYear) {
1433
+ add(days, 'day', 'd');
1434
+ } else {
1435
+ add(days / 365n, 'year', 'y');
1436
+ add(days % 365n, 'day', 'd');
1437
+ }
1438
+
1439
+ add(Number(parsed.hours), 'hour', 'h');
1440
+ }
1441
+
1432
1442
  add(Number(parsed.minutes), 'minute', 'm');
1433
1443
 
1434
- if (
1435
- options.separateMilliseconds
1436
- || options.formatSubMilliseconds
1437
- || (!options.colonNotation && milliseconds < 1000)
1438
- ) {
1439
- const seconds = Number(parsed.seconds);
1440
- const milliseconds = Number(parsed.milliseconds);
1441
- const microseconds = Number(parsed.microseconds);
1442
- const nanoseconds = Number(parsed.nanoseconds);
1443
-
1444
- add(seconds, 'second', 's');
1445
-
1446
- if (options.formatSubMilliseconds) {
1447
- add(milliseconds, 'millisecond', 'ms');
1448
- add(microseconds, 'microsecond', 'µs');
1449
- add(nanoseconds, 'nanosecond', 'ns');
1444
+ if (!options.hideSeconds) {
1445
+ if (
1446
+ options.separateMilliseconds
1447
+ || options.formatSubMilliseconds
1448
+ || (!options.colonNotation && milliseconds < 1000)
1449
+ ) {
1450
+ const seconds = Number(parsed.seconds);
1451
+ const milliseconds = Number(parsed.milliseconds);
1452
+ const microseconds = Number(parsed.microseconds);
1453
+ const nanoseconds = Number(parsed.nanoseconds);
1454
+
1455
+ add(seconds, 'second', 's');
1456
+
1457
+ if (options.formatSubMilliseconds) {
1458
+ add(milliseconds, 'millisecond', 'ms');
1459
+ add(microseconds, 'microsecond', 'µs');
1460
+ add(nanoseconds, 'nanosecond', 'ns');
1461
+ } else {
1462
+ const millisecondsAndBelow
1463
+ = milliseconds
1464
+ + (microseconds / 1000)
1465
+ + (nanoseconds / 1e6);
1466
+
1467
+ const millisecondsDecimalDigits
1468
+ = typeof options.millisecondsDecimalDigits === 'number'
1469
+ ? options.millisecondsDecimalDigits
1470
+ : 0;
1471
+
1472
+ const roundedMilliseconds = millisecondsAndBelow >= 1
1473
+ ? Math.round(millisecondsAndBelow)
1474
+ : Math.ceil(millisecondsAndBelow);
1475
+
1476
+ const millisecondsString = millisecondsDecimalDigits
1477
+ ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits)
1478
+ : roundedMilliseconds;
1479
+
1480
+ add(
1481
+ Number.parseFloat(millisecondsString),
1482
+ 'millisecond',
1483
+ 'ms',
1484
+ millisecondsString,
1485
+ );
1486
+ }
1450
1487
  } else {
1451
- const millisecondsAndBelow
1452
- = milliseconds
1453
- + (microseconds / 1000)
1454
- + (nanoseconds / 1e6);
1455
-
1456
- const millisecondsDecimalDigits
1457
- = typeof options.millisecondsDecimalDigits === 'number'
1458
- ? options.millisecondsDecimalDigits
1459
- : 0;
1460
-
1461
- const roundedMilliseconds = millisecondsAndBelow >= 1
1462
- ? Math.round(millisecondsAndBelow)
1463
- : Math.ceil(millisecondsAndBelow);
1464
-
1465
- const millisecondsString = millisecondsDecimalDigits
1466
- ? millisecondsAndBelow.toFixed(millisecondsDecimalDigits)
1467
- : roundedMilliseconds;
1468
-
1469
- add(
1470
- Number.parseFloat(millisecondsString),
1471
- 'millisecond',
1472
- 'ms',
1473
- millisecondsString,
1474
- );
1488
+ const seconds = (
1489
+ (isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds)
1490
+ / 1000
1491
+ ) % 60;
1492
+ const secondsDecimalDigits
1493
+ = typeof options.secondsDecimalDigits === 'number'
1494
+ ? options.secondsDecimalDigits
1495
+ : 1;
1496
+ const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
1497
+ const secondsString = options.keepDecimalsOnWholeSeconds
1498
+ ? secondsFixed
1499
+ : secondsFixed.replace(/\.0+$/, '');
1500
+ add(Number.parseFloat(secondsString), 'second', 's', secondsString);
1475
1501
  }
1476
- } else {
1477
- const seconds = (
1478
- (isBigInt ? Number(milliseconds % ONE_DAY_IN_MILLISECONDS) : milliseconds)
1479
- / 1000
1480
- ) % 60;
1481
- const secondsDecimalDigits
1482
- = typeof options.secondsDecimalDigits === 'number'
1483
- ? options.secondsDecimalDigits
1484
- : 1;
1485
- const secondsFixed = floorDecimals(seconds, secondsDecimalDigits);
1486
- const secondsString = options.keepDecimalsOnWholeSeconds
1487
- ? secondsFixed
1488
- : secondsFixed.replace(/\.0+$/, '');
1489
- add(Number.parseFloat(secondsString), 'second', 's', secondsString);
1490
1502
  }
1491
1503
 
1492
1504
  if (result.length === 0) {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/es/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -16,7 +16,7 @@ import { performance } from 'node:perf_hooks';
16
16
  import { lstat, realpath, readdir, readFile, mkdir, writeFile } from 'node:fs/promises';
17
17
  import * as tty from 'tty';
18
18
 
19
- var version = "4.27.3";
19
+ var version = "4.27.4";
20
20
 
21
21
  const comma = ','.charCodeAt(0);
22
22
  const semicolon = ';'.charCodeAt(0);
@@ -421,6 +421,9 @@ class SourceMap {
421
421
  if (typeof properties.x_google_ignoreList !== 'undefined') {
422
422
  this.x_google_ignoreList = properties.x_google_ignoreList;
423
423
  }
424
+ if (typeof properties.debugId !== 'undefined') {
425
+ this.debugId = properties.debugId;
426
+ }
424
427
  }
425
428
 
426
429
  toString() {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/parseAst.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/dist/rollup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -31,7 +31,7 @@ function _interopNamespaceDefault(e) {
31
31
 
32
32
  const tty__namespace = /*#__PURE__*/_interopNamespaceDefault(tty);
33
33
 
34
- var version = "4.27.3";
34
+ var version = "4.27.4";
35
35
 
36
36
  function ensureArray$1(items) {
37
37
  if (Array.isArray(items)) {
@@ -1994,6 +1994,9 @@ class SourceMap {
1994
1994
  if (typeof properties.x_google_ignoreList !== 'undefined') {
1995
1995
  this.x_google_ignoreList = properties.x_google_ignoreList;
1996
1996
  }
1997
+ if (typeof properties.debugId !== 'undefined') {
1998
+ this.debugId = properties.debugId;
1999
+ }
1997
2000
  }
1998
2001
 
1999
2002
  toString() {
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  @license
3
- Rollup.js v4.27.3
4
- Mon, 18 Nov 2024 16:39:05 GMT - commit 7c0b1f8810013b5a351a976df30a6a5da4fa164b
3
+ Rollup.js v4.27.4
4
+ Sat, 23 Nov 2024 06:59:50 GMT - commit e805b546405a4e6cfccd3fe73e9f4df770023824
5
5
 
6
6
  https://github.com/rollup/rollup
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rollup/wasm-node",
3
- "version": "4.27.3",
3
+ "version": "4.27.4",
4
4
  "description": "Next-generation ES module bundler with Node wasm",
5
5
  "main": "dist/rollup.js",
6
6
  "module": "dist/es/rollup.js",
@@ -37,8 +37,8 @@
37
37
  "@codemirror/language": "^6.10.3",
38
38
  "@codemirror/search": "^6.5.7",
39
39
  "@codemirror/state": "^6.4.1",
40
- "@codemirror/view": "^6.34.2",
41
- "@eslint/js": "^9.14.0",
40
+ "@codemirror/view": "^6.34.3",
41
+ "@eslint/js": "^9.15.0",
42
42
  "@inquirer/prompts": "^7.1.0",
43
43
  "@jridgewell/sourcemap-codec": "^1.5.0",
44
44
  "@mermaid-js/mermaid-cli": "^11.4.0",
@@ -52,7 +52,7 @@
52
52
  "@rollup/plugin-terser": "^0.4.4",
53
53
  "@rollup/plugin-typescript": "^12.1.1",
54
54
  "@rollup/pluginutils": "^5.1.3",
55
- "@shikijs/vitepress-twoslash": "^1.22.2",
55
+ "@shikijs/vitepress-twoslash": "^1.23.1",
56
56
  "@types/mocha": "^10.0.9",
57
57
  "@types/node": "^18.19.64",
58
58
  "@types/semver": "^7.5.8",
@@ -71,7 +71,7 @@
71
71
  "date-time": "^4.0.0",
72
72
  "es5-shim": "^4.6.7",
73
73
  "es6-shim": "^0.35.8",
74
- "eslint": "^9.14.0",
74
+ "eslint": "^9.15.0",
75
75
  "eslint-config-prettier": "^9.1.0",
76
76
  "eslint-plugin-prettier": "^5.2.1",
77
77
  "eslint-plugin-unicorn": "^56.0.0",
@@ -81,11 +81,11 @@
81
81
  "fs-extra": "^11.2.0",
82
82
  "github-api": "^3.4.0",
83
83
  "globals": "^15.12.0",
84
- "husky": "^9.1.6",
85
- "is-reference": "^3.0.2",
84
+ "husky": "^9.1.7",
85
+ "is-reference": "^3.0.3",
86
86
  "lint-staged": "^15.2.10",
87
87
  "locate-character": "^3.0.0",
88
- "magic-string": "^0.30.12",
88
+ "magic-string": "^0.30.13",
89
89
  "mocha": "^10.8.2",
90
90
  "nodemon": "^3.1.7",
91
91
  "npm-audit-resolver": "^3.0.0-RC.0",
@@ -94,9 +94,9 @@
94
94
  "prettier": "^3.3.3",
95
95
  "prettier-plugin-organize-imports": "^4.1.0",
96
96
  "pretty-bytes": "^6.1.1",
97
- "pretty-ms": "^9.1.0",
97
+ "pretty-ms": "^9.2.0",
98
98
  "requirejs": "^2.3.7",
99
- "rollup": "^4.25.0",
99
+ "rollup": "^4.27.3",
100
100
  "rollup-plugin-license": "^3.5.3",
101
101
  "rollup-plugin-string": "^3.0.0",
102
102
  "semver": "^7.6.3",
@@ -108,10 +108,10 @@
108
108
  "terser": "^5.36.0",
109
109
  "tslib": "^2.8.1",
110
110
  "typescript": "^5.6.3",
111
- "typescript-eslint": "^8.14.0",
111
+ "typescript-eslint": "^8.15.0",
112
112
  "vite": "^5.4.11",
113
113
  "vitepress": "^1.5.0",
114
- "vue": "^3.5.12",
114
+ "vue": "^3.5.13",
115
115
  "vue-tsc": "^2.1.10",
116
116
  "wasm-pack": "^0.13.1",
117
117
  "yargs-parser": "^21.1.1"