@types/node 10.12.15 → 10.12.19
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 +3 -3
- node/index.d.ts +27 -3
- node/package.json +7 -2
node/README.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
> `npm install --save @types/node`
|
|
3
3
|
|
|
4
4
|
# Summary
|
|
5
|
-
This package contains type definitions for Node.js (http://nodejs.org/).
|
|
5
|
+
This package contains type definitions for Node.js ( http://nodejs.org/ ).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node
|
|
9
9
|
|
|
10
10
|
Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 29 Jan 2019 00:37:20 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 <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>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, 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>, Matthieu Sieben <https://github.com/matthieusieben>, Mohsen Azimi <https://github.com/mohsen1>, Nicolas Even <https://github.com/n-e>, Nicolas Voigt <https://github.com/octo-sniffle>, 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>, Jeremie Rodriguez <https://github.com/jeremiergz>, Samuel Ainsworth <https://github.com/samuela>.
|
|
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>, Bruno Scheufler <https://github.com/brunoscheufler>, Chigozirim C. <https://github.com/smac89>, Christian Vaagland Tellnes <https://github.com/tellnes>, 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>, Matthieu Sieben <https://github.com/matthieusieben>, Mohsen Azimi <https://github.com/mohsen1>, Nicolas Even <https://github.com/n-e>, Nicolas Voigt <https://github.com/octo-sniffle>, 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>, Jeremie Rodriguez <https://github.com/jeremiergz>, Samuel Ainsworth <https://github.com/samuela>, Kyle Uehlein <https://github.com/kuehlein>.
|
node/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
// Zane Hannan AU <https://github.com/ZaneHannanAU>
|
|
33
33
|
// Jeremie Rodriguez <https://github.com/jeremiergz>
|
|
34
34
|
// Samuel Ainsworth <https://github.com/samuela>
|
|
35
|
+
// Kyle Uehlein <https://github.com/kuehlein>
|
|
35
36
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
36
37
|
|
|
37
38
|
/** inspector module types */
|
|
@@ -113,7 +114,7 @@ interface Console {
|
|
|
113
114
|
/**
|
|
114
115
|
* For a timer that was previously started by calling {@link console.time()}, prints the elapsed time and other `data` arguments to `stdout`.
|
|
115
116
|
*/
|
|
116
|
-
timeLog(label
|
|
117
|
+
timeLog(label?: string, ...data: any[]): void;
|
|
117
118
|
/**
|
|
118
119
|
* Prints to `stderr` the string 'Trace :', followed by the {@link util.format()} formatted message and stack trace to the current position in the code.
|
|
119
120
|
*/
|
|
@@ -124,6 +125,13 @@ interface Console {
|
|
|
124
125
|
warn(message?: any, ...optionalParams: any[]): void;
|
|
125
126
|
|
|
126
127
|
// --- Inspector mode only ---
|
|
128
|
+
/**
|
|
129
|
+
* This method does not display anything unless used in the inspector.
|
|
130
|
+
* The console.markTimeline() method is the deprecated form of console.timeStamp().
|
|
131
|
+
*
|
|
132
|
+
* @deprecated Use console.timeStamp() instead.
|
|
133
|
+
*/
|
|
134
|
+
markTimeline(label?: string): void;
|
|
127
135
|
/**
|
|
128
136
|
* This method does not display anything unless used in the inspector.
|
|
129
137
|
* Starts a JavaScript CPU profile with an optional label.
|
|
@@ -133,12 +141,26 @@ interface Console {
|
|
|
133
141
|
* This method does not display anything unless used in the inspector.
|
|
134
142
|
* Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector.
|
|
135
143
|
*/
|
|
136
|
-
profileEnd(): void;
|
|
144
|
+
profileEnd(label?: string): void;
|
|
137
145
|
/**
|
|
138
146
|
* This method does not display anything unless used in the inspector.
|
|
139
147
|
* Adds an event with the label `label` to the Timeline panel of the inspector.
|
|
140
148
|
*/
|
|
141
149
|
timeStamp(label?: string): void;
|
|
150
|
+
/**
|
|
151
|
+
* This method does not display anything unless used in the inspector.
|
|
152
|
+
* The console.timeline() method is the deprecated form of console.time().
|
|
153
|
+
*
|
|
154
|
+
* @deprecated Use console.time() instead.
|
|
155
|
+
*/
|
|
156
|
+
timeline(label?: string): void;
|
|
157
|
+
/**
|
|
158
|
+
* This method does not display anything unless used in the inspector.
|
|
159
|
+
* The console.timelineEnd() method is the deprecated form of console.timeEnd().
|
|
160
|
+
*
|
|
161
|
+
* @deprecated Use console.timeEnd() instead.
|
|
162
|
+
*/
|
|
163
|
+
timelineEnd(label?: string): void;
|
|
142
164
|
}
|
|
143
165
|
|
|
144
166
|
interface Error {
|
|
@@ -1194,6 +1216,7 @@ declare module "http" {
|
|
|
1194
1216
|
agent?: Agent | boolean;
|
|
1195
1217
|
_defaultAgent?: Agent;
|
|
1196
1218
|
timeout?: number;
|
|
1219
|
+
setHost?: boolean;
|
|
1197
1220
|
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
|
|
1198
1221
|
createConnection?: (options: ClientRequestArgs, oncreate: (err: Error, socket: net.Socket) => void) => net.Socket;
|
|
1199
1222
|
}
|
|
@@ -2864,6 +2887,7 @@ declare module "child_process" {
|
|
|
2864
2887
|
gid?: number;
|
|
2865
2888
|
windowsHide?: boolean;
|
|
2866
2889
|
windowsVerbatimArguments?: boolean;
|
|
2890
|
+
shell?: boolean | string;
|
|
2867
2891
|
}
|
|
2868
2892
|
interface ExecFileOptionsWithStringEncoding extends ExecFileOptions {
|
|
2869
2893
|
encoding: BufferEncoding;
|
|
@@ -6612,7 +6636,7 @@ declare module "tls" {
|
|
|
6612
6636
|
*/
|
|
6613
6637
|
function checkServerIdentity(host: string, cert: PeerCertificate): Error | undefined;
|
|
6614
6638
|
function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server;
|
|
6615
|
-
function connect(options: ConnectionOptions,
|
|
6639
|
+
function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
6616
6640
|
function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
6617
6641
|
function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
6618
6642
|
function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.12.
|
|
3
|
+
"version": "10.12.19",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -163,6 +163,11 @@
|
|
|
163
163
|
"name": "Samuel Ainsworth",
|
|
164
164
|
"url": "https://github.com/samuela",
|
|
165
165
|
"githubUsername": "samuela"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "Kyle Uehlein",
|
|
169
|
+
"url": "https://github.com/kuehlein",
|
|
170
|
+
"githubUsername": "kuehlein"
|
|
166
171
|
}
|
|
167
172
|
],
|
|
168
173
|
"main": "",
|
|
@@ -173,6 +178,6 @@
|
|
|
173
178
|
},
|
|
174
179
|
"scripts": {},
|
|
175
180
|
"dependencies": {},
|
|
176
|
-
"typesPublisherContentHash": "
|
|
181
|
+
"typesPublisherContentHash": "ff0277f498b203f6759686ef6e80f661eee89c50d1841f77e28a25261bd43fef",
|
|
177
182
|
"typeScriptVersion": "2.0"
|
|
178
183
|
}
|