@types/node 16.11.29 → 16.11.32

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 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: Mon, 25 Apr 2022 15:31:39 GMT
11
+ * Last updated: Thu, 28 Apr 2022 23:01:41 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -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 9.3)
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, options?: X509CheckOptions): string | undefined;
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
@@ -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 = (name: string, message: unknown) => void;
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
@@ -262,11 +262,11 @@ declare namespace NodeJS {
262
262
  id: string;
263
263
  filename: string;
264
264
  loaded: boolean;
265
- /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */
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 11.14.0
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
  */
@@ -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 12.11.0
1785
+ * @since v12.11.0
1786
1786
  */
1787
1787
  connectToMainThread(): void;
1788
1788
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.29",
3
+ "version": "16.11.32",
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": "53a984b7211b02302877b73b2a8722a5c9d230020665f0ec28746f9e4f8e8625",
223
+ "typesPublisherContentHash": "39a20e17723ceab28ada36bf929e716bfbdebb92ad2bf493a3e4d10669f94ef8",
224
224
  "typeScriptVersion": "3.9"
225
225
  }