@idlebox/node 1.4.1 → 1.4.3

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.
Files changed (111) hide show
  1. package/lib/cjs/__create_index.generated.cjs +6 -6
  2. package/lib/cjs/__create_index.generated.cjs.map +1 -1
  3. package/lib/cjs/child_process/error.cjs +6 -3
  4. package/lib/cjs/child_process/error.cjs.map +1 -1
  5. package/lib/cjs/child_process/execa.cjs +2 -2
  6. package/lib/cjs/child_process/execa.cjs.map +1 -1
  7. package/lib/cjs/child_process/lateError.cjs +26 -14
  8. package/lib/cjs/child_process/lateError.cjs.map +1 -1
  9. package/lib/cjs/child_process/respawn.cjs +4 -4
  10. package/lib/cjs/child_process/respawn.cjs.map +1 -1
  11. package/lib/cjs/cli-io/output.cjs +1 -1
  12. package/lib/cjs/cli-io/output.cjs.map +1 -1
  13. package/lib/cjs/environment/findBinary.cjs +4 -4
  14. package/lib/cjs/environment/findBinary.cjs.map +1 -1
  15. package/lib/cjs/environment/npmConfig.cjs +2 -2
  16. package/lib/cjs/environment/npmConfig.cjs.map +1 -1
  17. package/lib/cjs/environment/pathEnvironment.cjs +3 -3
  18. package/lib/cjs/environment/pathEnvironment.cjs.map +1 -1
  19. package/lib/cjs/error/nodejs-error-code.generated.cjs +268 -217
  20. package/lib/cjs/error/nodejs-error-code.generated.cjs.map +1 -1
  21. package/lib/cjs/error/types.cjs +6 -6
  22. package/lib/cjs/error/types.cjs.map +1 -1
  23. package/lib/cjs/fs/commandExists.cjs +3 -3
  24. package/lib/cjs/fs/commandExists.cjs.map +1 -1
  25. package/lib/cjs/fs/exists.cjs +3 -3
  26. package/lib/cjs/fs/exists.cjs.map +1 -1
  27. package/lib/cjs/fs/tempFolder.cjs +2 -2
  28. package/lib/cjs/fs/tempFolder.cjs.map +1 -1
  29. package/lib/cjs/fs/weiteChanged.cjs +3 -3
  30. package/lib/cjs/fs/weiteChanged.cjs.map +1 -1
  31. package/lib/cjs/path-resolve/findPackageRoot.cjs +2 -2
  32. package/lib/cjs/path-resolve/findPackageRoot.cjs.map +1 -1
  33. package/lib/cjs/path-resolve/findUp.cjs +57 -18
  34. package/lib/cjs/path-resolve/findUp.cjs.map +1 -1
  35. package/lib/cjs/stream/collectingStream.cjs +11 -11
  36. package/lib/cjs/stream/collectingStream.cjs.map +1 -1
  37. package/lib/cjs/stream/streamPromise.cjs +5 -4
  38. package/lib/cjs/stream/streamPromise.cjs.map +1 -1
  39. package/lib/esm/__create_index.generated.d.ts +2 -0
  40. package/lib/esm/__create_index.generated.d.ts.map +1 -1
  41. package/lib/esm/__create_index.generated.js +1 -2
  42. package/lib/esm/__create_index.generated.js.map +1 -1
  43. package/lib/esm/__virtual_tsconfig.tsbuildinfo +1 -1
  44. package/lib/esm/child_process/error.d.ts.map +1 -1
  45. package/lib/esm/child_process/error.js +6 -3
  46. package/lib/esm/child_process/error.js.map +1 -1
  47. package/lib/esm/child_process/execa.js +1 -1
  48. package/lib/esm/child_process/execa.js.map +1 -1
  49. package/lib/esm/child_process/lateError.d.ts +6 -5
  50. package/lib/esm/child_process/lateError.d.ts.map +1 -1
  51. package/lib/esm/child_process/lateError.js +23 -11
  52. package/lib/esm/child_process/lateError.js.map +1 -1
  53. package/lib/esm/child_process/respawn.js +2 -2
  54. package/lib/esm/child_process/respawn.js.map +1 -1
  55. package/lib/esm/cli-io/output.js +1 -1
  56. package/lib/esm/cli-io/output.js.map +1 -1
  57. package/lib/esm/environment/findBinary.js +2 -2
  58. package/lib/esm/environment/findBinary.js.map +1 -1
  59. package/lib/esm/environment/npmConfig.js +1 -1
  60. package/lib/esm/environment/npmConfig.js.map +1 -1
  61. package/lib/esm/environment/pathEnvironment.js +1 -1
  62. package/lib/esm/environment/pathEnvironment.js.map +1 -1
  63. package/lib/esm/error/nodejs-error-code.generated.d.ts +269 -218
  64. package/lib/esm/error/nodejs-error-code.generated.d.ts.map +1 -1
  65. package/lib/esm/error/nodejs-error-code.generated.js +268 -217
  66. package/lib/esm/error/nodejs-error-code.generated.js.map +1 -1
  67. package/lib/esm/error/types.d.ts +2 -2
  68. package/lib/esm/error/types.d.ts.map +1 -1
  69. package/lib/esm/error/types.js +2 -2
  70. package/lib/esm/error/types.js.map +1 -1
  71. package/lib/esm/fs/commandExists.js +1 -1
  72. package/lib/esm/fs/commandExists.js.map +1 -1
  73. package/lib/esm/fs/exists.js +1 -1
  74. package/lib/esm/fs/exists.js.map +1 -1
  75. package/lib/esm/fs/tempFolder.js +1 -1
  76. package/lib/esm/fs/tempFolder.js.map +1 -1
  77. package/lib/esm/fs/weiteChanged.js +1 -1
  78. package/lib/esm/fs/weiteChanged.js.map +1 -1
  79. package/lib/esm/path-resolve/findPackageRoot.js +1 -1
  80. package/lib/esm/path-resolve/findPackageRoot.js.map +1 -1
  81. package/lib/esm/path-resolve/findUp.d.ts +12 -0
  82. package/lib/esm/path-resolve/findUp.d.ts.map +1 -1
  83. package/lib/esm/path-resolve/findUp.js +57 -18
  84. package/lib/esm/path-resolve/findUp.js.map +1 -1
  85. package/lib/esm/stream/collectingStream.d.ts +1 -1
  86. package/lib/esm/stream/collectingStream.d.ts.map +1 -1
  87. package/lib/esm/stream/collectingStream.js +9 -9
  88. package/lib/esm/stream/collectingStream.js.map +1 -1
  89. package/lib/esm/stream/streamPromise.d.ts.map +1 -1
  90. package/lib/esm/stream/streamPromise.js +5 -4
  91. package/lib/esm/stream/streamPromise.js.map +1 -1
  92. package/package.json +5 -5
  93. package/src/child_process/error.ts +7 -3
  94. package/src/child_process/execa.ts +1 -1
  95. package/src/child_process/lateError.ts +27 -14
  96. package/src/child_process/respawn.ts +2 -2
  97. package/src/cli-io/output.ts +1 -1
  98. package/src/environment/findBinary.ts +2 -2
  99. package/src/environment/npmConfig.ts +1 -1
  100. package/src/environment/pathEnvironment.ts +1 -1
  101. package/src/error/cache.generated.json +467 -323
  102. package/src/error/nodejs-error-code.generated.ts +268 -218
  103. package/src/error/types.ts +2 -2
  104. package/src/fs/commandExists.ts +1 -1
  105. package/src/fs/exists.ts +1 -1
  106. package/src/fs/tempFolder.ts +1 -1
  107. package/src/fs/weiteChanged.ts +1 -1
  108. package/src/path-resolve/findPackageRoot.ts +1 -1
  109. package/src/path-resolve/findUp.ts +80 -19
  110. package/src/stream/collectingStream.ts +13 -13
  111. package/src/stream/streamPromise.ts +5 -4
@@ -235,14 +235,9 @@ var NodeError;
235
235
  NodeError["ERR_CRYPTO_INVALID_IV"] = "ERR_CRYPTO_INVALID_IV";
236
236
  /**
237
237
  * <p>An invalid JSON Web Key was provided.</p>
238
- * <p><a id="ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"></a></p>
239
- */
240
- NodeError["ERR_CRYPTO_INVALID_JWK"] = "ERR_CRYPTO_INVALID_JWK";
241
- /**
242
- * <p>The given crypto key object's type is invalid for the attempted operation.</p>
243
238
  * <p><a id="ERR_CRYPTO_INVALID_KEYLEN"></a></p>
244
239
  */
