@types/node 16.11.24 → 16.11.25

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.11/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/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 10 Feb 2022 10:01:31 GMT
11
+ * Last updated: Mon, 14 Feb 2022 19:31:27 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "16.11.24",
3
+ "version": "16.11.25",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  },
221
221
  "scripts": {},
222
222
  "dependencies": {},
223
- "typesPublisherContentHash": "0693ef3fe1b25dffce1c9abdae48d4fb78444f0ab3a0a3b086d3b963ef83fbe2",
223
+ "typesPublisherContentHash": "81b53b1d7f371f994592a87c3675bb00c9d5a724650aa2cd5ef3f7797f233245",
224
224
  "typeScriptVersion": "3.8"
225
225
  }
node v16.11/url.d.ts CHANGED
@@ -829,17 +829,21 @@ declare module 'url' {
829
829
  * https://nodejs.org/api/url.html#the-whatwg-url-api
830
830
  * @since v10.0.0
831
831
  */
832
- var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
832
+ var URL:
833
+ // For compatibility with "dom" and "webworker" URL declarations
834
+ typeof globalThis extends { onmessage: any, URL: infer URL }
835
+ ? URL
836
+ : typeof _URL;
833
837
  /**
834
838
  * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
835
839
  * https://nodejs.org/api/url.html#class-urlsearchparams
836
840
  * @since v10.0.0
837
841
  */
838
- var URLSearchParams: {
839
- prototype: URLSearchParams;
840
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
841
- toString(): string;
842
- };
842
+ var URLSearchParams:
843
+ // For compatibility with "dom" and "webworker" URLSearchParams declarations
844
+ typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
845
+ ? URLSearchParams
846
+ : typeof _URLSearchParams;
843
847
  }
844
848
  }
845
849
  declare module 'node:url' {