@yao-pkg/pkg-fetch 3.5.29 → 3.5.30

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,25 +43,25 @@
43
43
  "node-v20.19.5-macos-x64": "592f50151da65550e5a6125aea0aa5b4fa0214389bb4ff0516e9ae14b439d8f5",
44
44
  "node-v20.19.5-win-arm64": "0f94e2049deab1c6591626b1d16f1c03a9cd300d857b8030535978c45d8492ca",
45
45
  "node-v20.19.5-win-x64": "1dce94ce8d6f625b9129d5e21d795e11c366da77c9c4d400b4561563c5a970cc",
46
- "node-v22.20.0-alpine-arm64": "0e735cfeb93986eda0a75dcd5cb3202382d23d9d864bf6e42605798c4d4d2e62",
47
- "node-v22.20.0-alpine-x64": "9a978045a11ebb17d464acc864bbab4f8ced94079425ed26b98fee87a2fa4497",
48
- "node-v22.20.0-linux-arm64": "015fb917b8d3055c91e508afc9a3c55e703293c817f121092073b86cf8cf81a5",
49
- "node-v22.20.0-linux-x64": "ef772070ea305ffdcc45228d25deaf8b839c2a7dfd6dc45aef998deb27ffe9ab",
50
- "node-v22.20.0-linuxstatic-arm64": "841ac7dcb370a104ed436d2f4fc0bafdf5819670f88142b85d4dbd7d6605c18e",
51
- "node-v22.20.0-linuxstatic-armv7": "ff363e378dcdc80c005c88348e44474c0f3af61f675f5583b97b3a7131ac2801",
52
- "node-v22.20.0-linuxstatic-x64": "dbd9bb7e3c08be2aaace37325be1d8ed3c2830e5790b86de3234bc59f11f1165",
53
- "node-v22.20.0-macos-arm64": "f3ba7b9183ecd6f6b6194b53dfea8f0e31db95000bdbef3b602775dfad68cee6",
54
- "node-v22.20.0-macos-x64": "47d578698afdf9a0fcde29f3513bce73c5779769e22ee85cf753e1cd5e6fab5e",
55
- "node-v22.20.0-win-arm64": "66176af14ce279633ff730ef8156b21ecffd06098cd2a1f9943c05eb784d95fe",
56
- "node-v22.20.0-win-x64": "75532415b2169de05b4e034f455ceb2cfa79ae47700895270082dc0a17e848a4",
57
- "node-v24.10.0-alpine-arm64": "e97372dda5944829269015eab524402783e65b6cc3a3c197f9f2f8c320119310",
58
- "node-v24.10.0-alpine-x64": "24c7213cb7e676746c246038a1fbaa761de42f0e8e0b8df446e01d54280d469d",
59
- "node-v24.10.0-linux-arm64": "1d865ec59e9a872ad2b8779a86332ff9232d712fb0d29e63f10f7f3642f4bb10",
60
- "node-v24.10.0-linux-x64": "85ca9e740e80735a97fd45d7684b56dd0cfb53129cbf94f6dbab9df01f5e68de",
61
- "node-v24.10.0-linuxstatic-arm64": "f775137ef683fb0aceb1bc208b84d10b700afa9d5d768d319d4019d9d72dbab2",
62
- "node-v24.10.0-linuxstatic-x64": "855d964471c77a733739ac2cc8eab567cc4db483e97a7004a1dd0393ccb26769",
63
- "node-v24.10.0-macos-arm64": "781b7101061c7a745d2191afd648f6eb0aa5c7ce244f0ecd953fa10f0fcca211",
64
- "node-v24.10.0-macos-x64": "33f73456a3363dfd936f4f46b4d9956874330be0df60d59c20adc50c302c2efe",
65
- "node-v24.10.0-win-arm64": "530f4903f6ae30afa94c32733af40410152645c466d4d6bdf4e8d9e2e41c600a",
66
- "node-v24.10.0-win-x64": "bd4922118b3e25997c2c0bf7f4de8a29030faa456f4fe64e8d07d58b4bd4a9e0"
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.11.0-alpine-arm64": "a249193ef09811975dd69a15550735c3a63fade38c671c930262098d5c8f4322",
58
+ "node-v24.11.0-alpine-x64": "f6100d9a7f876993e78cbbb1b722bd485d8d1e86d15cc5eca94a9fae3e14267a",
59
+ "node-v24.11.0-linux-arm64": "defb44be15632cbef1264c52774feb005fcc08002658cd98e3d0b56a61c71dc0",
60
+ "node-v24.11.0-linux-x64": "72b3426ccb939d9849480562c6a5f48a648b4c77df2a4a793fa1a1b0b8514071",
61
+ "node-v24.11.0-linuxstatic-arm64": "c59c39228d109b0f9acdfa6ec9612305e82504901aca034c0618b8fb2c1b3467",
62
+ "node-v24.11.0-linuxstatic-x64": "15df3881b5af70482fd1057a639f1c73333a9cea67eea608135e64caff2d245b",
63
+ "node-v24.11.0-macos-arm64": "40c3a83c329182f2628295d1d403976ca51a324be5a319b3e4c4eec26222a6bc",
64
+ "node-v24.11.0-macos-x64": "69b158d0e13e5f76a15a602f2c6ba97e18ea91cfa1286b71761d58785a01ec5a",
65
+ "node-v24.11.0-win-arm64": "bfa3a46ffad1e33e04aa9056b16cbdfc552cdc22795ab54101142491cbd6a3d6",
66
+ "node-v24.11.0-win-x64": "28441c1b5f6b7b93a84766d4ba932a7bece446504c53dc46d9d0faed2a8b58c5"
67
67
  }
