@yao-pkg/pkg-fetch 3.6.6 → 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.
@@ -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.2-alpine-arm64": "c5bd55fd1567068eaa9ce56b56cce0d506dec72038929c385b0ead868478f143",
47
- "node-v22.23.2-alpine-x64": "f9bdcd970365584232e6db70eaffd4785ad96f1bded297b31c2fa8be65ea4aad",
48
- "node-v22.23.2-linux-arm64": "389df3e8fbb35e34a6b255fb9846dd7d6bf445d95709c6fd235e6926b10f9d51",
49
- "node-v22.23.2-linux-x64": "6e3f32d02f548cc87d462441666b28fec9beac4278b0831a0929a7b49bac3886",
50
- "node-v22.23.2-linuxstatic-arm64": "d587135cc24c6453c6fb97509c0468209887c0aaf56574f4ffb5e2ddb2c6f0f8",
51
- "node-v22.23.2-linuxstatic-armv7": "bd392f93ae55d0480ee8e66678b16a00eddffeeb0a814e3de02f472c9c875656",
52
- "node-v22.23.2-linuxstatic-x64": "2e60ac3f81558e52f437f831afb0128f5e0e6e63d6608094748cce3043e42378",
53
- "node-v22.23.2-macos-arm64": "31b0f3a7705e2f10a496dbeba1a78f2590b4bfcbe8d026c4ec90cf693c6f02af",
54
- "node-v22.23.2-macos-x64": "aa7517861bab8d3dd0c54a3d1d41becb0b1925a017e662018372dbf875dbfce0",
55
- "node-v22.23.2-win-arm64": "d625fdb98c359a0b234566ff66d50e802c9f48abad732b46d54014e41d9389db",
56
- "node-v22.23.2-win-x64": "555d3dceaaf1c5628ac8fa23d1ebde46a424d2ad6782cc2412be8eed4a7a6b69",
57
- "node-v24.20.0-alpine-arm64": "aae1d7d34f455696cddf51fb53a10f3d0ac5efb3b5b3e0dd0f18d2f5eee416bb",
58
- "node-v24.20.0-alpine-x64": "59c3193ae9ffadb075118624ed145a77238acfa0eafbf10501c59306665638cc",
59
- "node-v24.20.0-linux-arm64": "42366f13db0a224d6731c5d5bb76df07abaa7adf6b916cca855bc8d28887bbe6",
60
- "node-v24.20.0-linux-x64": "57129f80160bfc620ca17e3de9169b4e4e2e82501a4da90a7d544b2895af4b29",
61
- "node-v24.20.0-linuxstatic-arm64": "2552a314eb550b001661a48b9e96cc8a571e9f3f118ed86e4de9c268fe9842dc",
62
- "node-v24.20.0-linuxstatic-x64": "83223146550e6dce2e773e1668b397aab63664e820ac40551f9df16b0d8b276f",
63
- "node-v24.20.0-macos-arm64": "b875bba667a3d7c6b1d4589291e9ca5185c57098cc70b4ec83add0c3f90627c4",
64
- "node-v24.20.0-macos-x64": "fa08239efc0276351d153f10dea554ff3ef6317bb68e8077af098af73980d496",
65
- "node-v24.20.0-win-arm64": "5f42c51b2c8fd641f89196fab33ce3f5d7470192973b9c141336877d40388c66",
66
- "node-v24.20.0-win-x64": "a71b32eeff62d1fbddcd7ee63e9898580fe2e1d749db6734c3a6314b43890ed1",
67
- "node-v26.8.1-alpine-arm64": "0d33bb1567a76753ce14b84de993fe6fb4d3e1c8cda5ed24f54cdb3141c2f3fb",
68
- "node-v26.8.1-alpine-x64": "8601168eca52d162d31f8685f4a1a16bb67f7070c6cba93e910c36fa16636c8c",
69
- "node-v26.8.1-linux-arm64": "e1096940746d1927ae4f2da767cffd6c731f0e5257abff190cf6453b771fb2f8",
70
- "node-v26.8.1-linux-x64": "0ede79acaaf541a94fcd10ffcc9a7699ea8f339fa556617fcb732599e14e8ade",
71
- "node-v26.8.1-linuxstatic-arm64": "abd9183a89cf8481522709c81eec3a3721e84f7ae95e2365185bfd31a782df24",
72
- "node-v26.8.1-linuxstatic-x64": "5e20b2bfcda9e3ab4a3aae9556dde075990b3ec1145f34f97c73cbc84ff78053",
73
- "node-v26.8.1-macos-arm64": "1654dabb004d29ef7472c6e014df9096dac4676b43056fcb1521bd019208fa02",
74
- "node-v26.8.1-macos-x64": "8bad6b3b6971114dc6c1b01718f6d51b5749b02133019a6c1b45c25a69a2c422",
75
- "node-v26.8.1-win-arm64": "3a98ead25ffc60a294a864bc9b06df222586e00a68fd40f8f333056918cbde49",
76
- "node-v26.8.1-win-x64": "e03d5f8f4cda62052fbdb93e9c4df8c3828afb2d201ed66ce43fab742285725e"
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg-fetch",
3
- "version": "3.6.6",
3
+ "version": "3.6.7",
4
4
  "description": "Compiles and stores base binaries for pkg",
