@types/node 6.0.102 → 6.0.106

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 v6/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://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v6
9
9
 
10
10
  Additional Details
11
- * Last updated: Thu, 08 Mar 2018 23:25:55 GMT
11
+ * Last updated: Fri, 13 Apr 2018 16:28:47 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Buffer, NodeJS, SlowBuffer, __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>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>, Sebastian Silbermann <https://github.com/eps1lon>, Alorel <https://github.com/Alorel>.
16
+ These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>, Thomas Bouldin <https://github.com/inlined>, Sebastian Silbermann <https://github.com/eps1lon>, Alorel <https://github.com/Alorel>, Hoàng Văn Khải <https://github.com/KSXGitHub>.
node v6/index.d.ts CHANGED
@@ -6,6 +6,7 @@
6
6
  // Thomas Bouldin <https://github.com/inlined>
7
7
  // Sebastian Silbermann <https://github.com/eps1lon>
8
8
  // Alorel <https://github.com/Alorel>
9
+ // Hoàng Văn Khải <https://github.com/KSXGitHub>
9
10
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
10
11
 
11
12
  /************************************************
@@ -163,10 +164,6 @@ declare var Buffer: {
163
164
  */
164
165
  new (buffer: Buffer): Buffer;
165
166
  prototype: Buffer;
166
- /**
167
- * Allocates a new Buffer using an {array} of octets.
168
- */
169
- from(array: any[]): Buffer;
170
167
  /**
171
168
  * When passed a reference to the .buffer property of a TypedArray instance,
172
169
  * the newly created Buffer will share the same allocated memory as the TypedArray.
@@ -177,9 +174,10 @@ declare var Buffer: {
177
174
  */
178
175
  from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
179
176
  /**
180
- * Copies the passed {buffer} data onto a new Buffer instance.
177
+ * Creates a new Buffer using the passed {data}
178
+ * @param data data to create a new Buffer
181
179
  */
182
- from(buffer: Buffer): Buffer;
180
+ from(data: any[] | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
183
181
  /**
184
182
  * Creates a new Buffer containing the given JavaScript string {str}.
185
183
  * If provided, the {encoding} parameter identifies the character encoding.
@@ -1468,7 +1466,9 @@ declare module "https" {
1468
1466
  secureProtocol?: string;
1469
1467
  }
1470
1468
 
1471
- export interface Agent extends http.Agent { }
1469
+ export interface Agent extends http.Agent {
1470
+ options?: AgentOptions;
1471
+ }
1472
1472
 
1473
1473
  export interface AgentOptions extends http.AgentOptions {
1474
1474
  pfx?: any;
@@ -3001,11 +3001,11 @@ declare module "path" {
3001
3001
  /**
3002
3002
  * The platform-specific file separator. '\\' or '/'.
3003
3003
  */
3004
- export var sep: string;
3004
+ export var sep: '\\' | '/';
3005
3005
  /**
3006
3006
  * The platform-specific file delimiter. ';' or ':'.
3007
3007
  */
3008
- export var delimiter: string;
3008
+ export var delimiter: ';' | ':';
3009
3009
  /**
3010
3010
  * Returns an object from a path string - the opposite of format().
3011
3011
  *
@@ -3874,7 +3874,7 @@ declare module "assert" {
3874
3874
  });
3875
3875
  }
3876
3876
 
3877
- export function fail(actual: any, expected: any, message?: string, operator?: string): void;
3877
+ export function fail(actual: any, expected: any, message?: string, operator?: string): never;
3878
3878
  export function ok(value: any, message?: string): void;
3879
3879
  export function equal(actual: any, expected: any, message?: string): void;
3880
3880
  export function notEqual(actual: any, expected: any, message?: string): void;
node v6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "6.0.102",
3
+ "version": "6.0.106",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -31,6 +31,11 @@
31
31
  "name": "Alorel",
32
32
  "url": "https://github.com/Alorel",
33
33
  "githubUsername": "Alorel"
34
+ },
35
+ {
36
+ "name": "Hoàng Văn Khải",
37
+ "url": "https://github.com/KSXGitHub",
38
+ "githubUsername": "KSXGitHub"
34
39
  }
35
40
  ],
36
41
  "main": "",
@@ -40,6 +45,6 @@
40
45
  },
41
46
  "scripts": {},
42
47
  "dependencies": {},
43
- "typesPublisherContentHash": "3ad095c9455f95156edfcea6a742b66594b4da7e8521cbb31bb6c75948d816f0",
48
+ "typesPublisherContentHash": "050fc23cd09b9c0865d1e6a4cb35de14925b3fae1b3a5940632459a693451bfc",
44
49
  "typeScriptVersion": "2.0"
45
50
  }