@types/node 18.19.33 → 18.19.34
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.
- node v18.19/README.md +1 -1
- node v18.19/assert.d.ts +1 -1
- node v18.19/buffer.d.ts +9 -9
- node v18.19/child_process.d.ts +1 -1
- node v18.19/crypto.d.ts +12 -12
- node v18.19/dgram.d.ts +3 -3
- node v18.19/domain.d.ts +1 -1
- node v18.19/events.d.ts +2 -2
- node v18.19/fs/promises.d.ts +2 -2
- node v18.19/fs.d.ts +7 -7
- node v18.19/http.d.ts +5 -5
- node v18.19/http2.d.ts +2 -2
- node v18.19/https.d.ts +2 -2
- node v18.19/net.d.ts +2 -2
- node v18.19/os.d.ts +4 -4
- node v18.19/package.json +2 -2
- node v18.19/perf_hooks.d.ts +1 -1
- node v18.19/process.d.ts +2 -2
- node v18.19/repl.d.ts +1 -1
- node v18.19/stream.d.ts +1 -1
- node v18.19/test.d.ts +2 -2
- node v18.19/tls.d.ts +1 -1
- node v18.19/trace_events.d.ts +1 -1
- node v18.19/tty.d.ts +2 -2
- node v18.19/util.d.ts +2 -2
node v18.19/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 03 Jun 2024 23:35:49 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/assert.d.ts
CHANGED
|
@@ -795,7 +795,7 @@ declare module "assert" {
|
|
|
795
795
|
* If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes),
|
|
796
796
|
* [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function,
|
|
797
797
|
* an object where each property will be tested for, or an instance of error where
|
|
798
|
-
* each property will be tested for including the non-enumerable `message` and`name` properties.
|
|
798
|
+
* each property will be tested for including the non-enumerable `message` and `name` properties.
|
|
799
799
|
*
|
|
800
800
|
* If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject.
|
|
801
801
|
*
|
node v18.19/buffer.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ declare module "buffer" {
|
|
|
79
79
|
* Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if
|
|
80
80
|
* conversion from `fromEnc` to `toEnc` is not permitted.
|
|
81
81
|
*
|
|
82
|
-
* Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'
|
|
82
|
+
* Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`, `'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`.
|
|
83
83
|
*
|
|
84
84
|
* The transcoding process will use substitution characters if a given byte
|
|
85
85
|
* sequence cannot be adequately represented in the target encoding. For instance:
|
|
@@ -771,7 +771,7 @@ declare module "buffer" {
|
|
|
771
771
|
* // (This result is equal to: [buf1, buf3, buf2].)
|
|
772
772
|
* ```
|
|
773
773
|
*
|
|
774
|
-
* The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively.
|
|
774
|
+
* The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd` arguments can be used to limit the comparison to specific ranges within `target` and `buf` respectively.
|
|
775
775
|
*
|
|
776
776
|
* ```js
|
|
777
777
|
* import { Buffer } from 'node:buffer';
|
|
@@ -787,7 +787,7 @@ declare module "buffer" {
|
|
|
787
787
|
* // Prints: 1
|
|
788
788
|
* ```
|
|
789
789
|
*
|
|
790
|
-
* `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0
|
|
790
|
+
* `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`, `targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`.
|
|
791
791
|
* @since v0.11.13
|
|
792
792
|
* @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`.
|
|
793
793
|
* @param [targetStart=0] The offset within `target` at which to begin comparison.
|
|
@@ -1205,7 +1205,7 @@ declare module "buffer" {
|
|
|
1205
1205
|
*/
|
|
1206
1206
|
readBigInt64LE(offset?: number): bigint;
|
|
1207
1207
|
/**
|
|
1208
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting
|
|
1208
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned, little-endian integer supporting
|
|
1209
1209
|
* up to 48 bits of accuracy.
|
|
1210
1210
|
*
|
|
1211
1211
|
* This function is also available under the `readUintLE` alias.
|
|
@@ -1229,7 +1229,7 @@ declare module "buffer" {
|
|
|
1229
1229
|
*/
|
|
1230
1230
|
readUintLE(offset: number, byteLength: number): number;
|
|
1231
1231
|
/**
|
|
1232
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting
|
|
1232
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an unsigned big-endian integer supporting
|
|
1233
1233
|
* up to 48 bits of accuracy.
|
|
1234
1234
|
*
|
|
1235
1235
|
* This function is also available under the `readUintBE` alias.
|
|
@@ -1255,7 +1255,7 @@ declare module "buffer" {
|
|
|
1255
1255
|
*/
|
|
1256
1256
|
readUintBE(offset: number, byteLength: number): number;
|
|
1257
1257
|
/**
|
|
1258
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value
|
|
1258
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a little-endian, two's complement signed value
|
|
1259
1259
|
* supporting up to 48 bits of accuracy.
|
|
1260
1260
|
*
|
|
1261
1261
|
* ```js
|
|
@@ -1272,7 +1272,7 @@ declare module "buffer" {
|
|
|
1272
1272
|
*/
|
|
1273
1273
|
readIntLE(offset: number, byteLength: number): number;
|
|
1274
1274
|
/**
|
|
1275
|
-
* Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value
|
|
1275
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a big-endian, two's complement signed value
|
|
1276
1276
|
* supporting up to 48 bits of accuracy.
|
|
1277
1277
|
*
|
|
1278
1278
|
* ```js
|
|
@@ -2313,7 +2313,7 @@ declare module "buffer" {
|
|
|
2313
2313
|
* **and should never be used in new code, because they use strings to represent**
|
|
2314
2314
|
* **binary data and predate the introduction of typed arrays in JavaScript.**
|
|
2315
2315
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2316
|
-
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2316
|
+
* **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
|
|
2317
2317
|
* @since v15.13.0, v14.17.0
|
|
2318
2318
|
* @legacy Use `Buffer.from(data, 'base64')` instead.
|
|
2319
2319
|
* @param data The Base64-encoded input string.
|
|
@@ -2329,7 +2329,7 @@ declare module "buffer" {
|
|
|
2329
2329
|
* **and should never be used in new code, because they use strings to represent**
|
|
2330
2330
|
* **binary data and predate the introduction of typed arrays in JavaScript.**
|
|
2331
2331
|
* **For code running using Node.js APIs, converting between base64-encoded strings**
|
|
2332
|
-
* **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.**
|
|
2332
|
+
* **and binary data should be performed using `Buffer.from(str, 'base64')` and `buf.toString('base64')`.**
|
|
2333
2333
|
* @since v15.13.0, v14.17.0
|
|
2334
2334
|
* @legacy Use `buf.toString('base64')` instead.
|
|
2335
2335
|
* @param data An ASCII (Latin1) string.
|
node v18.19/child_process.d.ts
CHANGED
|
@@ -146,7 +146,7 @@ declare module "child_process" {
|
|
|
146
146
|
/**
|
|
147
147
|
* A sparse array of pipes to the child process, corresponding with positions in
|
|
148
148
|
* the `stdio` option passed to {@link spawn} that have been set
|
|
149
|
-
* to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin
|
|
149
|
+
* to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`, `subprocess.stdout`, and `subprocess.stderr`,
|
|
150
150
|
* respectively.
|
|
151
151
|
*
|
|
152
152
|
* In the following example, only the child's fd `1` (stdout) is configured as a
|
node v18.19/crypto.d.ts
CHANGED
|
@@ -689,7 +689,7 @@ declare module "crypto" {
|
|
|
689
689
|
authTagLength: number;
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
|
-
* Creates and returns a `Cipher` object that uses the given `algorithm` and`password`.
|
|
692
|
+
* Creates and returns a `Cipher` object that uses the given `algorithm` and `password`.
|
|
693
693
|
*
|
|
694
694
|
* The `options` argument controls stream behavior and is optional except when a
|
|
695
695
|
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
|
|
@@ -974,7 +974,7 @@ declare module "crypto" {
|
|
|
974
974
|
getAuthTag(): Buffer;
|
|
975
975
|
}
|
|
976
976
|
/**
|
|
977
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
|
|
977
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
|
|
978
978
|
*
|
|
979
979
|
* The `options` argument controls stream behavior and is optional except when a
|
|
980
980
|
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
|
|
@@ -1001,7 +1001,7 @@ declare module "crypto" {
|
|
|
1001
1001
|
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
1002
1002
|
function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
|
|
1003
1003
|
/**
|
|
1004
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`).
|
|
1004
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm`, `key` and initialization vector (`iv`).
|
|
1005
1005
|
*
|
|
1006
1006
|
* The `options` argument controls stream behavior and is optional except when a
|
|
1007
1007
|
* cipher in CCM or OCB mode (e.g. `'aes-128-ccm'`) is used. In that case, the`authTagLength` option is required and specifies the length of the
|
|
@@ -1501,7 +1501,7 @@ declare module "crypto" {
|
|
|
1501
1501
|
* The `signature` argument is the previously calculated signature for the data, in
|
|
1502
1502
|
* the `signatureEncoding`.
|
|
1503
1503
|
* If a `signatureEncoding` is specified, the `signature` is expected to be a
|
|
1504
|
-
* string; otherwise `signature` is expected to be a `Buffer
|
|
1504
|
+
* string; otherwise `signature` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1505
1505
|
*
|
|
1506
1506
|
* The `verify` object can not be used again after `verify.verify()` has been
|
|
1507
1507
|
* called. Multiple calls to `verify.verify()` will result in an error being
|
|
@@ -1606,7 +1606,7 @@ declare module "crypto" {
|
|
|
1606
1606
|
* key is interpreted using the specified `inputEncoding`, and secret is
|
|
1607
1607
|
* encoded using specified `outputEncoding`.
|
|
1608
1608
|
* If the `inputEncoding` is not
|
|
1609
|
-
* provided, `otherPublicKey` is expected to be a `Buffer
|
|
1609
|
+
* provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
1610
1610
|
*
|
|
1611
1611
|
* If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned.
|
|
1612
1612
|
* @since v0.5.0
|
|
@@ -1725,7 +1725,7 @@ declare module "crypto" {
|
|
|
1725
1725
|
type DiffieHellmanGroup = Omit<DiffieHellman, "setPublicKey" | "setPrivateKey">;
|
|
1726
1726
|
/**
|
|
1727
1727
|
* Creates a predefined `DiffieHellmanGroup` key exchange object. The
|
|
1728
|
-
* supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'
|
|
1728
|
+
* supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`, `'modp16'`, `'modp17'`,
|
|
1729
1729
|
* `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The
|
|
1730
1730
|
* returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing
|
|
1731
1731
|
* the keys (with `diffieHellman.setPublicKey()`, for example). The
|
|
@@ -1764,7 +1764,7 @@ declare module "crypto" {
|
|
|
1764
1764
|
* implementation. A selected HMAC digest algorithm specified by `digest` is
|
|
1765
1765
|
* applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`.
|
|
1766
1766
|
*
|
|
1767
|
-
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set;
|
|
1767
|
+
* The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an error occurs while deriving the key, `err` will be set;
|
|
1768
1768
|
* otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be
|
|
1769
1769
|
* thrown if any of the input arguments specify invalid values or types.
|
|
1770
1770
|
*
|
|
@@ -2339,7 +2339,7 @@ declare module "crypto" {
|
|
|
2339
2339
|
*
|
|
2340
2340
|
* If `format` is not specified the point will be returned in `'uncompressed'`format.
|
|
2341
2341
|
*
|
|
2342
|
-
* If the `inputEncoding` is not provided, `key` is expected to be a `Buffer
|
|
2342
|
+
* If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
2343
2343
|
*
|
|
2344
2344
|
* Example (uncompressing a key):
|
|
2345
2345
|
*
|
|
@@ -2438,7 +2438,7 @@ declare module "crypto" {
|
|
|
2438
2438
|
/**
|
|
2439
2439
|
* Sets the EC Diffie-Hellman private key.
|
|
2440
2440
|
* If `encoding` is provided, `privateKey` is expected
|
|
2441
|
-
* to be a string; otherwise `privateKey` is expected to be a `Buffer
|
|
2441
|
+
* to be a string; otherwise `privateKey` is expected to be a `Buffer`, `TypedArray`, or `DataView`.
|
|
2442
2442
|
*
|
|
2443
2443
|
* If `privateKey` is not valid for the curve specified when the `ECDH` object was
|
|
2444
2444
|
* created, an error is thrown. Upon setting the private key, the associated
|
|
@@ -2871,7 +2871,7 @@ declare module "crypto" {
|
|
|
2871
2871
|
* });
|
|
2872
2872
|
* ```
|
|
2873
2873
|
*
|
|
2874
|
-
* On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair.
|
|
2874
|
+
* On completion, `callback` will be called with `err` set to `undefined` and `publicKey` / `privateKey` representing the generated key pair.
|
|
2875
2875
|
*
|
|
2876
2876
|
* If this method is invoked as its `util.promisify()` ed version, it returns
|
|
2877
2877
|
* a `Promise` for an `Object` with `publicKey` and `privateKey` properties.
|
|
@@ -3431,9 +3431,9 @@ declare module "crypto" {
|
|
|
3431
3431
|
*/
|
|
3432
3432
|
function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined;
|
|
3433
3433
|
/**
|
|
3434
|
-
* HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm
|
|
3434
|
+
* HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`, `salt` and `info` are used with the `digest` to derive a key of `keylen` bytes.
|
|
3435
3435
|
*
|
|
3436
|
-
* The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
|
3436
|
+
* The supplied `callback` function is called with two arguments: `err` and `derivedKey`. If an errors occurs while deriving the key, `err` will be set;
|
|
3437
3437
|
* otherwise `err` will be `null`. The successfully generated `derivedKey` will
|
|
3438
3438
|
* be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any
|
|
3439
3439
|
* of the input arguments specify invalid values or types.
|
node v18.19/dgram.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare module "dgram" {
|
|
|
93
93
|
*/
|
|
94
94
|
class Socket extends EventEmitter {
|
|
95
95
|
/**
|
|
96
|
-
* Tells the kernel to join a multicast group at the given `multicastAddress` and`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not
|
|
96
|
+
* Tells the kernel to join a multicast group at the given `multicastAddress` and `multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not
|
|
97
97
|
* specified, the operating system will choose
|
|
98
98
|
* one interface and will add membership to it. To add membership to every
|
|
99
99
|
* available interface, call `addMembership` multiple times, once per interface.
|
|
@@ -122,7 +122,7 @@ declare module "dgram" {
|
|
|
122
122
|
addMembership(multicastAddress: string, multicastInterface?: string): void;
|
|
123
123
|
/**
|
|
124
124
|
* Returns an object containing the address information for a socket.
|
|
125
|
-
* For UDP sockets, this object will contain `address`, `family` and `port`properties.
|
|
125
|
+
* For UDP sockets, this object will contain `address`, `family` and `port` properties.
|
|
126
126
|
*
|
|
127
127
|
* This method throws `EBADF` if called on an unbound socket.
|
|
128
128
|
* @since v0.1.99
|
|
@@ -276,7 +276,7 @@ declare module "dgram" {
|
|
|
276
276
|
*
|
|
277
277
|
* The `address` argument is a string. If the value of `address` is a host name,
|
|
278
278
|
* DNS will be used to resolve the address of the host. If `address` is not
|
|
279
|
-
* provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default.
|
|
279
|
+
* provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) will be used by default.
|
|
280
280
|
*
|
|
281
281
|
* If the socket has not been previously bound with a call to `bind`, the socket
|
|
282
282
|
* is assigned a random port number and is bound to the "all interfaces" address
|
node v18.19/domain.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare module "domain" {
|
|
|
29
29
|
*/
|
|
30
30
|
members: Array<EventEmitter | NodeJS.Timer>;
|
|
31
31
|
/**
|
|
32
|
-
* The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and`process.domain` to the domain, and implicitly
|
|
32
|
+
* The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and `process.domain` to the domain, and implicitly
|
|
33
33
|
* pushes the domain onto the domain
|
|
34
34
|
* stack managed by the domain module (see {@link exit} for details on the
|
|
35
35
|
* domain stack). The call to `enter()` delimits the beginning of a chain of
|
node v18.19/events.d.ts
CHANGED
|
@@ -492,7 +492,7 @@ declare module "events" {
|
|
|
492
492
|
/**
|
|
493
493
|
* Adds the `listener` function to the end of the listeners array for the
|
|
494
494
|
* event named `eventName`. No checks are made to see if the `listener` has
|
|
495
|
-
* already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple
|
|
495
|
+
* already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple
|
|
496
496
|
* times.
|
|
497
497
|
*
|
|
498
498
|
* ```js
|
|
@@ -758,7 +758,7 @@ declare module "events" {
|
|
|
758
758
|
/**
|
|
759
759
|
* Adds the `listener` function to the _beginning_ of the listeners array for the
|
|
760
760
|
* event named `eventName`. No checks are made to see if the `listener` has
|
|
761
|
-
* already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple
|
|
761
|
+
* already been added. Multiple calls passing the same combination of `eventName` and `listener` will result in the `listener` being added, and called, multiple
|
|
762
762
|
* times.
|
|
763
763
|
*
|
|
764
764
|
* ```js
|
node v18.19/fs/promises.d.ts
CHANGED
|
@@ -480,7 +480,7 @@ declare module "fs/promises" {
|
|
|
480
480
|
/**
|
|
481
481
|
* Tests a user's permissions for the file or directory specified by `path`.
|
|
482
482
|
* The `mode` argument is an optional integer that specifies the accessibility
|
|
483
|
-
* checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK
|
|
483
|
+
* checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
|
|
484
484
|
* (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
|
485
485
|
* possible values of `mode`.
|
|
486
486
|
*
|
|
@@ -731,7 +731,7 @@ declare module "fs/promises" {
|
|
|
731
731
|
/**
|
|
732
732
|
* Creates a symbolic link.
|
|
733
733
|
*
|
|
734
|
-
* The `type` argument is only used on Windows platforms and can be one of `'dir'
|
|
734
|
+
* The `type` argument is only used on Windows platforms and can be one of `'dir'`, `'file'`, or `'junction'`. Windows junction points require the destination path
|
|
735
735
|
* to be absolute. When using `'junction'`, the `target` argument will
|
|
736
736
|
* automatically be normalized to absolute path.
|
|
737
737
|
* @since v10.0.0
|
node v18.19/fs.d.ts
CHANGED
|
@@ -282,7 +282,7 @@ declare module "fs" {
|
|
|
282
282
|
/**
|
|
283
283
|
* Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
|
|
284
284
|
*
|
|
285
|
-
* A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read.
|
|
285
|
+
* A promise is returned that will be resolved with an `fs.Dirent`, or `null` if there are no more directory entries to read.
|
|
286
286
|
*
|
|
287
287
|
* Directory entries returned by this function are in no particular order as
|
|
288
288
|
* provided by the operating system's underlying directory mechanisms.
|
|
@@ -3136,7 +3136,7 @@ declare module "fs" {
|
|
|
3136
3136
|
* again, with the latest stat objects. This is a change in functionality since
|
|
3137
3137
|
* v0.10.
|
|
3138
3138
|
*
|
|
3139
|
-
* Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible.
|
|
3139
|
+
* Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible.
|
|
3140
3140
|
*
|
|
3141
3141
|
* When a file being watched by `fs.watchFile()` disappears and reappears,
|
|
3142
3142
|
* then the contents of `previous` in the second callback event (the file's
|
|
@@ -3187,7 +3187,7 @@ declare module "fs" {
|
|
|
3187
3187
|
* again, with the latest stat objects. This is a change in functionality since
|
|
3188
3188
|
* v0.10.
|
|
3189
3189
|
*
|
|
3190
|
-
* Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible.
|
|
3190
|
+
* Using {@link watch} is more efficient than `fs.watchFile` and `fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and `fs.unwatchFile` when possible.
|
|
3191
3191
|
*
|
|
3192
3192
|
* When a file being watched by `fs.watchFile()` disappears and reappears,
|
|
3193
3193
|
* then the contents of `previous` in the second callback event (the file's
|
|
@@ -3232,7 +3232,7 @@ declare module "fs" {
|
|
|
3232
3232
|
* Calling `fs.unwatchFile()` with a filename that is not being watched is a
|
|
3233
3233
|
* no-op, not an error.
|
|
3234
3234
|
*
|
|
3235
|
-
* Using {@link watch} is more efficient than `fs.watchFile()` and`fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()`and `fs.unwatchFile()` when possible.
|
|
3235
|
+
* Using {@link watch} is more efficient than `fs.watchFile()` and `fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()` and `fs.unwatchFile()` when possible.
|
|
3236
3236
|
* @since v0.1.31
|
|
3237
3237
|
* @param listener Optional, a listener previously attached using `fs.watchFile()`
|
|
3238
3238
|
*/
|
|
@@ -3580,7 +3580,7 @@ declare module "fs" {
|
|
|
3580
3580
|
/**
|
|
3581
3581
|
* Tests a user's permissions for the file or directory specified by `path`.
|
|
3582
3582
|
* The `mode` argument is an optional integer that specifies the accessibility
|
|
3583
|
-
* checks to be performed. `mode` should be either the value `fs.constants.F_OK`or a mask consisting of the bitwise OR of any of `fs.constants.R_OK
|
|
3583
|
+
* checks to be performed. `mode` should be either the value `fs.constants.F_OK` or a mask consisting of the bitwise OR of any of `fs.constants.R_OK`, `fs.constants.W_OK`, and `fs.constants.X_OK`
|
|
3584
3584
|
* (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
|
3585
3585
|
* possible values of `mode`.
|
|
3586
3586
|
*
|
|
@@ -3875,7 +3875,7 @@ declare module "fs" {
|
|
|
3875
3875
|
* replacing it may require the `flags` option to be set to `r+` rather than the
|
|
3876
3876
|
* default `w`. The `encoding` can be any one of those accepted by `Buffer`.
|
|
3877
3877
|
*
|
|
3878
|
-
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false,
|
|
3878
|
+
* If `autoClose` is set to true (default behavior) on `'error'` or `'finish'` the file descriptor will be closed automatically. If `autoClose` is false,
|
|
3879
3879
|
* then the file descriptor won't be closed, even if there's an error.
|
|
3880
3880
|
* It is the application's responsibility to close it and make sure there's no
|
|
3881
3881
|
* file descriptor leak.
|
|
@@ -3886,7 +3886,7 @@ declare module "fs" {
|
|
|
3886
3886
|
* By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce
|
|
3887
3887
|
* performance as some optimizations (`_writev()`)
|
|
3888
3888
|
* will be disabled. When providing the `fs` option, overrides for at least one of`write` and `writev` are required. If no `fd` option is supplied, an override
|
|
3889
|
-
* for `open` is also required. If `autoClose` is `true`, an override for `close`is also required.
|
|
3889
|
+
* for `open` is also required. If `autoClose` is `true`, an override for `close` is also required.
|
|
3890
3890
|
*
|
|
3891
3891
|
* Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be
|
|
3892
3892
|
* emitted. `fd` should be blocking; non-blocking `fd`s
|
node v18.19/http.d.ts
CHANGED
|
@@ -861,7 +861,7 @@ declare module "http" {
|
|
|
861
861
|
/**
|
|
862
862
|
* This object is created internally and returned from {@link request}. It
|
|
863
863
|
* represents an _in-progress_ request whose header has already been queued. The
|
|
864
|
-
* header is still mutable using the `setHeader(name, value)
|
|
864
|
+
* header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will
|
|
865
865
|
* be sent along with the first data chunk or when calling `request.end()`.
|
|
866
866
|
*
|
|
867
867
|
* To get the response, add a listener for `'response'` to the request object.`'response'` will be emitted from the request object when the response
|
|
@@ -1207,8 +1207,8 @@ declare module "http" {
|
|
|
1207
1207
|
* Duplicates in raw headers are handled in the following ways, depending on the
|
|
1208
1208
|
* header name:
|
|
1209
1209
|
*
|
|
1210
|
-
* * Duplicates of `age`, `authorization`, `content-length`, `content-type
|
|
1211
|
-
* `max-forwards`, `proxy-authorization`, `referer
|
|
1210
|
+
* * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,
|
|
1211
|
+
* `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded.
|
|
1212
1212
|
* * `set-cookie` is always an array. Duplicates are added to the array.
|
|
1213
1213
|
* * For duplicate `cookie` headers, the values are joined together with '; '.
|
|
1214
1214
|
* * For all other headers, the values are joined together with ', '.
|
|
@@ -1300,7 +1300,7 @@ declare module "http" {
|
|
|
1300
1300
|
* new URL(request.url, `http://${request.getHeaders().host}`);
|
|
1301
1301
|
* ```
|
|
1302
1302
|
*
|
|
1303
|
-
* When `request.url` is `'/status?name=ryan'` and`request.getHeaders().host` is `'localhost:3000'`:
|
|
1303
|
+
* When `request.url` is `'/status?name=ryan'` and `request.getHeaders().host` is `'localhost:3000'`:
|
|
1304
1304
|
*
|
|
1305
1305
|
* ```console
|
|
1306
1306
|
* $ node
|
|
@@ -1413,7 +1413,7 @@ declare module "http" {
|
|
|
1413
1413
|
* });
|
|
1414
1414
|
* ```
|
|
1415
1415
|
*
|
|
1416
|
-
* An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options
|
|
1416
|
+
* An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options
|
|
1417
1417
|
* will be used
|
|
1418
1418
|
* for the client connection.
|
|
1419
1419
|
*
|
node v18.19/http2.d.ts
CHANGED
|
@@ -764,7 +764,7 @@ declare module "http2" {
|
|
|
764
764
|
*
|
|
765
765
|
* The maximum number of outstanding (unacknowledged) pings is determined by the`maxOutstandingPings` configuration option. The default maximum is 10.
|
|
766
766
|
*
|
|
767
|
-
* If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView`containing 8 bytes of data that will be transmitted with the `PING` and
|
|
767
|
+
* If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView` containing 8 bytes of data that will be transmitted with the `PING` and
|
|
768
768
|
* returned with the ping acknowledgment.
|
|
769
769
|
*
|
|
770
770
|
* The callback will be invoked with three arguments: an error argument that will
|
|
@@ -1902,7 +1902,7 @@ declare module "http2" {
|
|
|
1902
1902
|
write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean;
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Sends a status `100 Continue` to the client, indicating that the request body
|
|
1905
|
-
* should be sent. See the `'checkContinue'` event on `Http2Server` and`Http2SecureServer`.
|
|
1905
|
+
* should be sent. See the `'checkContinue'` event on `Http2Server` and `Http2SecureServer`.
|
|
1906
1906
|
* @since v8.4.0
|
|
1907
1907
|
*/
|
|
1908
1908
|
writeContinue(): void;
|
node v18.19/https.d.ts
CHANGED
|
@@ -318,8 +318,8 @@ declare module "https" {
|
|
|
318
318
|
/**
|
|
319
319
|
* Makes a request to a secure web server.
|
|
320
320
|
*
|
|
321
|
-
* The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve
|
|
322
|
-
* `pfx`, `rejectUnauthorized
|
|
321
|
+
* The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
|
|
322
|
+
* `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
|
|
323
323
|
*
|
|
324
324
|
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
|
325
325
|
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
node v18.19/net.d.ts
CHANGED
|
@@ -272,7 +272,7 @@ declare module "net" {
|
|
|
272
272
|
*/
|
|
273
273
|
readonly bytesWritten: number;
|
|
274
274
|
/**
|
|
275
|
-
* If `true
|
|
275
|
+
* If `true`, `socket.connect(options[, connectListener])` was
|
|
276
276
|
* called and has not yet finished. It will stay `true` until the socket becomes
|
|
277
277
|
* connected, then it is set to `false` and the `'connect'` event is emitted. Note
|
|
278
278
|
* that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event.
|
|
@@ -509,7 +509,7 @@ declare module "net" {
|
|
|
509
509
|
*
|
|
510
510
|
* All `listen()` methods can take a `backlog` parameter to specify the maximum
|
|
511
511
|
* length of the queue of pending connections. The actual length will be determined
|
|
512
|
-
* by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn`on Linux. The default value of this parameter is 511 (not 512).
|
|
512
|
+
* by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn` on Linux. The default value of this parameter is 511 (not 512).
|
|
513
513
|
*
|
|
514
514
|
* All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for
|
|
515
515
|
* details).
|
node v18.19/os.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ declare module "os" {
|
|
|
224
224
|
/**
|
|
225
225
|
* Returns information about the currently effective user. On POSIX platforms,
|
|
226
226
|
* this is typically a subset of the password file. The returned object includes
|
|
227
|
-
* the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and`gid` fields are `-1`, and `shell` is `null`.
|
|
227
|
+
* the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and `gid` fields are `-1`, and `shell` is `null`.
|
|
228
228
|
*
|
|
229
229
|
* The value of `homedir` returned by `os.userInfo()` is provided by the operating
|
|
230
230
|
* system. This differs from the result of `os.homedir()`, which queries
|
|
@@ -395,7 +395,7 @@ declare module "os" {
|
|
|
395
395
|
const EOL: string;
|
|
396
396
|
/**
|
|
397
397
|
* Returns the operating system CPU architecture for which the Node.js binary was
|
|
398
|
-
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'
|
|
398
|
+
* compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
399
399
|
*
|
|
400
400
|
* The return value is equivalent to `process.arch`.
|
|
401
401
|
* @since v0.5.0
|
|
@@ -412,7 +412,7 @@ declare module "os" {
|
|
|
412
412
|
/**
|
|
413
413
|
* Returns a string identifying the operating system platform for which
|
|
414
414
|
* the Node.js binary was compiled. The value is set at compile time.
|
|
415
|
-
* Possible values are `'aix'`, `'darwin'`, `'freebsd'
|
|
415
|
+
* Possible values are `'aix'`, `'darwin'`, `'freebsd'`, `'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`.
|
|
416
416
|
*
|
|
417
417
|
* The return value is equivalent to `process.platform`.
|
|
418
418
|
*
|
|
@@ -454,7 +454,7 @@ declare module "os" {
|
|
|
454
454
|
/**
|
|
455
455
|
* Attempts to set the scheduling priority for the process specified by `pid`. If`pid` is not provided or is `0`, the process ID of the current process is used.
|
|
456
456
|
*
|
|
457
|
-
* The `priority` input must be an integer between `-20` (high priority) and `19`(low priority). Due to differences between Unix priority levels and Windows
|
|
457
|
+
* The `priority` input must be an integer between `-20` (high priority) and `19` (low priority). Due to differences between Unix priority levels and Windows
|
|
458
458
|
* priority classes, `priority` is mapped to one of six priority constants in`os.constants.priority`. When retrieving a process priority level, this range
|
|
459
459
|
* mapping may cause the return value to be slightly different on Windows. To avoid
|
|
460
460
|
* confusion, set `priority` to one of the priority constants.
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.34",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -217,6 +217,6 @@
|
|
|
217
217
|
"dependencies": {
|
|
218
218
|
"undici-types": "~5.26.4"
|
|
219
219
|
},
|
|
220
|
-
"typesPublisherContentHash": "
|
|
220
|
+
"typesPublisherContentHash": "6c6d7c06c1cdcc155f6c199df5d11fb032100646cb0b4bc8e1685159f19f1fa3",
|
|
221
221
|
"typeScriptVersion": "4.7"
|
|
222
222
|
}
|
node v18.19/perf_hooks.d.ts
CHANGED
|
@@ -424,7 +424,7 @@ declare module "perf_hooks" {
|
|
|
424
424
|
*/
|
|
425
425
|
disconnect(): void;
|
|
426
426
|
/**
|
|
427
|
-
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`:
|
|
427
|
+
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
|
|
428
428
|
*
|
|
429
429
|
* ```js
|
|
430
430
|
* const {
|
node v18.19/process.d.ts
CHANGED
|
@@ -594,7 +594,7 @@ declare module "process" {
|
|
|
594
594
|
*
|
|
595
595
|
* Calling `process.exit()` will force the process to exit as quickly as possible
|
|
596
596
|
* even if there are still asynchronous operations pending that have not yet
|
|
597
|
-
* completed fully, including I/O operations to `process.stdout` and`process.stderr`.
|
|
597
|
+
* completed fully, including I/O operations to `process.stdout` and `process.stderr`.
|
|
598
598
|
*
|
|
599
599
|
* In most situations, it is not actually necessary to call `process.exit()`explicitly. The Node.js process will exit on its own _if there is no additional_
|
|
600
600
|
* _work pending_ in the event loop. The `process.exitCode` property can be set to
|
|
@@ -1079,7 +1079,7 @@ declare module "process" {
|
|
|
1079
1079
|
title: string;
|
|
1080
1080
|
/**
|
|
1081
1081
|
* The operating system CPU architecture for which the Node.js binary was compiled.
|
|
1082
|
-
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'
|
|
1082
|
+
* Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`, `'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, and `'x64'`.
|
|
1083
1083
|
*
|
|
1084
1084
|
* ```js
|
|
1085
1085
|
* import { arch } from 'process';
|
node v18.19/repl.d.ts
CHANGED
|
@@ -289,7 +289,7 @@ declare module "repl" {
|
|
|
289
289
|
defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void;
|
|
290
290
|
/**
|
|
291
291
|
* The `replServer.displayPrompt()` method readies the REPL instance for input
|
|
292
|
-
* from the user, printing the configured `prompt` to a new line in the `output`and resuming the `input` to accept new input.
|
|
292
|
+
* from the user, printing the configured `prompt` to a new line in the `output` and resuming the `input` to accept new input.
|
|
293
293
|
*
|
|
294
294
|
* When multi-line input is being entered, an ellipsis is printed rather than the
|
|
295
295
|
* 'prompt'.
|
node v18.19/stream.d.ts
CHANGED
|
@@ -1340,7 +1340,7 @@ declare module "stream" {
|
|
|
1340
1340
|
* ```
|
|
1341
1341
|
*
|
|
1342
1342
|
* Especially useful in error handling scenarios where a stream is destroyed
|
|
1343
|
-
* prematurely (like an aborted HTTP request), and will not emit `'end'`or `'finish'`.
|
|
1343
|
+
* prematurely (like an aborted HTTP request), and will not emit `'end'` or `'finish'`.
|
|
1344
1344
|
*
|
|
1345
1345
|
* The `finished` API provides promise version:
|
|
1346
1346
|
*
|
node v18.19/test.d.ts
CHANGED
|
@@ -778,12 +778,12 @@ declare module "node:test" {
|
|
|
778
778
|
* ```
|
|
779
779
|
*
|
|
780
780
|
* The above example enables mocking for the `setInterval` timer and
|
|
781
|
-
* implicitly mocks the `clearInterval` function. Only the `setInterval`and `clearInterval` functions from `node:timers
|
|
781
|
+
* implicitly mocks the `clearInterval` function. Only the `setInterval` and `clearInterval` functions from `node:timers`, `node:timers/promises`, and`globalThis` will be mocked.
|
|
782
782
|
*
|
|
783
783
|
* Alternatively, if you call `mock.timers.enable()` without any parameters:
|
|
784
784
|
*
|
|
785
785
|
* All timers (`'setInterval'`, `'clearInterval'`, `'setTimeout'`, and `'clearTimeout'`)
|
|
786
|
-
* will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout`functions from `node:timers`, `node:timers/promises`,
|
|
786
|
+
* will be mocked. The `setInterval`, `clearInterval`, `setTimeout`, and `clearTimeout` functions from `node:timers`, `node:timers/promises`,
|
|
787
787
|
* and `globalThis` will be mocked.
|
|
788
788
|
* @since v18.19.0
|
|
789
789
|
*/
|
node v18.19/tls.d.ts
CHANGED
|
@@ -1092,7 +1092,7 @@ declare module "tls" {
|
|
|
1092
1092
|
* stream and the cleartext one is used as a replacement for the initial encrypted
|
|
1093
1093
|
* stream.
|
|
1094
1094
|
*
|
|
1095
|
-
* `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and`encrypted` stream properties.
|
|
1095
|
+
* `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and `encrypted` stream properties.
|
|
1096
1096
|
*
|
|
1097
1097
|
* Using `cleartext` has the same API as {@link TLSSocket}.
|
|
1098
1098
|
*
|
node v18.19/trace_events.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* * `node.async_hooks`: Enables capture of detailed `async_hooks` trace data.
|
|
13
13
|
* The `async_hooks` events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property.
|
|
14
14
|
* * `node.bootstrap`: Enables capture of Node.js bootstrap milestones.
|
|
15
|
-
* * `node.console`: Enables capture of `console.time()` and `console.count()`output.
|
|
15
|
+
* * `node.console`: Enables capture of `console.time()` and `console.count()` output.
|
|
16
16
|
* * `node.dns.native`: Enables capture of trace data for DNS queries.
|
|
17
17
|
* * `node.environment`: Enables capture of Node.js Environment milestones.
|
|
18
18
|
* * `node.fs.sync`: Enables capture of trace data for file system sync methods.
|
node v18.19/tty.d.ts
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* ```
|
|
22
22
|
*
|
|
23
23
|
* In most cases, there should be little to no reason for an application to
|
|
24
|
-
* manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes.
|
|
24
|
+
* manually create instances of the `tty.ReadStream` and `tty.WriteStream` classes.
|
|
25
25
|
* @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/tty.js)
|
|
26
26
|
*/
|
|
27
27
|
declare module "tty" {
|
|
@@ -147,7 +147,7 @@ declare module "tty" {
|
|
|
147
147
|
* * 256 colors: `FORCE_COLOR = 2`
|
|
148
148
|
* * 16,777,216 colors: `FORCE_COLOR = 3`
|
|
149
149
|
*
|
|
150
|
-
* Disabling color support is also possible by using the `NO_COLOR` and`NODE_DISABLE_COLORS` environment variables.
|
|
150
|
+
* Disabling color support is also possible by using the `NO_COLOR` and `NODE_DISABLE_COLORS` environment variables.
|
|
151
151
|
* @since v9.9.0
|
|
152
152
|
* @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal.
|
|
153
153
|
*/
|
node v18.19/util.d.ts
CHANGED
|
@@ -513,7 +513,7 @@ declare module "util" {
|
|
|
513
513
|
*/
|
|
514
514
|
export function isError(object: unknown): object is Error;
|
|
515
515
|
/**
|
|
516
|
-
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and`extends` keywords to get language level inheritance support. Also note
|
|
516
|
+
* Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and `extends` keywords to get language level inheritance support. Also note
|
|
517
517
|
* that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179).
|
|
518
518
|
*
|
|
519
519
|
* Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The
|
|
@@ -885,7 +885,7 @@ declare module "util" {
|
|
|
885
885
|
* If the `--throw-deprecation` command-line flag is set, or the`process.throwDeprecation` property is set to `true`, then an exception will be
|
|
886
886
|
* thrown when the deprecated function is called.
|
|
887
887
|
*
|
|
888
|
-
* The `--throw-deprecation` command-line flag and `process.throwDeprecation`property take precedence over `--trace-deprecation` and`process.traceDeprecation`.
|
|
888
|
+
* The `--throw-deprecation` command-line flag and `process.throwDeprecation` property take precedence over `--trace-deprecation` and `process.traceDeprecation`.
|
|
889
889
|
* @since v0.8.0
|
|
890
890
|
* @param fn The function that is being deprecated.
|
|
891
891
|
* @param msg A warning message to display when the deprecated function is invoked.
|