@@ -0,0 +1,3 @@
1
+ declare function parseAndUpdateShas(inputFile: string): void;
2
+ export { parseAndUpdateShas };
3
+ //# sourceMappingURL=parse-update-shas.d.ts.map
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg-fetch",
3
- "version": "3.5.29",
3
+ "version": "3.5.30",
4
4
  "description": "Compiles and stores base binaries for pkg",
5
5
  "main": "lib-es5/index.js",
6
6
  "license": "MIT",
@@ -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 fb669ea12e..6ad993581b 100644
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
- @@ -108,17 +108,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
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 98ed40e307..f9da878ea0 100644
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
- @@ -243,7 +247,8 @@ function patchProcessObject(expandArgv1) {
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
- @@ -725,6 +730,7 @@ function loadPreloadModules() {
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 07684482f8..0262de1cd8 100644
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 21a08a738e..ba529c2737 100644
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 ed85bf11f6..e5208d5821 100644
698
+ index 31fc23fdbf..8458d7796e 100644
699
699
  --- node/src/node_options.cc
700
700
  +++ node/src/node_options.cc
701
- @@ -311,7 +311,7 @@ void Parse(
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
- @@ -319,6 +319,7 @@ void Parse(
710
+ @@ -367,6 +367,7 @@ void Parse(
711
711
  // TODO(addaleax): Make that unnecessary.
712
712
 
713
713
  DebugOptionsParser::DebugOptionsParser() {
@@ -1,6 +1,6 @@
1
1
  {
2
- "v24.10.0": ["node.v24.10.0.cpp.patch"],
3
- "v22.20.0": ["node.v22.20.0.cpp.patch"],
2
+ "v24.11.0": ["node.v24.11.0.cpp.patch"],
3
+ "v22.21.1": ["node.v22.21.1.cpp.patch"],
4
4
  "v20.19.5": ["node.v20.19.5.cpp.patch"],
5
5
  "v18.20.8": ["node.v18.20.8.cpp.patch"],
6
6
  "v16.20.2": ["node.v16.20.2.cpp.patch"],