@yao-pkg/pkg-fetch 3.5.19 → 3.5.21

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.
@@ -21,17 +21,17 @@
21
21
  "node-v16.20.2-win-arm64": "7514915e02aedfbdc9f87ede04f1f251b014e312e3e184d5b94b42aeb28c2485",
22
22
  "node-v16.20.2-win-x64": "272729724993ce07b37d328718a0152e50ec5c9d27aa972975c09b75604c0dca",
23
23
  "node-v16.20.2-macos-arm64": "3d04eb7ddd8b614b888eeb1caa6e64a068b665ab4a26dd064051973ae5842a85",
24
- "node-v18.20.6-alpine-arm64": "281930d5ef29947b4753beacebfb73a40999434d3bd00e433a949c4f5bf0930c",
25
- "node-v18.20.6-alpine-x64": "8ba2556f12778970132aa53c0fb0f1fe656e2571c322ea062fd0ac7183f7323c",
26
- "node-v18.20.6-linux-arm64": "59dd11b5b46cea5be603f81fff06a5d2b2ffe64d91b98bf38cef7d806de3287f",
27
- "node-v18.20.6-linux-x64": "8970839230fee12effe6e67760d5853b51de2bba2c76eed9aff4aa568584d6a3",
28
- "node-v18.20.6-linuxstatic-arm64": "660ba7ac0cd04d55dfe82f2c1d19610fe99bab22c6081ea9efcb7bd9a66cffd8",
29
- "node-v18.20.6-linuxstatic-armv7": "9aeecde83542eb8483266558268c5d8347f28b829ed51272aa66f0b1daeeb90e",
30
- "node-v18.20.6-linuxstatic-x64": "06a576aa867ad91c05cfd5686a1c68ff5289ead50016bef09f8aa1d9cb010e90",
31
- "node-v18.20.6-macos-arm64": "1e40e96cf8973b37cffaca273e32fd813e02d1a4489b0e2e7f5bef6c61d31122",
32
- "node-v18.20.6-macos-x64": "80a39eb08e1c84e3b67896150744ab7d4c1f3e59032ecd02275d6decfb7bf11a",
33
- "node-v18.20.6-win-arm64": "28dba5ea277752cedd6bfffc102cc0a09b73a635e42d062a5b2f597a9e01a98c",
34
- "node-v18.20.6-win-x64": "7b6a456613ca09dacf0755118daa498965828261029640d009f224dcd96d1737",
24
+ "node-v18.20.8-alpine-arm64": "c7f20847fbfd765517612647593c7767331a318d2b229ddac2b4afd7d13b78d0",
25
+ "node-v18.20.8-alpine-x64": "3b24c6f571681046a6ed1b42752b21a41e10e8c7ac19416b9571927cc10f4a49",
26
+ "node-v18.20.8-linux-arm64": "63f58415622e601d0febd4c6278656b6a69022def646cd6d8f3d01e9c32bf928",
27
+ "node-v18.20.8-linux-x64": "0121b3c810db3f5e47028f0b1e2294a1a52a2aa20923c037247e39c82be0f789",
28
+ "node-v18.20.8-linuxstatic-arm64": "ac03e112f9229126e62924f1fefbb44c54f5fbbb4827d5ffa6243d3b8e81dfa4",
29
+ "node-v18.20.8-linuxstatic-armv7": "4c96d99319e850887d01cb63500e34f5db3b64944b3644f4ed5c94ae2be5b625",
30
+ "node-v18.20.8-linuxstatic-x64": "16e25c30e3a4d03a18e21bcd41b6980c65f837425d485e3f5f68c8362bad0625",
31
+ "node-v18.20.8-macos-arm64": "d3f8f8966ceb4cea5447edacda9d2f151e97e06baf21a3fcba9d7a7e8470cee9",
32
+ "node-v18.20.8-macos-x64": "f2cf139bfe3501d39d22b48a069f9ceb24942b0cdc001a0bc30ea3a68fbcc6b3",
33
+ "node-v18.20.8-win-arm64": "dd56454cfc9292f047413657c8b997006f27ecda8cd7f7dd38acf8d22317e743",
34
+ "node-v18.20.8-win-x64": "4d45cdfbcba3de3f6c0ddcd78251179b9d04dd2fcb2dba2fb052940a2821eb39",
35
35
  "node-v20.18.2-alpine-arm64": "17fe886df87970888c5bd858aa79846f7087219c6409e3c5c77f04322850efcb",
36
36
  "node-v20.18.2-alpine-x64": "9dc46c3cc2395d464a00f5f31d800007ff99dbf9fc6edd646a57cf0c68efe7c5",
