@types/node 16.11.30 → 16.11.33
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 v16.11/README.md +1 -1
- node v16.11/async_hooks.d.ts +1 -1
- node v16.11/crypto.d.ts +13 -6
- node v16.11/diagnostics_channel.d.ts +18 -0
- node v16.11/globals.d.ts +2 -2
- node v16.11/inspector.d.ts +1 -1
- node v16.11/package.json +2 -2
node v16.11/README.md
CHANGED
|
@@ -8,7 +8,7 @@ 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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 01 May 2022 20:31:38 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.11/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 v16.11/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
|
|
@@ -89,6 +89,24 @@ declare module 'diagnostics_channel' {
|
|
|
89
89
|
*/
|
|
90
90
|
readonly hasSubscribers: boolean;
|
|
91
91
|
private constructor(name: string);
|
|
92
|
+
/**
|
|
93
|
+
* Publish a message to any subscribers to the channel. This will
|
|
94
|
+
* trigger message handlers synchronously so they will execute within
|
|
95
|
+
* the same context.
|
|
96
|
+
*
|
|
97
|
+
* ```js
|
|
98
|
+
* import diagnostics_channel from 'diagnostics_channel';
|
|
99
|
+
*
|
|
100
|
+
* const channel = diagnostics_channel.channel('my-channel');
|
|
101
|
+
*
|
|
102
|
+
* channel.publish({
|
|
103
|
+
* some: 'message'
|
|
104
|
+
* });
|
|
105
|
+
* ```
|
|
106
|
+
* @since v15.1.0, v14.17.0
|
|
107
|
+
* @param message The message to send to the channel subscribers
|
|
108
|
+
*/
|
|
109
|
+
publish(message: unknown): void;
|
|
92
110
|
/**
|
|
93
111
|
* Register a message handler to subscribe to this channel. This message handler
|
|
94
112
|
* will be run synchronously whenever a message is published to the channel. Any
|
node v16.11/globals.d.ts
CHANGED
|
@@ -262,11 +262,11 @@ declare namespace NodeJS {
|
|
|
262
262
|
id: string;
|
|
263
263
|
filename: string;
|
|
264
264
|
loaded: boolean;
|
|
265
|
-
/** @deprecated since
|
|
265
|
+
/** @deprecated since v14.6.0 Please use `require.main` and `module.children` instead. */
|
|
266
266
|
parent: Module | null | undefined;
|
|
267
267
|
children: Module[];
|
|
268
268
|
/**
|
|
269
|
-
* @since
|
|
269
|
+
* @since v11.14.0
|
|
270
270
|
*
|
|
271
271
|
* The directory name of the module. This is usually the same as the path.dirname() of the module.id.
|
|
272
272
|
*/
|
node v16.11/inspector.d.ts
CHANGED
|
@@ -1782,7 +1782,7 @@ declare module 'inspector' {
|
|
|
1782
1782
|
* Connects a session to the main thread inspector back-end.
|
|
1783
1783
|
* An exception will be thrown if this API was not called on a Worker
|
|
1784
1784
|
* thread.
|
|
1785
|
-
* @since
|
|
1785
|
+
* @since v12.11.0
|
|
1786
1786
|
*/
|
|
1787
1787
|
connectToMainThread(): void;
|
|
1788
1788
|
/**
|
node v16.11/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.11.
|
|
3
|
+
"version": "16.11.33",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
},
|
|
221
221
|
"scripts": {},
|
|
222
222
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "dafb0bc555fb1be584bef46bc43e320ca6ed362951a5c7e8166ca3766c7b9193",
|
|
224
224
|
"typeScriptVersion": "3.9"
|
|
225
225
|
}
|