@types/node 20.14.0 → 20.14.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.
- node/README.md +1 -1
- node/crypto.d.ts +3 -3
- node/events.d.ts +5 -0
- node/fs.d.ts +2 -2
- node/net.d.ts +1 -1
- node/package.json +2 -2
node/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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Wed, 05 Jun 2024 07:35:45 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/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
|
@@ -978,7 +978,7 @@ declare module "crypto" {
|
|
978
978
|
getAuthTag(): Buffer;
|
979
979
|
}
|
980
980
|
/**
|
981
|
-
* Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key).
|
981
|
+
* Creates and returns a `Decipher` object that uses the given `algorithm` and `password` (key).
|
982
982
|
*
|
983
983
|
* The `options` argument controls stream behavior and is optional except when a
|
984
984
|
* 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
|
@@ -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.
|
node/events.d.ts
CHANGED
@@ -280,6 +280,11 @@ declare module "events" {
|
|
280
280
|
*/
|
281
281
|
static on(
|
282
282
|
emitter: NodeJS.EventEmitter,
|
283
|
+
eventName: string | symbol,
|
284
|
+
options?: StaticEventEmitterOptions,
|
285
|
+
): AsyncIterableIterator<any>;
|
286
|
+
static on(
|
287
|
+
emitter: EventTarget,
|
283
288
|
eventName: string,
|
284
289
|
options?: StaticEventEmitterOptions,
|
285
290
|
): AsyncIterableIterator<any>;
|
node/fs.d.ts
CHANGED
@@ -302,7 +302,7 @@ declare module "fs" {
|
|
302
302
|
/**
|
303
303
|
* Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`.
|
304
304
|
*
|
305
|
-
* A promise is returned that will be fulfilled with an `fs.Dirent`, or `null`if there are no more directory entries to read.
|
305
|
+
* A promise is returned that will be fulfilled with an `fs.Dirent`, or `null` if there are no more directory entries to read.
|
306
306
|
*
|
307
307
|
* Directory entries returned by this function are in no particular order as
|
308
308
|
* provided by the operating system's underlying directory mechanisms.
|
@@ -3617,7 +3617,7 @@ declare module "fs" {
|
|
3617
3617
|
/**
|
3618
3618
|
* Tests a user's permissions for the file or directory specified by `path`.
|
3619
3619
|
* The `mode` argument is an optional integer that specifies the accessibility
|
3620
|
-
* 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`
|
3620
|
+
* 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`
|
3621
3621
|
* (e.g.`fs.constants.W_OK | fs.constants.R_OK`). Check `File access constants` for
|
3622
3622
|
* possible values of `mode`.
|
3623
3623
|
*
|
node/net.d.ts
CHANGED
@@ -564,7 +564,7 @@ declare module "net" {
|
|
564
564
|
*
|
565
565
|
* All `listen()` methods can take a `backlog` parameter to specify the maximum
|
566
566
|
* length of the queue of pending connections. The actual length will be determined
|
567
|
-
* 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).
|
567
|
+
* 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).
|
568
568
|
*
|
569
569
|
* All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for
|
570
570
|
* details).
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.14.
|
3
|
+
"version": "20.14.2",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -212,6 +212,6 @@
|
|
212
212
|
"dependencies": {
|
213
213
|
"undici-types": "~5.26.4"
|
214
214
|
},
|
215
|
-
"typesPublisherContentHash": "
|
215
|
+
"typesPublisherContentHash": "43d05c87d286b3893e501b24310b8f43081bf151b225e4d88d87af1cf32fb63d",
|
216
216
|
"typeScriptVersion": "4.7"
|
217
217
|
}
|