5
5
  "main": "lib-es5/index.js",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  diff --git node/common.gypi node/common.gypi
2
- index 0ffa5b1371..6f04eb354f 100644
2
+ index 704eacfc18..ce83204875 100644
3
3
  --- node/common.gypi
4
4
  +++ node/common.gypi
5
5
  @@ -192,7 +192,7 @@
@@ -418,7 +418,7 @@ index 0178607289..88c8c2b852 100644
418
418
  }
419
419
  }
420
420
  diff --git node/lib/child_process.js node/lib/child_process.js
421
- index 779aebab83..d99cb66f88 100644
421
+ index e72461ea5f..90dd6938a4 100644
422
422
  --- node/lib/child_process.js
423
423
  +++ node/lib/child_process.js
424
424
  @@ -171,7 +171,7 @@ function fork(modulePath, args = [], options) {
@@ -507,10 +507,10 @@ index 4bd752be19..d2a7c76d7b 100644
507
507
  // Only set cache when `internalModuleStat(filename)` succeeds.
508
508
  statCache.set(filename, result);
509
509
  diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
510
- index 968c3c5701..1c7b01a3f2 100644
510
+ index 9cf3e64e90..99ee29a113 100644
511
511
  --- node/lib/internal/modules/package_json_reader.js
512
512
  +++ node/lib/internal/modules/package_json_reader.js
513
- @@ -120,17 +120,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
513
+ @@ -121,17 +121,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
514
514
  * @returns {PackageConfig}
515
515
  */
516
516
  function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
@@ -543,7 +543,7 @@ index 968c3c5701..1c7b01a3f2 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 a7ff17a646..57c3b75f40 100644
546
+ index d17da5d977..56e0ab7b60 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 {
@@ -568,7 +568,7 @@ index a7ff17a646..57c3b75f40 100644
568
568
  // Expand process.argv[1] into a full path.
569
569
  const path = require('path');
570
570
  try {
571
- @@ -723,6 +728,7 @@ function loadPreloadModules() {
571
+ @@ -729,6 +734,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) {
@@ -599,23 +599,21 @@ index ae71080620..b05638de75 100644
599
599
  throw e; /* node-do-not-add-exception-line */
600
600
  }
601
601
  diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
602
- index 5e1d9149dc..1426160ac0 100644
602
+ index 31277a74d1..91306400df 100644
603
603
  --- node/src/inspector_agent.cc
604
604
  +++ node/src/inspector_agent.cc
605
- @@ -858,11 +858,6 @@ bool Agent::Start(const std::string& path,
606
- StartIoThreadAsyncCallback));
607
- uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
608
- start_io_thread_async.data = this;
609
- - if (parent_env_->should_start_debug_signal_handler()) {
610
- - // Ignore failure, SIGUSR1 won't work, but that should not block node
611
- - // start.
612
- - StartDebugSignalHandler();
613
- - }
614
-
615
- parent_env_->AddCleanupHook([](void* data) {
616
- 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) {
617
615
  diff --git node/src/node.cc node/src/node.cc
618
- index f03a4447e5..aab6cdc0ac 100644
616
+ index 92c5fd8cb6..f550d2b3cb 100644
619
617
  --- node/src/node.cc
620
618
  +++ node/src/node.cc
621
619
  @@ -356,6 +356,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
@@ -837,10 +835,10 @@ index 3295121b87..bfe838b8c1 100644
837
835
  + return adjacent(c, nargv);
838
836
  +}
839
837
  diff --git node/src/node_options.cc node/src/node_options.cc
840
- index 9435a20299..d2180da55c 100644
838
+ index 9ccad939f1..ad49b989f2 100644
841
839
  --- node/src/node_options.cc
842
840
  +++ node/src/node_options.cc
843
- @@ -457,6 +457,7 @@ void Parse(
841
+ @@ -474,6 +474,7 @@ void Parse(
844
842
  // TODO(addaleax): Make that unnecessary.
845
843
 
846
844
  DebugOptionsParser::DebugOptionsParser() {
@@ -849,7 +847,7 @@ index 9435a20299..d2180da55c 100644
849
847
  "set host:port for inspector",
850
848
  &DebugOptions::host_port,
851
849
  diff --git node/tools/icu/icu-generic.gyp node/tools/icu/icu-generic.gyp
852
- index f49b4ddba7..eb1e4c0f9b 100644
850
+ index c4e8c6fbb9..b2cba7b56b 100644
853
851
  --- node/tools/icu/icu-generic.gyp
854
852
  +++ node/tools/icu/icu-generic.gyp
855
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 fbd628370c..643550be70 100644
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 0e3e04af0d..6efe7cfe78 100644
367
+ index ac7188048b..b5db10168f 100644
368
368
  --- node/lib/child_process.js
369
369
  +++ node/lib/child_process.js
370
- @@ -171,7 +171,7 @@ function fork(modulePath, args = [], options) {
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 554746b6e2..3cc2836c83 100644
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 554746b6e2..3cc2836c83 100644
445
445
  const result = statCache.get(filename);
446
446
  if (result !== undefined) { return result; }
447
447
  }
448
- - const result = internalFsBinding.internalModuleStat(filename);
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 554746b6e2..3cc2836c83 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 c33cf166f5..1a8aae1380 100644
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
- @@ -121,17 +121,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
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 = modulesBinding.readPackageJSON(
465
+ - const parsed = loaderMethods.readPackageJSON(
466
466
  - jsonPath,
467
467
  - isESM,
468
468
  - base == null ? undefined : `${base}`,
@@ -474,13 +474,13 @@ index c33cf166f5..1a8aae1380 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: "utf8" }).trim());
477
+ + const json = JSONParse(fs.readFileSync(jsonPath, { encoding: 'utf8' }).trim());
478
478
  + result = deserializePackageJSON(jsonPath, [
479
- + json['name'],
480
- + json['main'],
481
- + json['type'],
482
- + json['imports'],
483
- + json['exports'],
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 c33cf166f5..1a8aae1380 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 59c63d59ed..fc905d26d9 100644
492
+ index 96c6a5c757..15ca99fc18 100644
493
493
  --- node/lib/internal/process/pre_execution.js
494
494
  +++ node/lib/internal/process/pre_execution.js
495
- @@ -42,7 +42,11 @@ const {
495
+ @@ -44,7 +44,11 @@ const {
496
496
  runDeserializeCallbacks,
497
497
  } = require('internal/v8/startup_snapshot');
498
498
 
@@ -504,17 +504,17 @@ index 59c63d59ed..fc905d26d9 100644
504
504
  return prepareExecution({
505
505
  expandArgv1,
506
506
  initializeModules,
507
- @@ -287,7 +291,8 @@ function patchProcessObject(expandArgv1) {
508
- let mainEntry;
509
- // If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
510
- // the entry point.
511
- - if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-') {
512
- + if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-' &&
513
- + process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT') {
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
- @@ -779,6 +784,7 @@ function loadPreloadModules() {
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 4bb34e56bc..668571ccd0 100644
548
+ index 22506e26b3..9b7b6beb7f 100644
549
549
  --- node/src/inspector_agent.cc
550
550
  +++ node/src/inspector_agent.cc
551
- @@ -863,11 +863,6 @@ bool Agent::Start(const std::string& path,
552
- StartIoThreadAsyncCallback));
553
- uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
554
- start_io_thread_async.data = this;
555
- - if (parent_env_->should_start_debug_signal_handler()) {
556
- - // Ignore failure, SIGUSR1 won't work, but that should not block node
557
- - // start.
558
- - StartDebugSignalHandler();
559
- - }
560
-
561
- parent_env_->AddCleanupHook([](void* data) {
562
- Environment* env = static_cast<Environment*>(data);
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 0028263441..8a9e06434c 100644
572
+ index 163070b501..78bc5cf490 100644
565
573
  --- node/src/node.cc
566
574
  +++ node/src/node.cc
567
- @@ -356,6 +356,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
575
+ @@ -357,6 +357,8 @@ MaybeLocal<Value> StartExecution(Environment* env,
568
576
  return env->RunSnapshotDeserializeMain();
569
577
  }
570
578
 
@@ -573,7 +581,7 @@ index 0028263441..8a9e06434c 100644
573
581
  if (env->worker_context() != nullptr) {
574
582
  return StartExecution(env, "internal/main/worker_thread");
575
583
  }
576
- @@ -580,14 +582,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
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 0028263441..8a9e06434c 100644
589
597
  }
590
598
 
591
599
  diff --git node/src/node_contextify.cc node/src/node_contextify.cc
592
- index 0d1e7efe90..195a570872 100644
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;
@@ -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 1a9302220d..2d011a811c 100644
794
+ index c80ef56390..7aa858f51c 100644
787
795
  --- node/src/node_options.cc
788
796
  +++ node/src/node_options.cc
789
- @@ -466,6 +466,7 @@ void Parse(
797
+ @@ -631,6 +631,7 @@ void Parse(
790
798
  // TODO(addaleax): Make that unnecessary.
791
799
 
792
800
  DebugOptionsParser::DebugOptionsParser() {
@@ -1,7 +1,7 @@
1
1
  {
2
- "v26.8.1": ["node.v26.8.1.cpp.patch"],
3
- "v24.20.0": ["node.v24.20.0.cpp.patch"],
4
- "v22.23.2": ["node.v22.23.2.cpp.patch"],
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"],