37
37
  "node-v20.18.2-linux-arm64": "e69be4a9a1c90f21b278ae8265528b58f415a86d0a7acfe25a77a791237da79f",
@@ -43,15 +43,15 @@
43
43
  "node-v20.18.2-macos-x64": "68f69f407965a15adc3bf58fdb052f455c0ab7c836883372e00d15f70cbc5c1b",
44
44
  "node-v20.18.2-win-arm64": "655fb0cd72e6547a78422914f895081c4176dfbc742cf88ab235c6c8c1e07275",
45
45
  "node-v20.18.2-win-x64": "fe7ea820ac3ef081bc97efeb67fc746272bb6d1eeca1690886356effbbd31350",
46
- "node-v22.13.1-alpine-arm64": "d19ce5d5686ebbe6eaf807422d6cd8dd97627b5755c6e479c66ff1d37829fcc0",
47
- "node-v22.13.1-alpine-x64": "dc8a8c04deaa3449177f564af945288e88726f945c62a79e107509f20cc00ea5",
48
- "node-v22.13.1-linux-arm64": "fcd0d05bb5002caf842be2293344dbe1c992ad341760bae2030d799e38fecceb",
49
- "node-v22.13.1-linux-x64": "3751bff61318b4f0b482577e4dce38ae9c2612330b45dae0a7aed6cdba692951",
50
- "node-v22.13.1-linuxstatic-arm64": "fa557f50d3803d9f30606cef376289b07cfb6109a932ed070ef280632e7476a7",
51
- "node-v22.13.1-linuxstatic-armv7": "bd13ee93bccf40d4ef596529bd0e0867de4a479d77e36d28961d3701cfab4c3b",
52
- "node-v22.13.1-linuxstatic-x64": "808e29d1c4171abd61594a42bf2192d796d65166acd55234be23db1900cd4ed9",
53
- "node-v22.13.1-macos-arm64": "f787ef3975dceb4422ae076de393714324fb496c16d9a4ec72fe1d736961b52c",
54
- "node-v22.13.1-macos-x64": "17e8418231185632bfec926af35be17cf077685721151219056b9cc96184aa66",
55
- "node-v22.13.1-win-arm64": "562fcaee12ae69c3f2a7e5cb346aee18e40602ce8cdd3d9d0129283e68f9e228",
56
- "node-v22.13.1-win-x64": "4d30d3898942abf63df8e9080a5aecf4c2d7849183004d567f9fbe7e3be5ccaa"
46
+ "node-v22.14.0-alpine-arm64": "670280accb8df063110e8cb57a9888c341ad4a0dc5329d8b2bed2b962a468074",
47
+ "node-v22.14.0-alpine-x64": "2c3d9262aad683763a3183ac3928d1f86082d9e33a893c78ce24ae02c1f73866",
48
+ "node-v22.14.0-linux-arm64": "cc3dffaacc4bdea5fb731c8da5d05def39db35edc284c8697e0e7056f7f3fc72",
49
+ "node-v22.14.0-linux-x64": "e6ce19b1662ba0ca3bb814625e30d817a63c7f03b3d9dbdf9574e4204eba758b",
50
+ "node-v22.14.0-linuxstatic-arm64": "8b43a21c72fb8f7c2b31a293e14f83cb92ccfce0ab076109a345533f887133b0",
51
+ "node-v22.14.0-linuxstatic-armv7": "14144a08e7fe24fbc4beeee308b0e6a95729d41fdcbc55003ce439e345a156b6",
52
+ "node-v22.14.0-linuxstatic-x64": "ae7d1a8a6934d86e75405210aa32ec1a7210667e9a154e2331a6a3753bad8633",
53
+ "node-v22.14.0-macos-arm64": "ddf5a3a05d6744fe824c67293116246c91597152f189952f3b418e25734eedb7",
54
+ "node-v22.14.0-macos-x64": "9fe740a4ee5540a06007780ba1acdfa63c9334c9c91b9f5fc3ada23c50e7530e",
55
+ "node-v22.14.0-win-arm64": "d974a8f37d0ce0ec9b21ea5e2fc5bf5fd074674b51657d863aef59e1981edca2",
56
+ "node-v22.14.0-win-x64": "44b59e0e44e358ecfd6f3696ffacf67d0491c6037eb2cc5343813f70884523d7"
57
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg-fetch",
3
- "version": "3.5.19",
3
+ "version": "3.5.21",
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 ec92c9df4c..8c1e94fca2 100644
2
+ index 1b45f13453..a5ad9e716c 100644
3
3
  --- node/common.gypi
