@types/node 16.18.102 → 16.18.103

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 v16.18/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/v16.
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: none
13
13
 
14
14
  # Credits
node v16.18/module.d.ts CHANGED
@@ -195,22 +195,15 @@ declare module "module" {
195
195
  static Module: typeof Module;
196
196
  constructor(id: string, parent?: Module);
197
197
  }
198
+ type ImportMetaDOMCompat = typeof globalThis extends { onmessage: any } ? {
199
+ resolve(specifier: string): string;
200
+ }
201
+ : {
202
+ resolve?(specifier: string, parent?: string | URL): Promise<string>;
203
+ };
198
204
  global {
199
- interface ImportMeta {
205
+ interface ImportMeta extends ImportMetaDOMCompat {
200
206
  url: string;
201
- /**
202
- * @experimental
203
- * This feature is only available with the `--experimental-import-meta-resolve`
204
- * command flag enabled.
205
- *
206
- * Provides a module-relative resolution function scoped to each module, returning
207
- * the URL string.
208
- *
209
- * @param specified The module specifier to resolve relative to `parent`.
210
- * @param parent The absolute parent module URL to resolve from. If none
211
- * is specified, the value of `import.meta.url` is used as the default.
212
- */
213
- resolve?(specified: string, parent?: string | URL): Promise<string>;
214
207
  }
215
208
  }
216
209
  export = Module;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.18.102",
3
+ "version": "16.18.103",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -210,6 +210,6 @@
210
210
  },
211
211
  "scripts": {},
212
212
  "dependencies": {},
213
- "typesPublisherContentHash": "a27ff62c2cecf5a12bb841df4f1a3c2a6fe58740d28d73d02e914cabd80e3e00",
213
+ "typesPublisherContentHash": "ae435c06d80fefd29e8912da780485466353336a512ae7a4f7a89ac8baf60714",
214
214
  "typeScriptVersion": "4.8"
215
215
  }