@yao-pkg/pkg-fetch 3.6.0 → 3.6.1

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.
@@ -1,28 +1,58 @@
1
1
  diff --git node/common.gypi node/common.gypi
2
- index 4589f51517..97555b4c0b 100644
2
+ index f75cdf47b8..0030fe2ad4 100644
3
3
  --- node/common.gypi
4
4
  +++ node/common.gypi
5
- @@ -174,7 +174,7 @@
6
- 'MSVC_runtimeType': 2 # MultiThreadedDLL (/MD)
7
- }],
8
- ['llvm_version=="0.0"', {
5
+ @@ -187,7 +187,7 @@
6
+ ['clang==1', {
7
+ 'lto': ' -flto ', # Clang
8
+ }, {
9
9
  - 'lto': ' -flto=4 -fuse-linker-plugin -ffat-lto-objects ', # GCC
10
10
  + 'lto': ' -flto=4 -ffat-lto-objects ', # GCC
11
- }, {
12
- 'lto': ' -flto ', # Clang
13
11
  }],
14
- diff --git node/configure.py node/configure.py
15
- index 62f041ce52..4688ec0fdd 100755
16
- --- node/configure.py
17
- +++ node/configure.py
18
- @@ -1270,7 +1270,6 @@ def configure_node(o):
19
-
20
- # Enable branch protection for arm64
21
- if target_arch == 'arm64':
22
- - o['cflags']+=['-msign-return-address=all']
23
- o['variables']['arm_fpu'] = options.arm_fpu or 'neon'
24
-
25
- if options.node_snapshot_main is not None:
12
+ ],
13
+ },
14
+ diff --git node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
15
+ index 5e7775f1a5..eeebf67796 100644
16
+ --- node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
17
+ +++ node/deps/ngtcp2/nghttp3/lib/nghttp3_ringbuf.c
18
+ @@ -33,16 +33,6 @@
19
+
20
+ #include "nghttp3_macro.h"
21
+
22
+ -#if defined(_MSC_VER) && !defined(__clang__) && (defined(_M_ARM) || defined(_M_ARM64))
23
+ -unsigned int __popcnt(unsigned int x) {
24
+ - unsigned int c = 0;
25
+ - for (; x; ++c) {
26
+ - x &= x - 1;
27
+ - }
28
+ - return c;
29
+ -}
30
+ -#endif
31
+ -
32
+ int nghttp3_ringbuf_init(nghttp3_ringbuf *rb, size_t nmemb, size_t size,
33
+ const nghttp3_mem *mem) {
34
+ if (nmemb) {
35
+ diff --git node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
36
+ index 74e488bce7..36ca05e80e 100644
37
+ --- node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
38
+ +++ node/deps/ngtcp2/ngtcp2/lib/ngtcp2_ringbuf.c
39
+ @@ -31,16 +31,6 @@
40
+
41
+ #include "ngtcp2_macro.h"
42
+
43
+ -#if defined(_MSC_VER) && !defined(__clang__) && (defined(_M_ARM) || defined(_M_ARM64))
44
+ -unsigned int __popcnt(unsigned int x) {
45
+ - unsigned int c = 0;
46
+ - for (; x; ++c) {
47
+ - x &= x - 1;
48
+ - }
49
+ - return c;
50
+ -}
51
+ -#endif
52
+ -
53
+ int ngtcp2_ringbuf_init(ngtcp2_ringbuf *rb, size_t nmemb, size_t size,
54
+ const ngtcp2_mem *mem) {
55
+ uint8_t *buf = ngtcp2_mem_malloc(mem, nmemb * size);
26
56
  diff --git node/deps/v8/include/v8-initialization.h node/deps/v8/include/v8-initialization.h
27
57
  index d3e35d6ec5..6e9bbe3849 100644
28
58
  --- node/deps/v8/include/v8-initialization.h
@@ -39,7 +69,7 @@ index d3e35d6ec5..6e9bbe3849 100644
39
69
  static const char* GetVersion();
40
70
 
41
71
  diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
42
- index a91dfc271c..a4cd4eeb31 100644
72
+ index da0c960f99..08af13d77a 100644
43
73
  --- node/deps/v8/src/api/api.cc
44
74
  +++ node/deps/v8/src/api/api.cc
45
75
  @@ -806,6 +806,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
@@ -164,7 +194,7 @@ index c83e8e4581..8cb451e147 100644
164
194
  uint32_t max_payload_length = this->size_ - kHeaderSize;
165
195
  if (payload_length > max_payload_length) {
166
196
  diff --git node/lib/child_process.js node/lib/child_process.js
167
- index 449013906e..3a85e4a541 100644
197
+ index cc81cb373d..e06da1048a 100644
168
198
  --- node/lib/child_process.js
169
199
  +++ node/lib/child_process.js
170
200
  @@ -169,7 +169,7 @@ function fork(modulePath, args = [], options) {
@@ -232,10 +262,10 @@ index 0000000000..a697294fdf
232
262
  + }());
233
263
  +}());
234
264
  diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
235
- index b077ee386b..b4271b5951 100644
265
+ index b12594cc36..bc0361d8aa 100644
236
266
  --- node/lib/internal/modules/cjs/loader.js
237
267
  +++ node/lib/internal/modules/cjs/loader.js
238
- @@ -95,7 +95,7 @@ const { containsModuleSyntax } = internalBinding('contextify');
268
+ @@ -144,7 +144,7 @@ const {
239
269
  const assert = require('internal/assert');
240
270
  const fs = require('fs');
241
271
  const path = require('path');
@@ -258,10 +288,10 @@ index 88c079d10d..a7eaca0574 100644
258
288
  const permission = require('internal/process/permission');
259
289
  const { kEmptyObject } = require('internal/util');
260
290
  diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
261
- index 917ba90a1c..c69638deba 100644
291
+ index 96bbfb4c35..ff50e19a6a 100644
262
292
  --- node/lib/internal/process/pre_execution.js
263
293
  +++ node/lib/internal/process/pre_execution.js
264
- @@ -51,7 +51,11 @@ const {
294
+ @@ -49,7 +49,11 @@ const {
265
295
  },
266
296
  } = require('internal/v8/startup_snapshot');
267
297
 
@@ -273,17 +303,21 @@ index 917ba90a1c..c69638deba 100644
273
303
  return prepareExecution({
274
304
  expandArgv1,
275
305
  initializeModules,
276
- @@ -209,7 +213,8 @@ function patchProcessObject(expandArgv1) {
306
+ @@ -241,7 +245,12 @@ function patchProcessObject(expandArgv1) {
307
+ let mainEntry;
277
308
  // If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
278
309
  // the entry point.
279
- if (expandArgv1 && process.argv[1] &&
280
- - !StringPrototypeStartsWith(process.argv[1], '-')) {
281
- + !StringPrototypeStartsWith(process.argv[1], '-') &&
282
- + process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT') {
310
+ - if (expandArgv1 && process.argv[1] && process.argv[1][0] !== '-') {
311
+ + if (
312
+ + expandArgv1 &&
313
+ + process.argv[1] &&
314
+ + process.argv[1][0] !== '-' &&
315
+ + process.argv[1] !== 'PKG_DUMMY_ENTRYPOINT'
316
+ + ) {
283
317
  // Expand process.argv[1] into a full path.
284
318
  const path = require('path');
285
319
  try {
286
- @@ -723,6 +728,7 @@ function loadPreloadModules() {
320
+ @@ -737,6 +746,7 @@ function loadPreloadModules() {
287
321
  // For user code, we preload modules if `-r` is passed
288
322
  const preloadModules = getOptionValue('--require');
289
323
  if (preloadModules && preloadModules.length > 0) {
@@ -292,10 +326,10 @@ index 917ba90a1c..c69638deba 100644
292
326
  Module: {
293
327
  _preloadModules,
294
328
  diff --git node/lib/vm.js node/lib/vm.js
295
- index d396a3df8c..74419c83c1 100644
329
+ index a12e932d8d..931a996330 100644
296
330
  --- node/lib/vm.js
297
331
  +++ node/lib/vm.js
298
- @@ -80,6 +80,7 @@ class Script extends ContextifyScript {
332
+ @@ -98,6 +98,7 @@ class Script extends ContextifyScript {
299
333
  produceCachedData = false,
300
334
  importModuleDynamically,
301
335
  [kParsingContext]: parsingContext,
@@ -303,7 +337,7 @@ index d396a3df8c..74419c83c1 100644
303
337
  } = options;
304
338
 
305
339
  validateString(filename, 'options.filename');
306
- @@ -103,7 +104,8 @@ class Script extends ContextifyScript {
340
+ @@ -121,7 +122,8 @@ class Script extends ContextifyScript {
307
341
  cachedData,
308
342
  produceCachedData,
309
343
  parsingContext,
@@ -314,23 +348,26 @@ index d396a3df8c..74419c83c1 100644
314
348
  throw e; /* node-do-not-add-exception-line */
315
349
  }
316
350
  diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
317
- index de372400fd..2538afa37d 100644
351
+ index bb39a0cb42..5fa6cb65cc 100644
318
352
  --- node/src/inspector_agent.cc
319
353
  +++ node/src/inspector_agent.cc
320
- @@ -707,8 +707,6 @@ bool Agent::Start(const std::string& path,
354
+ @@ -766,11 +766,6 @@ bool Agent::Start(const std::string& path,
321
355
  StartIoThreadAsyncCallback));
322
356
  uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
323
357
  start_io_thread_async.data = this;
324
- - // Ignore failure, SIGUSR1 won't work, but that should not block node start.
325
- - StartDebugSignalHandler();
358
+ - if (parent_env_->should_start_debug_signal_handler()) {
359
+ - // Ignore failure, SIGUSR1 won't work, but that should not block node
360
+ - // start.
361
+ - StartDebugSignalHandler();
362
+ - }
326
363
 
327
364
  parent_env_->AddCleanupHook([](void* data) {
328
365
  Environment* env = static_cast<Environment*>(data);
329
366
  diff --git node/src/node.cc node/src/node.cc
330
- index a9336a1430..c4a97eb85a 100644
367
+ index 1137dcafcd..482feb65b5 100644
331
368
  --- node/src/node.cc
332
369
  +++ node/src/node.cc
333
- @@ -322,6 +322,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
370
+ @@ -389,6 +389,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
334
371
  return env->RunSnapshotDeserializeMain();
335
372
  }
336
373
 
@@ -339,7 +376,7 @@ index a9336a1430..c4a97eb85a 100644
339
376
  if (env->worker_context() != nullptr) {
340
377
  return StartExecution(env, "internal/main/worker_thread");
341
378
  }
342
- @@ -543,14 +545,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
379
+ @@ -613,14 +615,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
343
380
  }
344
381
 
345
382
  if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
@@ -355,10 +392,10 @@ index a9336a1430..c4a97eb85a 100644
355
392
  }
356
393
 
357
394
  diff --git node/src/node_contextify.cc node/src/node_contextify.cc
358
- index 64860d7e56..abdb5593ba 100644
395
+ index 2331579b26..f84681ae02 100644
359
396
  --- node/src/node_contextify.cc
360
397
  +++ node/src/node_contextify.cc
361
- @@ -75,6 +75,7 @@ using v8::String;
398
+ @@ -79,6 +79,7 @@ using v8::String;
362
399
  using v8::Symbol;
363
400
  using v8::Uint32;
364
401
  using v8::UnboundScript;
@@ -366,7 +403,7 @@ index 64860d7e56..abdb5593ba 100644
366
403
  using v8::Value;
367
404
  using v8::WeakCallbackInfo;
368
405
 
369
- @@ -772,13 +773,14 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
406
+ @@ -817,13 +818,14 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
370
407
  Local<ArrayBufferView> cached_data_buf;
371
408
  bool produce_cached_data = false;
372
409
  Local<Context> parsing_context = context;
@@ -383,7 +420,7 @@ index 64860d7e56..abdb5593ba 100644
383
420
  CHECK(args[2]->IsNumber());
384
421
  line_offset = args[2].As<Int32>()->Value();
385
422
  CHECK(args[3]->IsNumber());
386
- @@ -799,6 +801,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
423
+ @@ -844,6 +846,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
387
424
  }
388
425
  CHECK(args[7]->IsSymbol());
389
426
  id_symbol = args[7].As<Symbol>();
@@ -394,7 +431,7 @@ index 64860d7e56..abdb5593ba 100644
394
431
  }
395
432
 
396
433
  ContextifyScript* contextify_script =
397
- @@ -847,6 +853,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
434
+ @@ -892,6 +898,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
398
435
  ShouldNotAbortOnUncaughtScope no_abort_scope(env);
399
436
  Context::Scope scope(parsing_context);
400
437
 
@@ -405,7 +442,7 @@ index 64860d7e56..abdb5593ba 100644
405
442
  MaybeLocal<UnboundScript> maybe_v8_script =
406
443
  ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
407
444
 
408
- @@ -861,6 +871,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
445
+ @@ -906,6 +916,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
409
446
  return;
410
447
  }
411
448
 
@@ -417,7 +454,7 @@ index 64860d7e56..abdb5593ba 100644
417
454
  contextify_script->script_.Reset(isolate, v8_script);
418
455
  contextify_script->script_.SetWeak();
419
456
  contextify_script->object()->SetInternalFieldForNodeCore(kUnboundScriptSlot,
420
- @@ -894,6 +909,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
457
+ @@ -939,6 +954,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
421
458
  .IsNothing())
422
459
  return;
423
460
 
@@ -539,10 +576,10 @@ index f66099a557..4048f6bd93 100644
539
576
  + return adjacent(c, nargv);
540
577
  +}
541
578
  diff --git node/src/node_options.cc node/src/node_options.cc
542
- index 29cb7fc6b2..7a27f506f5 100644
579
+ index 9d5accc3eb..8e3c304a13 100644
543
580
  --- node/src/node_options.cc
544
581
  +++ node/src/node_options.cc
545
- @@ -302,6 +302,7 @@ void Parse(
582
+ @@ -316,6 +316,7 @@ void Parse(
546
583
  // TODO(addaleax): Make that unnecessary.
547
584
 
548
585
  DebugOptionsParser::DebugOptionsParser() {