@types/node 17.0.12 → 17.0.16
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 +2 -2
- node/buffer.d.ts +1 -1
- node/crypto.d.ts +1 -1
- node/index.d.ts +0 -1
- node/package.json +2 -7
- node/url.d.ts +27 -1
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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, 07 Feb 2022 20:31:28 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [
|
|
16
|
+
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13).
|
node/buffer.d.ts
CHANGED
|
@@ -390,7 +390,7 @@ declare module 'buffer' {
|
|
|
390
390
|
* @since v0.11.13
|
|
391
391
|
* @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details.
|
|
392
392
|
*/
|
|
393
|
-
compare(buf1: Uint8Array, buf2: Uint8Array):
|
|
393
|
+
compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1;
|
|
394
394
|
/**
|
|
395
395
|
* Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled.
|
|
396
396
|
*
|
node/crypto.d.ts
CHANGED
|
@@ -250,7 +250,7 @@ declare module 'crypto' {
|
|
|
250
250
|
*/
|
|
251
251
|
function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
|
|
252
252
|
// https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
|
|
253
|
-
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex';
|
|
253
|
+
type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary';
|
|
254
254
|
type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1';
|
|
255
255
|
type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2';
|
|
256
256
|
type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding;
|
node/index.d.ts
CHANGED
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
// Nikita Galkin <https://github.com/galkin>
|
|
22
22
|
// Parambir Singh <https://github.com/parambirs>
|
|
23
23
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
24
|
-
// Seth Westphal <https://github.com/westy92>
|
|
25
24
|
// Simon Schick <https://github.com/SimonSchick>
|
|
26
25
|
// Thomas den Hollander <https://github.com/ThomasdenH>
|
|
27
26
|
// Wilco Bakker <https://github.com/WilcoBakker>
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.16",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,11 +110,6 @@
|
|
|
110
110
|
"url": "https://github.com/eps1lon",
|
|
111
111
|
"githubUsername": "eps1lon"
|
|
112
112
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "Seth Westphal",
|
|
115
|
-
"url": "https://github.com/westy92",
|
|
116
|
-
"githubUsername": "westy92"
|
|
117
|
-
},
|
|
118
113
|
{
|
|
119
114
|
"name": "Simon Schick",
|
|
120
115
|
"url": "https://github.com/SimonSchick",
|
|
@@ -220,6 +215,6 @@
|
|
|
220
215
|
},
|
|
221
216
|
"scripts": {},
|
|
222
217
|
"dependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
218
|
+
"typesPublisherContentHash": "9ed2be6027d1a79cbb944ebb52e92b5b0ca8e2cc367834a3a3d6490f6a59e716",
|
|
224
219
|
"typeScriptVersion": "3.8"
|
|
225
220
|
}
|
node/url.d.ts
CHANGED
|
@@ -778,7 +778,7 @@ declare module 'url' {
|
|
|
778
778
|
* @param fn Invoked for each name-value pair in the query
|
|
779
779
|
* @param thisArg To be used as `this` value for when `fn` is called
|
|
780
780
|
*/
|
|
781
|
-
forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams:
|
|
781
|
+
forEach<TThis = this>(callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis): void;
|
|
782
782
|
/**
|
|
783
783
|
* Returns the value of the first name-value pair whose name is `name`. If there
|
|
784
784
|
* are no such pairs, `null` is returned.
|
|
@@ -855,6 +855,32 @@ declare module 'url' {
|
|
|
855
855
|
values(): IterableIterator<string>;
|
|
856
856
|
[Symbol.iterator](): IterableIterator<[string, string]>;
|
|
857
857
|
}
|
|
858
|
+
|
|
859
|
+
import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url';
|
|
860
|
+
global {
|
|
861
|
+
interface URLSearchParams extends _URLSearchParams {}
|
|
862
|
+
interface URL extends _URL {}
|
|
863
|
+
interface Global {
|
|
864
|
+
URL: typeof _URL;
|
|
865
|
+
URLSearchParams: typeof _URLSearchParams;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* `URL` class is a global reference for `require('url').URL`
|
|
869
|
+
* https://nodejs.org/api/url.html#the-whatwg-url-api
|
|
870
|
+
* @since v10.0.0
|
|
871
|
+
*/
|
|
872
|
+
var URL: typeof globalThis extends { webkitURL: infer URL } ? URL : typeof _URL;
|
|
873
|
+
/**
|
|
874
|
+
* `URLSearchParams` class is a global reference for `require('url').URLSearchParams`
|
|
875
|
+
* https://nodejs.org/api/url.html#class-urlsearchparams
|
|
876
|
+
* @since v10.0.0
|
|
877
|
+
*/
|
|
878
|
+
var URLSearchParams: {
|
|
879
|
+
prototype: URLSearchParams;
|
|
880
|
+
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
881
|
+
toString(): string;
|
|
882
|
+
};
|
|
883
|
+
}
|
|
858
884
|
}
|
|
859
885
|
declare module 'node:url' {
|
|
860
886
|
export * from 'url';
|