4
4
  +++ node/common.gypi
5
5
  @@ -174,7 +174,7 @@
@@ -315,10 +315,10 @@ index 0000000000..a697294fdf
315
315
  + }());
316
316
  +}());
317
317
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
318
- index 236b248404..a506611d2f 100644
318
+ index 62c33730ed..555911bf4c 100644
319
319
  --- node/lib/internal/modules/cjs/loader.js
320
320
  +++ node/lib/internal/modules/cjs/loader.js
321
- @@ -229,12 +229,16 @@ function wrapModuleLoad(request, parent, isMain) {
321
+ @@ -232,12 +232,16 @@ function wrapModuleLoad(request, parent, isMain) {
322
322
  * @param {string} filename Absolute path to the file
323
323
  */
324
324
  function stat(filename) {
@@ -337,13 +337,15 @@ index 236b248404..a506611d2f 100644
337
337
  // Only set cache when `internalModuleStat(internalFsBinding, filename)` succeeds.
338
338
  statCache.set(filename, result);
339
339
  diff --git node/lib/internal/modules/package_json_reader.js node/lib/internal/modules/package_json_reader.js
340
- index 9a9dcebb79..01fceafc31 100644
340
+ index 3c746fa0e7..c39ba93379 100644
341
341
  --- node/lib/internal/modules/package_json_reader.js
342
342
  +++ node/lib/internal/modules/package_json_reader.js
343
- @@ -80,14 +80,19 @@ function deserializePackageJSON(path, contents) {
343
+ @@ -105,17 +105,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
344
+ * @returns {PackageConfig}
345
+ */
344
346
  function read(jsonPath, { base, specifier, isESM } = kEmptyObject) {
345
- // This function will be called by both CJS and ESM, so we need to make sure
346
- // non-null attributes are converted to strings.
347
+ - // This function will be called by both CJS and ESM, so we need to make sure
348
+ - // non-null attributes are converted to strings.
347
349
  - const parsed = modulesBinding.readPackageJSON(
348
350
  - jsonPath,
349
351
  - isESM,
@@ -351,11 +353,13 @@ index 9a9dcebb79..01fceafc31 100644
351
353
  - specifier == null ? undefined : `${specifier}`,
352
354
  - );
353
355
  -
354
- - return deserializePackageJSON(jsonPath, parsed);
356
+ - const result = deserializePackageJSON(jsonPath, parsed);
357
+ -
355
358
  + const fs = require('fs');
359
+ + let result;
356
360
  + if (fs.existsSync(jsonPath)) {
357
361
  + const json = JSONParse(fs.readFileSync(jsonPath, { encoding: "utf8" }).trim());
358
- + return deserializePackageJSON(jsonPath, [
362
+ + result = deserializePackageJSON(jsonPath, [
359
363
  + json['name'],
360
364
  + json['main'],
361
365
  + json['type'],
@@ -363,13 +367,13 @@ index 9a9dcebb79..01fceafc31 100644
363
367
  + json['exports'],
364
368
  + ]);
365
369
  + } else {
366
- + return deserializePackageJSON(jsonPath, undefined);
370
+ + result = deserializePackageJSON(jsonPath, undefined);
367
371
  + }
368
- }
369
-
370
- /**
372
+ return {
373
+ __proto__: null,
374
+ ...result.data,
371
375
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
372
- index 5d67892bb8..5c4183cd30 100644
376
+ index d1c05d1717..c6c806f73c 100644
373
377
  --- node/lib/internal/process/pre_execution.js
374
378
  +++ node/lib/internal/process/pre_execution.js
375
379
  @@ -50,7 +50,11 @@ const {
@@ -394,7 +398,7 @@ index 5d67892bb8..5c4183cd30 100644
394
398
  // Expand process.argv[1] into a full path.
395
399
  const path = require('path');
396
400
  try {
397
- @@ -718,6 +723,7 @@ function loadPreloadModules() {
401
+ @@ -726,6 +731,7 @@ function loadPreloadModules() {
398
402
  // For user code, we preload modules if `-r` is passed
399
403
  const preloadModules = getOptionValue('--require');
400
404
  if (preloadModules && preloadModules.length > 0) {
@@ -425,10 +429,10 @@ index ae71080620..b05638de75 100644
425
429
  throw e; /* node-do-not-add-exception-line */
426
430
  }
427
431
  diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
428
- index bb39a0cb42..5fa6cb65cc 100644
432
+ index be767c1825..14478899c4 100644
429
433
  --- node/src/inspector_agent.cc
430
434
  +++ node/src/inspector_agent.cc
431
- @@ -766,11 +766,6 @@ bool Agent::Start(const std::string& path,
435
+ @@ -796,11 +796,6 @@ bool Agent::Start(const std::string& path,
432
436
  StartIoThreadAsyncCallback));
433
437
  uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
434
438
  start_io_thread_async.data = this;
@@ -469,10 +473,10 @@ index f4365c0eda..f89c77fe44 100644
469
473
  }
470
474
 
471
475
  diff --git node/src/node_contextify.cc node/src/node_contextify.cc
472
- index 5f4529262a..4ecfaf0513 100644
476
+ index e57880c5e9..32091f8798 100644
473
477
  --- node/src/node_contextify.cc
474
478
  +++ node/src/node_contextify.cc
475
- @@ -85,6 +85,7 @@ using v8::Symbol;
479
+ @@ -86,6 +86,7 @@ using v8::Symbol;
476
480
  using v8::Uint32;
477
481
  using v8::UnboundScript;
478
482
  using v8::Value;
@@ -480,7 +484,7 @@ index 5f4529262a..4ecfaf0513 100644
480
484
 
481
485
  // The vm module executes code in a sandboxed environment with a different
482
486
  // global object than the rest of the code. This is achieved by applying
483
- @@ -981,13 +982,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
487
+ @@ -982,13 +983,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
484
488
  Local<ArrayBufferView> cached_data_buf;
485
489
  bool produce_cached_data = false;
486
490
  Local<Context> parsing_context = context;
@@ -497,7 +501,7 @@ index 5f4529262a..4ecfaf0513 100644
497
501
  CHECK(args[2]->IsNumber());
498
502
  line_offset = args[2].As<Int32>()->Value();
499
503
  CHECK(args[3]->IsNumber());
500
- @@ -1008,6 +1009,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
504
+ @@ -1009,6 +1010,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
501
505
  }
502
506
  CHECK(args[7]->IsSymbol());
503
507
  id_symbol = args[7].As<Symbol>();
@@ -508,7 +512,7 @@ index 5f4529262a..4ecfaf0513 100644
508
512
  }
509
513
 
510
514
  ContextifyScript* contextify_script =
511
- @@ -1055,6 +1060,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
515
+ @@ -1056,6 +1061,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
512
516
  ShouldNotAbortOnUncaughtScope no_abort_scope(env);
513
517
  Context::Scope scope(parsing_context);
514
518
 
@@ -519,7 +523,7 @@ index 5f4529262a..4ecfaf0513 100644
519
523
  MaybeLocal<UnboundScript> maybe_v8_script =
520
524
  ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
521
525
 
522
- @@ -1069,6 +1078,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
526
+ @@ -1070,6 +1079,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
523
527
  return;
524
528
  }
525
529
 
@@ -532,7 +536,7 @@ index 5f4529262a..4ecfaf0513 100644
532
536
  contextify_script->script_.Reset(isolate, v8_script);
533
537
  contextify_script->script_.SetWeak();
534
538
  contextify_script->object()->SetInternalField(kUnboundScriptSlot, v8_script);
535
- @@ -1101,6 +1116,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
539
+ @@ -1102,6 +1117,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
536
540
  .IsNothing())
