@types/node 13.7.2 → 13.7.6

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 CHANGED
@@ -8,9 +8,9 @@ This package contains type definitions for Node.js (http://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: Tue, 18 Feb 2020 20:53:22 GMT
11
+ * Last updated: Wed, 26 Feb 2020 00:51:03 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
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), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [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), [Nicolas Voigt](https://github.com/octo-sniffle), [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), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), and [Surasak Chaisurin](https://github.com/Ryan-Willpower).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [Christian Vaagland Tellnes](https://github.com/tellnes), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [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), [Nicolas Voigt](https://github.com/octo-sniffle), [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), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), and [Surasak Chaisurin](https://github.com/Ryan-Willpower).
node/crypto.d.ts CHANGED
@@ -118,7 +118,7 @@ declare module "crypto" {
118
118
  const fips: boolean;
119
119
 
120
120
  function createHash(algorithm: string, options?: HashOptions): Hash;
121
- function createHmac(algorithm: string, key: BinaryLike, options?: stream.TransformOptions): Hmac;
121
+ function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac;
122
122
 
123
123
  type Utf8AsciiLatin1Encoding = "utf8" | "ascii" | "latin1";
124
124
  type HexBase64Latin1Encoding = "latin1" | "hex" | "base64";
@@ -230,17 +230,17 @@ declare module "crypto" {
230
230
 
231
231
  function createDecipheriv(
232
232
  algorithm: CipherCCMTypes,
233
- key: BinaryLike,
233
+ key: CipherKey,
234
234
  iv: BinaryLike | null,
235
235
  options: CipherCCMOptions,
236
236
  ): DecipherCCM;
237
237
  function createDecipheriv(
238
238
  algorithm: CipherGCMTypes,
239
- key: BinaryLike,
239
+ key: CipherKey,
240
240
  iv: BinaryLike | null,
241
241
  options?: CipherGCMOptions,
242
242
  ): DecipherGCM;
243
- function createDecipheriv(algorithm: string, key: BinaryLike, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
243
+ function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher;
244
244
 
245
245
  class Decipher extends stream.Transform {
246
246
  private constructor();
node/index.d.ts CHANGED
@@ -41,6 +41,7 @@
41
41
  // Minh Son Nguyen <https://github.com/nguymin4>
42
42
  // Junxiao Shi <https://github.com/yoursunny>
43
43
  // Ilia Baryshnikov <https://github.com/qwelias>
44
+ // ExE Boss <https://github.com/ExE-Boss>
44
45
  // Surasak Chaisurin <https://github.com/Ryan-Willpower>
45
46
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
46
47
 
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.7.2",
3
+ "version": "13.7.6",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -209,6 +209,11 @@
209
209
  "url": "https://github.com/qwelias",
210
210
  "githubUsername": "qwelias"
211
211
  },
212
+ {
213
+ "name": "ExE Boss",
214
+ "url": "https://github.com/ExE-Boss",
215
+ "githubUsername": "ExE-Boss"
216
+ },
212
217
  {
213
218
  "name": "Surasak Chaisurin",
214
219
  "url": "https://github.com/Ryan-Willpower",
@@ -218,6 +223,11 @@
218
223
  "main": "",
219
224
  "types": "index.d.ts",
220
225
  "typesVersions": {
226
+ ">=3.2.0-0": {
227
+ "*": [
228
+ "ts3.2/*"
229
+ ]
230
+ },
221
231
  ">=3.5.0-0": {
222
232
  "*": [
223
233
  "ts3.5/*"
@@ -231,6 +241,6 @@
231
241
  },
232
242
  "scripts": {},
233
243
  "dependencies": {},
234
- "typesPublisherContentHash": "6c91c5301eb56e6c7e691b1663c42a0e3518137ec16542cb5bc9c3dc4e1ce390",
244
+ "typesPublisherContentHash": "bb38a150674fd521c03cf5319f1e01492d6763d5abbcae4390ac853ddcc6a4ac",
235
245
  "typeScriptVersion": "2.8"
236
246
  }
File without changes
File without changes
node/ts3.2/index.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ // NOTE: These definitions support NodeJS and TypeScript 3.2.
2
+
3
+ // Reference required types from the default lib:
4
+ /// <reference lib="es2018" />
5
+ /// <reference lib="esnext.asynciterable" />
6
+ /// <reference lib="esnext.intl" />
7
+ /// <reference lib="esnext.bigint" />
8
+
9
+ // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
10
+ // tslint:disable-next-line:no-bad-reference
11
+ /// <reference path="../base.d.ts" />
12
+
13
+ // TypeScript 3.2-specific augmentations:
14
+ /// <reference path="fs.d.ts" />
15
+ /// <reference path="util.d.ts" />
16
+ /// <reference path="globals.d.ts" />
File without changes
node/ts3.5/index.d.ts CHANGED
@@ -8,10 +8,7 @@
8
8
 
9
9
  // Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
10
10
  // tslint:disable-next-line:no-bad-reference
11
- /// <reference path="../base.d.ts" />
11
+ /// <reference path="../ts3.2/index.d.ts" />
12
12
 
13
13
  // TypeScript 3.5-specific augmentations:
14
- /// <reference path="fs.d.ts" />
15
- /// <reference path="util.d.ts" />
16
- /// <reference path="globals.d.ts" />
17
14
  /// <reference path="wasi.d.ts" />
node/util.d.ts CHANGED
@@ -60,10 +60,6 @@ declare module "util" {
60
60
  function deprecate<T extends Function>(fn: T, message: string, code?: string): T;
61
61
  function isDeepStrictEqual(val1: any, val2: any): boolean;
62
62
 
63
- interface CustomPromisify<TCustom extends Function> extends Function {
64
- __promisify__: TCustom;
65
- }
66
-
67
63
  function callbackify(fn: () => Promise<void>): (callback: (err: NodeJS.ErrnoException) => void) => void;
68
64
  function callbackify<TResult>(fn: () => Promise<TResult>): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void;
69
65
  function callbackify<T1>(fn: (arg1: T1) => Promise<void>): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void;
@@ -89,6 +85,16 @@ declare module "util" {
89
85
  fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise<TResult>
90
86
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void;
91
87
 
88
+ interface CustomPromisifyLegacy<TCustom extends Function> extends Function {
89
+ __promisify__: TCustom;
90
+ }
91
+
92
+ interface CustomPromisifySymbol<TCustom extends Function> extends Function {
93
+ [promisify.custom]: TCustom;
94
+ }
95
+
96
+ type CustomPromisify<TCustom extends Function> = CustomPromisifySymbol<TCustom> | CustomPromisifyLegacy<TCustom>;
97
+
92
98
  function promisify<TCustom extends Function>(fn: CustomPromisify<TCustom>): TCustom;
93
99
  function promisify<TResult>(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise<TResult>;
94
100
  function promisify(fn: (callback: (err?: any) => void) => void): () => Promise<void>;
@@ -111,6 +117,9 @@ declare module "util" {
111
117
  fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void,
112
118
  ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise<void>;
113
119
  function promisify(fn: Function): Function;
120
+ namespace promisify {
121
+ const custom: unique symbol;
122
+ }
114
123
 
115
124
  namespace types {
116
125
  function isAnyArrayBuffer(object: any): boolean;
@@ -183,8 +192,4 @@ declare module "util" {
183
192
  encode(input?: string): Uint8Array;
184
193
  encodeInto(input: string, output: Uint8Array): EncodeIntoResult;
185
194
  }
186
-
187
- namespace promisify {
188
- const custom: unique symbol;
189
- }
190
195
  }
node/vm.d.ts CHANGED
@@ -106,5 +106,5 @@ declare module "vm" {
106
106
  function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
107
107
  function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
108
108
  function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
109
- function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function;
109
+ function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
110
110
  }