@types/node 8.10.19 → 8.10.23

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 v8/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/v8
9
9
 
10
10
  Additional Details
11
- * Last updated: Thu, 07 Jun 2018 19:55:41 GMT
11
+ * Last updated: Wed, 01 Aug 2018 01:30:09 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, SlowBuffer, Symbol, __dirname, __filename, clearImmediate, clearInterval, clearTimeout, console, exports, global, module, process, require, setImmediate, setInterval, setTimeout
14
14
 
15
15
  # Credits
16
- These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Lishude <https://github.com/islishude>.
16
+ These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>.
node v8/index.d.ts CHANGED
@@ -21,6 +21,7 @@
21
21
  // Bruno Scheufler <https://github.com/brunoscheufler>
22
22
  // Hoàng Văn Khải <https://github.com/KSXGitHub>
23
23
  // Lishude <https://github.com/islishude>
24
+ // Andrew Makarov <https://github.com/r3nya>
24
25
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
25
26
  // TypeScript Version: 2.1
26
27
 
@@ -531,7 +532,7 @@ declare namespace NodeJS {
531
532
  columns?: number;
532
533
  rows?: number;
533
534
  _write(chunk: any, encoding: string, callback: Function): void;
534
- _destroy(err: Error, callback: Function): void;
535
+ _destroy(err: Error | undefined, callback: Function): void;
535
536
  _final(callback: Function): void;
536
537
  setDefaultEncoding(encoding: string): this;
537
538
  cork(): void;
@@ -543,7 +544,7 @@ declare namespace NodeJS {
543
544
  isRaw?: boolean;
544
545
  setRawMode?(mode: boolean): void;
545
546
  _read(size: number): void;
546
- _destroy(err: Error, callback: Function): void;
547
+ _destroy(err: Error | undefined, callback: Function): void;
547
548
  push(chunk: any, encoding?: string): boolean;
548
549
  destroy(error?: Error): void;
549
550
  }
@@ -1138,6 +1139,7 @@ declare module "http" {
1138
1139
  }
1139
1140
 
1140
1141
  export class Agent {
1142
+ maxFreeSockets: number;
1141
1143
  maxSockets: number;
1142
1144
  sockets: any;
1143
1145
  requests: any;
@@ -2376,7 +2378,7 @@ declare module "url" {
2376
2378
  append(name: string, value: string): void;
2377
2379
  delete(name: string): void;
2378
2380
  entries(): IterableIterator<[string, string]>;
2379
- forEach(callback: (value: string, name: string) => void): void;
2381
+ forEach(callback: (value: string, name: string, searchParams: this) => void): void;
2380
2382
  get(name: string): string | null;
2381
2383
  getAll(name: string): string[];
2382
2384
  has(name: string): boolean;
@@ -2444,6 +2446,12 @@ declare module "dns" {
2444
2446
  export function __promisify__(hostname: string, options?: LookupOptions | number): Promise<{ address: string | LookupAddress[], family?: number }>;
2445
2447
  }
2446
2448
 
2449
+ export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException, hostname: string, service: string) => void): void;
2450
+
2451
+ export namespace lookupService {
2452
+ export function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
2453
+ }
2454
+
2447
2455
  export interface ResolveOptions {
2448
2456
  ttl: boolean;
2449
2457
  }
@@ -5291,7 +5299,7 @@ declare module "stream" {
5291
5299
  encoding?: string;
5292
5300
  objectMode?: boolean;
5293
5301
  read?: (this: Readable, size?: number) => any;
5294
- destroy?: (error?: Error) => any;
5302
+ destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
5295
5303
  }
5296
5304
 
5297
5305
  export class Readable extends Stream implements NodeJS.ReadableStream {
@@ -5308,7 +5316,7 @@ declare module "stream" {
5308
5316
  unshift(chunk: any): void;
5309
5317
  wrap(oldStream: NodeJS.ReadableStream): this;
5310
5318
  push(chunk: any, encoding?: string): boolean;
5311
- _destroy(err: Error, callback: Function): void;
5319
+ _destroy(error: Error | null, callback: (error?: Error) => void): void;
5312
5320
  destroy(error?: Error): void;
5313
5321
 
5314
5322
  /**
@@ -5376,7 +5384,7 @@ declare module "stream" {
5376
5384
  objectMode?: boolean;
5377
5385
  write?: (chunk: any, encoding: string, callback: Function) => any;
5378
5386
  writev?: (chunks: Array<{ chunk: any, encoding: string }>, callback: Function) => any;
5379
- destroy?: (error?: Error) => any;
5387
+ destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
5380
5388
  final?: (callback: (error?: Error) => void) => void;
5381
5389
  }
5382
5390
 
@@ -5386,7 +5394,7 @@ declare module "stream" {
5386
5394
  constructor(opts?: WritableOptions);
5387
5395
  _write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
5388
5396
  _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
5389
- _destroy(err: Error, callback: Function): void;
5397
+ _destroy(error: Error | null, callback: (error?: Error) => void): void;
5390
5398
  _final(callback: Function): void;
5391
5399
  write(chunk: any, cb?: Function): boolean;
5392
5400
  write(chunk: any, encoding?: string, cb?: Function): boolean;
@@ -5478,7 +5486,7 @@ declare module "stream" {
5478
5486
  constructor(opts?: DuplexOptions);
5479
5487
  _write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
5480
5488
  _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
5481
- _destroy(err: Error, callback: Function): void;
5489
+ _destroy(error: Error | null, callback: (error?: Error) => void): void;
5482
5490
  _final(callback: Function): void;
5483
5491
  write(chunk: any, cb?: Function): boolean;
5484
5492
  write(chunk: any, encoding?: string, cb?: Function): boolean;
node v8/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "8.10.19",
3
+ "version": "8.10.23",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -106,6 +106,11 @@
106
106
  "name": "Lishude",
107
107
  "url": "https://github.com/islishude",
108
108
  "githubUsername": "islishude"
109
+ },
110
+ {
111
+ "name": "Andrew Makarov",
112
+ "url": "https://github.com/r3nya",
113
+ "githubUsername": "r3nya"
109
114
  }
110
115
  ],
111
116
  "main": "",
@@ -115,6 +120,6 @@
115
120
  },
116
121
  "scripts": {},
117
122
  "dependencies": {},
118
- "typesPublisherContentHash": "53d43c1f76872e05dd7df983b74c091c23c2ca29208e1c2cd7e13e6570119b4f",
123
+ "typesPublisherContentHash": "9bea0d5690985705f8ca5d6014f2673fe46acfce604827d6e7ff366b45a8d018",
119
124
  "typeScriptVersion": "2.1"
120
125
  }