245
- NodeError["ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"] = "ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE";
240
+ NodeError["ERR_CRYPTO_INVALID_JWK"] = "ERR_CRYPTO_INVALID_JWK";
246
241
  /**
247
242
  * <p>An invalid key length was provided.</p>
248
243
  * <p><a id="ERR_CRYPTO_INVALID_KEYPAIR"></a></p>
@@ -255,16 +250,22 @@ var NodeError;
255
250
  NodeError["ERR_CRYPTO_INVALID_KEYPAIR"] = "ERR_CRYPTO_INVALID_KEYPAIR";
256
251
  /**
257
252
  * <p>An invalid key type was provided.</p>
258
- * <p><a id="ERR_CRYPTO_INVALID_MESSAGELEN"></a></p>
253
+ * <p><a id="ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"></a></p>
259
254
  */
260
255
  NodeError["ERR_CRYPTO_INVALID_KEYTYPE"] = "ERR_CRYPTO_INVALID_KEYTYPE";
256
+ /**
257
+ * <p>The given crypto key object's type is invalid for the attempted operation.</p>
258
+ * <p><a id="ERR_CRYPTO_INVALID_MESSAGELEN"></a></p>
259
+ */
260
+ NodeError["ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE"] = "ERR_CRYPTO_INVALID_KEY_OBJECT_TYPE";
261
261
  /**
262
262
  * <p>An invalid message length was provided.</p>
263
263
  * <p><a id="ERR_CRYPTO_INVALID_SCRYPT_PARAMS"></a></p>
264
264
  */
265
265
  NodeError["ERR_CRYPTO_INVALID_MESSAGELEN"] = "ERR_CRYPTO_INVALID_MESSAGELEN";
266
266
  /**
267
- * <p>Invalid scrypt algorithm parameters were provided.</p>
267
+ * <p>One or more <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a> parameters are
268
+ * outside their legal range.</p>
268
269
  * <p><a id="ERR_CRYPTO_INVALID_STATE"></a></p>
269
270
  */
270
271
  NodeError["ERR_CRYPTO_INVALID_SCRYPT_PARAMS"] = "ERR_CRYPTO_INVALID_SCRYPT_PARAMS";
@@ -304,15 +305,9 @@ var NodeError;
304
305
  /**
305
306
  * <p>The PBKDF2 algorithm failed for unspecified reasons. OpenSSL does not provide
306
307
  * more details and therefore neither does Node.js.</p>
307
- * <p><a id="ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"></a></p>
308
- */
309
- NodeError["ERR_CRYPTO_PBKDF2_ERROR"] = "ERR_CRYPTO_PBKDF2_ERROR";
310
- /**
311
- * <p>One or more <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a> parameters are
312
- * outside their legal range.</p>
313
308
  * <p><a id="ERR_CRYPTO_SCRYPT_NOT_SUPPORTED"></a></p>
314
309
  */
315
- NodeError["ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"] = "ERR_CRYPTO_SCRYPT_INVALID_PARAMETER";
310
+ NodeError["ERR_CRYPTO_PBKDF2_ERROR"] = "ERR_CRYPTO_PBKDF2_ERROR";
316
311
  /**
317
312
  * <p>Node.js was compiled without <code>scrypt</code> support. Not possible with the official
318
313
  * release binaries but can happen with custom builds, including distro builds.</p>
@@ -353,19 +348,9 @@ var NodeError;
353
348
  NodeError["ERR_DEBUGGER_ERROR"] = "ERR_DEBUGGER_ERROR";
354
349
  /**
355
350
  * <p>The <a href="debugger.html">debugger</a> timed out waiting for the required host/port to be free.</p>
356
- * <p><a id="ERR_DLOPEN_DISABLED"></a></p>
357
- */
358
- NodeError["ERR_DEBUGGER_STARTUP_ERROR"] = "ERR_DEBUGGER_STARTUP_ERROR";
359
- /**
360
- * <p>Loading native addons has been disabled using <a href="cli.html#--no-addons"><code>--no-addons</code></a>.</p>
361
- * <p><a id="ERR_DLOPEN_FAILED"></a></p>
362
- */
363
- NodeError["ERR_DLOPEN_DISABLED"] = "ERR_DLOPEN_DISABLED";
364
- /**
365
- * <p>A call to <code>process.dlopen()</code> failed.</p>
366
351
  * <p><a id="ERR_DIR_CLOSED"></a></p>
367
352
  */
368
- NodeError["ERR_DLOPEN_FAILED"] = "ERR_DLOPEN_FAILED";
353
+ NodeError["ERR_DEBUGGER_STARTUP_ERROR"] = "ERR_DEBUGGER_STARTUP_ERROR";
369
354
  /**
370
355
  * <p>The <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> was previously closed.</p>
371
356
  * <p><a id="ERR_DIR_CONCURRENT_OPERATION"></a></p>
@@ -374,9 +359,19 @@ var NodeError;
374
359
  /**
375
360
  * <p>A synchronous read or close call was attempted on an <a href="fs.html#class-fsdir"><code>fs.Dir</code></a> which has
376
361
  * ongoing asynchronous operations.</p>
377
- * <p><a id="ERR_DNS_SET_SERVERS_FAILED"></a></p>
362
+ * <p><a id="ERR_DLOPEN_DISABLED"></a></p>
378
363
  */
379
364
  NodeError["ERR_DIR_CONCURRENT_OPERATION"] = "ERR_DIR_CONCURRENT_OPERATION";
365
+ /**
366
+ * <p>Loading native addons has been disabled using <a href="cli.html#--no-addons"><code>--no-addons</code></a>.</p>
367
+ * <p><a id="ERR_DLOPEN_FAILED"></a></p>
368
+ */
369
+ NodeError["ERR_DLOPEN_DISABLED"] = "ERR_DLOPEN_DISABLED";
370
+ /**
371
+ * <p>A call to <code>process.dlopen()</code> failed.</p>
372
+ * <p><a id="ERR_DNS_SET_SERVERS_FAILED"></a></p>
373
+ */
374
+ NodeError["ERR_DLOPEN_FAILED"] = "ERR_DLOPEN_FAILED";
380
375
  /**
381
376
  * <p><code>c-ares</code> failed to set the DNS server.</p>
382
377
  * <p><a id="ERR_DOMAIN_CALLBACK_NOT_AVAILABLE"></a></p>
@@ -462,16 +457,6 @@ var NodeError;
462
457
  * <p><a id="ERR_FS_CP_FIFO_PIPE"></a></p>
463
458
  */
464
459
  NodeError["ERR_FS_CP_EINVAL"] = "ERR_FS_CP_EINVAL";
