@types/node 20.8.10 → 20.9.1

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 (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, 31 Oct 2023 08:42:08 GMT
11
+ * Last updated: Thu, 16 Nov 2023 21:07:02 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/module.d.ts CHANGED
@@ -267,26 +267,16 @@ declare module "module" {
267
267
  * Provides a module-relative resolution function scoped to each module, returning
268
268
  * the URL string.
269
269
  *
270
- * @since v20.6.0
271
- *
272
- * @param specifier The module specifier to resolve relative to the current module.
273
- * @returns The absolute (`file:`) URL string for the resolved module.
274
- */
275
- resolve(specifier: string): string;
276
- /**
277
- * This `parent` parameter is only used when the `--experimental-import-meta-resolve`
270
+ * Second `parent` parameter is only used when the `--experimental-import-meta-resolve`
278
271
  * command flag enabled.
279
272
  *
280
- * Provides a module-relative resolution function scoped to each module, returning
281
- * the URL string.
282
- *
283
273
  * @since v20.6.0
284
274
  *
285
275
  * @param specifier The module specifier to resolve relative to `parent`.
286
276
  * @param parent The absolute parent module URL to resolve from.
287
277
  * @returns The absolute (`file:`) URL string for the resolved module.
288
278
  */
289
- resolve(specifier: string, parent: string | URL): string;
279
+ resolve(specifier: string, parent?: string | URL | undefined): string;
290
280
  }
291
281
  }
292
282
  export = Module;
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.8.10",
3
+ "version": "20.9.1",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -224,7 +224,7 @@
224
224
  "dependencies": {
225
225
  "undici-types": "~5.26.4"
226
226
  },
227
- "typesPublisherContentHash": "16184642b8bb9cb6f84a0d6245e7b26fc0133a47f604465cfae9c1ace3eeb2ba",
227
+ "typesPublisherContentHash": "5ceb5eee6fe5e7aa77c1c11996eefbedb14206d80d5f40698af126ff8cdfec3b",
228
228
  "typeScriptVersion": "4.5",
229
229
  "nonNpm": true
230
230
  }
node/ts4.8/module.d.ts CHANGED
@@ -267,26 +267,16 @@ declare module "module" {
267
267
  * Provides a module-relative resolution function scoped to each module, returning
268
268
  * the URL string.
269
269
  *
270
- * @since v20.6.0
271
- *
272
- * @param specifier The module specifier to resolve relative to the current module.
273
- * @returns The absolute (`file:`) URL string for the resolved module.
274
- */
275
- resolve(specifier: string): string;
276
- /**
277
- * This `parent` parameter is only used when the `--experimental-import-meta-resolve`
270
+ * Second `parent` parameter is only used when the `--experimental-import-meta-resolve`
278
271
  * command flag enabled.
279
272
  *
280
- * Provides a module-relative resolution function scoped to each module, returning
281
- * the URL string.
282
- *
283
273
  * @since v20.6.0
284
274
  *
285
275
  * @param specifier The module specifier to resolve relative to `parent`.
286
276
  * @param parent The absolute parent module URL to resolve from.
287
277
  * @returns The absolute (`file:`) URL string for the resolved module.
288
278
  */
289
- resolve(specifier: string, parent: string | URL): string;
279
+ resolve(specifier: string, parent?: string | URL | undefined): string;
290
280
  }
291
281
  }
292
282
  export = Module;
node/ts4.8/wasi.d.ts CHANGED
@@ -107,6 +107,12 @@ declare module "wasi" {
107
107
  * @default 2
108
108
  */
109
109
  stderr?: number | undefined;
110
+ /**
111
+ * The version of WASI requested.
112
+ * Currently the only supported versions are `'unstable'` and `'preview1'`.
113
+ * @since v20.0.0
114
+ */
115
+ version: string;
110
116
  }
111
117
  /**
112
118
  * The `WASI` class provides the WASI system call API and additional convenience
node/wasi.d.ts CHANGED
@@ -107,6 +107,12 @@ declare module "wasi" {
107
107
  * @default 2
108
108
  */
109
109
  stderr?: number | undefined;
110
+ /**
111
+ * The version of WASI requested.
112
+ * Currently the only supported versions are `'unstable'` and `'preview1'`.
113
+ * @since v20.0.0
114
+ */
115
+ version: string;
110
116
  }
111
117
  /**
112
118
  * The `WASI` class provides the WASI system call API and additional convenience