@types/node 20.14.11 → 20.14.12

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/buffer.d.ts +0 -81
  3. node/package.json +2 -2
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for node (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, 16 Jul 2024 20:07:33 GMT
11
+ * Last updated: Tue, 23 Jul 2024 18:09:25 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/buffer.d.ts CHANGED
@@ -2200,31 +2200,6 @@ declare module "buffer" {
2200
2200
  * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
2201
2201
  */
2202
2202
  lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
2203
- /**
2204
- * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `[index, byte]` pairs from the contents
2205
- * of `buf`.
2206
- *
2207
- * ```js
2208
- * import { Buffer } from 'node:buffer';
2209
- *
2210
- * // Log the entire contents of a `Buffer`.
2211
- *
2212
- * const buf = Buffer.from('buffer');
2213
- *
2214
- * for (const pair of buf.entries()) {
2215
- * console.log(pair);
2216
- * }
2217
- * // Prints:
2218
- * // [0, 98]
2219
- * // [1, 117]
2220
- * // [2, 102]
2221
- * // [3, 102]
2222
- * // [4, 101]
2223
- * // [5, 114]
2224
- * ```
2225
- * @since v1.1.0
2226
- */
2227
- entries(): IterableIterator<[number, number]>;
2228
2203
  /**
2229
2204
  * Equivalent to `buf.indexOf() !== -1`.
2230
2205
  *
@@ -2255,62 +2230,6 @@ declare module "buffer" {
2255
2230
  * @return `true` if `value` was found in `buf`, `false` otherwise.
2256
2231
  */
2257
2232
  includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
2258
- /**
2259
- * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices).
2260
- *
2261
- * ```js
2262
- * import { Buffer } from 'node:buffer';
2263
- *
2264
- * const buf = Buffer.from('buffer');
2265
- *
2266
- * for (const key of buf.keys()) {
2267
- * console.log(key);
2268
- * }
2269
- * // Prints:
2270
- * // 0
2271
- * // 1
2272
- * // 2
2273
- * // 3
2274
- * // 4
2275
- * // 5
2276
- * ```
2277
- * @since v1.1.0
2278
- */
2279
- keys(): IterableIterator<number>;
2280
- /**
2281
- * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is
2282
- * called automatically when a `Buffer` is used in a `for..of` statement.
2283
- *
2284
- * ```js
2285
- * import { Buffer } from 'node:buffer';
2286
- *
2287
- * const buf = Buffer.from('buffer');
2288
- *
2289
- * for (const value of buf.values()) {
2290
- * console.log(value);
2291
- * }
2292
- * // Prints:
2293
- * // 98
2294
- * // 117
2295
- * // 102
2296
- * // 102
2297
- * // 101
2298
- * // 114
2299
- *
2300
- * for (const value of buf) {
2301
- * console.log(value);
2302
- * }
2303
- * // Prints:
2304
- * // 98
2305
- * // 117
2306
- * // 102
2307
- * // 102
2308
- * // 101
2309
- * // 114
2310
- * ```
2311
- * @since v1.1.0
2312
- */
2313
- values(): IterableIterator<number>;
2314
2233
  }
2315
2234
  var Buffer: BufferConstructor;
2316
2235
  /**
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.14.11",
3
+ "version": "20.14.12",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -212,6 +212,6 @@
212
212
  "dependencies": {
213
213
  "undici-types": "~5.26.4"
214
214
  },
215
- "typesPublisherContentHash": "e16ff5cc6bae8ed88d0ff399d3af0b1017ab1349e316830d51bf3a03a5e1a236",
215
+ "typesPublisherContentHash": "9e6a411f225bdb4e807bf8a25271d2fc7c8aa163691598117f118732284e76e0",
216
216
  "typeScriptVersion": "4.8"
217
217
  }