@yao-pkg/pkg-fetch 3.6.5 → 3.6.7
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 +31 -31
- package/package.json +1 -1
- package/patches/{node.v22.23.2.cpp.patch → node.v22.23.4.cpp.patch} +1 -1
- package/patches/{node.v24.18.1.cpp.patch → node.v24.22.1.cpp.patch} +42 -41
- package/patches/{node.v26.5.1.cpp.patch → node.v26.12.1.cpp.patch} +58 -50
- package/patches/patches.json +3 -3
|
@@ -43,35 +43,35 @@
|
|
|
43
43
|
"node-v20.20.2-macos-x64": "2276efd46dc3a30d5524ea60b8cb63afa5c8e45e0f17ad49065bcea7b59b7eeb",
|
|
44
44
|
"node-v20.20.2-win-arm64": "aebc71a3ebf4774adaac0cd891bfba54f9e5e4340c39b44492127de551a9b5a8",
|
|
45
45
|
"node-v20.20.2-win-x64": "f9b870a1b20c3bcf729a53112b6a72db65b050e4e6494d33ceab3413c507f01c",
|
|
46
|
-
"node-v22.23.
|
|
47
|
-
"node-v22.23.
|
|
48
|
-
"node-v22.23.
|
|
49
|
-
"node-v22.23.
|
|
50
|
-
"node-v22.23.
|
|
51
|
-
"node-v22.23.
|
|
52
|
-
"node-v22.23.
|
|
53
|
-
"node-v22.23.
|
|
54
|
-
"node-v22.23.
|
|
55
|
-
"node-v22.23.
|
|
56
|
-
"node-v22.23.
|
|
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.
|
|
67
|
-
"node-v26.
|
|
68
|
-
"node-v26.
|
|
69
|
-
"node-v26.
|
|
70
|
-
"node-v26.
|
|
71
|
-
"node-v26.
|
|
72
|
-
"node-v26.
|
|
73
|
-
"node-v26.
|
|
74
|
-
"node-v26.
|
|
75
|
-
"node-v26.
|
|
76
|
-
"node-v26.
|
|
46
|
+
"node-v22.23.4-alpine-arm64": "e08b2582c00404cd8630109de68b565b1ee7c8e167a95c925b34e55b34192bfd",
|
|
47
|
+
"node-v22.23.4-alpine-x64": "e3b53d5fc5606016bd914f85e22c0c67e83c01e285fec34f71ceaa412e6186b7",
|
|
48
|
+
"node-v22.23.4-linux-arm64": "4170ef1c350caa99d16ec579d822e2df4cb515041908d81d976634d78577ad4b",
|
|
49
|
+
"node-v22.23.4-linux-x64": "4880a67281fe58ffe11c7c2606efb10654337e27e437e78345c6393326891e00",
|
|
50
|
+
"node-v22.23.4-linuxstatic-arm64": "86eafddb439fd4d1953cff4ce1f988fc2981818ed7c080cc076f74024d108e6a",
|
|
51
|
+
"node-v22.23.4-linuxstatic-armv7": "7903b1cd25789768ec0e0712232a5670a7f242d2e4c01d9e55f5b4e0c3e2be1f",
|
|
52
|
+
"node-v22.23.4-linuxstatic-x64": "23aa7dd74e3262bcc6400b33037356d8e2422a69781042cf245f7fdde9be57f5",
|
|
53
|
+
"node-v22.23.4-macos-arm64": "3fe48378bd4ef71d7f299af7a0c0b6554998c65e7b939187f923814d50a987a1",
|
|
54
|
+
"node-v22.23.4-macos-x64": "d93bc8fd5a80782e278c75409bc4e446c1e4fceec4d087eab37040ec117c0ffa",
|
|
55
|
+
"node-v22.23.4-win-arm64": "3f494a1cb9734280740109d0c26fc536b132cd28c822f80fe3f4b84ee8f9b1e6",
|
|
56
|
+
"node-v22.23.4-win-x64": "8b2f782f1ae0fbc03a406efc086b3c5a5a65039ce12fc6adbe9885986c837bdc",
|
|
57
|
+
"node-v24.22.1-alpine-arm64": "e5deb5ca77d0d42ad0772927797678dd3b2f8c325580e31cab66aabc3f196a2f",
|
|
58
|
+
"node-v24.22.1-alpine-x64": "06a440bb73777e03282f47e906ef2aef59f37271b41e114fb9557b91457f2da4",
|
|
59
|
+
"node-v24.22.1-linux-arm64": "916852a4ee1a7403da8213a439adcb34ade6e0fb82a5225d2b7959b7bcfb9511",
|
|
60
|
+
"node-v24.22.1-linux-x64": "c0a4715edd09277f0e66c780dc16eb40be7c14e823e074e0218dd6c27fdac4c3",
|
|
61
|
+
"node-v24.22.1-linuxstatic-arm64": "f581e7e51b16d9bb1b421065f0dae61d0634db9b200629746f1ea4a3fcd96d48",
|
|
62
|
+
"node-v24.22.1-linuxstatic-x64": "6abbc01b38ac5f39f368b9b6d6e11d6937d357666895d70c3304088c77e2d92c",
|
|
63
|
+
"node-v24.22.1-macos-arm64": "4059ddff5148bc567d3893e29328a08800bb3adf6b6d1ebb3fbaba768425d5dd",
|
|
64
|
+
"node-v24.22.1-macos-x64": "b609a23dfecc192cc59d77e8f46ec000fef4af7e039061c4e9b262be0acffaa1",
|
|
65
|
+
"node-v24.22.1-win-arm64": "6eb9a69e26d980fc1f6a36bb589632da151d5856e245bd55d7eb00f31f6799d1",
|
|
66
|
+
"node-v24.22.1-win-x64": "82b8ca1e6d6925ba08520c45c98d2599ee0e5bbc3c1d7c494f3caec0eaed2cd8",
|
|
67
|
+
"node-v26.12.1-alpine-arm64": "1ed6ec3a69a9c002f1616c0ed28cdd6e86e9d31b90637af3d05dffa73733bddf",
|
|
68
|
+
"node-v26.12.1-alpine-x64": "0c297d4eda68441bbbf6c2264a7b193426226646f1d6e34c997b3bd2e5f47fb8",
|
|
69
|
+
"node-v26.12.1-linux-arm64": "3934cf70e18dd60b7a4e754b40b8a3a46383bc18d55d3c16b669ae043ba54efd",
|
|
70
|
+
"node-v26.12.1-linux-x64": "9a2dcecdbce93a065d495a9185ef734501735a000951dc869543e602918a5e81",
|
|
71
|
+
"node-v26.12.1-linuxstatic-arm64": "062e6450d423f310dcb7b4b378ba319b2ebf65cfe3982b3537baa41859ee18ee",
|
|
72
|
+
"node-v26.12.1-linuxstatic-x64": "e7f4df0bc9df19a640d8f65e66ee1178b6243f8932547e34d0d8a0e1662d01df",
|
|
73
|
+
"node-v26.12.1-macos-arm64": "1de8985653d4c3041a9c6a195c7e4a723031249b592a170027c5e5d753f3a061",
|
|
74
|
+
"node-v26.12.1-macos-x64": "d617039f7fea3bfeaca047fabd3bd40f4a4568881cd86c32a3986d8580d20fec",
|
|
75
|
+
"node-v26.12.1-win-arm64": "9342387d6532197a37ba68741e9b079f42d1e5ec76786bde0ced4170c2955494",
|
|
76
|
+
"node-v26.12.1-win-x64": "2098122150aaaa24043ed9868cbab5e77a436c68fe9efa5611e8dcf5130b1cb2"
|
|
77
77
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
|
|
2
|
-
index
|
|
2
|
+
index f43714d2c2..f714a524e7 100644
|
|
3
3
|
--- node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
|
|
4
4
|
+++ node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
|
|
5
5
|
@@ -33,10 +33,17 @@
|
|
@@ -25,23 +25,26 @@ index dac89ef12e..e5cf338ff4 100644
|
|
|
25
25
|
int nghttp3_ringbuf_init(nghttp3_ringbuf *rb, size_t nmemb, size_t size,
|
|
26
26
|
const nghttp3_mem *mem) {
|
|
27
27
|
diff --git node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
|
|
28
|
-
index
|
|
28
|
+
index 40c25f2a3d..f03b9de0bd 100644
|
|
29
29
|
--- node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
|
|
30
30
|
+++ node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
|
|
31
|
-
@@ -33,
|
|
31
|
+
@@ -33,7 +33,13 @@
|
|
32
32
|
|
|
33
33
|
#ifndef NDEBUG
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
- return n && !(n & (n - 1));
|
|
38
|
-
-# elif defined(WIN32)
|
|
34
|
+
/* Power-of-two test; simple portable bit trick. */
|
|
35
|
+
-static int ispow2(size_t n) { return n && !(n & (n - 1)); }
|
|
36
|
+
+static int ispow2(size_t n) {
|
|
39
37
|
+#if defined(WIN32)
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
+ return 1 == __popcnt((unsigned int)n);
|
|
39
|
+
+#else /* !defined(WIN32) */
|
|
40
|
+
+ return n && !(n & (n - 1));
|
|
41
|
+
+#endif /* defined(WIN32) */
|
|
42
|
+
+}
|
|
43
|
+
#endif /* !defined(NDEBUG) */
|
|
44
|
+
|
|
45
|
+
int ngtcp2_ringbuf_init(ngtcp2_ringbuf *rb, size_t nmemb, size_t size,
|
|
43
46
|
diff --git node/deps/v8/include/v8-initialization.h node/deps/v8/include/v8-initialization.h
|
|
44
|
-
index
|
|
47
|
+
index 406f1d0ba5..fb8eea420d 100644
|
|
45
48
|
--- node/deps/v8/include/v8-initialization.h
|
|
46
49
|
+++ node/deps/v8/include/v8-initialization.h
|
|
47
50
|
@@ -98,6 +98,10 @@ class V8_EXPORT V8 {
|
|
@@ -56,10 +59,10 @@ index 46a21a02cb..fdb0edf42a 100644
|
|
|
56
59
|
static const char* GetVersion();
|
|
57
60
|
|
|
58
61
|
diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
|
|
59
|
-
index
|
|
62
|
+
index 7dc060bc87..736e9309ed 100644
|
|
60
63
|
--- node/deps/v8/src/api/api.cc
|
|
61
64
|
+++ node/deps/v8/src/api/api.cc
|
|
62
|
-
@@ -
|
|
65
|
+
@@ -444,6 +444,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
|
|
63
66
|
HelpOptions(HelpOptions::kDontExit));
|
|
64
67
|
}
|
|
65
68
|
|
|
@@ -415,7 +418,7 @@ index 0178607289..88c8c2b852 100644
|
|
|
415
418
|
}
|
|
416
419
|
}
|
|
417
420
|
diff --git node/lib/child_process.js node/lib/child_process.js
|
|
418
|
-
index
|
|
421
|
+
index e72461ea5f..90dd6938a4 100644
|
|
419
422
|
--- node/lib/child_process.js
|
|
420
423
|
+++ node/lib/child_process.js
|
|
421
424
|
@@ -171,7 +171,7 @@ function fork(modulePath, args = [], options) {
|
|
@@ -483,10 +486,10 @@ index 0000000000..a697294fdf
|
|
|
483
486
|
+ }());
|
|
484
487
|
+}());
|
|
485
488
|
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
|
|
486
|
-
index
|
|
489
|
+
index 4bd752be19..d2a7c76d7b 100644
|
|
487
490
|
--- node/lib/internal/modules/cjs/loader.js
|
|
488
491
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
489
|
-
@@ -
|
|
492
|
+
@@ -273,12 +273,15 @@ function stat(filename) {
|
|
490
493
|
// Guard against internal bugs where a non-string filename is passed in by mistake.
|
|
491
494
|
assert(typeof filename === 'string');
|
|
492
495
|
|
|
@@ -504,10 +507,10 @@ index 11a7196698..de729b660b 100644
|
|
|
504
507
|
// Only set cache when `internalModuleStat(filename)` succeeds.
|
|
505
508
|
statCache.set(filename, result);
|
|
506
509
|
diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
|
|
507
|
-
index
|
|
510
|
+
index 9cf3e64e90..99ee29a113 100644
|
|
508
511
|
--- node/lib/internal/modules/package_json_reader.js
|
|
509
512
|
+++ node/lib/internal/modules/package_json_reader.js
|
|
510
|
-
@@ -
|
|
513
|
+
@@ -121,17 +121,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
|
|
511
514
|
* @returns {PackageConfig}
|
|
512
515
|
*/
|
|
513
516
|
function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
|
|
@@ -540,7 +543,7 @@ index 968c3c5701..1c7b01a3f2 100644
|
|
|
540
543
|
__proto__: null,
|
|
541
544
|
...result.data,
|
|
542
545
|
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
|
|
543
|
-
index
|
|
546
|
+
index d17da5d977..56e0ab7b60 100644
|
|
544
547
|
--- node/lib/internal/process/pre_execution.js
|
|
545
548
|
+++ node/lib/internal/process/pre_execution.js
|
|
546
549
|
@@ -42,7 +42,11 @@ const {
|
|
@@ -555,7 +558,7 @@ index e9ab2b2a89..6c74e7cc64 100644
|
|
|
555
558
|
return prepareExecution({
|
|
556
559
|
expandArgv1,
|
|
557
560
|
initializeModules,
|
|
558
|
-
@@ -
|
|
561
|
+
@@ -280,7 +284,8 @@ function patchProcessObject(expandArgv1) {
|
|
559
562
|
let mainEntry;
|
|
560
563
|
// If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
|
|
561
564
|
// the entry point.
|
|
@@ -565,7 +568,7 @@ index e9ab2b2a89..6c74e7cc64 100644
|
|
|
565
568
|
// Expand process.argv[1] into a full path.
|
|
566
569
|
const path = require('path');
|
|
567
570
|
try {
|
|
568
|
-
@@ -
|
|
571
|
+
@@ -729,6 +734,7 @@ function loadPreloadModules() {
|
|
569
572
|
// For user code, we preload modules if `-r` is passed
|
|
570
573
|
const preloadModules = getOptionValue('--require');
|
|
571
574
|
if (preloadModules && preloadModules.length > 0) {
|
|
@@ -596,26 +599,24 @@ index ae71080620..b05638de75 100644
|
|
|
596
599
|
throw e; /* node-do-not-add-exception-line */
|
|
597
600
|
}
|
|
598
601
|
diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
|
|
599
|
-
index
|
|
602
|
+
index 31277a74d1..91306400df 100644
|
|
600
603
|
--- node/src/inspector_agent.cc
|
|
601
604
|
+++ node/src/inspector_agent.cc
|
|
602
|
-
@@ -
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
-
|
|
607
|
-
-
|
|
608
|
-
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
parent_env_->AddCleanupHook([](void* data) {
|
|
613
|
-
Environment* env = static_cast<Environment*>(data);
|
|
605
|
+
@@ -886,9 +886,6 @@ bool Agent::Start(const std::string& path,
|
|
606
|
+
start_io_thread_agents.push_back(this);
|
|
607
|
+
}
|
|
608
|
+
parent_env_->AddCleanupHook(StopAcceptingIoThreadStartsHook, this);
|
|
609
|
+
- // Ignore failure, SIGUSR1 won't work, but that should not block node
|
|
610
|
+
- // start.
|
|
611
|
+
- StartDebugSignalHandler();
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
AtExit(parent_env_, [](void* env) {
|
|
614
615
|
diff --git node/src/node.cc node/src/node.cc
|
|
615
|
-
index
|
|
616
|
+
index 92c5fd8cb6..f550d2b3cb 100644
|
|
616
617
|
--- node/src/node.cc
|
|
617
618
|
+++ node/src/node.cc
|
|
618
|
-
@@ -
|
|
619
|
+
@@ -356,6 +356,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
|
|
619
620
|
return env->RunSnapshotDeserializeMain();
|
|
620
621
|
}
|
|
621
622
|
|
|
@@ -624,7 +625,7 @@ index 6f899ec062..1777a36383 100644
|
|
|
624
625
|
if (env->worker_context() != nullptr) {
|
|
625
626
|
return StartExecution(env, "internal/main/worker_thread");
|
|
626
627
|
}
|
|
627
|
-
@@ -
|
|
628
|
+
@@ -580,14 +582,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
|
|
628
629
|
}
|
|
629
630
|
|
|
630
631
|
if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
|
|
@@ -834,10 +835,10 @@ index 3295121b87..bfe838b8c1 100644
|
|
|
834
835
|
+ return adjacent(c, nargv);
|
|
835
836
|
+}
|
|
836
837
|
diff --git node/src/node_options.cc node/src/node_options.cc
|
|
837
|
-
index
|
|
838
|
+
index 9ccad939f1..ad49b989f2 100644
|
|
838
839
|
--- node/src/node_options.cc
|
|
839
840
|
+++ node/src/node_options.cc
|
|
840
|
-
@@ -
|
|
841
|
+
@@ -474,6 +474,7 @@ void Parse(
|
|
841
842
|
// TODO(addaleax): Make that unnecessary.
|
|
842
843
|
|
|
843
844
|
DebugOptionsParser::DebugOptionsParser() {
|
|
@@ -846,7 +847,7 @@ index b7062241d5..6098847b2a 100644
|
|
|
846
847
|
"set host:port for inspector",
|
|
847
848
|
&DebugOptions::host_port,
|
|
848
849
|
diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
|
|
849
|
-
index
|
|
850
|
+
index c4e8c6fbb9..b2cba7b56b 100644
|
|
850
851
|
--- node/tools/icu/icu-generic.gyp
|
|
851
852
|
+++ node/tools/icu/icu-generic.gyp
|
|
852
853
|
@@ -52,7 +52,7 @@
|
|
@@ -14,7 +14,7 @@ index 406f1d0ba5..fb8eea420d 100644
|
|
|
14
14
|
static const char* GetVersion();
|
|
15
15
|
|
|
16
16
|
diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
|
|
17
|
-
index
|
|
17
|
+
index eb3cd7dee2..f5d289c07b 100644
|
|
18
18
|
--- node/deps/v8/src/api/api.cc
|
|
19
19
|
+++ node/deps/v8/src/api/api.cc
|
|
20
20
|
@@ -469,6 +469,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
|
|
@@ -364,10 +364,10 @@ index 6732808e85..ebb7938f64 100644
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
diff --git node/lib/child_process.js node/lib/child_process.js
|
|
367
|
-
index
|
|
367
|
+
index ac7188048b..b5db10168f 100644
|
|
368
368
|
--- node/lib/child_process.js
|
|
369
369
|
+++ node/lib/child_process.js
|
|
370
|
-
@@ -
|
|
370
|
+
@@ -174,7 +174,7 @@ function fork(modulePath, args = [], options) {
|
|
371
371
|
throw new ERR_CHILD_PROCESS_IPC_REQUIRED('options.stdio');
|
|
372
372
|
}
|
|
373
373
|
|
|
@@ -432,7 +432,7 @@ index 0000000000..a697294fdf
|
|
|
432
432
|
+ }());
|
|
433
433
|
+}());
|
|
434
434
|
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
|
|
435
|
-
index
|
|
435
|
+
index f9c4a62f02..557c1023d7 100644
|
|
436
436
|
--- node/lib/internal/modules/cjs/loader.js
|
|
437
437
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
438
438
|
@@ -273,12 +273,15 @@ function stat(filename) {
|
|
@@ -445,7 +445,7 @@ index e1f8a0eed3..9f6dae2d3b 100644
|
|
|
445
445
|
const result = statCache.get(filename);
|
|
446
446
|
if (result !== undefined) { return result; }
|
|
447
447
|
}
|
|
448
|
-
- const result =
|
|
448
|
+
- const result = loaderMethods.internalModuleStat(filename);
|
|
449
449
|
+ const fs = require('fs');
|
|
450
450
|
+ const result = fs.existsSync(origFilename) ?
|
|
451
451
|
+ (fs.statSync(origFilename).isDirectory() ? 1 : 0) : -1;
|
|
@@ -453,16 +453,16 @@ index e1f8a0eed3..9f6dae2d3b 100644
|
|
|
453
453
|
// Only set cache when `internalModuleStat(filename)` succeeds.
|
|
454
454
|
statCache.set(filename, result);
|
|
455
455
|
diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
|
|
456
|
-
index
|
|
456
|
+
index ea6b7d2639..fd8cb1a065 100644
|
|
457
457
|
--- node/lib/internal/modules/package_json_reader.js
|
|
458
458
|
+++ node/lib/internal/modules/package_json_reader.js
|
|
459
|
-
@@ -
|
|
459
|
+
@@ -124,17 +124,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
|
|
460
460
|
* @returns {PackageConfig}
|
|
461
461
|
*/
|
|
462
462
|
function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
|
|
463
463
|
- // This function will be called by both CJS and ESM, so we need to make sure
|
|
464
464
|
- // non-null attributes are converted to strings.
|
|
465
|
-
- const parsed =
|
|
465
|
+
- const parsed = loaderMethods.readPackageJSON(
|
|
466
466
|
- jsonPath,
|
|
467
467
|
- isESM,
|
|
468
468
|
- base == null ? undefined : `${base}`,
|
|
@@ -474,13 +474,13 @@ index 6c6bf0383b..25db3d9f43 100644
|
|
|
474
474
|
+ const fs = require('fs');
|
|
475
475
|
+ let result;
|
|
476
476
|
+ if (fs.existsSync(jsonPath)) {
|
|
477
|
-
+ const json = JSONParse(fs.readFileSync(jsonPath, { encoding:
|
|
477
|
+
+ const json = JSONParse(fs.readFileSync(jsonPath, { encoding: 'utf8' }).trim());
|
|
478
478
|
+ result = deserializePackageJSON(jsonPath, [
|
|
479
|
-
+ json
|
|
480
|
-
+ json
|
|
481
|
-
+ json
|
|
482
|
-
+ json
|
|
483
|
-
+ json
|
|
479
|
+
+ json.name,
|
|
480
|
+
+ json.main,
|
|
481
|
+
+ json.type,
|
|
482
|
+
+ json.imports,
|
|
483
|
+
+ json.exports,
|
|
484
484
|
+ ]);
|
|
485
485
|
+ } else {
|
|
486
486
|
+ result = deserializePackageJSON(jsonPath, undefined);
|
|
@@ -489,10 +489,10 @@ index 6c6bf0383b..25db3d9f43 100644
|
|
|
489
489
|
__proto__: null,
|
|
490
490
|
...result.data,
|
|
491
491
|
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
|
|
492
|
-
index
|
|
492
|
+
index 96c6a5c757..15ca99fc18 100644
|
|
493
493
|
--- node/lib/internal/process/pre_execution.js
|
|
494
494
|
+++ node/lib/internal/process/pre_execution.js
|
|
495
|
-
@@ -
|
|
495
|
+
@@ -44,7 +44,11 @@ const {
|
|
496
496
|
runDeserializeCallbacks,
|
|
497
497
|
} = require('internal/v8/startup_snapshot');
|
|
498
498
|
|
|
@@ -504,17 +504,17 @@ index a9724f1e6b..943d6998d2 100644
|
|
|
504
504
|
return prepareExecution({
|
|
505
505
|
expandArgv1,
|
|
506
506
|
initializeModules,
|
|
507
|
-
@@ -
|
|
508
|
-
|
|
509
|
-
//
|
|
510
|
-
|
|
511
|
-
-
|
|
512
|
-
+
|
|
513
|
-
+
|
|
507
|
+
@@ -358,7 +362,8 @@ function patchProcessObject(expandArgv1) {
|
|
508
|
+
// argument was consumed as one: argv[1] is the program's own first argument
|
|
509
|
+
// and expanding it to a path would corrupt it.
|
|
510
|
+
if (expandArgv1 && !getOptionValue('[vfs_load_set]') &&
|
|
511
|
+
- process.argv[1] && process.argv[1][0] !== '-') {
|
|
512
|
+
+ process.argv[1] && process.argv[1][0] !== '-' &&
|
|
513
|
+
+ process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT') {
|
|
514
514
|
// Expand process.argv[1] into a full path.
|
|
515
515
|
const path = require('path');
|
|
516
516
|
try {
|
|
517
|
-
@@ -
|
|
517
|
+
@@ -815,6 +820,7 @@ function loadPreloadModules() {
|
|
518
518
|
// For user code, we preload modules if `-r` is passed
|
|
519
519
|
const preloadModules = getOptionValue('--require');
|
|
520
520
|
if (preloadModules && preloadModules.length > 0) {
|
|
@@ -545,26 +545,34 @@ index 2c7446af60..95daf7caa1 100644
|
|
|
545
545
|
throw e; /* node-do-not-add-exception-line */
|
|
546
546
|
}
|
|
547
547
|
diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
|
|
548
|
-
index
|
|
548
|
+
index 22506e26b3..9b7b6beb7f 100644
|
|
549
549
|
--- node/src/inspector_agent.cc
|
|
550
550
|
+++ node/src/inspector_agent.cc
|
|
551
|
-
@@ -
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
-
|
|
556
|
-
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
551
|
+
@@ -872,8 +872,7 @@ bool Agent::Start(const std::string& path,
|
|
552
|
+
host_port_ = host_port;
|
|
553
|
+
|
|
554
|
+
client_ = std::make_shared<NodeInspectorClient>(parent_env_, is_main);
|
|
555
|
+
- if (parent_env_->owns_inspector() &&
|
|
556
|
+
- parent_env_->should_start_debug_signal_handler()) {
|
|
557
|
+
+ if (parent_env_->owns_inspector()) {
|
|
558
|
+
start_io_thread_async_ = new uv_async_t;
|
|
559
|
+
start_io_thread_async_->data = this;
|
|
560
|
+
CHECK_EQ(0,
|
|
561
|
+
@@ -888,9 +887,6 @@ bool Agent::Start(const std::string& path,
|
|
562
|
+
start_io_thread_agents.push_back(this);
|
|
563
|
+
}
|
|
564
|
+
parent_env_->AddCleanupHook(StopAcceptingIoThreadStartsHook, this);
|
|
565
|
+
- // Ignore failure, SIGUSR1 won't work, but that should not block node
|
|
566
|
+
- // start.
|
|
567
|
+
- StartDebugSignalHandler();
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
AtExit(parent_env_, [](void* env) {
|
|
563
571
|
diff --git node/src/node.cc node/src/node.cc
|
|
564
|
-
index
|
|
572
|
+
index 163070b501..78bc5cf490 100644
|
|
565
573
|
--- node/src/node.cc
|
|
566
574
|
+++ node/src/node.cc
|
|
567
|
-
@@ -
|
|
575
|
+
@@ -357,6 +357,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
|
|
568
576
|
return env->RunSnapshotDeserializeMain();
|
|
569
577
|
}
|
|
570
578
|
|
|
@@ -573,7 +581,7 @@ index 4ba019ddca..b30d716a41 100644
|
|
|
573
581
|
if (env->worker_context() != nullptr) {
|
|
574
582
|
return StartExecution(env, "internal/main/worker_thread");
|
|
575
583
|
}
|
|
576
|
-
@@ -
|
|
584
|
+
@@ -588,14 +590,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
|
|
577
585
|
}
|
|
578
586
|
|
|
579
587
|
if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
|
|
@@ -589,7 +597,7 @@ index 4ba019ddca..b30d716a41 100644
|
|
|
589
597
|
}
|
|
590
598
|
|
|
591
599
|
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
|
|
592
|
-
index
|
|
600
|
+
index 2c06a363b1..7b65e6bf9f 100644
|
|
593
601
|
--- node/src/node_contextify.cc
|
|
594
602
|
+++ node/src/node_contextify.cc
|
|
595
603
|
@@ -88,6 +88,7 @@ using v8::String;
|
|
@@ -600,7 +608,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
|
|
|
600
608
|
|
|
601
609
|
// This is a helper function mediates deleted v8::PropertyDescriptor copy/move.
|
|
602
610
|
// The `Fn` receives a mutable reference of a stack allocated
|
|
603
|
-
@@ -
|
|
611
|
+
@@ -985,13 +986,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
604
612
|
Local<ArrayBufferView> cached_data_buf;
|
|
605
613
|
bool produce_cached_data = false;
|
|
606
614
|
Local<Context> parsing_context = context;
|
|
@@ -617,7 +625,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
|
|
|
617
625
|
CHECK(args[2]->IsNumber());
|
|
618
626
|
line_offset = args[2].As<Int32>()->Value();
|
|
619
627
|
CHECK(args[3]->IsNumber());
|
|
620
|
-
@@ -
|
|
628
|
+
@@ -1012,6 +1013,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
621
629
|
}
|
|
622
630
|
CHECK(args[7]->IsSymbol());
|
|
623
631
|
id_symbol = args[7].As<Symbol>();
|
|
@@ -629,7 +637,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
|
|
|
629
637
|
}
|
|
630
638
|
|
|
631
639
|
ContextifyScript* contextify_script = New(env, args.This());
|
|
632
|
-
@@ -
|
|
640
|
+
@@ -1058,6 +1064,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
633
641
|
ShouldNotAbortOnUncaughtScope no_abort_scope(env);
|
|
634
642
|
Context::Scope scope(parsing_context);
|
|
635
643
|
|
|
@@ -640,7 +648,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
|
|
|
640
648
|
MaybeLocal<UnboundScript> maybe_v8_script =
|
|
641
649
|
ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
|
|
642
650
|
|
|
643
|
-
@@ -
|
|
651
|
+
@@ -1072,6 +1082,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
644
652
|
return;
|
|
645
653
|
}
|
|
646
654
|
|
|
@@ -653,7 +661,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
|
|
|
653
661
|
contextify_script->set_unbound_script(v8_script);
|
|
654
662
|
|
|
655
663
|
std::unique_ptr<ScriptCompiler::CachedData> new_cached_data;
|
|
656
|
-
@@ -
|
|
664
|
+
@@ -1084,7 +1100,7 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
657
665
|
if (contextify_script->object()
|
|
658
666
|
->SetPrivate(context, env->host_defined_option_symbol(), id_symbol)
|
|
659
667
|
.IsNothing()) {
|
|
@@ -662,7 +670,7 @@ index dcfaf02c7e..5d1f63a4a8 100644
|
|
|
662
670
|
}
|
|
663
671
|
if (StoreCodeCacheResult(env,
|
|
664
672
|
self,
|
|
665
|
-
@@ -
|
|
673
|
+
@@ -1095,6 +1111,9 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
666
674
|
.IsNothing()) {
|
|
667
675
|
return;
|
|
668
676
|
}
|
|
@@ -783,10 +791,10 @@ index 3295121b87..bfe838b8c1 100644
|
|
|
783
791
|
+ return adjacent(c, nargv);
|
|
784
792
|
+}
|
|
785
793
|
diff --git node/src/node_options.cc node/src/node_options.cc
|
|
786
|
-
index
|
|
794
|
+
index c80ef56390..7aa858f51c 100644
|
|
787
795
|
--- node/src/node_options.cc
|
|
788
796
|
+++ node/src/node_options.cc
|
|
789
|
-
@@ -
|
|
797
|
+
@@ -631,6 +631,7 @@ void Parse(
|
|
790
798
|
// TODO(addaleax): Make that unnecessary.
|
|
791
799
|
|
|
792
800
|
DebugOptionsParser::DebugOptionsParser() {
|
|
@@ -795,7 +803,7 @@ index b0ddfb9eb9..9c83f88bf8 100644
|
|
|
795
803
|
"set host:port for inspector",
|
|
796
804
|
&DebugOptions::host_port,
|
|
797
805
|
diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
|
|
798
|
-
index
|
|
806
|
+
index c4e8c6fbb9..b2cba7b56b 100644
|
|
799
807
|
--- node/tools/icu/icu-generic.gyp
|
|
800
808
|
+++ node/tools/icu/icu-generic.gyp
|
|
801
809
|
@@ -52,7 +52,7 @@
|
package/patches/patches.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"v26.
|
|
3
|
-
"v24.
|
|
4
|
-
"v22.23.
|
|
2
|
+
"v26.12.1": ["node.v26.12.1.cpp.patch"],
|
|
3
|
+
"v24.22.1": ["node.v24.22.1.cpp.patch"],
|
|
4
|
+
"v22.23.4": ["node.v22.23.4.cpp.patch"],
|
|
5
5
|
"v20.20.2": ["node.v20.20.2.cpp.patch"],
|
|
6
6
|
"v18.20.8": ["node.v18.20.8.cpp.patch"],
|
|
7
7
|
"v16.20.2": ["node.v16.20.2.cpp.patch"],
|