@types/node 18.6.4 → 18.6.5

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: Thu, 04 Aug 2022 22:32:21 GMT
11
+ * Last updated: Mon, 08 Aug 2022 17:02:19 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
node/buffer.d.ts CHANGED
@@ -480,7 +480,7 @@ declare module 'buffer' {
480
480
  * if `size` is 0.
481
481
  *
482
482
  * The underlying memory for `Buffer` instances created in this way is _not_
483
- * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `buf.fill(0)` to initialize
483
+ * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `buf.fill(0)` to initialize
484
484
  * such `Buffer` instances with zeroes.
485
485
  *
486
486
  * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances,
node/events.d.ts CHANGED
@@ -393,8 +393,8 @@ declare module 'events' {
393
393
  * called multiple times to remove each instance.
394
394
  *
395
395
  * Once an event is emitted, all listeners attached to it at the
396
- * time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and_before_ the last listener finishes execution will
397
- * not remove them from`emit()` in progress. Subsequent events behave as expected.
396
+ * time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and _before_ the last listener finishes execution
397
+ * will not remove them from`emit()` in progress. Subsequent events behave as expected.
398
398
  *
399
399
  * ```js
400
400
  * const myEmitter = new MyEmitter();
@@ -596,7 +596,7 @@ declare module 'events' {
596
596
  */
597
597
  prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
598
598
  /**
599
- * Adds a **one-time**`listener` function for the event named `eventName` to the_beginning_ of the listeners array. The next time `eventName` is triggered, this
599
+ * Adds a **one-time**`listener` function for the event named `eventName` to the _beginning_ of the listeners array. The next time `eventName` is triggered, this
600
600
  * listener is removed, and then invoked.
601
601
  *
602
602
  * ```js
node/http2.d.ts CHANGED
@@ -1642,7 +1642,7 @@ declare module 'http2' {
1642
1642
  * be called multiple times to provide successive parts of the body.
1643
1643
  *
1644
1644
  * In the `http` module, the response body is omitted when the
1645
- * request is a HEAD request. Similarly, the `204` and `304` responses_must not_ include a message body.
1645
+ * request is a HEAD request. Similarly, the `204` and `304` responses _must not_ include a message body.
1646
1646
  *
1647
1647
  * `chunk` can be a string or a buffer. If `chunk` is a string,
1648
1648
  * the second parameter specifies how to encode it into a byte stream.
node/net.d.ts CHANGED
@@ -205,7 +205,7 @@ declare module 'net' {
205
205
  */
206
206
  unref(): this;
207
207
  /**
208
- * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will_not_ let the program exit if it's the only socket left (the default behavior).
208
+ * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will _not_ let the program exit if it's the only socket left (the default behavior).
209
209
  * If the socket is `ref`ed calling `ref` again will have no effect.
210
210
  * @since v0.9.1
211
211
  * @return The socket itself.
@@ -504,7 +504,7 @@ declare module 'net' {
504
504
  */
505
505
  getConnections(cb: (error: Error | null, count: number) => void): void;
506
506
  /**
507
- * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will_not_ let the program exit if it's the only server left (the default behavior).
507
+ * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior).
508
508
  * If the server is `ref`ed calling `ref()` again will have no effect.
509
509
  * @since v0.9.1
510
510
  */
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.6.4",
3
+ "version": "18.6.5",
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": "6c45c49b1633a0b9a44171aa51a4e6a8777838d5e52b362a2dd8ce57bae1f929",
223
+ "typesPublisherContentHash": "4d8149f864b93846526dbd58e91ce534c655f81b4e3a0c22cd7d03534790d99d",
224
224
  "typeScriptVersion": "4.0"
225
225
  }
node/process.d.ts CHANGED
@@ -590,7 +590,7 @@ declare module 'process' {
590
590
  *
591
591
  * The reason this is problematic is because writes to `process.stdout` in Node.js
592
592
  * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js
593
- * event loop. Calling `process.exit()`, however, forces the process to exit_before_ those additional writes to `stdout` can be performed.
593
+ * event loop. Calling `process.exit()`, however, forces the process to exit _before_ those additional writes to `stdout` can be performed.
594
594
  *
595
595
  * Rather than calling `process.exit()` directly, the code _should_ set the`process.exitCode` and allow the process to exit naturally by avoiding
596
596
  * scheduling any additional work for the event loop:
node/vm.d.ts CHANGED
@@ -223,7 +223,7 @@ declare module 'vm' {
223
223
  runInNewContext(contextObject?: Context, options?: RunningScriptOptions): any;
224
224
  /**
225
225
  * Runs the compiled code contained by the `vm.Script` within the context of the
226
- * current `global` object. Running code does not have access to local scope, but_does_ have access to the current `global` object.
226
+ * current `global` object. Running code does not have access to local scope, but _does_ have access to the current `global` object.
227
227
  *
228
228
  * The following example compiles code that increments a `global` variable then
229
229
  * executes that code multiple times:
node/worker_threads.d.ts CHANGED
@@ -175,7 +175,7 @@ declare module 'worker_threads' {
175
175
  */
176
176
  postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
177
177
  /**
178
- * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does_not_ let the program exit if it's the only active handle left (the default
178
+ * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
179
179
  * behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
180
180
  *
181
181
  * If listeners are attached or removed using `.on('message')`, the port
@@ -400,7 +400,7 @@ declare module 'worker_threads' {
400
400
  */
401
401
  postMessage(value: any, transferList?: ReadonlyArray<TransferListItem>): void;
402
402
  /**
403
- * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does_not_ let the program exit if it's the only active handle left (the default
403
+ * Opposite of `unref()`, calling `ref()` on a previously `unref()`ed worker does _not_ let the program exit if it's the only active handle left (the default
404
404
  * behavior). If the worker is `ref()`ed, calling `ref()` again has
405
405
  * no effect.
406
406
  * @since v10.5.0