@types/node 9.6.21 → 9.6.25

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 v9/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/v9
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>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, 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>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>.
node v9/index.d.ts CHANGED
@@ -24,6 +24,7 @@
24
24
  // Hoàng Văn Khải <https://github.com/KSXGitHub>
25
25
  // Alexander T. <https://github.com/a-tarasyuk>
26
26
  // Lishude <https://github.com/islishude>
27
+ // Andrew Makarov <https://github.com/r3nya>
27
28
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
28
29
 
29
30
  /** inspector module types */
@@ -673,7 +674,7 @@ declare namespace NodeJS {
673
674
  columns?: number;
674
675
  rows?: number;
675
676
  _write(chunk: any, encoding: string, callback: Function): void;
676
- _destroy(err: Error, callback: Function): void;
677
+ _destroy(err: Error | undefined, callback: Function): void;
677
678
  _final(callback: Function): void;
678
679
  setDefaultEncoding(encoding: string): this;
679
680
  cork(): void;
@@ -686,7 +687,7 @@ declare namespace NodeJS {
686
687
  isRaw?: boolean;
687
688
  setRawMode?(mode: boolean): void;
688
689
  _read(size: number): void;
689
- _destroy(err: Error, callback: Function): void;
690
+ _destroy(err: Error | undefined, callback: Function): void;
690
691
  push(chunk: any, encoding?: string): boolean;
691
692
  destroy(error?: Error): void;
692
693
  }
@@ -1226,6 +1227,7 @@ declare module "http" {
1226
1227
  }
1227
1228
 
1228
1229
  export class Agent {
1230
+ maxFreeSockets: number;
1229
1231
  maxSockets: number;
1230
1232
  sockets: any;
1231
1233
  requests: any;
@@ -2457,7 +2459,7 @@ declare module "url" {
2457
2459
  append(name: string, value: string): void;
2458
2460
  delete(name: string): void;
2459
2461
  entries(): IterableIterator<[string, string]>;
2460
- forEach(callback: (value: string, name: string) => void): void;
2462
+ forEach(callback: (value: string, name: string, searchParams: this) => void): void;
2461
2463
  get(name: string): string | null;
2462
2464
  getAll(name: string): string[];
2463
2465
  has(name: string): boolean;
@@ -2525,6 +2527,12 @@ declare module "dns" {
2525
2527
  export function __promisify__(hostname: string, options?: LookupOptions | number): Promise<{ address: string | LookupAddress[], family?: number }>;
2526
2528
  }
2527
2529
 
2530
+ export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException, hostname: string, service: string) => void): void;
2531
+
2532
+ export namespace lookupService {
2533
+ export function __promisify__(address: string, port: number): Promise<{ hostname: string, service: string }>;
2534
+ }
2535
+
2528
2536
  export interface ResolveOptions {
2529
2537
  ttl: boolean;
2530
2538
  }
@@ -5368,7 +5376,7 @@ declare module "stream" {
5368
5376
  encoding?: string;
5369
5377
  objectMode?: boolean;
5370
5378
  read?: (this: Readable, size?: number) => any;
5371
- destroy?: (error?: Error) => any;
5379
+ destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
5372
5380
  }
5373
5381
 
5374
5382
  export class Readable extends Stream implements NodeJS.ReadableStream {
@@ -5386,7 +5394,7 @@ declare module "stream" {
5386
5394
  unshift(chunk: any): void;
5387
5395
  wrap(oldStream: NodeJS.ReadableStream): this;
5388
5396
  push(chunk: any, encoding?: string): boolean;
5389
- _destroy(err: Error, callback: Function): void;
5397
+ _destroy(error: Error | null, callback: (error?: Error) => void): void;
5390
5398
  destroy(error?: Error): void;
5391
5399
 
5392
5400
  /**
@@ -5454,7 +5462,7 @@ declare module "stream" {
5454
5462
  objectMode?: boolean;
5455
5463
  write?: (chunk: string | Buffer, encoding: string, callback: Function) => any;
5456
5464
  writev?: (chunks: Array<{ chunk: string | Buffer, encoding: string }>, callback: Function) => any;
5457
- destroy?: (error?: Error) => any;
5465
+ destroy?: (error: Error | null, callback: (error?: Error) => void) => void;
5458
5466
  final?: (callback: (error?: Error) => void) => void;
5459
5467
  }
5460
5468
 
@@ -5465,7 +5473,7 @@ declare module "stream" {
5465
5473
  constructor(opts?: WritableOptions);
5466
5474
  _write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
5467
5475
  _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
5468
- _destroy(err: Error, callback: Function): void;
5476
+ _destroy(error: Error | null, callback: (error?: Error) => void): void;
5469
5477
  _final(callback: Function): void;
5470
5478
  write(chunk: any, cb?: Function): boolean;
5471
5479
  write(chunk: any, encoding?: string, cb?: Function): boolean;
@@ -5558,7 +5566,7 @@ declare module "stream" {
5558
5566
  constructor(opts?: DuplexOptions);
5559
5567
  _write(chunk: any, encoding: string, callback: (err?: Error) => void): void;
5560
5568
  _writev?(chunks: Array<{ chunk: any, encoding: string }>, callback: (err?: Error) => void): void;
5561
- _destroy(err: Error, callback: Function): void;
5569
+ _destroy(error: Error | null, callback: (error?: Error) => void): void;
5562
5570
  _final(callback: Function): void;
5563
5571
  write(chunk: any, cb?: Function): boolean;
5564
5572
  write(chunk: any, encoding?: string, cb?: Function): boolean;
node v9/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "9.6.21",
3
+ "version": "9.6.25",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -121,6 +121,11 @@
121
121
  "name": "Lishude",
122
122
  "url": "https://github.com/islishude",
123
123
  "githubUsername": "islishude"
124
+ },
125
+ {
126
+ "name": "Andrew Makarov",
127
+ "url": "https://github.com/r3nya",
128
+ "githubUsername": "r3nya"
124
129
  }
125
130
  ],
126
131
  "main": "",
@@ -130,6 +135,6 @@
130
135
  },
131
136
  "scripts": {},
132
137
  "dependencies": {},
133
- "typesPublisherContentHash": "841e06938ce1083b91f3a61a319ec60a7b173fb335641b2c7610cfcd0ec6356d",
138
+ "typesPublisherContentHash": "588b4171b7fb1aadbdd3ef05cbd50e3a566f46049754f3ffe11aeb4b1ddce3b3",
134
139
  "typeScriptVersion": "2.0"
135
140
  }