@yao-pkg/pkg-fetch 3.5.17 → 3.5.18

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.
@@ -32,26 +32,26 @@
32
32
  "node-v18.20.4-macos-x64": "8ebc5bd8c21632bc79b5469d0b7dbbee9209214d9deee9aa1d84d0990c7e8464",
33
33
  "node-v18.20.4-win-arm64": "01227a811847179a943392a41cc75084d08c21e049278190eebd98cdc6bcc4e0",
34
34
  "node-v18.20.4-win-x64": "53196be55b5c4f5362f04eb3a34692263df8e65d756506176269a967f5e9face",
35
- "node-v20.18.0-alpine-arm64": "6f39cbe112f78a698e70efde60b34082e621dc2921ffb0df45d61bdb47ec2612",
36
- "node-v20.18.0-alpine-x64": "1ca67baba661cc2dda4d04619e35a0e21ffe7bb62a84d282a7199f3f855ea8a1",
37
- "node-v20.18.0-linux-arm64": "e4a455deef676631d49810526140510a6097e101c784292cf320da16b2aeea71",
38
- "node-v20.18.0-linux-x64": "6c8c6e50f8d4999be9563644da61691a2c32e396c1bd0a32ada8bfe89f4ef26f",
39
- "node-v20.18.0-linuxstatic-arm64": "1a2f0ac018460f3c526c7ac9fa64bcb6c7f5777a5e866d438c218316cb41bb5d",
40
- "node-v20.18.0-linuxstatic-armv7": "6848b7620b0b75acdfed15c53c625d4b954917b8dbb9eb09af9f6f2686c0d6da",
41
- "node-v20.18.0-linuxstatic-x64": "4a223abf1e64d664e09572dbe7fef80a3bfe2d09d253f87e31ad28ae44ee76f0",
42
- "node-v20.18.0-macos-arm64": "144adae471b4ae359c24faf2eff67fcac819db081c331f888fe1ab5591438586",
43
- "node-v20.18.0-macos-x64": "12a731ab4d3814af141277daf3055d87f37156bbf1155a8775f86f85338dc7da",
44
- "node-v20.18.0-win-arm64": "b722673728baf55f0728b51f4e3565b9bd2bb6080f1047c8b7e09087eb99e5dc",
45
- "node-v20.18.0-win-x64": "46ce4bf8ac9e8f9538aee255fcda92bc1105080ee3afff517d6bf77d0256d1dc",
46
- "node-v22.11.0-alpine-arm64": "c793b3940aa4e8d7a247c837e66f4dba8ee031f58d3934964fe8af5de56fe12b",
47
- "node-v22.11.0-alpine-x64": "b526e4aa74486c89f4f4485119c0a27eea39e633a34d222e2b1040e31a8f658e",
48
- "node-v22.11.0-linux-arm64": "7a7d8c299737306c9686468a1dee41881da6f2f6df85b3fe47e5a369f7cb18de",
49
- "node-v22.11.0-linux-x64": "3a1766299b785f009989e97cac544f39dd3a74bc43e281af92ea09eeaefc8123",
50
- "node-v22.11.0-linuxstatic-arm64": "50ab12c1b6c2625f19a246121b26e5f10d0263e463e017197acebeada29cb8c4",
51
- "node-v22.11.0-linuxstatic-armv7": "378971f98ff6874a3f0fa50b9318ebf38c9641816df5af29aae3d942bee91594",
52
- "node-v22.11.0-linuxstatic-x64": "00619f106e9c0c43676073215ebd89768ca539bd10ab6089568cc6c40cf61d53",
53
- "node-v22.11.0-macos-arm64": "f0531b218cac28defbe10519d0596c0d50b8cfd413af437707ab902ef44c7164",
54
- "node-v22.11.0-macos-x64": "3d9b044cfb553ba9f846251ad5d7280291f138c044c72ae7666dce42fc7a1203",
55
- "node-v22.11.0-win-arm64": "9067a99fc3b5c594cecf3e9d93654d94bfb7307eff30edb4ed65fa92b2f16be7",
56
- "node-v22.11.0-win-x64": "1a913852cca8f40babd4409dc2deceeeb369733bae83f58b83f54777fb8a5893"
35
+ "node-v20.18.1-alpine-arm64": "6ced10239bbf81076b117897612fb406657545a651fe041a1d3f920f764df5dc",
36
+ "node-v20.18.1-alpine-x64": "fa89b95da96d4addfc776712cc1bbb9475c1c0c4db9d2f61a6dc5cf75fcd0cb7",
37
+ "node-v20.18.1-linux-arm64": "0dfacc1610ea9029161db13dc7ffb05bcc8425f20a8f0fc1cd53317db3215ec6",
38
+ "node-v20.18.1-linux-x64": "c0abaeea8e1bbb0dd3d35471fb7f3c2cbeb498fb9ddf2153686b400dfa0eceb1",
39
+ "node-v20.18.1-linuxstatic-arm64": "ec08472fcc25a6359325c12ba1fe6a2cb689f150afe00c422db4d60247acbdaa",
40
+ "node-v20.18.1-linuxstatic-armv7": "096b72d333ee994eb2ffa9e37baea72e9ae40b36ed635872bb669f1ccc5fe06d",
41
+ "node-v20.18.1-linuxstatic-x64": "3fd0a766e9cd511ffa314184e1494108cd9d8234bbfe2942f91493b3c99c1ae2",
42
+ "node-v20.18.1-macos-arm64": "8e35680f0f148a1d3cedd91abc81f8b6b7b28d896935d2df5c72995da5ca7b66",
43
+ "node-v20.18.1-macos-x64": "d6a7687a11dd46f4f6eb39bdb1ae1ab735734cb4b3c6ceb1b40336aed420e424",
44
+ "node-v20.18.1-win-arm64": "0306f809d3e118a1af8278a6b2a96d88920fd8fd441988b07ab81040c4abea9c",
45
+ "node-v20.18.1-win-x64": "f4c59f1f492a55a16392b3a50030f73baf0c3af8c8ca7b7447fee603edd49249",
46
+ "node-v22.12.0-alpine-arm64": "0b4c2c18402725fbba35c9e412e3658811ac298e3c58130e8f7553a5d66a158e",
47
+ "node-v22.12.0-alpine-x64": "c6ce5dc256c8eec67835be4273560890e53e970a3154911b7a147f27b9b4585e",
48
+ "node-v22.12.0-linux-arm64": "164425cb0f9c8e654bc10beaaaec4c640d354f302624f534a480f9752e7bdb38",
49
+ "node-v22.12.0-linux-x64": "1d9396ab50895ad52daf6f32c69cfbcdbb0be68186c3f59585185c21208c0d48",
50
+ "node-v22.12.0-linuxstatic-arm64": "a551921c097d293d68a30de6f931fb5512e1b1a667f874ce003b543395f0bf3d",
51
+ "node-v22.12.0-linuxstatic-armv7": "9b100c5360686e84f787d810a2ce595ca176be0d31fdf6ab3cdc76db37d9fd4b",
52
+ "node-v22.12.0-linuxstatic-x64": "63f1327d1e5ff30e5ca7c0a620512206a1d6a87099ce714d83089e65a070adcf",
53
+ "node-v22.12.0-macos-arm64": "9c4909df5024c81adbfc0a6443b76865279a6c196f258529a41a3c6d1e9eb674",
54
+ "node-v22.12.0-macos-x64": "94478663939ac0278ebc7a5bab09c43c3d4966a9fafe8f9619e0d3affcf9e12d",
55
+ "node-v22.12.0-win-arm64": "00a23ece4893ab01cf6cc1265a2b1255a6091389be341b4ff9db1c9e1c74cfa8",
56
+ "node-v22.12.0-win-x64": "0dbbb0ea205d92289a41762d4090a2c6e6de6fbda70bd0c6390999257d030ca9"
57
57
  }