465
- /**
466
- * <p>An error is thrown when writing to an HTTP response which does not allow
467
- * contents. <a id="ERR_HTTP_BODY_NOT_ALLOWED"></a></p>
468
- */
469
- NodeError["ERR_HTTP_BODY_NOT_ALLOWED"] = "ERR_HTTP_BODY_NOT_ALLOWED";
470
- /**
471
- * <p>Response body size doesn't match with the specified content-length header value.</p>
472
- * <p><a id="ERR_HTTP_CONTENT_LENGTH_MISMATCH"></a></p>
473
- */
474
- NodeError["ERR_HTTP_CONTENT_LENGTH_MISMATCH"] = "ERR_HTTP_CONTENT_LENGTH_MISMATCH";
475
460
  /**
476
461
  * <p>An attempt was made to copy a named pipe with <a href="fs.html#fscpsrc-dest-options-callback"><code>fs.cp()</code></a>.</p>
477
462
  * <p><a id="ERR_FS_CP_NON_DIR_TO_DIR"></a></p>
@@ -507,51 +492,9 @@ var NodeError;
507
492
  /**
508
493
  * <p>An attempt has been made to read a file whose size is larger than the maximum
509
494
  * allowed size for a <code>Buffer</code>.</p>
510
- * <p><a id="ERR_FS_INVALID_SYMLINK_TYPE"></a></p>
511
- */
512
- NodeError["ERR_FS_FILE_TOO_LARGE"] = "ERR_FS_FILE_TOO_LARGE";
513
- /**
514
- * <p>An invalid symlink type was passed to the <a href="fs.html#fssymlinktarget-path-type-callback"><code>fs.symlink()</code></a> or
515
- * <a href="fs.html#fssymlinksynctarget-path-type"><code>fs.symlinkSync()</code></a> methods.</p>
516
- * <p><a id="ERR_HTTP_HEADERS_SENT"></a></p>
517
- */
518
- NodeError["ERR_FS_INVALID_SYMLINK_TYPE"] = "ERR_FS_INVALID_SYMLINK_TYPE";
519
- /**
520
- * <p>An attempt was made to add more headers after the headers had already been sent.</p>
521
- * <p><a id="ERR_HTTP_INVALID_HEADER_VALUE"></a></p>
522
- */
523
- NodeError["ERR_HTTP_HEADERS_SENT"] = "ERR_HTTP_HEADERS_SENT";
524
- /**
525
- * <p>An invalid HTTP header value was specified.</p>
526
- * <p><a id="ERR_HTTP_INVALID_STATUS_CODE"></a></p>
527
- */
528
- NodeError["ERR_HTTP_INVALID_HEADER_VALUE"] = "ERR_HTTP_INVALID_HEADER_VALUE";
529
- /**
530
- * <p>Status code was outside the regular status code range (100-999).</p>
531
- * <p><a id="ERR_HTTP_REQUEST_TIMEOUT"></a></p>
532
- */
533
- NodeError["ERR_HTTP_INVALID_STATUS_CODE"] = "ERR_HTTP_INVALID_STATUS_CODE";
534
- /**
535
- * <p>The client has not sent the entire request within the allowed time.</p>
536
- * <p><a id="ERR_HTTP_SOCKET_ASSIGNED"></a></p>
537
- */
538
- NodeError["ERR_HTTP_REQUEST_TIMEOUT"] = "ERR_HTTP_REQUEST_TIMEOUT";
539
- /**
540
- * <p>The given <a href="http.html#class-httpserverresponse"><code>ServerResponse</code></a> was already assigned a socket.</p>
541
- * <p><a id="ERR_HTTP_SOCKET_ENCODING"></a></p>
542
- */
543
- NodeError["ERR_HTTP_SOCKET_ASSIGNED"] = "ERR_HTTP_SOCKET_ASSIGNED";
544
- /**
545
- * <p>Changing the socket encoding is not allowed per <a href="https://tools.ietf.org/html/rfc7230#section-3">RFC 7230 Section 3</a>.</p>
546
- * <p><a id="ERR_HTTP_TRAILER_INVALID"></a></p>
547
- */
548
- NodeError["ERR_HTTP_SOCKET_ENCODING"] = "ERR_HTTP_SOCKET_ENCODING";
549
- /**
550
- * <p>The <code>Trailer</code> header was set even though the transfer encoding does not support
551
- * that.</p>
552
495
  * <p><a id="ERR_HTTP2_ALTSVC_INVALID_ORIGIN"></a></p>
553
496
  */
554
- NodeError["ERR_HTTP_TRAILER_INVALID"] = "ERR_HTTP_TRAILER_INVALID";
497
+ NodeError["ERR_FS_FILE_TOO_LARGE"] = "ERR_FS_FILE_TOO_LARGE";
555
498
  /**
556
499
  * <p>HTTP/2 ALTSVC frames require a valid origin.</p>
557
500
  * <p><a id="ERR_HTTP2_ALTSVC_LENGTH"></a></p>
@@ -588,15 +531,9 @@ var NodeError;
588
531
  /**
589
532
  * <p>New HTTP/2 Streams may not be opened after the <code>Http2Session</code> has received a
590
533
  * <code>GOAWAY</code> frame from the connected peer.</p>
591
- * <p><a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a></p>
592
- */
593
- NodeError["ERR_HTTP2_GOAWAY_SESSION"] = "ERR_HTTP2_GOAWAY_SESSION";
594
- /**
595
- * <p>Multiple values were provided for an HTTP/2 header field that was required to
596
- * have only a single value.</p>
597
534
  * <p><a id="ERR_HTTP2_HEADERS_AFTER_RESPOND"></a></p>
598
535
  */
599
- NodeError["ERR_HTTP2_HEADER_SINGLE_VALUE"] = "ERR_HTTP2_HEADER_SINGLE_VALUE";
536
+ NodeError["ERR_HTTP2_GOAWAY_SESSION"] = "ERR_HTTP2_GOAWAY_SESSION";
600
537
  /**
601
538
  * <p>An additional headers was specified after an HTTP/2 response was initiated.</p>
602
539
  * <p><a id="ERR_HTTP2_HEADERS_SENT"></a></p>
@@ -604,9 +541,15 @@ var NodeError;
604
541
  NodeError["ERR_HTTP2_HEADERS_AFTER_RESPOND"] = "ERR_HTTP2_HEADERS_AFTER_RESPOND";
605
542
  /**
606
543
  * <p>An attempt was made to send multiple response headers.</p>
607
- * <p><a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a></p>
544
+ * <p><a id="ERR_HTTP2_HEADER_SINGLE_VALUE"></a></p>
608
545
  */
609
546
  NodeError["ERR_HTTP2_HEADERS_SENT"] = "ERR_HTTP2_HEADERS_SENT";
547
+ /**
548
+ * <p>Multiple values were provided for an HTTP/2 header field that was required to
549
+ * have only a single value.</p>
550
+ * <p><a id="ERR_HTTP2_INFO_STATUS_NOT_ALLOWED"></a></p>
551
+ */
552
+ NodeError["ERR_HTTP2_HEADER_SINGLE_VALUE"] = "ERR_HTTP2_HEADER_SINGLE_VALUE";
610
553
  /**
611
554
  * <p>Informational HTTP status codes (<code>1xx</code>) may not be set as the response status
612
555
  * code on HTTP/2 responses.</p>
@@ -820,25 +763,72 @@ var NodeError;
820
763
  /**
821
764
  * <p><code>http2.connect()</code> was passed a URL that uses any protocol other than <code>http:</code> or
822
765
  * <code>https:</code>.</p>
823
- * <p><a id="ERR_ILLEGAL_CONSTRUCTOR"></a></p>
766
+ * <p><a id="ERR_HTTP_BODY_NOT_ALLOWED"></a></p>
824
767
  */
825
768
  NodeError["ERR_HTTP2_UNSUPPORTED_PROTOCOL"] = "ERR_HTTP2_UNSUPPORTED_PROTOCOL";
826
769
  /**
827
- * <p>An attempt was made to construct an object using a non-public constructor.</p>
828
- * <p><a id="ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE"></a></p>
770
+ * <p>An error is thrown when writing to an HTTP response which does not allow
771
+ * contents.</p>
772
+ * <p><a id="ERR_HTTP_CONTENT_LENGTH_MISMATCH"></a></p>
829
773
  */
830
- NodeError["ERR_ILLEGAL_CONSTRUCTOR"] = "ERR_ILLEGAL_CONSTRUCTOR";
774
+ NodeError["ERR_HTTP_BODY_NOT_ALLOWED"] = "ERR_HTTP_BODY_NOT_ALLOWED";
831
775
  /**
832
- * <p>An import <code>type</code> attribute was provided, but the specified module is of a
833
- * different type.</p>
776
+ * <p>Response body size doesn't match with the specified content-length header value.</p>
777
+ * <p><a id="ERR_HTTP_HEADERS_SENT"></a></p>
778
+ */
779
+ NodeError["ERR_HTTP_CONTENT_LENGTH_MISMATCH"] = "ERR_HTTP_CONTENT_LENGTH_MISMATCH";
780
+ /**
781
+ * <p>An attempt was made to add more headers after the headers had already been sent.</p>
782
+ * <p><a id="ERR_HTTP_INVALID_HEADER_VALUE"></a></p>
783
+ */
784
+ NodeError["ERR_HTTP_HEADERS_SENT"] = "ERR_HTTP_HEADERS_SENT";
785
+ /**
786
+ * <p>An invalid HTTP header value was specified.</p>
787
+ * <p><a id="ERR_HTTP_INVALID_STATUS_CODE"></a></p>
788
+ */
789
+ NodeError["ERR_HTTP_INVALID_HEADER_VALUE"] = "ERR_HTTP_INVALID_HEADER_VALUE";
790
+ /**
791
+ * <p>Status code was outside the regular status code range (100-999).</p>
792
+ * <p><a id="ERR_HTTP_REQUEST_TIMEOUT"></a></p>
793
+ */
794
+ NodeError["ERR_HTTP_INVALID_STATUS_CODE"] = "ERR_HTTP_INVALID_STATUS_CODE";
795
+ /**
796
+ * <p>The client has not sent the entire request within the allowed time.</p>
797
+ * <p><a id="ERR_HTTP_SOCKET_ASSIGNED"></a></p>
798
+ */
799
+ NodeError["ERR_HTTP_REQUEST_TIMEOUT"] = "ERR_HTTP_REQUEST_TIMEOUT";
800
+ /**
801
+ * <p>The given <a href="http.html#class-httpserverresponse"><code>ServerResponse</code></a> was already assigned a socket.</p>
802
+ * <p><a id="ERR_HTTP_SOCKET_ENCODING"></a></p>
803
+ */
804
+ NodeError["ERR_HTTP_SOCKET_ASSIGNED"] = "ERR_HTTP_SOCKET_ASSIGNED";
805
+ /**
806
+ * <p>Changing the socket encoding is not allowed per <a href="https://tools.ietf.org/html/rfc7230#section-3">RFC 7230 Section 3</a>.</p>
807
+ * <p><a id="ERR_HTTP_TRAILER_INVALID"></a></p>
808
+ */
809
+ NodeError["ERR_HTTP_SOCKET_ENCODING"] = "ERR_HTTP_SOCKET_ENCODING";
810
+ /**
811
+ * <p>The <code>Trailer</code> header was set even though the transfer encoding does not support
812
+ * that.</p>
813
+ * <p><a id="ERR_ILLEGAL_CONSTRUCTOR"></a></p>
814
+ */
815
+ NodeError["ERR_HTTP_TRAILER_INVALID"] = "ERR_HTTP_TRAILER_INVALID";
816
+ /**
817
+ * <p>An attempt was made to construct an object using a non-public constructor.</p>
834
818
  * <p><a id="ERR_IMPORT_ATTRIBUTE_MISSING"></a></p>
835
819
  */