537
541
  return;
538
542
 
@@ -654,10 +658,10 @@ index f66099a557..4048f6bd93 100644
654
658
  + return adjacent(c, nargv);
655
659
  +}
656
660
  diff --git node/src/node_options.cc node/src/node_options.cc
657
- index a03daec2bd..d979b764db 100644
661
+ index 1d81079a9b..3579a610ef 100644
658
662
  --- node/src/node_options.cc
659
663
  +++ node/src/node_options.cc
660
- @@ -312,6 +312,7 @@ void Parse(
664
+ @@ -317,6 +317,7 @@ void Parse(
661
665
  // TODO(addaleax): Make that unnecessary.
662
666
 
663
667
  DebugOptionsParser::DebugOptionsParser() {
@@ -1,7 +1,7 @@
1
1
  {
2
- "v22.13.1": ["node.v22.13.1.cpp.patch"],
2
+ "v22.14.0": ["node.v22.14.0.cpp.patch"],
3
3
  "v20.18.2": ["node.v20.18.2.cpp.patch"],
4
- "v18.20.6": ["node.v18.20.6.cpp.patch"],
4
+ "v18.20.8": ["node.v18.20.8.cpp.patch"],
5
5
  "v16.20.2": ["node.v16.20.2.cpp.patch"],
6
6
  "v14.21.3": ["node.v14.21.3.cpp.patch"],
7
7
  "v12.22.11": ["node.v12.22.11.cpp.patch"],