package/lib-es5/system.js CHANGED
@@ -142,7 +142,7 @@ function getTargetArchs() {
142
142
  return [arch];
143
143
  }
144
144
  function getKnownArchs() {
145
- return ['x64', 'x86', 'armv7', 'arm64', 'ppc64', 's390x'];
145
+ return ['x64', 'x86', 'armv7', 'arm64', 'ppc64', 's390x', 'riscv64', 'loong64'];
146
146
  }
147
147
  exports.hostAbi = getHostAbi();
148
148
  exports.hostPlatform = getHostPlatform();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yao-pkg/pkg-fetch",
3
- "version": "3.5.17",
3
+ "version": "3.5.18",
4
4
  "description": "Compiles and stores base binaries for pkg",
5
5
  "main": "lib-es5/index.js",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  "lint-staged": "^10.5.4",
45
45
  "prettier": "^2.4.1",
46
46
  "release-it": "^16.2.1",
47
- "rimraf": "^3.0.2",
47
+ "rimraf": "^6.0.1",
48
48
  "simple-git-hooks": ">=2.7.0",
49
49
  "typescript": "^4.4.4"
50
50
  },
@@ -194,7 +194,7 @@ index c83e8e4581..8cb451e147 100644
194
194
  uint32_t max_payload_length = this->size_ - kHeaderSize;