836
- NodeError["ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE"] = "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE";
820
+ NodeError["ERR_ILLEGAL_CONSTRUCTOR"] = "ERR_ILLEGAL_CONSTRUCTOR";
837
821
  /**
838
822
  * <p>An import attribute is missing, preventing the specified module to be imported.</p>
839
- * <p><a id="ERR_IMPORT_ATTRIBUTE_UNSUPPORTED"></a></p>
823
+ * <p><a id="ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE"></a></p>
840
824
  */
841
825
  NodeError["ERR_IMPORT_ATTRIBUTE_MISSING"] = "ERR_IMPORT_ATTRIBUTE_MISSING";
826
+ /**
827
+ * <p>An import <code>type</code> attribute was provided, but the specified module is of a
828
+ * different type.</p>
829
+ * <p><a id="ERR_IMPORT_ATTRIBUTE_UNSUPPORTED"></a></p>
830
+ */
831
+ NodeError["ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE"] = "ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE";
842
832
  /**
843
833
  * <p>An import attribute is not supported by this version of Node.js.</p>
844
834
  * <p><a id="ERR_INCOMPATIBLE_OPTION_PAIR"></a></p>
@@ -1024,15 +1014,9 @@ var NodeError;
1024
1014
  /**
1025
1015
  * <p>The <code>package.json</code> <a href="packages.html#exports"><code>"exports"</code></a> field contains an invalid target mapping
1026
1016
  * value for the attempted module resolution.</p>
1027
- * <p><a id="ERR_INVALID_PERFORMANCE_MARK"></a></p>
1028
- */
1029
- NodeError["ERR_INVALID_PACKAGE_TARGET"] = "ERR_INVALID_PACKAGE_TARGET";
1030
- /**
1031
- * <p>While using the Performance Timing API (<code>perf_hooks</code>), a performance mark is
1032
- * invalid.</p>
1033
1017
  * <p><a id="ERR_INVALID_PROTOCOL"></a></p>
1034
1018
  */
1035
- NodeError["ERR_INVALID_PERFORMANCE_MARK"] = "ERR_INVALID_PERFORMANCE_MARK";
1019
+ NodeError["ERR_INVALID_PACKAGE_TARGET"] = "ERR_INVALID_PACKAGE_TARGET";
1036
1020
  /**
1037
1021
  * <p>An invalid <code>options.protocol</code> was passed to <code>http.request()</code>.</p>
1038
1022
  * <p><a id="ERR_INVALID_REPL_EVAL_CONFIG"></a></p>
@@ -1098,9 +1082,16 @@ var NodeError;
1098
1082
  * <a href="url.html#new-urlsearchparamsiterable"><code>URLSearchParams</code> constructor</a> did not
1099
1083
  * represent a <code>[name, value]</code> tuple – that is, if an element is not iterable, or
1100
1084
  * does not consist of exactly two elements.</p>
1101
- * <p><a id="ERR_INVALID_URI"></a></p>
1085
+ * <p><a id="ERR_INVALID_TYPESCRIPT_SYNTAX"></a></p>
1102
1086
  */
1103
1087
  NodeError["ERR_INVALID_TUPLE"] = "ERR_INVALID_TUPLE";
1088
+ /**
1089
+ * <p>The provided TypeScript syntax is not valid or unsupported.
1090
+ * This could happen when using TypeScript syntax that requires
1091
+ * transformation with <a href="typescript.html#type-stripping">type-stripping</a>.</p>
1092
+ * <p><a id="ERR_INVALID_URI"></a></p>
1093
+ */
1094
+ NodeError["ERR_INVALID_TYPESCRIPT_SYNTAX"] = "ERR_INVALID_TYPESCRIPT_SYNTAX";
1104
1095
  /**
1105
1096
  * <p>An invalid URI was passed.</p>
1106
1097
  * <p><a id="ERR_INVALID_URL"></a></p>
@@ -1245,22 +1236,14 @@ var NodeError;
1245
1236
  /**
1246
1237
  * <p>An error occurred while attempting to retrieve the JavaScript <code>undefined</code>
1247
1238
  * value.</p>
1248
- * <p><a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a></p>
1239
+ * <p><a id="ERR_NON_CONTEXT_AWARE_DISABLED"></a></p>
1249
1240
  */
1250
1241
  NodeError["ERR_NAPI_TSFN_GET_UNDEFINED"] = "ERR_NAPI_TSFN_GET_UNDEFINED";
1251
1242
  /**
1252
- * <p>On the main thread, values are removed from the queue associated with the
1253
- * thread-safe function in an idle loop. This error indicates that an error
1254
- * has occurred when attempting to start the loop.</p>
1255
- * <p><a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a></p>
1256
- */
1257
- NodeError["ERR_NAPI_TSFN_START_IDLE_LOOP"] = "ERR_NAPI_TSFN_START_IDLE_LOOP";
1258
- /**
1259
- * <p>Once no more items are left in the queue, the idle loop must be suspended. This
1260
- * error indicates that the idle loop has failed to stop.</p>
1243
+ * <p>A non-context-aware native addon was loaded in a process that disallows them.</p>
1261
1244
  * <p><a id="ERR_NOT_BUILDING_SNAPSHOT"></a></p>
1262
1245
  */
1263
- NodeError["ERR_NAPI_TSFN_STOP_IDLE_LOOP"] = "ERR_NAPI_TSFN_STOP_IDLE_LOOP";
1246
+ NodeError["ERR_NON_CONTEXT_AWARE_DISABLED"] = "ERR_NON_CONTEXT_AWARE_DISABLED";
1264
1247
  /**
1265
1248
  * <p>An attempt was made to use operations that can only be used when building
1266
1249
  * V8 startup snapshot even though Node.js isn't building one.</p>
@@ -1288,14 +1271,21 @@ var NodeError;
1288
1271
  /**
1289
1272
  * <p>An attempt was made to use features that require <a href="intl.html#internationalization-support">ICU</a>, but Node.js was not
1290
1273
  * compiled with ICU support.</p>
1291
- * <p><a id="ERR_NON_CONTEXT_AWARE_DISABLED"></a></p>
1274
+ * <p><a id="ERR_NO_TYPESCRIPT"></a></p>
1292
1275
  */
1293
1276
  NodeError["ERR_NO_ICU"] = "ERR_NO_ICU";
1294
1277
  /**
1295
- * <p>A non-context-aware native addon was loaded in a process that disallows them.</p>
1278
+ * <p>An attempt was made to use features that require <a href="typescript.html#type-stripping">Native TypeScript support</a>, but Node.js was not
1279
+ * compiled with TypeScript support.</p>
1280
+ * <p><a id="ERR_OPERATION_FAILED"></a></p>
1281
+ */
1282
+ NodeError["ERR_NO_TYPESCRIPT"] = "ERR_NO_TYPESCRIPT";
1283
+ /**
1284
+ * <p>An operation failed. This is typically used to signal the general failure
1285
+ * of an asynchronous operation.</p>
1296
1286
  * <p><a id="ERR_OUT_OF_RANGE"></a></p>
1297
1287
  */
