@types/node 14.18.11 → 14.18.12

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 v14.18/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/v14.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 10 Feb 2022 05:31:39 GMT
11
+ * Last updated: Mon, 14 Feb 2022 19:31:28 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "14.18.11",
3
+ "version": "14.18.12",
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": "54f2de58082e55a89d00b4f07f79554cec86551fa7ba16ce1ec693596ec6aac2",
223
+ "typesPublisherContentHash": "757273e514d1d1b21dac64fec141cfb9376f836ab554e1062dd525c8e14d3c3c",
224
224
  "typeScriptVersion": "3.8"
225
225
  }
node v14.18/url.d.ts CHANGED
@@ -127,17 +127,21 @@ declare module 'url' {
127
127
  * https://nodejs.org/api/url.html#the-whatwg-url-api
128
128
  * @since v10.0.0
129
129
  */
130
- var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
130
+ var URL:
131
+ // For compatibility with "dom" and "webworker" URL declarations
132
+ typeof globalThis extends { onmessage: any, URL: infer URL }
133
+ ? URL
134
+ : typeof _URL;
131
135
  /**
132
136
  * `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
133
137
  * https://nodejs.org/api/url.html#class-urlsearchparams
134
138
  * @since v10.0.0
135
139
  */
136
- var URLSearchParams: {
137
- prototype: URLSearchParams;
138
- new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
139
- toString(): string;
140
- };
140
+ var URLSearchParams:
141
+ // For compatibility with "dom" and "webworker" URLSearchParams declarations
142
+ typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
143
+ ? URLSearchParams
144
+ : typeof _URLSearchParams;
141
145
  }
142
146
  }
143
147
  declare module 'node:url' {