@yao-pkg/pkg-fetch 3.5.29 → 3.5.31
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/lib-es5/expected-shas.json +32 -32
- package/lib-es5/parse-update-shas.d.ts +3 -0
- package/lib-es5/parse-update-shas.js +110 -0
- package/package.json +1 -1
- package/patches/{node.v20.19.5.cpp.patch → node.v20.19.6.cpp.patch} +2 -2
- package/patches/{node.v22.20.0.cpp.patch → node.v22.21.1.cpp.patch} +10 -10
- package/patches/{node.v24.10.0.cpp.patch → node.v24.12.0.cpp.patch} +10 -10
- package/patches/patches.json +3 -3
|
@@ -32,36 +32,36 @@
|
|
|
32
32
|
"node-v18.20.8-macos-x64": "f2cf139bfe3501d39d22b48a069f9ceb24942b0cdc001a0bc30ea3a68fbcc6b3",
|
|
33
33
|
"node-v18.20.8-win-arm64": "dd56454cfc9292f047413657c8b997006f27ecda8cd7f7dd38acf8d22317e743",
|
|
34
34
|
"node-v18.20.8-win-x64": "4d45cdfbcba3de3f6c0ddcd78251179b9d04dd2fcb2dba2fb052940a2821eb39",
|
|
35
|
-
"node-v20.19.
|
|
36
|
-
"node-v20.19.
|
|
37
|
-
"node-v20.19.
|
|
38
|
-
"node-v20.19.
|
|
39
|
-
"node-v20.19.
|
|
40
|
-
"node-v20.19.
|
|
41
|
-
"node-v20.19.
|
|
42
|
-
"node-v20.19.
|
|
43
|
-
"node-v20.19.
|
|
44
|
-
"node-v20.19.
|
|
45
|
-
"node-v20.19.
|
|
46
|
-
"node-v22.
|
|
47
|
-
"node-v22.
|
|
48
|
-
"node-v22.
|
|
49
|
-
"node-v22.
|
|
50
|
-
"node-v22.
|
|
51
|
-
"node-v22.
|
|
52
|
-
"node-v22.
|
|
53
|
-
"node-v22.
|
|
54
|
-
"node-v22.
|
|
55
|
-
"node-v22.
|
|
56
|
-
"node-v22.
|
|
57
|
-
"node-v24.
|
|
58
|
-
"node-v24.
|
|
59
|
-
"node-v24.
|
|
60
|
-
"node-v24.
|
|
61
|
-
"node-v24.
|
|
62
|
-
"node-v24.
|
|
63
|
-
"node-v24.
|
|
64
|
-
"node-v24.
|
|
65
|
-
"node-v24.
|
|
66
|
-
"node-v24.
|
|
35
|
+
"node-v20.19.6-alpine-arm64": "3e7ddc77635f6225b8cba469b948752d16decdb94293b13ea6c9ce4792526d2e",
|
|
36
|
+
"node-v20.19.6-alpine-x64": "39f3a1fb1c83ecd3483e4335124bd9282dba239fcdf85430b7aea8fbfb8a1206",
|
|
37
|
+
"node-v20.19.6-linux-arm64": "3f19fd984a558d2b3cc2f78fae2a3927b9d87a631ad454eeccf7ffd10e7c6f19",
|
|
38
|
+
"node-v20.19.6-linux-x64": "de270a8b37db68307fead80ddb75718c5599d4a96004d052588e24fac0a5e8f5",
|
|
39
|
+
"node-v20.19.6-linuxstatic-arm64": "049aefa14949d95ded5e3761b263171b1a5d430c1b6af10ab82ffbdfd945507a",
|
|
40
|
+
"node-v20.19.6-linuxstatic-armv7": "96b66e0cb1bc3f53e4e652e4a1b4d1c51acec13d2c9136c7cb0f565d75ba60f5",
|
|
41
|
+
"node-v20.19.6-linuxstatic-x64": "ddc9c76e002e6e1768139099d27bf297bf564750187cef230e3113f773a97724",
|
|
42
|
+
"node-v20.19.6-macos-arm64": "4f50f1d0484cc69043abacd266de603773dc84a2d5ae0233453c701fed0d2241",
|
|
43
|
+
"node-v20.19.6-macos-x64": "9ed57a94c5dfc099fc262884b633fad61a7fba19b4b43ca2fd7a2ec0ffa5580d",
|
|
44
|
+
"node-v20.19.6-win-arm64": "a0384fe007e78340cc863224dafd5a6de5c97b83ea8c764e1f31abfeaea07d03",
|
|
45
|
+
"node-v20.19.6-win-x64": "3203fce16436a5e78f77e927c2d1616404d567e20fd11d9f21cb41aa524978a7",
|
|
46
|
+
"node-v22.21.1-alpine-arm64": "fd1c1829fd457946e7e2e647632651b1552063f044199a53c9768d8502ec94b0",
|
|
47
|
+
"node-v22.21.1-alpine-x64": "ada5bd34905be599208e78d4b086ce7f3b66fe29362a233b1d2d4b687048816f",
|
|
48
|
+
"node-v22.21.1-linux-arm64": "4e14e66e431cfd5b2481754751af0e74e5741b3be1180c06b106c2998846dad9",
|
|
49
|
+
"node-v22.21.1-linux-x64": "63c6f17f8fd19665e99e5d0b2c2d4668e0aa735564c28a8246940fb447fdf618",
|
|
50
|
+
"node-v22.21.1-linuxstatic-arm64": "67b57eddac3ef13f00ba393732cd84f62f4dee62e8bf87b727d4cc2806fb7911",
|
|
51
|
+
"node-v22.21.1-linuxstatic-armv7": "3394b6e575af93426353d4d602e5baf444538703712fdacd51571f69f2f32f0e",
|
|
52
|
+
"node-v22.21.1-linuxstatic-x64": "2f65505ec0044d6a47c888e28e2bd5f1ccbb64ccac9ac5f90fc51a2df2720d10",
|
|
53
|
+
"node-v22.21.1-macos-arm64": "844260a5faef047965604ffeb442ddd4336864e0262f565f08a83a62c2960c28",
|
|
54
|
+
"node-v22.21.1-macos-x64": "f9b827483f14c8474f76c6538712c284a40c3b37402ecb046fbae04022b54e35",
|
|
55
|
+
"node-v22.21.1-win-arm64": "17e55802bcc4bc1690009797b62a72f6f2f6cc127541b60a4a2ed578b117f899",
|
|
56
|
+
"node-v22.21.1-win-x64": "440be9af0d908922ec3e8678724e8473ada0af46dfe2cd5ba75bc14e0048df99",
|
|
57
|
+
"node-v24.12.0-alpine-arm64": "7795a8932f8dfdebc3636cf83bfa69b7da2e4256dbfa99fe39a4c201a95d70f8",
|
|
58
|
+
"node-v24.12.0-alpine-x64": "d157149a911313dda8ceb6bc93096d531a850b0e6c1b76b2ac721e4f49413ce9",
|
|
59
|
+
"node-v24.12.0-linux-arm64": "9a5816b9e3552bb5a914aeed16326a569e18dcc17f07ad8dd28b4a7fa67066a4",
|
|
60
|
+
"node-v24.12.0-linux-x64": "81a0b40e6d7d14d501e100a5a1f08eb3621c2323ee66c6bfd42f7bf7407b06dc",
|
|
61
|
+
"node-v24.12.0-linuxstatic-arm64": "fdb80c730160db3157923e8fef52df595aba597757affb9f7c0e11c5562f4ccd",
|
|
62
|
+
"node-v24.12.0-linuxstatic-x64": "4f9f3c2a1e3155f4203f8043e04412e7be90dc16ac7f78341083f9f1076b138c",
|
|
63
|
+
"node-v24.12.0-macos-arm64": "9dffdd09697f041369fec623e86dc866f00a4daaa9da84808f7352372339d9de",
|
|
64
|
+
"node-v24.12.0-macos-x64": "a7e48452945f37a831f96ab49f52d5049b989c68137cd398553787d3d1b14554",
|
|
65
|
+
"node-v24.12.0-win-arm64": "9db6863e384aa746d1ae369c38aa11f3e46550240bb0abcbedb27d2a085c669d",
|
|
66
|
+
"node-v24.12.0-win-x64": "78eda417c8baf713d1790b8b42d8e6eec846101bb4249776d68069d64d240570"
|
|
67
67
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.parseAndUpdateShas = void 0;
|
|
27
|
+
var fs = __importStar(require("fs"));
|
|
28
|
+
var path = __importStar(require("path"));
|
|
29
|
+
var log_1 = require("./log");
|
|
30
|
+
function parseAndUpdateShas(inputFile) {
|
|
31
|
+
// Read the input file containing new SHAs
|
|
32
|
+
if (!fs.existsSync(inputFile)) {
|
|
33
|
+
throw (0, log_1.wasReported)("Input file ".concat(inputFile, " does not exist"));
|
|
34
|
+
}
|
|
35
|
+
var input = fs.readFileSync(inputFile, 'utf8');
|
|
36
|
+
var lines = input.split('\n').map(function (l) { return l.trim(); }).filter(Boolean);
|
|
37
|
+
// Read existing shas.txt
|
|
38
|
+
var shasPath = path.join(process.cwd(), 'shas.txt');
|
|
39
|
+
var shasTxt = '';
|
|
40
|
+
try {
|
|
41
|
+
shasTxt = fs.readFileSync(shasPath, 'utf8');
|
|
42
|
+
}
|
|
43
|
+
catch (e) {
|
|
44
|
+
log_1.log.info('shas.txt not found, creating new one');
|
|
45
|
+
shasTxt = '';
|
|
46
|
+
}
|
|
47
|
+
var shasArr = shasTxt.split('\n');
|
|
48
|
+
var _loop_1 = function (line) {
|
|
49
|
+
var _a = line.split(/\s+/), sha = _a[0], patchName = _a[1];
|
|
50
|
+
if (!sha || !patchName) {
|
|
51
|
+
log_1.log.warn("Skipping invalid line: ".concat(line));
|
|
52
|
+
return "continue";
|
|
53
|
+
}
|
|
54
|
+
// Extract major, os, arch. E.g.: node-v22.20.0-win-x64
|
|
55
|
+
var match = patchName.match(/^node-v(\d+)\.[^ ]*-(.+)-(.+)$/);
|
|
56
|
+
if (!match) {
|
|
57
|
+
log_1.log.warn("Skipping line with invalid patch name format: ".concat(line));
|
|
58
|
+
return "continue";
|
|
59
|
+
}
|
|
60
|
+
var major = match[1];
|
|
61
|
+
var os = match[2];
|
|
62
|
+
var arch = match[3];
|
|
63
|
+
// Regex for matching line in shas.txt
|
|
64
|
+
var re = new RegExp("^\\S+\\s+node-v".concat(major, "\\.([0-9.]+){2}-").concat(os, "-").concat(arch, "$"));
|
|
65
|
+
var found = false;
|
|
66
|
+
shasArr = shasArr.map(function (l) {
|
|
67
|
+
if (re.test(l)) {
|
|
68
|
+
found = true;
|
|
69
|
+
log_1.log.info("Updating: ".concat(l, " -> ").concat(sha, " ").concat(patchName));
|
|
70
|
+
return "".concat(sha, " ").concat(patchName);
|
|
71
|
+
}
|
|
72
|
+
return l;
|
|
73
|
+
});
|
|
74
|
+
if (!found) {
|
|
75
|
+
log_1.log.info("Adding new entry: ".concat(sha, " ").concat(patchName));
|
|
76
|
+
shasArr.push("".concat(sha, " ").concat(patchName));
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
// Process each line from input
|
|
80
|
+
for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {
|
|
81
|
+
var line = lines_1[_i];
|
|
82
|
+
_loop_1(line);
|
|
83
|
+
}
|
|
84
|
+
// Write updated shas.txt
|
|
85
|
+
var filteredShas = shasArr.filter(Boolean);
|
|
86
|
+
var updatedContent = filteredShas.length > 0 ? "".concat(filteredShas.join('\n'), "\n") : '';
|
|
87
|
+
fs.writeFileSync(shasPath, updatedContent);
|
|
88
|
+
log_1.log.info("Successfully updated ".concat(shasPath));
|
|
89
|
+
}
|
|
90
|
+
exports.parseAndUpdateShas = parseAndUpdateShas;
|
|
91
|
+
// Main execution
|
|
92
|
+
if (require.main === module) {
|
|
93
|
+
var args = process.argv.slice(2);
|
|
94
|
+
if (args.length !== 1) {
|
|
95
|
+
log_1.log.error('Usage: parse-update-shas.ts <input-file>');
|
|
96
|
+
log_1.log.error(' input-file: Path to file containing SHA lines in format "<sha> <patch-name>"');
|
|
97
|
+
process.exit(1);
|
|
98
|
+
}
|
|
99
|
+
var inputFile = args[0];
|
|
100
|
+
try {
|
|
101
|
+
parseAndUpdateShas(inputFile);
|
|
102
|
+
}
|
|
103
|
+
catch (error) {
|
|
104
|
+
if (error instanceof Error && !('wasReported' in error)) {
|
|
105
|
+
log_1.log.error(error);
|
|
106
|
+
}
|
|
107
|
+
process.exit(1);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=parse-update-shas.js.map
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git node/common.gypi node/common.gypi
|
|
2
|
-
index
|
|
2
|
+
index 311b203600..b2ee8cb47d 100644
|
|
3
3
|
--- node/common.gypi
|
|
4
4
|
+++ node/common.gypi
|
|
5
5
|
@@ -187,7 +187,7 @@
|
|
@@ -392,7 +392,7 @@ index 1137dcafcd..482feb65b5 100644
|
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
|
|
395
|
-
index
|
|
395
|
+
index 2331579b26..f84681ae02 100644
|
|
396
396
|
--- node/src/node_contextify.cc
|
|
397
397
|
+++ node/src/node_contextify.cc
|
|
398
398
|
@@ -79,6 +79,7 @@ using v8::String;
|
|
@@ -374,10 +374,10 @@ index a7d8fa1139..bffe5a8a53 100644
|
|
|
374
374
|
}
|
|
375
375
|
return result;
|
|
376
376
|
diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
|
|
377
|
-
index
|
|
377
|
+
index 0f9442ea7a..e30582b3cc 100644
|
|
378
378
|
--- node/lib/internal/modules/package_json_reader.js
|
|
379
379
|
+++ node/lib/internal/modules/package_json_reader.js
|
|
380
|
-
@@ -
|
|
380
|
+
@@ -111,17 +111,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
|
|
381
381
|
* @returns {PackageConfig}
|
|
382
382
|
*/
|
|
383
383
|
function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
|
|
@@ -410,7 +410,7 @@ index fb669ea12e..6ad993581b 100644
|
|
|
410
410
|
__proto__: null,
|
|
411
411
|
...result.data,
|
|
412
412
|
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
|
|
413
|
-
index
|
|
413
|
+
index d12d21905c..cf8a5c9096 100644
|
|
414
414
|
--- node/lib/internal/process/pre_execution.js
|
|
415
415
|
+++ node/lib/internal/process/pre_execution.js
|
|
416
416
|
@@ -50,7 +50,11 @@ const {
|
|
@@ -425,7 +425,7 @@ index 98ed40e307..f9da878ea0 100644
|
|
|
425
425
|
return prepareExecution({
|
|
426
426
|
expandArgv1,
|
|
427
427
|
initializeModules,
|
|
428
|
-
@@ -
|
|
428
|
+
@@ -265,7 +269,8 @@ function patchProcessObject(expandArgv1) {
|
|
429
429
|
let mainEntry;
|
|
430
430
|
// If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
|
|
431
431
|
// the entry point.
|
|
@@ -435,7 +435,7 @@ index 98ed40e307..f9da878ea0 100644
|
|
|
435
435
|
// Expand process.argv[1] into a full path.
|
|
436
436
|
const path = require('path');
|
|
437
437
|
try {
|
|
438
|
-
@@ -
|
|
438
|
+
@@ -747,6 +752,7 @@ function loadPreloadModules() {
|
|
439
439
|
// For user code, we preload modules if `-r` is passed
|
|
440
440
|
const preloadModules = getOptionValue('--require');
|
|
441
441
|
if (preloadModules && preloadModules.length > 0) {
|
|
@@ -482,7 +482,7 @@ index 2318c4e0df..fb998531a7 100644
|
|
|
482
482
|
parent_env_->AddCleanupHook([](void* data) {
|
|
483
483
|
Environment* env = static_cast<Environment*>(data);
|
|
484
484
|
diff --git node/src/node.cc node/src/node.cc
|
|
485
|
-
index
|
|
485
|
+
index 2d8d0000d5..178fdaede0 100644
|
|
486
486
|
--- node/src/node.cc
|
|
487
487
|
+++ node/src/node.cc
|
|
488
488
|
@@ -404,6 +404,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
|
|
@@ -510,7 +510,7 @@ index 07684482f8..0262de1cd8 100644
|
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
|
|
513
|
-
index
|
|
513
|
+
index d52388717e..4d478e77be 100644
|
|
514
514
|
--- node/src/node_contextify.cc
|
|
515
515
|
+++ node/src/node_contextify.cc
|
|
516
516
|
@@ -86,6 +86,7 @@ using v8::Symbol;
|
|
@@ -695,10 +695,10 @@ index f66099a557..4048f6bd93 100644
|
|
|
695
695
|
+ return adjacent(c, nargv);
|
|
696
696
|
+}
|
|
697
697
|
diff --git node/src/node_options.cc node/src/node_options.cc
|
|
698
|
-
index
|
|
698
|
+
index 31fc23fdbf..8458d7796e 100644
|
|
699
699
|
--- node/src/node_options.cc
|
|
700
700
|
+++ node/src/node_options.cc
|
|
701
|
-
@@ -
|
|
701
|
+
@@ -359,7 +359,7 @@ void Parse(
|
|
702
702
|
PerProcessOptions* const options,
|
|
703
703
|
OptionEnvvarSettings required_env_settings, StringVector* const errors) {
|
|
704
704
|
_ppop_instance.Parse(
|
|
@@ -707,7 +707,7 @@ index ed85bf11f6..e5208d5821 100644
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
// XXX: If you add an option here, please also add it to doc/node.1 and
|
|
710
|
-
@@ -
|
|
710
|
+
@@ -367,6 +367,7 @@ void Parse(
|
|
711
711
|
// TODO(addaleax): Make that unnecessary.
|
|
712
712
|
|
|
713
713
|
DebugOptionsParser::DebugOptionsParser() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git node/common.gypi node/common.gypi
|
|
2
|
-
index
|
|
2
|
+
index db16253786..3a381990a3 100644
|
|
3
3
|
--- node/common.gypi
|
|
4
4
|
+++ node/common.gypi
|
|
5
5
|
@@ -192,7 +192,7 @@
|
|
@@ -242,7 +242,7 @@ index 11ced93c08..1f4b534415 100644
|
|
|
242
242
|
}
|
|
243
243
|
uint32_t payload_length = GetHeaderValue(kPayloadLengthOffset);
|
|
244
244
|
diff --git node/deps/v8/src/snapshot/read-only-serializer.cc node/deps/v8/src/snapshot/read-only-serializer.cc
|
|
245
|
-
index
|
|
245
|
+
index 0178607289..88c8c2b852 100644
|
|
246
246
|
--- node/deps/v8/src/snapshot/read-only-serializer.cc
|
|
247
247
|
+++ node/deps/v8/src/snapshot/read-only-serializer.cc
|
|
248
248
|
@@ -12,6 +12,9 @@
|
|
@@ -486,10 +486,10 @@ index 0000000000..a697294fdf
|
|
|
486
486
|
+ }());
|
|
487
487
|
+}());
|
|
488
488
|
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
|
|
489
|
-
index
|
|
489
|
+
index 414e450ee3..356cbbaa94 100644
|
|
490
490
|
--- node/lib/internal/modules/cjs/loader.js
|
|
491
491
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
492
|
-
@@ -
|
|
492
|
+
@@ -261,12 +261,15 @@ function stat(filename) {
|
|
493
493
|
// Guard against internal bugs where a non-string filename is passed in by mistake.
|
|
494
494
|
assert(typeof filename === 'string');
|
|
495
495
|
|
|
@@ -543,7 +543,7 @@ index 43a131f57c..6fe7afd784 100644
|
|
|
543
543
|
__proto__: null,
|
|
544
544
|
...result.data,
|
|
545
545
|
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
|
|
546
|
-
index
|
|
546
|
+
index 8ed8802adc..8152188eb7 100644
|
|
547
547
|
--- node/lib/internal/process/pre_execution.js
|
|
548
548
|
+++ node/lib/internal/process/pre_execution.js
|
|
549
549
|
@@ -42,7 +42,11 @@ const {
|
|
@@ -558,7 +558,7 @@ index c7f86098bd..32eac7d2ee 100644
|
|
|
558
558
|
return prepareExecution({
|
|
559
559
|
expandArgv1,
|
|
560
560
|
initializeModules,
|
|
561
|
-
@@ -
|
|
561
|
+
@@ -274,7 +278,8 @@ function patchProcessObject(expandArgv1) {
|
|
562
562
|
let mainEntry;
|
|
563
563
|
// If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
|
|
564
564
|
// the entry point.
|
|
@@ -568,7 +568,7 @@ index c7f86098bd..32eac7d2ee 100644
|
|
|
568
568
|
// Expand process.argv[1] into a full path.
|
|
569
569
|
const path = require('path');
|
|
570
570
|
try {
|
|
571
|
-
@@ -
|
|
571
|
+
@@ -690,6 +695,7 @@ function loadPreloadModules() {
|
|
572
572
|
// For user code, we preload modules if `-r` is passed
|
|
573
573
|
const preloadModules = getOptionValue('--require');
|
|
574
574
|
if (preloadModules && preloadModules.length > 0) {
|
|
@@ -615,7 +615,7 @@ index f62eb36b57..8ccc42dbd4 100644
|
|
|
615
615
|
parent_env_->AddCleanupHook([](void* data) {
|
|
616
616
|
Environment* env = static_cast<Environment*>(data);
|
|
617
617
|
diff --git node/src/node.cc node/src/node.cc
|
|
618
|
-
index
|
|
618
|
+
index 31439d0cc1..8dda6dcc8a 100644
|
|
619
619
|
--- node/src/node.cc
|
|
620
620
|
+++ node/src/node.cc
|
|
621
621
|
@@ -355,6 +355,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
|
|
@@ -837,10 +837,10 @@ index 3295121b87..bfe838b8c1 100644
|
|
|
837
837
|
+ return adjacent(c, nargv);
|
|
838
838
|
+}
|
|
839
839
|
diff --git node/src/node_options.cc node/src/node_options.cc
|
|
840
|
-
index
|
|
840
|
+
index 342bffb00f..1802fbac25 100644
|
|
841
841
|
--- node/src/node_options.cc
|
|
842
842
|
+++ node/src/node_options.cc
|
|
843
|
-
@@ -
|
|
843
|
+
@@ -430,6 +430,7 @@ void Parse(
|
|
844
844
|
// TODO(addaleax): Make that unnecessary.
|
|
845
845
|
|
|
846
846
|
DebugOptionsParser::DebugOptionsParser() {
|
package/patches/patches.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"v24.
|
|
3
|
-
"v22.
|
|
4
|
-
"v20.19.
|
|
2
|
+
"v24.12.0": ["node.v24.12.0.cpp.patch"],
|
|
3
|
+
"v22.21.1": ["node.v22.21.1.cpp.patch"],
|
|
4
|
+
"v20.19.6": ["node.v20.19.6.cpp.patch"],
|
|
5
5
|
"v18.20.8": ["node.v18.20.8.cpp.patch"],
|
|
6
6
|
"v16.20.2": ["node.v16.20.2.cpp.patch"],
|
|
7
7
|
"v14.21.3": ["node.v14.21.3.cpp.patch"],
|