@types/node 20.16.14 → 20.17.0

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 (66) hide show
  1. {node v20.16 → node v20.17}/README.md +1 -1
  2. {node v20.16 → node v20.17}/assert.d.ts +2 -2
  3. {node v20.16 → node v20.17}/package.json +2 -2
  4. {node v20.16 → node v20.17}/path.d.ts +9 -0
  5. {node v20.16 → node v20.17}/stream.d.ts +19 -0
  6. {node v20.16 → node v20.17}/LICENSE +0 -0
  7. {node v20.16 → node v20.17}/assert/strict.d.ts +0 -0
  8. {node v20.16 → node v20.17}/async_hooks.d.ts +0 -0
  9. {node v20.16 → node v20.17}/buffer.buffer.d.ts +0 -0
  10. {node v20.16 → node v20.17}/buffer.d.ts +0 -0
  11. {node v20.16 → node v20.17}/child_process.d.ts +0 -0
  12. {node v20.16 → node v20.17}/cluster.d.ts +0 -0
  13. {node v20.16 → node v20.17}/compatibility/disposable.d.ts +0 -0
  14. {node v20.16 → node v20.17}/compatibility/index.d.ts +0 -0
  15. {node v20.16 → node v20.17}/compatibility/indexable.d.ts +0 -0
  16. {node v20.16 → node v20.17}/compatibility/iterators.d.ts +0 -0
  17. {node v20.16 → node v20.17}/console.d.ts +0 -0
  18. {node v20.16 → node v20.17}/constants.d.ts +0 -0
  19. {node v20.16 → node v20.17}/crypto.d.ts +0 -0
  20. {node v20.16 → node v20.17}/dgram.d.ts +0 -0
  21. {node v20.16 → node v20.17}/diagnostics_channel.d.ts +0 -0
  22. {node v20.16 → node v20.17}/dns/promises.d.ts +0 -0
  23. {node v20.16 → node v20.17}/dns.d.ts +0 -0
  24. {node v20.16 → node v20.17}/dom-events.d.ts +0 -0
  25. {node v20.16 → node v20.17}/domain.d.ts +0 -0
  26. {node v20.16 → node v20.17}/events.d.ts +0 -0
  27. {node v20.16 → node v20.17}/fs/promises.d.ts +0 -0
  28. {node v20.16 → node v20.17}/fs.d.ts +0 -0
  29. {node v20.16 → node v20.17}/globals.d.ts +0 -0
  30. {node v20.16 → node v20.17}/globals.typedarray.d.ts +0 -0
  31. {node v20.16 → node v20.17}/http.d.ts +0 -0
  32. {node v20.16 → node v20.17}/http2.d.ts +0 -0
  33. {node v20.16 → node v20.17}/https.d.ts +0 -0
  34. {node v20.16 → node v20.17}/index.d.ts +0 -0
  35. {node v20.16 → node v20.17}/inspector.d.ts +0 -0
  36. {node v20.16 → node v20.17}/module.d.ts +0 -0
  37. {node v20.16 → node v20.17}/net.d.ts +0 -0
  38. {node v20.16 → node v20.17}/os.d.ts +0 -0
  39. {node v20.16 → node v20.17}/perf_hooks.d.ts +0 -0
  40. {node v20.16 → node v20.17}/process.d.ts +0 -0
  41. {node v20.16 → node v20.17}/punycode.d.ts +0 -0
  42. {node v20.16 → node v20.17}/querystring.d.ts +0 -0
  43. {node v20.16 → node v20.17}/readline/promises.d.ts +0 -0
  44. {node v20.16 → node v20.17}/readline.d.ts +0 -0
  45. {node v20.16 → node v20.17}/repl.d.ts +0 -0
  46. {node v20.16 → node v20.17}/sea.d.ts +0 -0
  47. {node v20.16 → node v20.17}/stream/consumers.d.ts +0 -0
  48. {node v20.16 → node v20.17}/stream/promises.d.ts +0 -0
  49. {node v20.16 → node v20.17}/stream/web.d.ts +0 -0
  50. {node v20.16 → node v20.17}/string_decoder.d.ts +0 -0
  51. {node v20.16 → node v20.17}/test.d.ts +0 -0
  52. {node v20.16 → node v20.17}/timers/promises.d.ts +0 -0
  53. {node v20.16 → node v20.17}/timers.d.ts +0 -0
  54. {node v20.16 → node v20.17}/tls.d.ts +0 -0
  55. {node v20.16 → node v20.17}/trace_events.d.ts +0 -0
  56. {node v20.16 → node v20.17}/ts5.6/buffer.buffer.d.ts +0 -0
  57. {node v20.16 → node v20.17}/ts5.6/globals.typedarray.d.ts +0 -0
  58. {node v20.16 → node v20.17}/ts5.6/index.d.ts +0 -0
  59. {node v20.16 → node v20.17}/tty.d.ts +0 -0
  60. {node v20.16 → node v20.17}/url.d.ts +0 -0
  61. {node v20.16 → node v20.17}/util.d.ts +0 -0
  62. {node v20.16 → node v20.17}/v8.d.ts +0 -0
  63. {node v20.16 → node v20.17}/vm.d.ts +0 -0
  64. {node v20.16 → node v20.17}/wasi.d.ts +0 -0
  65. {node v20.16 → node v20.17}/worker_threads.d.ts +0 -0
  66. {node v20.16 → node v20.17}/zlib.d.ts +0 -0
