@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.
- node/README.md +1 -1
- node/package.json +2 -2
- 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:
|
|
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.
|
|
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": "
|
|
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:
|
|
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
|
-
|
|
880
|
-
|
|
881
|
-
|
|
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' {
|