1298
- NodeError["ERR_NON_CONTEXT_AWARE_DISABLED"] = "ERR_NON_CONTEXT_AWARE_DISABLED";
1288
+ NodeError["ERR_OPERATION_FAILED"] = "ERR_OPERATION_FAILED";
1299
1289
  /**
1300
1290
  * <p>A given value is out of the accepted range.</p>
1301
1291
  * <p><a id="ERR_PACKAGE_IMPORT_NOT_DEFINED"></a></p>
@@ -1348,33 +1338,49 @@ var NodeError;
1348
1338
  * <a href="cli.html#--disable-protomode"><code>--disable-proto=throw</code></a>. <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf"><code>Object.getPrototypeOf</code></a> and
1349
1339
  * <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/setPrototypeOf"><code>Object.setPrototypeOf</code></a> should be used to get and set the prototype of an
1350
1340
  * object.</p>
1351
- * <p><a id="ERR_REQUIRE_CYCLE_MODULE"></a></p>
1341
+ * <p><a id="ERR_QUIC_CONNECTION_FAILED"></a></p>
1352
1342
  */
1353
1343
  NodeError["ERR_PROTO_ACCESS"] = "ERR_PROTO_ACCESS";
1354
1344
  /**
1355
- * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a> under <code>--experimental-require-module</code>,
1356
- * a CommonJS to ESM or ESM to CommonJS edge participates in an immediate cycle.
1357
- * This is not allowed because ES Modules cannot be evaluated while they are
1358
- * already being evaluated.</p>
1359
- * <p>To avoid the cycle, the <code>require()</code> call involved in a cycle should not happen
1360
- * at the top-level of either an ES Module (via <code>createRequire()</code>) or a CommonJS
1361
- * module, and should be done lazily in an inner function.</p>
1345
+ * <p>Establishing a QUIC connection failed.</p>
1346
+ * <p><a id="ERR_QUIC_ENDPOINT_CLOSED"></a></p>
1347
+ */
1348
+ NodeError["ERR_QUIC_CONNECTION_FAILED"] = "ERR_QUIC_CONNECTION_FAILED";
1349
+ /**
1350
+ * <p>A QUIC Endpoint closed with an error.</p>
1351
+ * <p><a id="ERR_QUIC_OPEN_STREAM_FAILED"></a></p>
1352
+ */
1353
+ NodeError["ERR_QUIC_ENDPOINT_CLOSED"] = "ERR_QUIC_ENDPOINT_CLOSED";
1354
+ /**
1355
+ * <p>Opening a QUIC stream failed.</p>
1362
1356
  * <p><a id="ERR_REQUIRE_ASYNC_MODULE"></a></p>
1363
1357
  */
1364
- NodeError["ERR_REQUIRE_CYCLE_MODULE"] = "ERR_REQUIRE_CYCLE_MODULE";
1358
+ NodeError["ERR_QUIC_OPEN_STREAM_FAILED"] = "ERR_QUIC_OPEN_STREAM_FAILED";
1365
1359
  /**
1366
- * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a> under <code>--experimental-require-module</code>,
1367
- * the module turns out to be asynchronous. That is, it contains top-level await.</p>
1360
+ * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a>, the module turns out to be asynchronous.
1361
+ * That is, it contains top-level await.</p>
1368
1362
  * <p>To see where the top-level await is, use
1369
1363
  * <code>--experimental-print-required-tla</code> (this would execute the modules
1370
1364
  * before looking for the top-level awaits).</p>
1371
- * <p><a id="ERR_REQUIRE_ESM"></a></p>
1365
+ * <p><a id="ERR_REQUIRE_CYCLE_MODULE"></a></p>
1372
1366
  */
1373
1367
  NodeError["ERR_REQUIRE_ASYNC_MODULE"] = "ERR_REQUIRE_ASYNC_MODULE";
1368
+ /**
1369
+ * <p>When trying to <code>require()</code> a <a href="esm.html">ES Module</a>, a CommonJS to ESM or ESM to CommonJS edge
1370
+ * participates in an immediate cycle.
1371
+ * This is not allowed because ES Modules cannot be evaluated while they are
1372
+ * already being evaluated.</p>
1373
+ * <p>To avoid the cycle, the <code>require()</code> call involved in a cycle should not happen
1374
+ * at the top-level of either an ES Module (via <code>createRequire()</code>) or a CommonJS
1375
+ * module, and should be done lazily in an inner function.</p>
1376
+ * <p><a id="ERR_REQUIRE_ESM"></a></p>
1377
+ */
1378
+ NodeError["ERR_REQUIRE_CYCLE_MODULE"] = "ERR_REQUIRE_CYCLE_MODULE";
1374
1379
  /**
1375
1380
  * <p>An attempt was made to <code>require()</code> an <a href="esm.html">ES Module</a>.</p>
1376
- * <p>To enable <code>require()</code> for synchronous module graphs (without
1377
- * top-level <code>await</code>), use <code>--experimental-require-module</code>.</p>
1381
+ * <p>This error has been deprecated since <code>require()</code> now supports loading synchronous
1382
+ * ES modules. When <code>require()</code> encounters an ES module that contains top-level
1383
+ * <code>await</code>, it will throw <a href="#err_require_async_module"><code>ERR_REQUIRE_ASYNC_MODULE</code></a> instead.</p>
1378
1384
  * <p><a id="ERR_SCRIPT_EXECUTION_INTERRUPTED"></a></p>
1379
1385
  */
1380
1386
  NodeError["ERR_REQUIRE_ESM"] = "ERR_REQUIRE_ESM";
@@ -1467,9 +1473,19 @@ var NodeError;
1467
1473
  NodeError["ERR_SOCKET_DGRAM_NOT_CONNECTED"] = "ERR_SOCKET_DGRAM_NOT_CONNECTED";
1468
1474
  /**
1469
1475
  * <p>A call was made and the UDP subsystem was not running.</p>
1470
- * <p><a id="ERR_SQLITE_ERROR"></a></p>
1476
+ * <p><a id="ERR_SOURCE_MAP_CORRUPT"></a></p>
1471
1477
  */
1472
1478
  NodeError["ERR_SOCKET_DGRAM_NOT_RUNNING"] = "ERR_SOCKET_DGRAM_NOT_RUNNING";
1479
+ /**
1480
+ * <p>The source map could not be parsed because it does not exist, or is corrupt.</p>
1481
+ * <p><a id="ERR_SOURCE_MAP_MISSING_SOURCE"></a></p>
1482
+ */
1483
+ NodeError["ERR_SOURCE_MAP_CORRUPT"] = "ERR_SOURCE_MAP_CORRUPT";
1484
+ /**
1485
+ * <p>A file imported from a source map was not found.</p>
1486
+ * <p><a id="ERR_SQLITE_ERROR"></a></p>
1487
+ */
1488
+ NodeError["ERR_SOURCE_MAP_MISSING_SOURCE"] = "ERR_SOURCE_MAP_MISSING_SOURCE";
1473
1489
  /**
1474
1490
  * <p>An error was returned from <a href="sqlite.html">SQLite</a>.</p>
1475
1491
  * <p><a id="ERR_SRI_PARSE"></a></p>
@@ -1513,9 +1529,14 @@ var NodeError;
1513
1529
  /**
1514
1530
  * <p>An attempt was made to call <a href="stream.html#readablepushchunk-encoding"><code>stream.push()</code></a> after a <code>null</code>(EOF) had been
1515
1531
  * pushed to the stream.</p>
1516
- * <p><a id="ERR_STREAM_UNSHIFT_AFTER_END_EVENT"></a></p>
1532
+ * <p><a id="ERR_STREAM_UNABLE_TO_PIPE"></a></p>
1517
1533
  */
1518
1534
  NodeError["ERR_STREAM_PUSH_AFTER_EOF"] = "ERR_STREAM_PUSH_AFTER_EOF";
1535
+ /**
1536
+ * <p>An attempt was made to pipe to a closed or destroyed stream in a pipeline.</p>
1537
+ * <p><a id="ERR_STREAM_UNSHIFT_AFTER_END_EVENT"></a></p>
1538
+ */
1539
+ NodeError["ERR_STREAM_UNABLE_TO_PIPE"] = "ERR_STREAM_UNABLE_TO_PIPE";
1519
1540
  /**
1520
1541
  * <p>An attempt was made to call <a href="stream.html#readableunshiftchunk-encoding"><code>stream.unshift()</code></a> after the <code>'end'</code> event was
1521
1542
  * emitted.</p>
@@ -1646,14 +1667,14 @@ var NodeError;
1646
1667
  /**
1647
1668
  * <p>Attempting to set a TLS protocol <code>minVersion</code> or <code>maxVersion</code> conflicts with an
1648
1669
  * attempt to set the <code>secureProtocol</code> explicitly. Use one mechanism or the other.</p>
1649
- * <p><a id="ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED"></a></p>
1670
+ * <p><a id="ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED"></a></p>
1650
1671
  */