195
195
  if (payload_length > max_payload_length) {
196
196
  diff --git node/lib/child_process.js node/lib/child_process.js
197
- index 48870b35ad..d2aca054b2 100644
197
+ index cc81cb373d..e06da1048a 100644
198
198
  --- node/lib/child_process.js
199
199
  +++ node/lib/child_process.js
200
200
  @@ -169,7 +169,7 @@ function fork(modulePath, args = [], options) {
@@ -288,7 +288,7 @@ index 88c079d10d..a7eaca0574 100644
288
288
  const permission = require('internal/process/permission');
289
289
  const { kEmptyObject } = require('internal/util');
290
290
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
291
- index ea7afd52fa..ea70fecf5d 100644
291
+ index a05d284605..4186f13d60 100644
292
292
  --- node/lib/internal/process/pre_execution.js
293
293
  +++ node/lib/internal/process/pre_execution.js
294
294
  @@ -51,7 +51,11 @@ const {
@@ -572,7 +572,7 @@ index f66099a557..4048f6bd93 100644
572
572
  + return adjacent(c, nargv);
573
573
  +}
574
574
  diff --git node/src/node_options.cc node/src/node_options.cc
575
- index dba59c5560..cb661fc7c4 100644
575
+ index e325b082de..19b6782e29 100644
576
576
  --- node/src/node_options.cc
577
577
  +++ node/src/node_options.cc
578
578
  @@ -307,6 +307,7 @@ void Parse(
@@ -259,7 +259,7 @@ index ec69ad5123..1894032344 100644
259
259
  GetHeaderValue(kReadOnlySnapshotChecksumOffset);
260
260
  if (ro_snapshot_checksum != expected_ro_snapshot_checksum) {
261
261
  diff --git node/lib/child_process.js node/lib/child_process.js
262
- index 51fc6fe995..ed019a4645 100644
262
+ index bb27670112..d175723c74 100644
263
263
  --- node/lib/child_process.js
264
264
  +++ node/lib/child_process.js
265
265
  @@ -168,7 +168,7 @@ function fork(modulePath, args = [], options) {
@@ -327,10 +327,10 @@ index 0000000000..a697294fdf
327
327
  + }());
328
328
  +}());
329
329
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
330
- index b0210e4d96..fb1e265a1f 100644
330
+ index d6897f84d2..48ae93e1ce 100644
331
331
  --- node/lib/internal/modules/cjs/loader.js
332
332
  +++ node/lib/internal/modules/cjs/loader.js
333
- @@ -230,12 +230,16 @@ function wrapModuleLoad(request, parent, isMain) {
333
+ @@ -231,12 +231,16 @@ function wrapModuleLoad(request, parent, isMain) {
334
334
  * @param {string} filename Absolute path to the file
335
335
  */
336
336
  function stat(filename) {
@@ -381,10 +381,10 @@ index 9a9dcebb79..01fceafc31 100644
381
381
 
382
382
  /**
383
383
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
384
- index 848ff7f142..9f8e125329 100644
384
+ index f46a621e52..ce0c2c5106 100644
385
385
  --- node/lib/internal/process/pre_execution.js
386
386
  +++ node/lib/internal/process/pre_execution.js
387
- @@ -51,7 +51,11 @@ const {
387
+ @@ -50,7 +50,11 @@ const {
388
388
  runDeserializeCallbacks,
389
389
  } = require('internal/v8/startup_snapshot');
390
390
 
@@ -396,17 +396,17 @@ index 848ff7f142..9f8e125329 100644
396
396
  return prepareExecution({
397
397
  expandArgv1,
398
398
  initializeModules,
399
- @@ -243,7 +247,8 @@ function patchProcessObject(expandArgv1) {
399
+ @@ -241,7 +245,8 @@ function patchProcessObject(expandArgv1) {
400
+ let mainEntry;
400
401
  // If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
401
402
  // the entry point.
402
- if (expandArgv1 && process.argv[1] &&
403
- - !StringPrototypeStartsWith(process.argv[1], '-')) {
404
- + !StringPrototypeStartsWith(process.argv[1], '-') &&
403
+ - if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-') {
404
+ + if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-' &&
405
405
  + process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT') {
406
406
  // Expand process.argv[1] into a full path.
407
407
  const path = require('path');
408
408
  try {
409
- @@ -721,6 +726,7 @@ function loadPreloadModules() {
409
+ @@ -719,6 +724,7 @@ function loadPreloadModules() {
410
410
  // For user code, we preload modules if `-r` is passed
411
411
  const preloadModules = getOptionValue('--require');
412
412
  if (preloadModules && preloadModules.length > 0) {
@@ -666,7 +666,7 @@ index f66099a557..4048f6bd93 100644
666
666
  + return adjacent(c, nargv);
667
667
  +}
668
668
  diff --git node/src/node_options.cc node/src/node_options.cc
669
- index d3b59690e9..23b52a6e00 100644
669
+ index 7d1db6bcdc..9b3fb39811 100644
670
670
  --- node/src/node_options.cc
671
671
  +++ node/src/node_options.cc
672
672
  @@ -307,6 +307,7 @@ void Parse(
@@ -1,6 +1,6 @@
1
1
  {
2
- "v22.11.0": ["node.v22.11.0.cpp.patch"],
3
- "v20.18.0": ["node.v20.18.0.cpp.patch"],
2
+ "v22.12.0": ["node.v22.12.0.cpp.patch"],
3
+ "v20.18.1": ["node.v20.18.1.cpp.patch"],
4
4
  "v18.20.4": ["node.v18.20.4.cpp.patch"],
5
5
  "v16.20.2": ["node.v16.20.2.cpp.patch"],
6
6
  "v14.21.3": ["node.v14.21.3.cpp.patch"],