@types/node 17.0.17 → 17.0.18

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 (3) hide show
  1. node/README.md +1 -1
  2. node/package.json +2 -2
  3. node/url.d.ts +10 -6
node/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (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: Thu, 10 Feb 2022 05:31:37 GMT
11
+ * Last updated: Mon, 14 Feb 2022 19:31:26 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "17.0.17",
3
+ "version": "17.0.18",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -215,6 +215,6 @@
215
215
  },
216
216
  "scripts": {},
217
217
  "dependencies": {},
218
- "typesPublisherContentHash": "81c14b1a78451f6c86a6d41a796951f39a75390e0d1f9e36e8f4ff1877f94f38",
218
+ "typesPublisherContentHash": "891e843fdc636f2072ebbf447c039d97341878ad4fab638195f8fff1aa48c917",
219
219
  "typeScriptVersion": "3.8"
220
220
  }
node/url.d.ts CHANGED
@@ -869,17 +869,21 @@ declare module 'url' {
869
869
  * https://nodejs.org/api/url.html#the-whatwg-url-api
870
870
  * @since v10.0.0
871
871
  */
872
- var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
872
+ var URL:
873
+ // For compatibility with "dom" and "webworker" URL declarations
874
+ typeof globalThis extends { onmessage: any, URL: infer URL }
875
+ ? URL
876
+ : typeof _URL;
873
877
  /**
874
878
  * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
875
879
  * https://nodejs.org/api/url.html#class-urlsearchparams
876
880
  * @since v10.0.0
877
881
  */
878
- var URLSearchParams: {
879
- prototype: URLSearchParams;
880
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
881
- toString(): string;
882
- };
882
+ var URLSearchParams:
883
+ // For compatibility with "dom" and "webworker" URLSearchParams declarations
884
+ typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
885
+ ? URLSearchParams
886
+ : typeof _URLSearchParams;
883
887
  }
884
888
  }
885
889
  declare module 'node:url' {