1651
1672
  NodeError["ERR_TLS_PROTOCOL_VERSION_CONFLICT"] = "ERR_TLS_PROTOCOL_VERSION_CONFLICT";
1652
1673
  /**
1653
1674
  * <p>Failed to set PSK identity hint. Hint may be too long.</p>
1654
1675
  * <p><a id="ERR_TLS_RENEGOTIATION_DISABLED"></a></p>
1655
1676
  */
1656
- NodeError["ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED"] = "ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED";
1677
+ NodeError["ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED"] = "ERR_TLS_PSK_SET_IDENTITY_HINT_FAILED";
1657
1678
  /**
1658
1679
  * <p>An attempt was made to renegotiate TLS on a socket instance with renegotiation
1659
1680
  * disabled.</p>
@@ -1777,9 +1798,14 @@ var NodeError;
1777
1798
  NodeError["ERR_UNSUPPORTED_DIR_IMPORT"] = "ERR_UNSUPPORTED_DIR_IMPORT";
1778
1799
  /**
1779
1800
  * <p><code>import</code> with URL schemes other than <code>file</code> and <code>data</code> is unsupported.</p>
1780
- * <p><a id="ERR_UNSUPPORTED_RESOLVE_REQUEST"></a></p>
1801
+ * <p><a id="ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING"></a></p>
1781
1802
  */
1782
1803
  NodeError["ERR_UNSUPPORTED_ESM_URL_SCHEME"] = "ERR_UNSUPPORTED_ESM_URL_SCHEME";
1804
+ /**
1805
+ * <p>Type stripping is not supported for files descendent of a <code>node_modules</code> directory.</p>
1806
+ * <p><a id="ERR_UNSUPPORTED_RESOLVE_REQUEST"></a></p>
1807
+ */
1808
+ NodeError["ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING"] = "ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING";
1783
1809
  /**
1784
1810
  * <p>An attempt was made to resolve an invalid module referrer. This can happen when
1785
1811
  * importing or calling <code>import.meta.resolve()</code> with either:</p>
@@ -1806,19 +1832,19 @@ var NodeError;
1806
1832
  /**
1807
1833
  * <p>While using the Performance Timing API (<code>perf_hooks</code>), no valid performance
1808
1834
  * entry types are found.</p>
1809
- * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"></a></p>
1835
+ * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"></a></p>
1810
1836
  */
1811
1837
  NodeError["ERR_VALID_PERFORMANCE_ENTRY_TYPE"] = "ERR_VALID_PERFORMANCE_ENTRY_TYPE";
1812
1838
  /**
1813
- * <p>A dynamic import callback was invoked without <code>--experimental-vm-modules</code>.</p>
1814
- * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"></a></p>
1839
+ * <p>A dynamic import callback was not specified.</p>
1840
+ * <p><a id="ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"></a></p>
1815
1841
  */
1816
- NodeError["ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"] = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG";
1842
+ NodeError["ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"] = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING";
1817
1843
  /**
1818
- * <p>A dynamic import callback was not specified.</p>
1844
+ * <p>A dynamic import callback was invoked without <code>--experimental-vm-modules</code>.</p>
1819
1845
  * <p><a id="ERR_VM_MODULE_ALREADY_LINKED"></a></p>
1820
1846
  */
1821
- NodeError["ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING"] = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING";
1847
+ NodeError["ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG"] = "ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING_FLAG";
1822
1848
  /**
1823
1849
  * <p>The module attempted to be linked is not eligible for linking, because of one of
1824
1850
  * the following reasons:</p>
@@ -1886,25 +1912,9 @@ var NodeError;
1886
1912
  /**
1887
1913
  * <p>The <code>execArgv</code> option passed to the <code>Worker</code> constructor contains
1888
1914
  * invalid flags.</p>
1889
- * <p><a id="ERR_WORKER_NOT_RUNNING"></a></p>
1890
- */
1891
- NodeError["ERR_WORKER_INVALID_EXEC_ARGV"] = "ERR_WORKER_INVALID_EXEC_ARGV";
1892
- /**
1893
- * <p>An operation failed because the <code>Worker</code> instance is not currently running.</p>
1894
- * <p><a id="ERR_WORKER_OUT_OF_MEMORY"></a></p>
1895
- */
1896
- NodeError["ERR_WORKER_NOT_RUNNING"] = "ERR_WORKER_NOT_RUNNING";
1897
- /**
1898
- * <p>The <code>Worker</code> instance terminated because it reached its memory limit.</p>
1899
- * <p><a id="ERR_WORKER_PATH"></a></p>
1900
- */
1901
- NodeError["ERR_WORKER_OUT_OF_MEMORY"] = "ERR_WORKER_OUT_OF_MEMORY";
1902
- /**
1903
- * <p>The path for the main script of a worker is neither an absolute path
1904
- * nor a relative path starting with <code>./</code> or <code>../</code>.</p>
1905
1915
  * <p><a id="ERR_WORKER_MESSAGING_ERRORED"></a></p>
1906
1916
  */
1907
- NodeError["ERR_WORKER_PATH"] = "ERR_WORKER_PATH";
1917
+ NodeError["ERR_WORKER_INVALID_EXEC_ARGV"] = "ERR_WORKER_INVALID_EXEC_ARGV";
1908
1918
  /**
1909
1919
  * <p>The destination thread threw an error while processing a message sent via <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a>.</p>
1910
1920
  * <p><a id="ERR_WORKER_MESSAGING_FAILED"></a></p>
@@ -1922,9 +1932,25 @@ var NodeError;
1922
1932
  NodeError["ERR_WORKER_MESSAGING_SAME_THREAD"] = "ERR_WORKER_MESSAGING_SAME_THREAD";
1923
1933
  /**
1924
1934
  * <p>Sending a message via <a href="worker_threads.html#workerpostmessagetothreadthreadid-value-transferlist-timeout"><code>postMessageToThread()</code></a> timed out.</p>
1925
- * <p><a id="ERR_WORKER_UNSERIALIZABLE_ERROR"></a></p>
1935
+ * <p><a id="ERR_WORKER_NOT_RUNNING"></a></p>
1926
1936
  */
1927
1937
  NodeError["ERR_WORKER_MESSAGING_TIMEOUT"] = "ERR_WORKER_MESSAGING_TIMEOUT";
1938
+ /**
1939
+ * <p>An operation failed because the <code>Worker</code> instance is not currently running.</p>
1940
+ * <p><a id="ERR_WORKER_OUT_OF_MEMORY"></a></p>
1941
+ */
1942
+ NodeError["ERR_WORKER_NOT_RUNNING"] = "ERR_WORKER_NOT_RUNNING";
1943
+ /**
1944
+ * <p>The <code>Worker</code> instance terminated because it reached its memory limit.</p>
1945
+ * <p><a id="ERR_WORKER_PATH"></a></p>
1946
+ */
1947
+ NodeError["ERR_WORKER_OUT_OF_MEMORY"] = "ERR_WORKER_OUT_OF_MEMORY";
1948
+ /**
1949
+ * <p>The path for the main script of a worker is neither an absolute path
1950
+ * nor a relative path starting with <code>./</code> or <code>../</code>.</p>
1951
+ * <p><a id="ERR_WORKER_UNSERIALIZABLE_ERROR"></a></p>
1952
+ */
1953
+ NodeError["ERR_WORKER_PATH"] = "ERR_WORKER_PATH";
1928
1954
  /**
1929
1955
  * <p>All attempts at serializing an uncaught exception from a worker thread failed.</p>
1930
1956
  * <p><a id="ERR_WORKER_UNSUPPORTED_OPERATION"></a></p>
@@ -1937,24 +1963,24 @@ var NodeError;
1937
1963
  NodeError["ERR_WORKER_UNSUPPORTED_OPERATION"] = "ERR_WORKER_UNSUPPORTED_OPERATION";
1938
1964
  /**
1939
1965
  * <p>Creation of a <a href="zlib.html"><code>zlib</code></a> object failed due to incorrect configuration.</p>
1940
- * <p><a id="HPE_HEADER_OVERFLOW"></a></p>
1966
+ * <p><a id="HPE_CHUNK_EXTENSIONS_OVERFLOW"></a></p>
1941
1967
  */
1942
1968
  NodeError["ERR_ZLIB_INITIALIZATION_FAILED"] = "ERR_ZLIB_INITIALIZATION_FAILED";
