@types/node 17.0.27 → 17.0.30
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 +2 -2
- node/async_hooks.d.ts +1 -1
- node/crypto.d.ts +13 -6
- node/diagnostics_channel.d.ts +1 -1
- node/globals.d.ts +12 -2
- node/package.json +2 -2
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (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: Thu, 28 Apr 2022 23:01:40 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
|
-
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
13
|
+
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
16
|
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
node/async_hooks.d.ts
CHANGED
|
@@ -258,7 +258,7 @@ declare module 'async_hooks' {
|
|
|
258
258
|
* @param type The type of async event.
|
|
259
259
|
* @param triggerAsyncId The ID of the execution context that created
|
|
260
260
|
* this async event (default: `executionAsyncId()`), or an
|
|
261
|
-
* AsyncResourceOptions object (since
|
|
261
|
+
* AsyncResourceOptions object (since v9.3.0)
|
|
262
262
|
*/
|
|
263
263
|
constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions);
|
|
264
264
|
/**
|
node/crypto.d.ts
CHANGED
|
@@ -3108,21 +3108,28 @@ declare module 'crypto' {
|
|
|
3108
3108
|
* @since v15.6.0
|
|
3109
3109
|
*/
|
|
3110
3110
|
readonly fingerprint256: string;
|
|
3111
|
+
/**
|
|
3112
|
+
* The SHA-512 fingerprint of this certificate.
|
|
3113
|
+
* @since v16.14.0
|
|
3114
|
+
*/
|
|
3115
|
+
readonly fingerprint512: string;
|
|
3111
3116
|
/**
|
|
3112
3117
|
* The complete subject of this certificate.
|
|
3113
3118
|
* @since v15.6.0
|
|
3114
3119
|
*/
|
|
3115
3120
|
readonly subject: string;
|
|
3116
3121
|
/**
|
|
3117
|
-
* The subject alternative name specified for this certificate
|
|
3122
|
+
* The subject alternative name specified for this certificate or `undefined`
|
|
3123
|
+
* if not available.
|
|
3118
3124
|
* @since v15.6.0
|
|
3119
3125
|
*/
|
|
3120
|
-
readonly subjectAltName: string;
|
|
3126
|
+
readonly subjectAltName: string | undefined;
|
|
3121
3127
|
/**
|
|
3122
|
-
* The information access content of this certificate
|
|
3128
|
+
* The information access content of this certificate or `undefined` if not
|
|
3129
|
+
* available.
|
|
3123
3130
|
* @since v15.6.0
|
|
3124
3131
|
*/
|
|
3125
|
-
readonly infoAccess: string;
|
|
3132
|
+
readonly infoAccess: string | undefined;
|
|
3126
3133
|
/**
|
|
3127
3134
|
* An array detailing the key usages for this certificate.
|
|
3128
3135
|
* @since v15.6.0
|
|
@@ -3170,7 +3177,7 @@ declare module 'crypto' {
|
|
|
3170
3177
|
* @since v15.6.0
|
|
3171
3178
|
* @return Returns `email` if the certificate matches, `undefined` if it does not.
|
|
3172
3179
|
*/
|
|
3173
|
-
checkEmail(email: string, options?: X509CheckOptions): string | undefined;
|
|
3180
|
+
checkEmail(email: string, options?: Pick<X509CheckOptions, 'subject'>): string | undefined;
|
|
3174
3181
|
/**
|
|
3175
3182
|
* Checks whether the certificate matches the given host name.
|
|
3176
3183
|
* @since v15.6.0
|
|
@@ -3182,7 +3189,7 @@ declare module 'crypto' {
|
|
|
3182
3189
|
* @since v15.6.0
|
|
3183
3190
|
* @return Returns `ip` if the certificate matches, `undefined` if it does not.
|
|
3184
3191
|
*/
|
|
3185
|
-
checkIP(ip: string
|
|
3192
|
+
checkIP(ip: string): string | undefined;
|
|
3186
3193
|
/**
|
|
3187
3194
|
* Checks whether this certificate was issued by the given `otherCert`.
|
|
3188
3195
|
* @since v15.6.0
|
node/diagnostics_channel.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ declare module 'diagnostics_channel' {
|
|
|
57
57
|
* @return The named channel object
|
|
58
58
|
*/
|
|
59
59
|
function channel(name: string): Channel;
|
|
60
|
-
type ChannelListener = (
|
|
60
|
+
type ChannelListener = (message: unknown, name: string) => void;
|
|
61
61
|
/**
|
|
62
62
|
* The class `Channel` represents an individual named channel within the data
|
|
63
63
|
* pipeline. It is use to track subscribers and to publish messages when there
|
node/globals.d.ts
CHANGED
|
@@ -100,6 +100,16 @@ interface BigInt64Array extends RelativeIndexable<bigint> {}
|
|
|
100
100
|
interface BigUint64Array extends RelativeIndexable<bigint> {}
|
|
101
101
|
//#endregion ArrayLike.at() end
|
|
102
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @since v17.0.0
|
|
105
|
+
*
|
|
106
|
+
* Creates a deep clone of an object.
|
|
107
|
+
*/
|
|
108
|
+
declare function structuredClone<T>(
|
|
109
|
+
value: T,
|
|
110
|
+
transfer?: { transfer: ReadonlyArray<import('worker_threads').TransferListItem> },
|
|
111
|
+
): T;
|
|
112
|
+
|
|
103
113
|
/*----------------------------------------------*
|
|
104
114
|
* *
|
|
105
115
|
* GLOBAL INTERFACES *
|
|
@@ -262,11 +272,11 @@ declare namespace NodeJS {
|
|
|
262
272
|
id: string;
|
|
263
273
|
filename: string;
|
|
264
274
|
loaded: boolean;
|
|
265
|
-
/** @deprecated since
|
|
275
|
+
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
266
276
|
parent: Module | null | undefined;
|
|
267
277
|
children: Module[];
|
|
268
278
|
/**
|
|
269
|
-
* @since
|
|
279
|
+
* @since v11.14.0
|
|
270
280
|
*
|
|
271
281
|
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
272
282
|
*/
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.30",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
},
|
|
216
216
|
"scripts": {},
|
|
217
217
|
"dependencies": {},
|
|
218
|
-
"typesPublisherContentHash": "
|
|
218
|
+
"typesPublisherContentHash": "477de93e8f11925159031522b67385c5cfd5cf6d8254e612b438ab723ccf0e57",
|
|
219
219
|
"typeScriptVersion": "3.9"
|
|
220
220
|
}
|