@yao-pkg/pkg-fetch 3.5.17 → 3.5.19

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,37 +21,37 @@
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.4-alpine-arm64": "86e3e659e02e6197a0cf42474f4abf3965ded46f8cf9e3b7a9b232c977b154c7",
25
- "node-v18.20.4-alpine-x64": "d5d0f46cfc0387ebd7772c4b200b0a0df1a33426f0025568f2fd0e3145a1f03c",
26
- "node-v18.20.4-linux-arm64": "6d5cab68b470cb2451c76ced34866f255ef8216c6f51c0a09e143d29f1bf743d",
27
- "node-v18.20.4-linux-x64": "fc4a2d84782493525d34c9c1288ed90a44db26001fd3746e6446e6fa385f8084",
28
- "node-v18.20.4-linuxstatic-arm64": "69832ff23792e0eae34158231179639c227bdc33ea8ad66272fafb7d8fa7f907",
29
- "node-v18.20.4-linuxstatic-armv7": "256b885167bc43c37b04343b31ee081e6e8021cd698706361085563dff80d15d",
30
- "node-v18.20.4-linuxstatic-x64": "d4ae1354280d6612f720e5654b33efe94b5c3d503ac12ea643738927f655ff53",
31
- "node-v18.20.4-macos-arm64": "c94ba6e603222f032b1afbc4fc46556ad6a8f0eb777ddd2e38b424c91b09adb9",
32
- "node-v18.20.4-macos-x64": "8ebc5bd8c21632bc79b5469d0b7dbbee9209214d9deee9aa1d84d0990c7e8464",
33
- "node-v18.20.4-win-arm64": "01227a811847179a943392a41cc75084d08c21e049278190eebd98cdc6bcc4e0",
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"
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",
35
+ "node-v20.18.2-alpine-arm64": "17fe886df87970888c5bd858aa79846f7087219c6409e3c5c77f04322850efcb",
36
+ "node-v20.18.2-alpine-x64": "9dc46c3cc2395d464a00f5f31d800007ff99dbf9fc6edd646a57cf0c68efe7c5",
37
+ "node-v20.18.2-linux-arm64": "e69be4a9a1c90f21b278ae8265528b58f415a86d0a7acfe25a77a791237da79f",
38
+ "node-v20.18.2-linux-x64": "c811a87d18fbbd3893848360b4ad0c8e48bf265146c7f1881f4dae5220866b88",
39
+ "node-v20.18.2-linuxstatic-arm64": "4e1d20f80e684c237d2fac3ba155bef0b382dba6480d95107dd2ebd513612a37",
40
+ "node-v20.18.2-linuxstatic-armv7": "1085e6e1b605ad4d5d8d5cfdcd86edc0cf5b63610ea2a446fa5c2a9b19fd832c",
41
+ "node-v20.18.2-linuxstatic-x64": "367bdea6bcdc877f922d1b9438ad51dd1ef26d5a3dd601fca4723851ecde5692",
42
+ "node-v20.18.2-macos-arm64": "92faed49ad7c38c6374f1f421266ea4a09ed8d9830baebc1a5bcf2f3d90f107b",
43
+ "node-v20.18.2-macos-x64": "68f69f407965a15adc3bf58fdb052f455c0ab7c836883372e00d15f70cbc5c1b",
44
+ "node-v20.18.2-win-arm64": "655fb0cd72e6547a78422914f895081c4176dfbc742cf88ab235c6c8c1e07275",
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"
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.19",
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
  },
@@ -120,5 +120,6 @@
120
120
  },
121
121
  "publishConfig": {
122
122
  "access": "public"
123
- }
123
+ },
124
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
124
125
  }
@@ -12,10 +12,10 @@ index ec92c9df4c..8c1e94fca2 100644
12
12
  'lto': ' -flto ', # Clang
13
13
  }],
14
14
  diff --git node/configure.py node/configure.py
15
- index 82916748fd..59575698b5 100755
15
+ index 4a1359d79c..ce04b2912f 100755
16
16
  --- node/configure.py
17
17
  +++ node/configure.py
18
- @@ -1289,9 +1289,7 @@ def configure_node(o):
18
+ @@ -1288,9 +1288,7 @@ def configure_node(o):
19
19
 