1969
+ /**
1970
+ * <p>Too much data was received for a chunk extensions. In order to protect against
1971
+ * malicious or malconfigured clients, if more than 16 KiB of data is received
1972
+ * then an <code>Error</code> with this code will be emitted.</p>
1973
+ * <p><a id="HPE_HEADER_OVERFLOW"></a></p>
1974
+ */
1975
+ NodeError["HPE_CHUNK_EXTENSIONS_OVERFLOW"] = "HPE_CHUNK_EXTENSIONS_OVERFLOW";
1943
1976
  /**
1944
1977
  * <p>Too much HTTP header data was received. In order to protect against malicious or
1945
1978
  * malconfigured clients, if more than <code>maxHeaderSize</code> of HTTP header data is received then
1946
1979
  * HTTP parsing will abort without a request or response object being created, and
1947
1980
  * an <code>Error</code> with this code will be emitted.</p>
1948
- * <p><a id="HPE_CHUNK_EXTENSIONS_OVERFLOW"></a></p>
1949
- */
1950
- NodeError["HPE_HEADER_OVERFLOW"] = "HPE_HEADER_OVERFLOW";
1951
- /**
1952
- * <p>Too much data was received for a chunk extensions. In order to protect against
1953
- * malicious or malconfigured clients, if more than 16 KiB of data is received
1954
- * then an <code>Error</code> with this code will be emitted.</p>
1955
1981
  * <p><a id="HPE_UNEXPECTED_CONTENT_LENGTH"></a></p>
1956
1982
  */
1957
- NodeError["HPE_CHUNK_EXTENSIONS_OVERFLOW"] = "HPE_CHUNK_EXTENSIONS_OVERFLOW";
1983
+ NodeError["HPE_HEADER_OVERFLOW"] = "HPE_HEADER_OVERFLOW";
1958
1984
  /**
1959
1985
  * <p>Server is sending both a <code>Content-Length</code> header and <code>Transfer-Encoding: chunked</code>.</p>
1960
1986
  * <p><code>Transfer-Encoding: chunked</code> allows the server to maintain an HTTP persistent
@@ -1972,19 +1998,40 @@ var NodeError;
1972
1998
  /**
1973
1999
  * <p>The value passed to <code>postMessage()</code> contained an object that is not supported
1974
2000
  * for transferring.</p>
1975
- * <p><a id="ERR_CRYPTO_HASH_DIGEST_NO_UTF16"></a></p>
2001
+ * <p><a id="ERR_CPU_USAGE"></a></p>
1976
2002
  * @deprecated
1977
2003
  */
1978
2004
  NodeError["ERR_CANNOT_TRANSFER_OBJECT"] = "ERR_CANNOT_TRANSFER_OBJECT";
2005
+ /**
2006
+ * <p>The native call from <code>process.cpuUsage</code> could not be processed.</p>
2007
+ * <p><a id="ERR_CRYPTO_HASH_DIGEST_NO_UTF16"></a></p>
2008
+ * @deprecated
2009
+ */
2010
+ NodeError["ERR_CPU_USAGE"] = "ERR_CPU_USAGE";
1979
2011
  /**
1980
2012
  * <p>The UTF-16 encoding was used with <a href="crypto.html#hashdigestencoding"><code>hash.digest()</code></a>. While the
1981
2013
  * <code>hash.digest()</code> method does allow an <code>encoding</code> argument to be passed in,
1982
2014
  * causing the method to return a string rather than a <code>Buffer</code>, the UTF-16
1983
2015
  * encoding (e.g. <code>ucs</code> or <code>utf16le</code>) is not supported.</p>
1984
- * <p><a id="ERR_HTTP2_FRAME_ERROR"></a></p>
2016
+ * <p><a id="ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"></a></p>
1985
2017
  * @deprecated
1986
2018
  */
1987
2019
  NodeError["ERR_CRYPTO_HASH_DIGEST_NO_UTF16"] = "ERR_CRYPTO_HASH_DIGEST_NO_UTF16";
2020
+ /**
2021
+ * <p>An incompatible combination of options was passed to <a href="crypto.html#cryptoscryptpassword-salt-keylen-options-callback"><code>crypto.scrypt()</code></a> or
2022
+ * <a href="crypto.html#cryptoscryptsyncpassword-salt-keylen-options"><code>crypto.scryptSync()</code></a>. New versions of Node.js use the error code
2023
+ * <a href="#err_incompatible_option_pair"><code>ERR_INCOMPATIBLE_OPTION_PAIR</code></a> instead, which is consistent with other APIs.</p>
2024
+ * <p><a id="ERR_FS_INVALID_SYMLINK_TYPE"></a></p>
2025
+ * @deprecated
2026
+ */
2027
+ NodeError["ERR_CRYPTO_SCRYPT_INVALID_PARAMETER"] = "ERR_CRYPTO_SCRYPT_INVALID_PARAMETER";
2028
+ /**
2029
+ * <p>An invalid symlink type was passed to the <a href="fs.html#fssymlinktarget-path-type-callback"><code>fs.symlink()</code></a> or
2030
+ * <a href="fs.html#fssymlinksynctarget-path-type"><code>fs.symlinkSync()</code></a> methods.</p>
2031
+ * <p><a id="ERR_HTTP2_FRAME_ERROR"></a></p>
2032
+ * @deprecated
2033
+ */
2034
+ NodeError["ERR_FS_INVALID_SYMLINK_TYPE"] = "ERR_FS_INVALID_SYMLINK_TYPE";
1988
2035
  /**
1989
2036
  * <p>Used when a failure occurs sending an individual frame on the HTTP/2
1990
2037
  * session.</p>
@@ -2021,10 +2068,28 @@ var NodeError;
2021
2068
  /**
2022
2069
  * <p>Used when an invalid character is found in an HTTP response status message
2023
2070
  * (reason phrase).</p>
2024
- * <p><a id="ERR_INDEX_OUT_OF_RANGE"></a></p>
2071
+ * <p><a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a></p>
2025
2072
  * @deprecated
2026
2073
  */
2027
2074
  NodeError["ERR_HTTP_INVALID_CHAR"] = "ERR_HTTP_INVALID_CHAR";
2075
+ /**
2076
+ * <p>An import assertion has failed, preventing the specified module to be imported.</p>
2077
+ * <p><a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a></p>
2078
+ * @deprecated
2079
+ */
2080
+ NodeError["ERR_IMPORT_ASSERTION_TYPE_FAILED"] = "ERR_IMPORT_ASSERTION_TYPE_FAILED";
2081
+ /**
2082
+ * <p>An import assertion is missing, preventing the specified module to be imported.</p>
2083
+ * <p><a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a></p>
2084
+ * @deprecated
2085
+ */
2086
+ NodeError["ERR_IMPORT_ASSERTION_TYPE_MISSING"] = "ERR_IMPORT_ASSERTION_TYPE_MISSING";
2087
+ /**
2088
+ * <p>An import attribute is not supported by this version of Node.js.</p>
2089
+ * <p><a id="ERR_INDEX_OUT_OF_RANGE"></a></p>
2090
+ * @deprecated
2091
+ */
2092
+ NodeError["ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"] = "ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED";
2028
2093
  /**
2029
2094
  * <p>A given index was out of the accepted range (e.g. negative offsets).</p>
2030
2095
  * <p><a id="ERR_INVALID_OPT_VALUE"></a></p>
@@ -2039,34 +2104,23 @@ var NodeError;
2039
2104
  NodeError["ERR_INVALID_OPT_VALUE"] = "ERR_INVALID_OPT_VALUE";
2040
2105
  /**
2041
2106
  * <p>An invalid or unknown file encoding was passed.</p>
2042
- * <p><a id="ERR_INVALID_TRANSFER_OBJECT"></a></p>
2107
+ * <p><a id="ERR_INVALID_PERFORMANCE_MARK"></a></p>
2043
2108
  * @deprecated
2044
2109
  */
2045
2110
  NodeError["ERR_INVALID_OPT_VALUE_ENCODING"] = "ERR_INVALID_OPT_VALUE_ENCODING";
2046
2111
  /**
2047
- * <p>An invalid transfer object was passed to <code>postMessage()</code>.</p>
2048
- * <p><a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a></p>
2049
- * @deprecated
2050
- */
2051
- NodeError["ERR_INVALID_TRANSFER_OBJECT"] = "ERR_INVALID_TRANSFER_OBJECT";
2052
- /**
2053
- * <p>An import assertion has failed, preventing the specified module to be imported.</p>
2054
- * <p><a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a></p>
2055
- * @deprecated
2056
- */
2057
- NodeError["ERR_IMPORT_ASSERTION_TYPE_FAILED"] = "ERR_IMPORT_ASSERTION_TYPE_FAILED";
2058
- /**
2059
- * <p>An import assertion is missing, preventing the specified module to be imported.</p>
2060
- * <p><a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a></p>
2112
+ * <p>While using the Performance Timing API (<code>perf_hooks</code>), a performance mark is
2113
+ * invalid.</p>
2114
+ * <p><a id="ERR_INVALID_TRANSFER_OBJECT"></a></p>
2061
2115
  * @deprecated
2062
2116
  */