@@ -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/v20.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 22 Oct 2024 02:30:55 GMT
11
+ * Last updated: Wed, 23 Oct 2024 14:02:36 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -45,7 +45,7 @@ declare module "assert" {
45
45
  /** The `operator` property on the error instance. */
46
46
  operator?: string | undefined;
47
47
  /** If provided, the generated stack trace omits frames before this function. */
48
- // eslint-disable-next-line @typescript-eslint/ban-types
48
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
49
49
  stackStartFn?: Function | undefined;
50
50
  });
51
51
  }
@@ -226,7 +226,7 @@ declare module "assert" {
226
226
  expected: unknown,
227
227
  message?: string | Error,
228
228
  operator?: string,
229
- // eslint-disable-next-line @typescript-eslint/ban-types
229
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
230
230
  stackStartFn?: Function,
231
231
  ): never;
232
232
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.16.14",
3
+ "version": "20.17.0",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  "undici-types": "~6.19.2"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "905fbb4c41cf3eabe9e57625684ee441eb5bf655cacd2caf024e9c8e790bc1bf",
223
+ "typesPublisherContentHash": "9cef648f04b5992e1dfca68a79575ad391a019a0c0dc0e237b99be9e79c8f046",
224
224
  "typeScriptVersion": "4.8"
225
225
  }
@@ -94,6 +94,15 @@ declare module "path" {
94
94
  * @throws {TypeError} if any of the arguments is not a string.
95
95
  */
96
96
  resolve(...paths: string[]): string;
97
+ /**
98
+ * The `path.matchesGlob()` method determines if `path` matches the `pattern`.
99
+ * @param path The path to glob-match against.
100
+ * @param pattern The glob to check the path against.
101
+ * @returns Whether or not the `path` matched the `pattern`.
102
+ * @throws {TypeError} if `path` or `pattern` are not strings.
103
+ * @since v20.17.0
104
+ */
105
+ matchesGlob(path: string, pattern: string): boolean;
97
106
  /**
98
107
  * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
99
108
  *
@@ -1250,6 +1250,25 @@ declare module "stream" {
1250
1250
  removeListener(event: "unpipe", listener: (src: Readable) => void): this;
1251
1251
  removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
1252
1252
  }
1253
+ /**
1254
+ * The utility function `duplexPair` returns an Array with two items,
1255
+ * each being a `Duplex` stream connected to the other side:
1256
+ *
1257
+ * ```js
1258
+ * const [ sideA, sideB ] = duplexPair();
1259
+ * ```
1260
+ *
1261
+ * Whatever is written to one stream is made readable on the other. It provides
1262
+ * behavior analogous to a network connection, where the data written by the client
1263
+ * becomes readable by the server, and vice-versa.
1264
+ *
1265
+ * The Duplex streams are symmetrical; one or the other may be used without any
1266
+ * difference in behavior.
1267
+ * @param options A value to pass to both {@link Duplex} constructors,
1268
+ * to set options such as buffering.
1269
+ * @since v20.17.0
1270
+ */
1271
+ function duplexPair(options?: DuplexOptions): [Duplex, Duplex];
1253
1272
  type TransformCallback = (error?: Error | null, data?: any) => void;
1254
1273
  interface TransformOptions extends DuplexOptions {
1255
1274
  construct?(this: Transform, callback: (error?: Error | null) => void): void;
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
File without changes
File without changes
File without changes