@types/node 18.19.40 → 18.19.41

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 v18.19/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/v18.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 16 Jul 2024 20:07:33 GMT
11
+ * Last updated: Thu, 18 Jul 2024 18:38:10 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node v18.19/module.d.ts CHANGED
@@ -272,22 +272,15 @@ declare module "module" {
272
272
  static register<Data = any>(specifier: string | URL, options?: RegisterOptions<Data>): void;
273
273
  constructor(id: string, parent?: Module);
274
274
  }
275
+ type ImportMetaDOMCompat = typeof globalThis extends { onmessage: any } ? {
276
+ resolve(specifier: string): string;
277
+ }
278
+ : {
279
+ resolve?(specifier: string, parent?: string | URL): Promise<string>;
280
+ };
275
281
  global {
276
- interface ImportMeta {
282
+ interface ImportMeta extends ImportMetaDOMCompat {
277
283
  url: string;
278
- /**
279
- * @experimental
280
- * This feature is only available with the `--experimental-import-meta-resolve`
281
- * command flag enabled.
282
- *
283
- * Provides a module-relative resolution function scoped to each module, returning
284
- * the URL string.
285
- *
286
- * @param specified The module specifier to resolve relative to `parent`.
287
- * @param parent The absolute parent module URL to resolve from. If none
288
- * is specified, the value of `import.meta.url` is used as the default.
289
- */
290
- resolve?(specified: string, parent?: string | URL): Promise<string>;
291
284
  }
292
285
  }
293
286
  export = Module;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.19.40",
3
+ "version": "18.19.41",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -217,6 +217,6 @@
217
217
  "dependencies": {
218
218
  "undici-types": "~5.26.4"
219
219
  },
220
- "typesPublisherContentHash": "66d6b061541c7ad111b7ddb83bd9aecbbd950c26f2b1903c2381246f0bc10d7b",
220
+ "typesPublisherContentHash": "1bba4b67e320cd62e059125efa70ea35d3af301b4291c2b3f23df7aa3b42a9a0",
221
221
  "typeScriptVersion": "4.8"
222
222
  }