2063
- NodeError["ERR_IMPORT_ASSERTION_TYPE_MISSING"] = "ERR_IMPORT_ASSERTION_TYPE_MISSING";
2117
+ NodeError["ERR_INVALID_PERFORMANCE_MARK"] = "ERR_INVALID_PERFORMANCE_MARK";
2064
2118
  /**
2065
- * <p>An import attribute is not supported by this version of Node.js.</p>
2119
+ * <p>An invalid transfer object was passed to <code>postMessage()</code>.</p>
2066
2120
  * <p><a id="ERR_MANIFEST_ASSERT_INTEGRITY"></a></p>
2067
2121
  * @deprecated
2068
2122
  */
2069
- NodeError["ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"] = "ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED";
2123
+ NodeError["ERR_INVALID_TRANSFER_OBJECT"] = "ERR_INVALID_TRANSFER_OBJECT";
2070
2124
  /**
2071
2125
  * <p>An attempt was made to load a resource, but the resource did not match the
2072
2126
  * integrity defined by the policy manifest. See the documentation for policy
@@ -2151,24 +2205,32 @@ var NodeError;
2151
2205
  NodeError["ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"] = "ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST";
2152
2206
  /**
2153
2207
  * <p>Used by the <code>Node-API</code> when <code>Constructor.prototype</code> is not an object.</p>
2154
- * <p><a id="ERR_NO_LONGER_SUPPORTED"></a></p>
2208
+ * <p><a id="ERR_NAPI_TSFN_START_IDLE_LOOP"></a></p>
2155
2209
  * @deprecated
2156
2210
  */
2157
2211
  NodeError["ERR_NAPI_CONS_PROTOTYPE_OBJECT"] = "ERR_NAPI_CONS_PROTOTYPE_OBJECT";
2158
2212
  /**
2159
- * <p>A Node.js API was called in an unsupported manner, such as
2160
- * <code>Buffer.write(string, encoding, offset[, length])</code>.</p>
2161
- * <p><a id="ERR_OPERATION_FAILED"></a></p>
2213
+ * <p>On the main thread, values are removed from the queue associated with the
2214
+ * thread-safe function in an idle loop. This error indicates that an error
2215
+ * has occurred when attempting to start the loop.</p>
2216
+ * <p><a id="ERR_NAPI_TSFN_STOP_IDLE_LOOP"></a></p>
2162
2217
  * @deprecated
2163
2218
  */
2164
- NodeError["ERR_NO_LONGER_SUPPORTED"] = "ERR_NO_LONGER_SUPPORTED";
2219
+ NodeError["ERR_NAPI_TSFN_START_IDLE_LOOP"] = "ERR_NAPI_TSFN_START_IDLE_LOOP";
2165
2220
  /**
2166
- * <p>An operation failed. This is typically used to signal the general failure
2167
- * of an asynchronous operation.</p>
2221
+ * <p>Once no more items are left in the queue, the idle loop must be suspended. This
2222
+ * error indicates that the idle loop has failed to stop.</p>
2223
+ * <p><a id="ERR_NO_LONGER_SUPPORTED"></a></p>
2224
+ * @deprecated
2225
+ */
2226
+ NodeError["ERR_NAPI_TSFN_STOP_IDLE_LOOP"] = "ERR_NAPI_TSFN_STOP_IDLE_LOOP";
2227
+ /**
2228
+ * <p>A Node.js API was called in an unsupported manner, such as
2229
+ * <code>Buffer.write(string, encoding, offset[, length])</code>.</p>
2168
2230
  * <p><a id="ERR_OUTOFMEMORY"></a></p>
2169
2231
  * @deprecated
2170
2232
  */
2171
- NodeError["ERR_OPERATION_FAILED"] = "ERR_OPERATION_FAILED";
2233
+ NodeError["ERR_NO_LONGER_SUPPORTED"] = "ERR_NO_LONGER_SUPPORTED";
2172
2234
  /**
2173
2235
  * <p>Used generically to identify that an operation caused an out of memory
2174
2236
  * condition.</p>
@@ -2249,22 +2311,22 @@ var NodeError;
2249
2311
  NodeError["ERR_V8BREAKITERATOR"] = "ERR_V8BREAKITERATOR";
2250
2312
  /**
2251
2313
  * <p>Used when a given value is out of the accepted range.</p>
2252
- * <p><a id="ERR_VM_MODULE_NOT_LINKED"></a></p>
2314
+ * <p><a id="ERR_VM_MODULE_LINKING_ERRORED"></a></p>
2253
2315
  * @deprecated
2254
2316
  */
2255
2317
  NodeError["ERR_VALUE_OUT_OF_RANGE"] = "ERR_VALUE_OUT_OF_RANGE";
2256
2318
  /**
2257
- * <p>The module must be successfully linked before instantiation.</p>
2258
- * <p><a id="ERR_VM_MODULE_LINKING_ERRORED"></a></p>
2319
+ * <p>The linker function returned a module for which linking has failed.</p>
2320
+ * <p><a id="ERR_VM_MODULE_NOT_LINKED"></a></p>
2259
2321
  * @deprecated
2260
2322
  */
2261
- NodeError["ERR_VM_MODULE_NOT_LINKED"] = "ERR_VM_MODULE_NOT_LINKED";
2323
+ NodeError["ERR_VM_MODULE_LINKING_ERRORED"] = "ERR_VM_MODULE_LINKING_ERRORED";
2262
2324
  /**
2263
- * <p>The linker function returned a module for which linking has failed.</p>
2325
+ * <p>The module must be successfully linked before instantiation.</p>
2264
2326
  * <p><a id="ERR_WORKER_UNSUPPORTED_EXTENSION"></a></p>
2265
2327
  * @deprecated
2266
2328
  */
2267
- NodeError["ERR_VM_MODULE_LINKING_ERRORED"] = "ERR_VM_MODULE_LINKING_ERRORED";
2329
+ NodeError["ERR_VM_MODULE_NOT_LINKED"] = "ERR_VM_MODULE_NOT_LINKED";
2268
2330
  /**
2269
2331
  * <p>The pathname used for the main script of a worker has an
2270
2332
  * unknown file extension.</p>
@@ -2275,16 +2337,10 @@ var NodeError;
2275
2337
  /**
2276
2338
  * <p>Used when an attempt is made to use a <code>zlib</code> object after it has already been
2277
2339
  * closed.</p>
2278
- * <p><a id="ERR_CPU_USAGE"></a></p>
2279
- * @deprecated
2280
- */
2281
- NodeError["ERR_ZLIB_BINDING_CLOSED"] = "ERR_ZLIB_BINDING_CLOSED";
2282
- /**
2283
- * <p>The native call from <code>process.cpuUsage</code> could not be processed.</p>
2284
2340
  * <p><a id="openssl-error-codes"></a></p>
2285
2341
  * @deprecated
2286
2342
  */
2287
- NodeError["ERR_CPU_USAGE"] = "ERR_CPU_USAGE";
2343
+ NodeError["ERR_ZLIB_BINDING_CLOSED"] = "ERR_ZLIB_BINDING_CLOSED";
2288
2344
  })(NodeError || (exports.NodeError = NodeError = {}));
2289
2345
  var OpenSSLError;
2290
2346
  (function (OpenSSLError) {
@@ -2436,12 +2492,7 @@ var OpenSSLError;
2436
2492
  OpenSSLError["UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY"] = "UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY";
2437
2493
  /**
2438
2494
  * <p>An error occurred trying to allocate memory. This should never happen.</p>
2439
- * <p><a id="ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING"></a></p>
2440
2495
  */
2441
2496
  OpenSSLError["OUT_OF_MEM"] = "OUT_OF_MEM";
2442
- /**
2443
- * <p>Type stripping is not supported for files descendent of a <code>node_modules</code> directory.</p>
2444
- */
2445
- OpenSSLError["ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING"] = "ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING";
2446
2497
  })(OpenSSLError || (exports.OpenSSLError = OpenSSLError = {}));
2447
2498
  //# sourceMappingURL=nodejs-error-code.generated.cjs.map