20
20
  o['variables']['want_separate_host_toolset'] = int(cross_compiling)
21
21
 
@@ -25,6 +25,50 @@ index 82916748fd..59575698b5 100755
25
25
  o['variables']['arm_fpu'] = options.arm_fpu or 'neon'
26
26
 
27
27
  if options.node_snapshot_main is not None:
28
+ diff --git node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
29
+ index 61a7d06cad..eeebf67796 100644
30
+ --- node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
31
+ +++ node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
32
+ @@ -33,17 +33,6 @@
33
+
34
+ #include "nghttp3_macro.h"
35
+
36
+ -#if defined(_MSC_VER) && !defined(__clang__) && \
37
+ - (defined(_M_ARM) || defined(_M_ARM64))
38
+ -unsigned int __popcnt(unsigned int x) {
39
+ - unsigned int c = 0;
40
+ - for (; x; ++c) {
41
+ - x &= x - 1;
42
+ - }
43
+ - return c;
44
+ -}
45
+ -#endif
46
+ -
47
+ int nghttp3_ringbuf_init(nghttp3_ringbuf *rb, size_t nmemb, size_t size,
48
+ const nghttp3_mem *mem) {
49
+ if (nmemb) {
50
+ diff --git node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
51
+ index c381c23127..6894bc2308 100644
52
+ --- node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
53
+ +++ node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
54
+ @@ -31,17 +31,6 @@
55
+
56
+ #include "ngtcp2_macro.h"
57
+
58
+ -#if defined(_MSC_VER) && !defined(__clang__) && \
59
+ - (defined(_M_ARM) || defined(_M_ARM64))
60
+ -static unsigned int __popcnt(unsigned int x) {
61
+ - unsigned int c = 0;
62
+ - for (; x; ++c) {
63
+ - x &= x - 1;
64
+ - }
65
+ - return c;
66
+ -}
67
+ -#endif
68
+ -
69
+ int ngtcp2_ringbuf_init(ngtcp2_ringbuf *rb, size_t nmemb, size_t size,
70
+ const ngtcp2_mem *mem) {
71
+ uint8_t *buf = ngtcp2_mem_malloc(mem, nmemb * size);
28
72
  diff --git node/deps/v8/include/v8-initialization.h node/deps/v8/include/v8-initialization.h
29
73
  index 3d59c73f7c..00b2de4524 100644
30
74
  --- node/deps/v8/include/v8-initialization.h
@@ -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(
@@ -1,5 +1,5 @@
1
1
  diff --git node/common.gypi node/common.gypi
2
- index de83a56672..840333d8eb 100644
2
+ index 62f26bb07d..1b576a65f4 100644
3
3
  --- node/common.gypi
4
4
  +++ node/common.gypi
5
5
  @@ -187,7 +187,7 @@
@@ -12,49 +12,37 @@ index de83a56672..840333d8eb 100644
12
12
  ],
13
13
  },
14
14
  diff --git node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
15
- index 38b5460837..eeebf67796 100644
15
+ index 7d3ab39bf8..67a48dee53 100644
16
16
  --- node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
17
17
  +++ node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
18
- @@ -33,17 +33,6 @@
19
-
18
+ @@ -34,10 +34,7 @@
20
19
  #include "nghttp3_macro.h"
21
20
 
22
- -#if defined(_MSC_VER) && _MSC_VER < 1941 && !defined(__clang__) && \
23
- - (defined(_M_ARM) || defined(_M_ARM64))
24
- -unsigned int __popcnt(unsigned int x) {
25
- - unsigned int c = 0;
26
- - for (; x; ++c) {
27
- - x &= x - 1;
28
- - }
29
- - return c;
30
- -}
31
- -#endif
32
- -
33
- int nghttp3_ringbuf_init(nghttp3_ringbuf *rb, size_t nmemb, size_t size,
34
- const nghttp3_mem *mem) {
35
- if (nmemb) {
21
+ static int ispow2(size_t n) {
22
+ -#if defined(_MSC_VER) && !defined(__clang__) && \
23
+ - (defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941))
24
+ - return n && !(n & (n - 1));
25
+ -#elif defined(WIN32)
26
+ +#if defined(WIN32)
27
+ return 1 == __popcnt((unsigned int)n);
28
+ #else /* !((defined(_MSC_VER) && !defined(__clang__) && (defined(_M_ARM) || \
29
+ (defined(_M_ARM64) && _MSC_VER < 1941))) || defined(WIN32)) */
36
30
  diff --git node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
37
- index ecfdeb63b3..6894bc2308 100644
31
+ index 41446739bf..69c01b4f7f 100644
38
32
  --- node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
39
33
  +++ node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
40
- @@ -31,17 +31,6 @@
41
-
42
- #include "ngtcp2_macro.h"
43
-
44
- -#if defined(_MSC_VER) && _MSC_VER < 1941 && !defined(__clang__) && \
45
- - (defined(_M_ARM) || defined(_M_ARM64))
46
- -static unsigned int __popcnt(unsigned int x) {
47
- - unsigned int c = 0;
48
- - for (; x; ++c) {
49
- - x &= x - 1;
50
- - }
51
- - return c;
52
- -}
53
- -#endif
54
- -
55
- int ngtcp2_ringbuf_init(ngtcp2_ringbuf *rb, size_t nmemb, size_t size,
56
- const ngtcp2_mem *mem) {
57
- uint8_t *buf = ngtcp2_mem_malloc(mem, nmemb * size);
34
+ @@ -33,10 +33,7 @@
35
+
36
+ #ifndef NDEBUG
37
+ static int ispow2(size_t n) {
38
+ -# if defined(_MSC_VER) && !defined(__clang__) && \
39
+ - (defined(_M_ARM) || (defined(_M_ARM64) && _MSC_VER < 1941))
40
+ - return n && !(n & (n - 1));
41
+ -# elif defined(WIN32)
42
+ +#if defined(WIN32)
43
+ return 1 == __popcnt((unsigned int)n);
44
+ # else /* !((defined(_MSC_VER) && !defined(__clang__) && (defined(_M_ARM) || \
45
+ (defined(_M_ARM64) && _MSC_VER < 1941))) || defined(WIN32)) */
58
46
  diff --git node/deps/v8/include/v8-initialization.h node/deps/v8/include/v8-initialization.h
