@types/node 12.20.45 → 12.20.46
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 v12.20/README.md +1 -1
- node v12.20/package.json +2 -2
- node v12.20/url.d.ts +10 -6
node v12.20/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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 14 Feb 2022 19:31:29 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v12.20/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.20.
|
|
3
|
+
"version": "12.20.46",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -190,6 +190,6 @@
|
|
|
190
190
|
},
|
|
191
191
|
"scripts": {},
|
|
192
192
|
"dependencies": {},
|
|
193
|
-
"typesPublisherContentHash": "
|
|
193
|
+
"typesPublisherContentHash": "84e5b13a935a2f314bb5ff54d977c00cf9bc6bf26ee5545a6ef7585769773985",
|
|
194
194
|
"typeScriptVersion": "3.8"
|
|
195
195
|
}
|
node v12.20/url.d.ts
CHANGED
|
@@ -128,16 +128,20 @@ declare module 'url' {
|
|
|
128
128
|
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
129
129
|
* @since v10.0.0
|
|
130
130
|
*/
|
|
131
|
-
var URL:
|
|
131
|
+
var URL:
|
|
132
|
+
// For compatibility with "dom" and "webworker" URL declarations
|
|
133
|
+
typeof globalThis extends { onmessage: any, URL: infer URL }
|
|
134
|
+
? URL
|
|
135
|
+
: typeof _URL;
|
|
132
136
|
/**
|
|
133
137
|
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`.
|
|
134
138
|
* https://nodejs.org/api/url.html#class-urlsearchparams
|
|
135
139
|
* @since v10.0.0
|
|
136
140
|
*/
|
|
137
|
-
var URLSearchParams:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
var URLSearchParams:
|
|
142
|
+
// For compatibility with "dom" and "webworker" URLSearchParams declarations
|
|
143
|
+
typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams }
|
|
144
|
+
? URLSearchParams
|
|
145
|
+
: typeof _URLSearchParams;
|
|
142
146
|
}
|
|
143
147
|
}
|