@types/node 9.6.2 → 9.6.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 +2 -2
- node/index.d.ts +21 -26
- node/package.json +22 -2
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://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 19 Apr 2018 17:11:43 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>, Oliver Joseph Ash <https://github.com/OliverJAsh>, 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>.
|
|
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>, Oliver Joseph Ash <https://github.com/OliverJAsh>, 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>.
|
node/index.d.ts
CHANGED
|
@@ -20,6 +20,10 @@
|
|
|
20
20
|
// Klaus Meinhardt <https://github.com/ajafff>
|
|
21
21
|
// Huw <https://github.com/hoo29>
|
|
22
22
|
// Nicolas Even <https://github.com/n-e>
|
|
23
|
+
// Bruno Scheufler <https://github.com/brunoscheufler>
|
|
24
|
+
// Mohsen Azimi <https://github.com/mohsen1>
|
|
25
|
+
// Hoàng Văn Khải <https://github.com/KSXGitHub>
|
|
26
|
+
// Alexander T. <https://github.com/a-tarasyuk>
|
|
23
27
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
24
28
|
|
|
25
29
|
/** inspector module types */
|
|
@@ -216,10 +220,6 @@ declare var Buffer: {
|
|
|
216
220
|
*/
|
|
217
221
|
new(buffer: Buffer): Buffer;
|
|
218
222
|
prototype: Buffer;
|
|
219
|
-
/**
|
|
220
|
-
* Allocates a new Buffer using an {array} of octets.
|
|
221
|
-
*/
|
|
222
|
-
from(array: any[]): Buffer;
|
|
223
223
|
/**
|
|
224
224
|
* When passed a reference to the .buffer property of a TypedArray instance,
|
|
225
225
|
* the newly created Buffer will share the same allocated memory as the TypedArray.
|
|
@@ -230,9 +230,10 @@ declare var Buffer: {
|
|
|
230
230
|
*/
|
|
231
231
|
from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
|
|
232
232
|
/**
|
|
233
|
-
*
|
|
233
|
+
* Creates a new Buffer using the passed {data}
|
|
234
|
+
* @param data data to create a new Buffer
|
|
234
235
|
*/
|
|
235
|
-
from(
|
|
236
|
+
from(data: any[] | string | Buffer | ArrayBuffer /*| TypedArray*/): Buffer;
|
|
236
237
|
/**
|
|
237
238
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
238
239
|
* If provided, the {encoding} parameter identifies the character encoding.
|
|
@@ -953,6 +954,7 @@ declare module "http" {
|
|
|
953
954
|
'access-control-allow-headers'?: string;
|
|
954
955
|
'accept-patch'?: string;
|
|
955
956
|
'accept-ranges'?: string;
|
|
957
|
+
'authorization'?: string;
|
|
956
958
|
'age'?: string;
|
|
957
959
|
'allow'?: string;
|
|
958
960
|
'alt-svc'?: string;
|
|
@@ -1749,17 +1751,9 @@ declare module "https" {
|
|
|
1749
1751
|
|
|
1750
1752
|
export type ServerOptions = tls.SecureContextOptions & tls.TlsOptions;
|
|
1751
1753
|
|
|
1752
|
-
export type RequestOptions = http.RequestOptions & {
|
|
1754
|
+
export type RequestOptions = http.RequestOptions & tls.SecureContextOptions & {
|
|
1753
1755
|
rejectUnauthorized?: boolean; // Defaults to true
|
|
1754
1756
|
servername?: string; // SNI TLS Extension
|
|
1755
|
-
pfx?: string | Buffer | Array<string | Buffer | Object>;
|
|
1756
|
-
key?: string | Buffer | Array<Buffer | Object>;
|
|
1757
|
-
passphrase?: string;
|
|
1758
|
-
cert?: string | Buffer | Array<string | Buffer>;
|
|
1759
|
-
ca?: string | Buffer | Array<string | Buffer>;
|
|
1760
|
-
ciphers?: string;
|
|
1761
|
-
clientCertEngine?: string;
|
|
1762
|
-
secureProtocol?: string; // SSL Method, e.g. SSLv23_method
|
|
1763
1757
|
};
|
|
1764
1758
|
|
|
1765
1759
|
export interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
|
@@ -2001,10 +1995,11 @@ declare module "vm" {
|
|
|
2001
1995
|
}
|
|
2002
1996
|
export function createContext(sandbox?: Context): Context;
|
|
2003
1997
|
export function isContext(sandbox: Context): boolean;
|
|
2004
|
-
export function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions): any;
|
|
1998
|
+
export function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
|
|
1999
|
+
/** @deprecated */
|
|
2005
2000
|
export function runInDebugContext(code: string): any;
|
|
2006
|
-
export function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions): any;
|
|
2007
|
-
export function runInThisContext(code: string, options?: RunningScriptOptions): any;
|
|
2001
|
+
export function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
|
|
2002
|
+
export function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
|
|
2008
2003
|
}
|
|
2009
2004
|
|
|
2010
2005
|
declare module "child_process" {
|
|
@@ -2093,6 +2088,7 @@ declare module "child_process" {
|
|
|
2093
2088
|
gid?: number;
|
|
2094
2089
|
shell?: boolean | string;
|
|
2095
2090
|
windowsVerbatimArguments?: boolean;
|
|
2091
|
+
windowsHide?: boolean;
|
|
2096
2092
|
}
|
|
2097
2093
|
|
|
2098
2094
|
export function spawn(command: string, args?: string[], options?: SpawnOptions): ChildProcess;
|
|
@@ -4683,11 +4679,11 @@ declare module "path" {
|
|
|
4683
4679
|
/**
|
|
4684
4680
|
* The platform-specific file separator. '\\' or '/'.
|
|
4685
4681
|
*/
|
|
4686
|
-
export var sep:
|
|
4682
|
+
export var sep: '\\' | '/';
|
|
4687
4683
|
/**
|
|
4688
4684
|
* The platform-specific file delimiter. ';' or ':'.
|
|
4689
4685
|
*/
|
|
4690
|
-
export var delimiter:
|
|
4686
|
+
export var delimiter: ';' | ':';
|
|
4691
4687
|
/**
|
|
4692
4688
|
* Returns an object from a path string - the opposite of format().
|
|
4693
4689
|
*
|
|
@@ -4978,7 +4974,6 @@ declare module "tls" {
|
|
|
4978
4974
|
}
|
|
4979
4975
|
|
|
4980
4976
|
export interface TlsOptions extends SecureContextOptions {
|
|
4981
|
-
clientCertEngine?: string;
|
|
4982
4977
|
handshakeTimeout?: number;
|
|
4983
4978
|
requestCert?: boolean;
|
|
4984
4979
|
rejectUnauthorized?: boolean;
|
|
@@ -5179,9 +5174,9 @@ declare module "crypto" {
|
|
|
5179
5174
|
update(data: string, input_encoding: Utf8AsciiBinaryEncoding, output_encoding: HexBase64BinaryEncoding): string;
|
|
5180
5175
|
final(): Buffer;
|
|
5181
5176
|
final(output_encoding: string): string;
|
|
5182
|
-
setAutoPadding(auto_padding?: boolean):
|
|
5177
|
+
setAutoPadding(auto_padding?: boolean): this;
|
|
5183
5178
|
getAuthTag(): Buffer;
|
|
5184
|
-
setAAD(buffer: Buffer):
|
|
5179
|
+
setAAD(buffer: Buffer): this;
|
|
5185
5180
|
}
|
|
5186
5181
|
export function createDecipher(algorithm: string, password: any): Decipher;
|
|
5187
5182
|
export function createDecipheriv(algorithm: string, key: any, iv: any): Decipher;
|
|
@@ -5192,9 +5187,9 @@ declare module "crypto" {
|
|
|
5192
5187
|
update(data: string, input_encoding: HexBase64BinaryEncoding, output_encoding: Utf8AsciiBinaryEncoding): string;
|
|
5193
5188
|
final(): Buffer;
|
|
5194
5189
|
final(output_encoding: string): string;
|
|
5195
|
-
setAutoPadding(auto_padding?: boolean):
|
|
5196
|
-
setAuthTag(tag: Buffer):
|
|
5197
|
-
setAAD(buffer: Buffer):
|
|
5190
|
+
setAutoPadding(auto_padding?: boolean): this;
|
|
5191
|
+
setAuthTag(tag: Buffer): this;
|
|
5192
|
+
setAAD(buffer: Buffer): this;
|
|
5198
5193
|
}
|
|
5199
5194
|
export function createSign(algorithm: string): Signer;
|
|
5200
5195
|
export interface Signer extends NodeJS.WritableStream {
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.6",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -101,6 +101,26 @@
|
|
|
101
101
|
"name": "Nicolas Even",
|
|
102
102
|
"url": "https://github.com/n-e",
|
|
103
103
|
"githubUsername": "n-e"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "Bruno Scheufler",
|
|
107
|
+
"url": "https://github.com/brunoscheufler",
|
|
108
|
+
"githubUsername": "brunoscheufler"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "Mohsen Azimi",
|
|
112
|
+
"url": "https://github.com/mohsen1",
|
|
113
|
+
"githubUsername": "mohsen1"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"name": "Hoàng Văn Khải",
|
|
117
|
+
"url": "https://github.com/KSXGitHub",
|
|
118
|
+
"githubUsername": "KSXGitHub"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "Alexander T.",
|
|
122
|
+
"url": "https://github.com/a-tarasyuk",
|
|
123
|
+
"githubUsername": "a-tarasyuk"
|
|
104
124
|
}
|
|
105
125
|
],
|
|
106
126
|
"main": "",
|
|
@@ -110,6 +130,6 @@
|
|
|
110
130
|
},
|
|
111
131
|
"scripts": {},
|
|
112
132
|
"dependencies": {},
|
|
113
|
-
"typesPublisherContentHash": "
|
|
133
|
+
"typesPublisherContentHash": "70ca5394e4244ab4af431092e0a6e181078b66aa349f561ad6803c7ce6d0ccef",
|
|
114
134
|
"typeScriptVersion": "2.0"
|
|
115
135
|
}
|