@types/node 20.14.11 → 20.14.13

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 (58) hide show
  1. node/README.md → node v20.14/README.md +2 -2
  2. node/buffer.d.ts → node v20.14/buffer.d.ts +0 -81
  3. node/package.json → node v20.14/package.json +2 -2
  4. node/test.d.ts → node v20.14/test.d.ts +2 -12
  5. {node → node v20.14}/LICENSE +0 -0
  6. {node → node v20.14}/assert/strict.d.ts +0 -0
  7. {node → node v20.14}/assert.d.ts +0 -0
  8. {node → node v20.14}/async_hooks.d.ts +0 -0
  9. {node → node v20.14}/child_process.d.ts +0 -0
  10. {node → node v20.14}/cluster.d.ts +0 -0
  11. {node → node v20.14}/console.d.ts +0 -0
  12. {node → node v20.14}/constants.d.ts +0 -0
  13. {node → node v20.14}/crypto.d.ts +0 -0
  14. {node → node v20.14}/dgram.d.ts +0 -0
  15. {node → node v20.14}/diagnostics_channel.d.ts +0 -0
  16. {node → node v20.14}/dns/promises.d.ts +0 -0
  17. {node → node v20.14}/dns.d.ts +0 -0
  18. {node → node v20.14}/dom-events.d.ts +0 -0
  19. {node → node v20.14}/domain.d.ts +0 -0
  20. {node → node v20.14}/events.d.ts +0 -0
  21. {node → node v20.14}/fs/promises.d.ts +0 -0
  22. {node → node v20.14}/fs.d.ts +0 -0
  23. {node → node v20.14}/globals.d.ts +0 -0
  24. {node → node v20.14}/globals.global.d.ts +0 -0
  25. {node → node v20.14}/http.d.ts +0 -0
  26. {node → node v20.14}/http2.d.ts +0 -0
  27. {node → node v20.14}/https.d.ts +0 -0
  28. {node → node v20.14}/index.d.ts +0 -0
  29. {node → node v20.14}/inspector.d.ts +0 -0
  30. {node → node v20.14}/module.d.ts +0 -0
  31. {node → node v20.14}/net.d.ts +0 -0
  32. {node → node v20.14}/os.d.ts +0 -0
  33. {node → node v20.14}/path.d.ts +0 -0
  34. {node → node v20.14}/perf_hooks.d.ts +0 -0
  35. {node → node v20.14}/process.d.ts +0 -0
  36. {node → node v20.14}/punycode.d.ts +0 -0
  37. {node → node v20.14}/querystring.d.ts +0 -0
  38. {node → node v20.14}/readline/promises.d.ts +0 -0
  39. {node → node v20.14}/readline.d.ts +0 -0
  40. {node → node v20.14}/repl.d.ts +0 -0
  41. {node → node v20.14}/sea.d.ts +0 -0
  42. {node → node v20.14}/stream/consumers.d.ts +0 -0
  43. {node → node v20.14}/stream/promises.d.ts +0 -0
  44. {node → node v20.14}/stream/web.d.ts +0 -0
  45. {node → node v20.14}/stream.d.ts +0 -0
  46. {node → node v20.14}/string_decoder.d.ts +0 -0
  47. {node → node v20.14}/timers/promises.d.ts +0 -0
  48. {node → node v20.14}/timers.d.ts +0 -0
  49. {node → node v20.14}/tls.d.ts +0 -0
  50. {node → node v20.14}/trace_events.d.ts +0 -0
  51. {node → node v20.14}/tty.d.ts +0 -0
  52. {node → node v20.14}/url.d.ts +0 -0
  53. {node → node v20.14}/util.d.ts +0 -0
  54. {node → node v20.14}/v8.d.ts +0 -0
  55. {node → node v20.14}/vm.d.ts +0 -0
  56. {node → node v20.14}/wasi.d.ts +0 -0
  57. {node → node v20.14}/worker_threads.d.ts +0 -0
  58. {node → node v20.14}/zlib.d.ts +0 -0
@@ -5,10 +5,10 @@
5
5
  This package contains type definitions for node (https://nodejs.org/).
6
6
 
7
7
  # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 16 Jul 2024 20:07:33 GMT
11
+ * Last updated: Sun, 28 Jul 2024 10:07:16 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -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
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.14.11",
3
+ "version": "20.14.13",
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": "4054f2892d54908808ab9c26086f864bb3573f93a46c6f30c4a553b98967f156",
216
216
  "typeScriptVersion": "4.8"
217
217
  }
@@ -144,7 +144,7 @@ declare module "node:test" {
144
144
  function test(options?: TestOptions, fn?: TestFn): Promise<void>;
145
145
  function test(fn?: TestFn): Promise<void>;
146
146
  namespace test {
147
- export { after, afterEach, before, beforeEach, describe, it, mock, only, run, skip, test, todo };
147
+ export { after, afterEach, before, beforeEach, describe, it, mock, only, run, skip, suite, test, todo };
148
148
  }
149
149
  /**
150
150
  * The `suite()` function is imported from the `node:test` module.
@@ -941,17 +941,6 @@ declare module "node:test" {
941
941
  * @since v19.1.0, v18.13.0
942
942
  */
943
943
  restoreAll(): void;
944
- /**
945
- * This function is used to mock the exports of ECMAScript modules,
946
- * CommonJS modules, and Node.js builtin modules. Any references to
947
- * the original module prior to mocking are not impacted
948
- * @since v22.3.0
949
- */
950
- module(speficier: string, options?: {
951
- cache?: boolean;
952
- defaultExport?: any;
953
- namedExports?: object;
954
- }): { restore: () => void };
955
944
  timers: MockTimers;
956
945
  }
957
946
  const mock: MockTracker;
@@ -1326,6 +1315,7 @@ declare module "node:test" {
1326
1315
  only,
1327
1316
  run,
1328
1317
  skip,
1318
+ suite,
1329
1319
  SuiteContext,
1330
1320
  test,
1331
1321
  test as default,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes