@yao-pkg/pkg-fetch 3.5.23 → 3.5.24
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/build.js +2 -2
- package/lib-es5/expected-shas.json +23 -23
- package/lib-es5/utils.js +11 -2
- package/package.json +1 -1
- package/patches/{node.v20.19.1.cpp.patch → node.v20.19.4.cpp.patch} +1 -1
- package/patches/{node.v22.15.1.cpp.patch → node.v22.17.1.cpp.patch} +24 -24
- package/patches/patches.json +2 -2
package/lib-es5/build.js
CHANGED
|
@@ -326,8 +326,8 @@ function compileOnUnix(nodeVersion, targetArch, targetPlatform) {
|
|
|
326
326
|
}
|
|
327
327
|
if (targetArch === 'armv7') {
|
|
328
328
|
_a = process.env, _b = _a.CFLAGS, CFLAGS = _b === void 0 ? '' : _b, _c = _a.CXXFLAGS, CXXFLAGS = _c === void 0 ? '' : _c;
|
|
329
|
-
process.env.CFLAGS = "".concat(CFLAGS, " -marm -mcpu=cortex-a7");
|
|
330
|
-
process.env.CXXFLAGS = "".concat(CXXFLAGS, " -marm -mcpu=cortex-a7");
|
|
329
|
+
process.env.CFLAGS = "".concat(CFLAGS, " -marm -mcpu=cortex-a7 -mfpu=vfpv3");
|
|
330
|
+
process.env.CXXFLAGS = "".concat(CXXFLAGS, " -marm -mcpu=cortex-a7 -mfpu=vfpv3");
|
|
331
331
|
args.push('--with-arm-float-abi=hard');
|
|
332
332
|
args.push('--with-arm-fpu=vfpv3');
|
|
333
333
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"node-v16.20.2-macos-arm64": "3d04eb7ddd8b614b888eeb1caa6e64a068b665ab4a26dd064051973ae5842a85",
|
|
24
24
|
"node-v18.20.8-alpine-arm64": "c7f20847fbfd765517612647593c7767331a318d2b229ddac2b4afd7d13b78d0",
|
|
25
25
|
"node-v18.20.8-alpine-x64": "3b24c6f571681046a6ed1b42752b21a41e10e8c7ac19416b9571927cc10f4a49",
|
|
26
|
-
"node-v18.20.8-linux-arm64": "
|
|
26
|
+
"node-v18.20.8-linux-arm64": "690ed47821dfbf842a1ba40a7cd2e28344e6ad998a89f5d0eb61da3c86fcd29c",
|
|
27
27
|
"node-v18.20.8-linux-x64": "0121b3c810db3f5e47028f0b1e2294a1a52a2aa20923c037247e39c82be0f789",
|
|
28
28
|
"node-v18.20.8-linuxstatic-arm64": "ac03e112f9229126e62924f1fefbb44c54f5fbbb4827d5ffa6243d3b8e81dfa4",
|
|
29
29
|
"node-v18.20.8-linuxstatic-armv7": "4c96d99319e850887d01cb63500e34f5db3b64944b3644f4ed5c94ae2be5b625",
|
|
@@ -32,26 +32,26 @@
|
|
|
32
32
|
"node-v18.20.8-macos-x64": "f2cf139bfe3501d39d22b48a069f9ceb24942b0cdc001a0bc30ea3a68fbcc6b3",
|
|
33
33
|
"node-v18.20.8-win-arm64": "dd56454cfc9292f047413657c8b997006f27ecda8cd7f7dd38acf8d22317e743",
|
|
34
34
|
"node-v18.20.8-win-x64": "4d45cdfbcba3de3f6c0ddcd78251179b9d04dd2fcb2dba2fb052940a2821eb39",
|
|
35
|
-
"node-v20.19.
|
|
36
|
-
"node-v20.19.
|
|
37
|
-
"node-v20.19.
|
|
38
|
-
"node-v20.19.
|
|
39
|
-
"node-v20.19.
|
|
40
|
-
"node-v20.19.
|
|
41
|
-
"node-v20.19.
|
|
42
|
-
"node-v20.19.
|
|
43
|
-
"node-v20.19.
|
|
44
|
-
"node-v20.19.
|
|
45
|
-
"node-v20.19.
|
|
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.
|
|
35
|
+
"node-v20.19.4-alpine-arm64": "26bdc75d316a8e63f6023d419987f7e87f40899cd6f14bc320531d90cec3a2fd",
|
|
36
|
+
"node-v20.19.4-alpine-x64": "ebf147ddef51f42184d7efd37220f4430db8aaeabc3a1420f9e395484d90f456",
|
|
37
|
+
"node-v20.19.4-linux-arm64": "f7444ac0fd3a1b5af900e59f31d4ad0b73c5d4f0db66723b01f22ad6a0952b73",
|
|
38
|
+
"node-v20.19.4-linux-x64": "41ef9a2b41373d5923984a323dbbe61b6729751096c61989872be6ae63972531",
|
|
39
|
+
"node-v20.19.4-linuxstatic-arm64": "ad100cef1de4fecfe3e00aac60220c2276ad5e9feb6f7917bac2af20d633f2e3",
|
|
40
|
+
"node-v20.19.4-linuxstatic-armv7": "09e670c1ba93bf531d9ce3ee5f7f069b9a4813732c353d477be72833ca80f6d8",
|
|
41
|
+
"node-v20.19.4-linuxstatic-x64": "43ccf1fc68b659c20a633302d7cb7117c3f3a2ec99a73b27b3928590c768ce01",
|
|
42
|
+
"node-v20.19.4-macos-arm64": "103917dfe9e4f106ce9c3d8f62f162a3faeb107524938a01c96fdacc182c3420",
|
|
43
|
+
"node-v20.19.4-macos-x64": "f26530d2b3af9c7f4cf2b27a60ffbf75522c2ca08a573f6cabf2424b40783587",
|
|
44
|
+
"node-v20.19.4-win-arm64": "d146053af54d560d5fb2890ab90595c1f3eb02f025ec491ace830353fc596008",
|
|
45
|
+
"node-v20.19.4-win-x64": "4627b65afcd8a0abfbe616c4a7eb4cb7b81dbb52f5ccc54c8103efa34fe9a125",
|
|
46
|
+
"node-v22.17.1-alpine-arm64": "e28a2c0cc6529e1a133485b94211602a99ff6f8bd485aea2f5d21dae9f8d30a1",
|
|
47
|
+
"node-v22.17.1-alpine-x64": "41b3ede409b27c755e4c24d1bf071cc40f448199d98744f6c40fcebba398beff",
|
|
48
|
+
"node-v22.17.1-linux-arm64": "2f356ceacb670010db08189a129e1c250e1d98f37fec60b492797e043a1fc696",
|
|
49
|
+
"node-v22.17.1-linux-x64": "9702cb7019c72b2dc31f7de33a0e73fefcddade2364c59a9a22d3edb75d637b1",
|
|
50
|
+
"node-v22.17.1-linuxstatic-arm64": "95664f11b6619d6dd905d88776aba80b6218601dde25647b552fe223a3b52484",
|
|
51
|
+
"node-v22.17.1-linuxstatic-armv7": "69660e85e5249d6965d8e682b157f35a467730a4f2b80b0242f83e53e6c083e6",
|
|
52
|
+
"node-v22.17.1-linuxstatic-x64": "657881fe0f18b0aecda9d63140c6c2b8b8ff7287c81826a93a90100459540b70",
|
|
53
|
+
"node-v22.17.1-macos-arm64": "bbb0ce0747474ab4a3fb98ece79b29d7e5dc9ea72d12136a898cedbb6b7638b6",
|
|
54
|
+
"node-v22.17.1-macos-x64": "b8ba2debbdbe9cf967f738a450ef3656c55bb13da776a206b673e1bb23437f70",
|
|
55
|
+
"node-v22.17.1-win-arm64": "6188cdeb574a9e3de4f664d73bab0068201967245c8eb50b69b2850e1f356f8e",
|
|
56
|
+
"node-v22.17.1-win-x64": "6974763a335f33733766805659eb039908bcab3f09a5525d59fbe9ab4ed7926a"
|
|
57
57
|
}
|
package/lib-es5/utils.js
CHANGED
|
@@ -53,16 +53,25 @@ var log_1 = require("./log");
|
|
|
53
53
|
function downloadUrl(url, file) {
|
|
54
54
|
var _a, _b, _c;
|
|
55
55
|
return __awaiter(this, void 0, void 0, function () {
|
|
56
|
-
var proxy, res, tempFile, ws, totalSize, currentSize;
|
|
56
|
+
var proxy, res, err_1, tempFile, ws, totalSize, currentSize;
|
|
57
57
|
return __generator(this, function (_d) {
|
|
58
58
|
switch (_d.label) {
|
|
59
59
|
case 0:
|
|
60
60
|
log_1.log.enableProgress(path_1.default.basename(file));
|
|
61
61
|
log_1.log.showProgress(0);
|
|
62
62
|
proxy = (_c = (_b = (_a = process.env.HTTPS_PROXY) !== null && _a !== void 0 ? _a : process.env.https_proxy) !== null && _b !== void 0 ? _b : process.env.HTTP_PROXY) !== null && _c !== void 0 ? _c : process.env.http_proxy;
|
|
63
|
-
|
|
63
|
+
_d.label = 1;
|
|
64
64
|
case 1:
|
|
65
|
+
_d.trys.push([1, 3, , 4]);
|
|
66
|
+
return [4 /*yield*/, (0, node_fetch_1.default)(url, proxy ? { agent: (0, https_proxy_agent_1.default)(proxy) } : undefined)];
|
|
67
|
+
case 2:
|
|
65
68
|
res = _d.sent();
|
|
69
|
+
return [3 /*break*/, 4];
|
|
70
|
+
case 3:
|
|
71
|
+
err_1 = _d.sent();
|
|
72
|
+
log_1.log.disableProgress();
|
|
73
|
+
throw (0, log_1.wasReported)("Network error during fetch: ".concat(err_1.message));
|
|
74
|
+
case 4:
|
|
66
75
|
if (!res.ok) {
|
|
67
76
|
log_1.log.disableProgress();
|
|
68
77
|
throw (0, log_1.wasReported)("".concat(res.status, ": ").concat(res.statusText));
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
diff --git node/common.gypi node/common.gypi
|
|
2
|
-
index
|
|
2
|
+
index b88371ec13..343352b5c4 100644
|
|
3
3
|
--- node/common.gypi
|
|
4
4
|
+++ node/common.gypi
|
|
5
|
-
@@ -
|
|
5
|
+
@@ -191,7 +191,7 @@
|
|
6
6
|
['clang==1', {
|
|
7
7
|
'lto': ' -flto ', # Clang
|
|
8
8
|
}, {
|
|
@@ -92,10 +92,10 @@ index 2dd476dda3..8a51f25b57 100644
|
|
|
92
92
|
|
|
93
93
|
RegisteredExtension::RegisteredExtension(std::unique_ptr<Extension> extension)
|
|
94
94
|
diff --git node/deps/v8/src/codegen/compiler.cc node/deps/v8/src/codegen/compiler.cc
|
|
95
|
-
index
|
|
95
|
+
index 9048655363..ab81c326fc 100644
|
|
96
96
|
--- node/deps/v8/src/codegen/compiler.cc
|
|
97
97
|
+++ node/deps/v8/src/codegen/compiler.cc
|
|
98
|
-
@@ -
|
|
98
|
+
@@ -3634,7 +3634,7 @@ MaybeHandle<SharedFunctionInfo> GetSharedFunctionInfoForScriptImpl(
|
|
99
99
|
maybe_script = lookup_result.script();
|
|
100
100
|
maybe_result = lookup_result.toplevel_sfi();
|
|
101
101
|
is_compiled_scope = lookup_result.is_compiled_scope();
|
|
@@ -247,10 +247,10 @@ index ec69ad5123..1894032344 100644
|
|
|
247
247
|
GetHeaderValue(kReadOnlySnapshotChecksumOffset);
|
|
248
248
|
if (ro_snapshot_checksum != expected_ro_snapshot_checksum) {
|
|
249
249
|
diff --git node/lib/child_process.js node/lib/child_process.js
|
|
250
|
-
index
|
|
250
|
+
index e848b3d5ee..3e3ad3ec7c 100644
|
|
251
251
|
--- node/lib/child_process.js
|
|
252
252
|
+++ node/lib/child_process.js
|
|
253
|
-
@@ -
|
|
253
|
+
@@ -169,7 +169,7 @@ function fork(modulePath, args = [], options) {
|
|
254
254
|
throw new ERR_CHILD_PROCESS_IPC_REQUIRED('options.stdio');
|
|
255
255
|
}
|
|
256
256
|
|
|
@@ -315,7 +315,7 @@ 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
|
|
318
|
+
index d90476addb..8c87fa9019 100644
|
|
319
319
|
--- node/lib/internal/modules/cjs/loader.js
|
|
320
320
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
321
321
|
@@ -250,12 +250,16 @@ function stat(filename) {
|
|
@@ -337,7 +337,7 @@ index 33385fa792..61cb88dc0f 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
|
|
340
|
+
index df23a30b1b..4a414c469c 100644
|
|
341
341
|
--- node/lib/internal/modules/package_json_reader.js
|
|
342
342
|
+++ node/lib/internal/modules/package_json_reader.js
|
|
343
343
|
@@ -105,17 +105,20 @@ const requiresJSONParse = (value) => (value !== undefined && (value[0] === '[' |
|
|
@@ -373,7 +373,7 @@ index 3c746fa0e7..c39ba93379 100644
|
|
|
373
373
|
__proto__: null,
|
|
374
374
|
...result.data,
|
|
375
375
|
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
|
|
376
|
-
index
|
|
376
|
+
index 4e7be0594c..09efa7b745 100644
|
|
377
377
|
--- node/lib/internal/process/pre_execution.js
|
|
378
378
|
+++ node/lib/internal/process/pre_execution.js
|
|
379
379
|
@@ -50,7 +50,11 @@ const {
|
|
@@ -388,7 +388,7 @@ index d1c05d1717..c6c806f73c 100644
|
|
|
388
388
|
return prepareExecution({
|
|
389
389
|
expandArgv1,
|
|
390
390
|
initializeModules,
|
|
391
|
-
@@ -
|
|
391
|
+
@@ -243,7 +247,8 @@ function patchProcessObject(expandArgv1) {
|
|
392
392
|
let mainEntry;
|
|
393
393
|
// If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
|
|
394
394
|
// the entry point.
|
|
@@ -398,7 +398,7 @@ index d1c05d1717..c6c806f73c 100644
|
|
|
398
398
|
// Expand process.argv[1] into a full path.
|
|
399
399
|
const path = require('path');
|
|
400
400
|
try {
|
|
401
|
-
@@ -
|
|
401
|
+
@@ -735,6 +740,7 @@ function loadPreloadModules() {
|
|
402
402
|
// For user code, we preload modules if `-r` is passed
|
|
403
403
|
const preloadModules = getOptionValue('--require');
|
|
404
404
|
if (preloadModules && preloadModules.length > 0) {
|
|
@@ -429,10 +429,10 @@ index ae71080620..b05638de75 100644
|
|
|
429
429
|
throw e; /* node-do-not-add-exception-line */
|
|
430
430
|
}
|
|
431
431
|
diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
|
|
432
|
-
index
|
|
432
|
+
index fa6eb29e6e..5d6dd23f6a 100644
|
|
433
433
|
--- node/src/inspector_agent.cc
|
|
434
434
|
+++ node/src/inspector_agent.cc
|
|
435
|
-
@@ -
|
|
435
|
+
@@ -819,11 +819,6 @@ bool Agent::Start(const std::string& path,
|
|
436
436
|
StartIoThreadAsyncCallback));
|
|
437
437
|
uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
|
|
438
438
|
start_io_thread_async.data = this;
|
|
@@ -445,10 +445,10 @@ index 7c63c22112..830c8be5ca 100644
|
|
|
445
445
|
parent_env_->AddCleanupHook([](void* data) {
|
|
446
446
|
Environment* env = static_cast<Environment*>(data);
|
|
447
447
|
diff --git node/src/node.cc node/src/node.cc
|
|
448
|
-
index
|
|
448
|
+
index c0d0b734ed..58583892f9 100644
|
|
449
449
|
--- node/src/node.cc
|
|
450
450
|
+++ node/src/node.cc
|
|
451
|
-
@@ -
|
|
451
|
+
@@ -404,6 +404,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
|
|
452
452
|
return env->RunSnapshotDeserializeMain();
|
|
453
453
|
}
|
|
454
454
|
|
|
@@ -457,7 +457,7 @@ index a0f1deadfc..b8e241a5b4 100644
|
|
|
457
457
|
if (env->worker_context() != nullptr) {
|
|
458
458
|
return StartExecution(env, "internal/main/worker_thread");
|
|
459
459
|
}
|
|
460
|
-
@@ -
|
|
460
|
+
@@ -628,14 +630,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
|
|
@@ -473,7 +473,7 @@ index a0f1deadfc..b8e241a5b4 100644
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
|
|
476
|
-
index
|
|
476
|
+
index 7bfe42c593..836d98d6ed 100644
|
|
477
477
|
--- node/src/node_contextify.cc
|
|
478
478
|
+++ node/src/node_contextify.cc
|
|
479
479
|
@@ -86,6 +86,7 @@ using v8::Symbol;
|
|
@@ -484,7 +484,7 @@ index 187ba89290..dbed6342a9 100644
|
|
|
484
484
|
|
|
485
485
|
// The vm module executes code in a sandboxed environment with a different
|
|
486
486
|
// global object than the rest of the code. This is achieved by applying
|
|
487
|
-
@@ -
|
|
487
|
+
@@ -994,13 +995,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
488
488
|
Local<ArrayBufferView> cached_data_buf;
|
|
489
489
|
bool produce_cached_data = false;
|
|
490
490
|
Local<Context> parsing_context = context;
|
|
@@ -501,7 +501,7 @@ index 187ba89290..dbed6342a9 100644
|
|
|
501
501
|
CHECK(args[2]->IsNumber());
|
|
502
502
|
line_offset = args[2].As<Int32>()->Value();
|
|
503
503
|
CHECK(args[3]->IsNumber());
|
|
504
|
-
@@ -
|
|
504
|
+
@@ -1021,6 +1022,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
505
505
|
}
|
|
506
506
|
CHECK(args[7]->IsSymbol());
|
|
507
507
|
id_symbol = args[7].As<Symbol>();
|
|
@@ -512,7 +512,7 @@ index 187ba89290..dbed6342a9 100644
|
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
ContextifyScript* contextify_script =
|
|
515
|
-
@@ -
|
|
515
|
+
@@ -1068,6 +1073,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
516
516
|
ShouldNotAbortOnUncaughtScope no_abort_scope(env);
|
|
517
517
|
Context::Scope scope(parsing_context);
|
|
518
518
|
|
|
@@ -523,7 +523,7 @@ index 187ba89290..dbed6342a9 100644
|
|
|
523
523
|
MaybeLocal<UnboundScript> maybe_v8_script =
|
|
524
524
|
ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
|
|
525
525
|
|
|
526
|
-
@@ -
|
|
526
|
+
@@ -1082,6 +1091,12 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
527
527
|
return;
|
|
528
528
|
}
|
|
529
529
|
|
|
@@ -536,7 +536,7 @@ index 187ba89290..dbed6342a9 100644
|
|
|
536
536
|
contextify_script->script_.Reset(isolate, v8_script);
|
|
537
537
|
contextify_script->script_.SetWeak();
|
|
538
538
|
contextify_script->object()->SetInternalField(kUnboundScriptSlot, v8_script);
|
|
539
|
-
@@ -
|
|
539
|
+
@@ -1121,6 +1136,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
540
540
|
.IsNothing())
|
|
541
541
|
return;
|
|
542
542
|
|
|
@@ -658,10 +658,10 @@ index f66099a557..4048f6bd93 100644
|
|
|
658
658
|
+ return adjacent(c, nargv);
|
|
659
659
|
+}
|
|
660
660
|
diff --git node/src/node_options.cc node/src/node_options.cc
|
|
661
|
-
index
|
|
661
|
+
index da39abf79c..7f97afe7dc 100644
|
|
662
662
|
--- node/src/node_options.cc
|
|
663
663
|
+++ node/src/node_options.cc
|
|
664
|
-
@@ -
|
|
664
|
+
@@ -319,6 +319,7 @@ void Parse(
|
|
665
665
|
// TODO(addaleax): Make that unnecessary.
|
|
666
666
|
|
|
667
667
|
DebugOptionsParser::DebugOptionsParser() {
|
package/patches/patches.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"v22.
|
|
3
|
-
"v20.19.
|
|
2
|
+
"v22.17.1": ["node.v22.17.1.cpp.patch"],
|
|
3
|
+
"v20.19.4": ["node.v20.19.4.cpp.patch"],
|
|
4
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"],
|