@rollup/wasm-node 4.27.3 → 4.28.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 +71 -59
- package/dist/es/getLogFilter.js +2 -2
- package/dist/es/parseAst.js +2 -2
- package/dist/es/rollup.js +2 -2
- package/dist/es/shared/node-entry.js +7 -3
- package/dist/es/shared/parseAst.js +2 -2
- package/dist/es/shared/watch.js +2 -2
- package/dist/getLogFilter.js +2 -2
- package/dist/loadConfigFile.js +2 -2
- package/dist/parseAst.js +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 +9 -3
- package/dist/shared/parseAst.js +2 -2
- package/dist/shared/rollup.js +7 -3
- package/dist/shared/watch-cli.js +2 -2
- package/dist/shared/watch.js +2 -2
- package/dist/wasm-node/bindings_wasm_bg.wasm +0 -0
- package/package.json +20 -20
package/dist/bin/rollup
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
@license
|
|
4
|
-
Rollup.js v4.
|
|
5
|
-
|
|
4
|
+
Rollup.js v4.28.0
|
|
5
|
+
Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
|
|
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
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
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
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
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
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
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) {
|
package/dist/es/getLogFilter.js
CHANGED
package/dist/es/parseAst.js
CHANGED
package/dist/es/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.28.0
|
|
4
|
+
Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
|
|
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.
|
|
19
|
+
var version = "4.28.0";
|
|
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() {
|
|
@@ -22032,6 +22035,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
|
|
|
22032
22035
|
...Object.keys(commandAliases),
|
|
22033
22036
|
'bundleConfigAsCjs',
|
|
22034
22037
|
'config',
|
|
22038
|
+
'configImportAttributesKey',
|
|
22035
22039
|
'configPlugin',
|
|
22036
22040
|
'environment',
|
|
22037
22041
|
'failAfterWarnings',
|
package/dist/es/shared/watch.js
CHANGED
package/dist/getLogFilter.js
CHANGED
package/dist/loadConfigFile.js
CHANGED
package/dist/parseAst.js
CHANGED
package/dist/rollup.js
CHANGED
package/dist/shared/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.28.0
|
|
4
|
+
Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
|
|
5
5
|
|
|
6
6
|
https://github.com/rollup/rollup
|
|
7
7
|
|
|
@@ -486,8 +486,13 @@ async function getConfigFileExport(fileName, commandOptions, watchMode) {
|
|
|
486
486
|
function getDefaultFromCjs(namespace) {
|
|
487
487
|
return namespace.default || namespace;
|
|
488
488
|
}
|
|
489
|
+
function getConfigImportAttributesKey(input) {
|
|
490
|
+
if (input === 'assert' || input === 'with')
|
|
491
|
+
return input;
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
489
494
|
async function loadTranspiledConfigFile(fileName, commandOptions) {
|
|
490
|
-
const { bundleConfigAsCjs, configPlugin, silent } = commandOptions;
|
|
495
|
+
const { bundleConfigAsCjs, configPlugin, configImportAttributesKey, silent } = commandOptions;
|
|
491
496
|
const warnings = batchWarnings(commandOptions);
|
|
492
497
|
const inputOptions = {
|
|
493
498
|
external: (id) => (id[0] !== '.' && !path.isAbsolute(id)) || id.slice(-5) === '.json',
|
|
@@ -501,6 +506,7 @@ async function loadTranspiledConfigFile(fileName, commandOptions) {
|
|
|
501
506
|
const { output: [{ code }] } = await bundle.generate({
|
|
502
507
|
exports: 'named',
|
|
503
508
|
format: bundleConfigAsCjs ? 'cjs' : 'es',
|
|
509
|
+
importAttributesKey: getConfigImportAttributesKey(configImportAttributesKey),
|
|
504
510
|
plugins: [
|
|
505
511
|
{
|
|
506
512
|
name: 'transpile-import-meta',
|
package/dist/shared/parseAst.js
CHANGED
package/dist/shared/rollup.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license
|
|
3
|
-
Rollup.js v4.
|
|
4
|
-
|
|
3
|
+
Rollup.js v4.28.0
|
|
4
|
+
Sat, 30 Nov 2024 13:15:17 GMT - commit 0595e433edec3608bfc0331d8f02912374e7f7f7
|
|
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.
|
|
34
|
+
var version = "4.28.0";
|
|
35
35
|
|
|
36
36
|
function ensureArray$1(items) {
|
|
37
37
|
if (Array.isArray(items)) {
|
|
@@ -1245,6 +1245,7 @@ async function mergeOptions(config, watchMode, rawCommandOptions = EMPTY_COMMAND
|
|
|
1245
1245
|
...Object.keys(commandAliases),
|
|
1246
1246
|
'bundleConfigAsCjs',
|
|
1247
1247
|
'config',
|
|
1248
|
+
'configImportAttributesKey',
|
|
1248
1249
|
'configPlugin',
|
|
1249
1250
|
'environment',
|
|
1250
1251
|
'failAfterWarnings',
|
|
@@ -1994,6 +1995,9 @@ class SourceMap {
|
|
|
1994
1995
|
if (typeof properties.x_google_ignoreList !== 'undefined') {
|
|
1995
1996
|
this.x_google_ignoreList = properties.x_google_ignoreList;
|
|
1996
1997
|
}
|
|
1998
|
+
if (typeof properties.debugId !== 'undefined') {
|
|
1999
|
+
this.debugId = properties.debugId;
|
|
2000
|
+
}
|
|
1997
2001
|
}
|
|
1998
2002
|
|
|
1999
2003
|
toString() {
|
package/dist/shared/watch-cli.js
CHANGED
package/dist/shared/watch.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rollup/wasm-node",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.28.0",
|
|
4
4
|
"description": "Next-generation ES module bundler with Node wasm",
|
|
5
5
|
"main": "dist/rollup.js",
|
|
6
6
|
"module": "dist/es/rollup.js",
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@codemirror/commands": "^6.7.1",
|
|
36
36
|
"@codemirror/lang-javascript": "^6.2.2",
|
|
37
|
-
"@codemirror/language": "^6.10.
|
|
38
|
-
"@codemirror/search": "^6.5.
|
|
37
|
+
"@codemirror/language": "^6.10.4",
|
|
38
|
+
"@codemirror/search": "^6.5.8",
|
|
39
39
|
"@codemirror/state": "^6.4.1",
|
|
40
|
-
"@codemirror/view": "^6.
|
|
41
|
-
"@eslint/js": "^9.
|
|
40
|
+
"@codemirror/view": "^6.35.0",
|
|
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,9 +52,9 @@
|
|
|
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.
|
|
56
|
-
"@types/mocha": "^10.0.
|
|
57
|
-
"@types/node": "^18.19.
|
|
55
|
+
"@shikijs/vitepress-twoslash": "^1.23.1",
|
|
56
|
+
"@types/mocha": "^10.0.10",
|
|
57
|
+
"@types/node": "^18.19.66",
|
|
58
58
|
"@types/semver": "^7.5.8",
|
|
59
59
|
"@types/yargs-parser": "^21.0.3",
|
|
60
60
|
"@vue/language-server": "^2.1.10",
|
|
@@ -71,32 +71,32 @@
|
|
|
71
71
|
"date-time": "^4.0.0",
|
|
72
72
|
"es5-shim": "^4.6.7",
|
|
73
73
|
"es6-shim": "^0.35.8",
|
|
74
|
-
"eslint": "^9.
|
|
74
|
+
"eslint": "^9.15.0",
|
|
75
75
|
"eslint-config-prettier": "^9.1.0",
|
|
76
76
|
"eslint-plugin-prettier": "^5.2.1",
|
|
77
|
-
"eslint-plugin-unicorn": "^56.0.
|
|
77
|
+
"eslint-plugin-unicorn": "^56.0.1",
|
|
78
78
|
"eslint-plugin-vue": "^9.31.0",
|
|
79
79
|
"fixturify": "^3.0.0",
|
|
80
80
|
"flru": "^1.0.2",
|
|
81
81
|
"fs-extra": "^11.2.0",
|
|
82
82
|
"github-api": "^3.4.0",
|
|
83
83
|
"globals": "^15.12.0",
|
|
84
|
-
"husky": "^9.1.
|
|
85
|
-
"is-reference": "^3.0.
|
|
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.
|
|
88
|
+
"magic-string": "^0.30.14",
|
|
89
89
|
"mocha": "^10.8.2",
|
|
90
90
|
"nodemon": "^3.1.7",
|
|
91
91
|
"npm-audit-resolver": "^3.0.0-RC.0",
|
|
92
92
|
"nyc": "^17.1.0",
|
|
93
93
|
"pinia": "^2.2.6",
|
|
94
|
-
"prettier": "^3.
|
|
94
|
+
"prettier": "^3.4.1",
|
|
95
95
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
96
96
|
"pretty-bytes": "^6.1.1",
|
|
97
|
-
"pretty-ms": "^9.
|
|
97
|
+
"pretty-ms": "^9.2.0",
|
|
98
98
|
"requirejs": "^2.3.7",
|
|
99
|
-
"rollup": "^4.
|
|
99
|
+
"rollup": "^4.27.4",
|
|
100
100
|
"rollup-plugin-license": "^3.5.3",
|
|
101
101
|
"rollup-plugin-string": "^3.0.0",
|
|
102
102
|
"semver": "^7.6.3",
|
|
@@ -107,17 +107,17 @@
|
|
|
107
107
|
"systemjs": "^6.15.1",
|
|
108
108
|
"terser": "^5.36.0",
|
|
109
109
|
"tslib": "^2.8.1",
|
|
110
|
-
"typescript": "^5.
|
|
111
|
-
"typescript-eslint": "^8.
|
|
110
|
+
"typescript": "^5.7.2",
|
|
111
|
+
"typescript-eslint": "^8.16.0",
|
|
112
112
|
"vite": "^5.4.11",
|
|
113
113
|
"vitepress": "^1.5.0",
|
|
114
|
-
"vue": "^3.5.
|
|
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"
|
|
118
118
|
},
|
|
119
119
|
"overrides": {
|
|
120
|
-
"axios": "^1.7.
|
|
120
|
+
"axios": "^1.7.8",
|
|
121
121
|
"semver": "^7.6.3",
|
|
122
122
|
"ws": "^8.18.0"
|
|
123
123
|
},
|