59
47
  index d3e35d6ec5..6e9bbe3849 100644
60
48
  --- node/deps/v8/include/v8-initialization.h
@@ -259,7 +247,7 @@ index ec69ad5123..1894032344 100644
259
247
  GetHeaderValue(kReadOnlySnapshotChecksumOffset);
260
248
  if (ro_snapshot_checksum != expected_ro_snapshot_checksum) {
261
249
  diff --git node/lib/child_process.js node/lib/child_process.js
262
- index 51fc6fe995..ed019a4645 100644
250
+ index bb27670112..d175723c74 100644
263
251
  --- node/lib/child_process.js
264
252
  +++ node/lib/child_process.js
265
253
  @@ -168,7 +168,7 @@ function fork(modulePath, args = [], options) {
@@ -327,10 +315,10 @@ index 0000000000..a697294fdf
327
315
  + }());
328
316
  +}());
329
317
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
330
- index b0210e4d96..fb1e265a1f 100644
318
+ index 236b248404..a506611d2f 100644
331
319
  --- node/lib/internal/modules/cjs/loader.js
332
320
  +++ node/lib/internal/modules/cjs/loader.js
333
- @@ -230,12 +230,16 @@ function wrapModuleLoad(request, parent, isMain) {
321
+ @@ -229,12 +229,16 @@ function wrapModuleLoad(request, parent, isMain) {
334
322
  * @param {string} filename Absolute path to the file
335
323
  */
336
324
  function stat(filename) {
@@ -381,10 +369,10 @@ index 9a9dcebb79..01fceafc31 100644
381
369
 
382
370
  /**
383
371
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
384
- index 848ff7f142..9f8e125329 100644
372
+ index 5d67892bb8..5c4183cd30 100644
385
373
  --- node/lib/internal/process/pre_execution.js
386
374
  +++ node/lib/internal/process/pre_execution.js
387
- @@ -51,7 +51,11 @@ const {
375
+ @@ -50,7 +50,11 @@ const {
388
376
  runDeserializeCallbacks,
389
377
  } = require('internal/v8/startup_snapshot');
390
378
 
@@ -396,17 +384,17 @@ index 848ff7f142..9f8e125329 100644
396
384
  return prepareExecution({
397
385
  expandArgv1,
398
386
  initializeModules,
399
- @@ -243,7 +247,8 @@ function patchProcessObject(expandArgv1) {
387
+ @@ -241,7 +245,8 @@ function patchProcessObject(expandArgv1) {
388
+ let mainEntry;
400
389
  // If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
401
390
  // the entry point.
402
- if (expandArgv1 && process.argv[1] &&
403
- - !StringPrototypeStartsWith(process.argv[1], '-')) {
404
- + !StringPrototypeStartsWith(process.argv[1], '-') &&
391
+ - if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-') {
392
+ + if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-' &&
405
393
  + process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT') {
406
394
  // Expand process.argv[1] into a full path.
407
395
  const path = require('path');
408
396
  try {
409
- @@ -721,6 +726,7 @@ function loadPreloadModules() {
397
+ @@ -718,6 +723,7 @@ function loadPreloadModules() {
410
398
  // For user code, we preload modules if `-r` is passed
411
399
  const preloadModules = getOptionValue('--require');
412
400
  if (preloadModules && preloadModules.length > 0) {
@@ -415,7 +403,7 @@ index 848ff7f142..9f8e125329 100644
415
403
  Module: {
416
404
  _preloadModules,
417
405
  diff --git node/lib/vm.js node/lib/vm.js
418
- index 3eea66b3f0..86fd70ac89 100644
406
+ index ae71080620..b05638de75 100644
419
407
  --- node/lib/vm.js
420
408
  +++ node/lib/vm.js
421
409
  @@ -98,6 +98,7 @@ class Script extends ContextifyScript {
@@ -453,10 +441,10 @@ index bb39a0cb42..5fa6cb65cc 100644
453
441
  parent_env_->AddCleanupHook([](void* data) {
454
442
  Environment* env = static_cast<Environment*>(data);
455
443
  diff --git node/src/node.cc node/src/node.cc
456
- index 1a2a43bdd3..76fd756438 100644
444
+ index f4365c0eda..f89c77fe44 100644
457
445
  --- node/src/node.cc
458
446
  +++ node/src/node.cc
459
- @@ -394,6 +394,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
447
+ @@ -398,6 +398,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
460
448
  return env->RunSnapshotDeserializeMain();
461
449
  }
462
450
 
@@ -465,7 +453,7 @@ index 1a2a43bdd3..76fd756438 100644
465
453
  if (env->worker_context() != nullptr) {
466
454
  return StartExecution(env, "internal/main/worker_thread");
467
455
  }
468
- @@ -618,14 +620,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
456
+ @@ -622,14 +624,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
469
457
  }
470
458
 
471
459
  if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
@@ -666,10 +654,10 @@ index f66099a557..4048f6bd93 100644
666
654
  + return adjacent(c, nargv);
667
655
  +}
668
656
  diff --git node/src/node_options.cc node/src/node_options.cc
669
- index d3b59690e9..23b52a6e00 100644
657
+ index a03daec2bd..d979b764db 100644
670
658
  --- node/src/node_options.cc
671
659
  +++ node/src/node_options.cc
672
- @@ -307,6 +307,7 @@ void Parse(
660
+ @@ -312,6 +312,7 @@ void Parse(
673
661
  // TODO(addaleax): Make that unnecessary.
674
662
 
675
663
  DebugOptionsParser::DebugOptionsParser() {
@@ -1,7 +1,7 @@
1
1
  {
2
- "v22.11.0": ["node.v22.11.0.cpp.patch"],
3
- "v20.18.0": ["node.v20.18.0.cpp.patch"],
4
- "v18.20.4": ["node.v18.20.4.cpp.patch"],
2
+ "v22.13.1": ["node.v22.13.1.cpp.patch"],
3
+ "v20.18.2": ["node.v20.18.2.cpp.patch"],
4
+ "v18.20.6": ["node.v18.20.6.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"],