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