@types/node 17.0.29 → 17.0.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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 26 Apr 2022 21:01:46 GMT
11
+ * Last updated: Tue, 10 May 2022 21:31:42 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
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, 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
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.29",
3
+ "version": "17.0.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",
@@ -215,6 +215,6 @@
215
215
  },
216
216
  "scripts": {},
217
217
  "dependencies": {},
218
- "typesPublisherContentHash": "074b7b1a5263f62b111cfdb78616eca98b537c87c8c9771401a1292e9a52fb20",
218
+ "typesPublisherContentHash": "2dd579d0ba3c1020dfef69325afa6d46fba439ba51eed066862df6bb33a7c2c5",
219
219
  "typeScriptVersion": "3.9"
220
220
  }
node/timers.d.ts CHANGED
@@ -69,7 +69,7 @@ declare module 'timers' {
69
69
  namespace setTimeout {
70
70
  const __promisify__: typeof setTimeoutPromise;
71
71
  }
72
- function clearTimeout(timeoutId: NodeJS.Timeout): void;
72
+ function clearTimeout(timeoutId: NodeJS.Timeout | undefined): void;
73
73
  function setInterval<TArgs extends any[]>(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer;
74
74
  // util.promisify no rest args compability
75
75
  // tslint:disable-next-line void-return
@@ -77,7 +77,7 @@ declare module 'timers' {
77
77
  namespace setInterval {
78
78
  const __promisify__: typeof setIntervalPromise;
79
79
  }
80
- function clearInterval(intervalId: NodeJS.Timeout): void;
80
+ function clearInterval(intervalId: NodeJS.Timeout | undefined): void;
81
81
  function setImmediate<TArgs extends any[]>(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate;
82
82
  // util.promisify no rest args compability
83
83
  // tslint:disable-next-line void-return
@@ -85,7 +85,7 @@ declare module 'timers' {
85
85
  namespace setImmediate {
86
86
  const __promisify__: typeof setImmediatePromise;
87
87
  }
88
- function clearImmediate(immediateId: NodeJS.Immediate): void;
88
+ function clearImmediate(immediateId: NodeJS.Immediate | undefined): void;
89
89
  function queueMicrotask(callback: () => void): void;
90
90
  }
91
91
  }