@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.
- package/lib-es5/expected-shas.json +33 -33
- package/lib-es5/system.js +1 -1
- package/package.json +4 -3
- package/patches/{node.v18.20.4.cpp.patch → node.v18.20.6.cpp.patch} +46 -2
- package/patches/{node.v20.18.0.cpp.patch → node.v20.18.2.cpp.patch} +3 -3
- package/patches/{node.v22.11.0.cpp.patch → node.v22.13.1.cpp.patch} +41 -53
- package/patches/patches.json +3 -3
|
@@ -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.
|
|
25
|
-
"node-v18.20.
|
|
26
|
-
"node-v18.20.
|
|
27
|
-
"node-v18.20.
|
|
28
|
-
"node-v18.20.
|
|
29
|
-
"node-v18.20.
|
|
30
|
-
"node-v18.20.
|
|
31
|
-
"node-v18.20.
|
|
32
|
-
"node-v18.20.
|
|
33
|
-
"node-v18.20.
|
|
34
|
-
"node-v18.20.
|
|
35
|
-
"node-v20.18.
|
|
36
|
-
"node-v20.18.
|
|
37
|
-
"node-v20.18.
|
|
38
|
-
"node-v20.18.
|
|
39
|
-
"node-v20.18.
|
|
40
|
-
"node-v20.18.
|
|
41
|
-
"node-v20.18.
|
|
42
|
-
"node-v20.18.
|
|
43
|
-
"node-v20.18.
|
|
44
|
-
"node-v20.18.
|
|
45
|
-
"node-v20.18.
|
|
46
|
-
"node-v22.
|
|
47
|
-
"node-v22.
|
|
48
|
-
"node-v22.
|
|
49
|
-
"node-v22.
|
|
50
|
-
"node-v22.
|
|
51
|
-
"node-v22.
|
|
52
|
-
"node-v22.
|
|
53
|
-
"node-v22.
|
|
54
|
-
"node-v22.
|
|
55
|
-
"node-v22.
|
|
56
|
-
"node-v22.
|
|
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.
|
|
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": "^
|
|
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
|
|
15
|
+
index 4a1359d79c..ce04b2912f 100755
|
|
16
16
|
--- node/configure.py
|
|
17
17
|
+++ node/configure.py
|
|
18
|
-
@@ -
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
@@ -
|
|
19
|
-
|
|
18
|
+
@@ -34,10 +34,7 @@
|
|
20
19
|
#include "nghttp3_macro.h"
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
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
|
-
@@ -
|
|
41
|
-
|
|
42
|
-
#
|
|
43
|
-
|
|
44
|
-
-#if defined(_MSC_VER) &&
|
|
45
|
-
- (defined(_M_ARM) || defined(_M_ARM64))
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
|
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
|
|
318
|
+
index 236b248404..a506611d2f 100644
|
|
331
319
|
--- node/lib/internal/modules/cjs/loader.js
|
|
332
320
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
333
|
-
@@ -
|
|
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
|
|
372
|
+
index 5d67892bb8..5c4183cd30 100644
|
|
385
373
|
--- node/lib/internal/process/pre_execution.js
|
|
386
374
|
+++ node/lib/internal/process/pre_execution.js
|
|
387
|
-
@@ -
|
|
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
|
-
@@ -
|
|
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
|
-
|
|
403
|
-
|
|
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
|
-
@@ -
|
|
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
|
|
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
|
|
444
|
+
index f4365c0eda..f89c77fe44 100644
|
|
457
445
|
--- node/src/node.cc
|
|
458
446
|
+++ node/src/node.cc
|
|
459
|
-
@@ -
|
|
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
|
-
@@ -
|
|
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
|
|
657
|
+
index a03daec2bd..d979b764db 100644
|
|
670
658
|
--- node/src/node_options.cc
|
|
671
659
|
+++ node/src/node_options.cc
|
|
672
|
-
@@ -
|
|
660
|
+
@@ -312,6 +312,7 @@ void Parse(
|
|
673
661
|
// TODO(addaleax): Make that unnecessary.
|
|
674
662
|
|
|
675
663
|
DebugOptionsParser::DebugOptionsParser() {
|
package/patches/patches.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"v22.
|
|
3
|
-
"v20.18.
|
|
4
|
-
"v18.20.
|
|
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"],
|