@types/node 10.17.9 → 10.17.13

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 v10/README.md CHANGED
@@ -8,7 +8,7 @@ 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/v10.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 10 Dec 2019 19:20:34 GMT
11
+ * Last updated: Thu, 26 Dec 2019 17:07:04 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node v10/http.d.ts CHANGED
@@ -165,7 +165,8 @@ declare module "http" {
165
165
 
166
166
  constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
167
167
 
168
- readonly path: string;
168
+ method: string;
169
+ path: string;
169
170
  abort(): void;
170
171
  onSocket(socket: net.Socket): void;
171
172
  setTimeout(timeout: number, callback?: () => void): this;
node v10/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "10.17.9",
3
+ "version": "10.17.13",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -201,6 +201,6 @@
201
201
  },
202
202
  "scripts": {},
203
203
  "dependencies": {},
204
- "typesPublisherContentHash": "fd9fd604e3b6a237771c3aa0051ce4ae2a31777406bbacfa195495d4e5cf5e66",
204
+ "typesPublisherContentHash": "ab366056b7549388af23a01e59a9938550aa9d5546ee808aca44dec4d4d923ea",
205
205
  "typeScriptVersion": "2.8"
206
206
  }
node v10/stream.d.ts CHANGED
@@ -195,6 +195,8 @@ declare module "stream" {
195
195
  allowHalfOpen?: boolean;
196
196
  readableObjectMode?: boolean;
197
197
  writableObjectMode?: boolean;
198
+ readableHighWaterMark?: number;
199
+ writableHighWaterMark?: number;
198
200
  read?(this: Duplex, size: number): void;
199
201
  write?(this: Duplex, chunk: any, encoding: string, callback: (error?: Error | null) => void): void;
200
202
  writev?(this: Duplex, chunks: Array<{ chunk: any, encoding: string }>, callback: (error?: Error | null) => void): void;
node v10/tls.d.ts CHANGED
@@ -64,6 +64,21 @@ declare module "tls" {
64
64
  version: string;
65
65
  }
66
66
 
67
+ interface EphemeralKeyInfo {
68
+ /**
69
+ * The supported types are 'DH' and 'ECDH'.
70
+ */
71
+ type: string;
72
+ /**
73
+ * The name property is available only when type is 'ECDH'.
74
+ */
75
+ name?: string;
76
+ /**
77
+ * The size of parameter of an ephemeral key exchange.
78
+ */
79
+ size: number;
80
+ }
81
+
67
82
  class TLSSocket extends net.Socket {
68
83
  /**
69
84
  * Construct a new tls.TLSSocket object from an existing TCP socket.
@@ -156,6 +171,32 @@ declare module "tls" {
156
171
  * and the SSL/TLS protocol version of the current connection.
157
172
  */
158
173
  getCipher(): CipherNameAndProtocol;
174
+ /**
175
+ * Returns an object representing the type, name, and size of parameter
176
+ * of an ephemeral key exchange in Perfect Forward Secrecy on a client
177
+ * connection. It returns an empty object when the key exchange is not
178
+ * ephemeral. As this is only supported on a client socket; null is
179
+ * returned if called on a server socket. The supported types are 'DH'
180
+ * and 'ECDH'. The name property is available only when type is 'ECDH'.
181
+ *
182
+ * For example: { type: 'ECDH', name: 'prime256v1', size: 256 }.
183
+ */
184
+ getEphemeralKeyInfo(): EphemeralKeyInfo | object | null;
185
+ /**
186
+ * Returns the latest Finished message that has
187
+ * been sent to the socket as part of a SSL/TLS handshake, or undefined
188
+ * if no Finished message has been sent yet.
189
+ *
190
+ * As the Finished messages are message digests of the complete
191
+ * handshake (with a total of 192 bits for TLS 1.0 and more for SSL
192
+ * 3.0), they can be used for external authentication procedures when
193
+ * the authentication provided by SSL/TLS is not desired or is not
194
+ * enough.
195
+ *
196
+ * Corresponds to the SSL_get_finished routine in OpenSSL and may be
197
+ * used to implement the tls-unique channel binding from RFC 5929.
198
+ */
199
+ getFinished(): Buffer | undefined;
159
200
  /**
160
201
  * Returns an object representing the peer's certificate.
161
202
  * The returned object has some properties corresponding to the field of the certificate.
@@ -168,6 +209,21 @@ declare module "tls" {
168
209
  getPeerCertificate(detailed: true): DetailedPeerCertificate;
169
210
  getPeerCertificate(detailed?: false): PeerCertificate;
170
211
  getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate;
212
+ /**
213
+ * Returns the latest Finished message that is expected or has actually
214
+ * been received from the socket as part of a SSL/TLS handshake, or
215
+ * undefined if there is no Finished message so far.
216
+ *
217
+ * As the Finished messages are message digests of the complete
218
+ * handshake (with a total of 192 bits for TLS 1.0 and more for SSL
219
+ * 3.0), they can be used for external authentication procedures when
220
+ * the authentication provided by SSL/TLS is not desired or is not
221
+ * enough.
222
+ *
223
+ * Corresponds to the SSL_get_peer_finished routine in OpenSSL and may
224
+ * be used to implement the tls-unique channel binding from RFC 5929.
225
+ */
226
+ getPeerFinished(): Buffer | undefined;
171
227
  /**
172
228
  * Returns a string containing the negotiated SSL/TLS protocol version of the current connection.
173
229
  * The value `'unknown'` will be returned for connected sockets that have not completed the handshaking process.
@@ -187,6 +243,10 @@ declare module "tls" {
187
243
  * @returns TLS session ticket or undefined if none was negotiated.
188
244
  */
189
245
  getTLSTicket(): any;
246
+ /**
247
+ * Returns true if the session was reused, false otherwise.
248
+ */
249
+ isSessionReused(): boolean;
190
250
  /**
191
251
  * Initiate TLS renegotiation process.
192
252
  *
@@ -210,6 +270,13 @@ declare module "tls" {
210
270
  */
211
271
  setMaxSendFragment(size: number): boolean;
212
272
 
273
+ /**
274
+ * Disables TLS renegotiation for this TLSSocket instance. Once called,
275
+ * attempts to renegotiate will trigger an 'error' event on the
276
+ * TLSSocket.
277
+ */
278
+ disableRenegotiation(): void;
279
+
213
280
  /**
214
281
  * events.EventEmitter
215
282
  * 1. OCSPResponse
@@ -268,11 +335,26 @@ declare module "tls" {
268
335
  }
269
336
 
270
337
  class Server extends net.Server {
338
+ /**
339
+ * The server.addContext() method adds a secure context that will be
340
+ * used if the client request's SNI name matches the supplied hostname
341
+ * (or wildcard).
342
+ */
271
343
  addContext(hostName: string, credentials: {
272
344
  key: string;
273
345
  cert: string;
274
346
  ca: string;
275
347
  }): void;
348
+ /**
349
+ * Returns the session ticket keys.
350
+ */
351
+ getTicketKeys(): Buffer;
352
+ /**
353
+ * The server.setSecureContext() method replaces the secure context of
354
+ * an existing server. Existing connections to the server are not
355
+ * interrupted.
356
+ */
357
+ setTicketKeys(keys: Buffer): void;
276
358
 
277
359
  /**
278
360
  * events.EventEmitter
@@ -367,5 +449,10 @@ declare module "tls" {
367
449
  function createSecureContext(details: SecureContextOptions): SecureContext;
368
450
  function getCiphers(): string[];
369
451
 
370
- const DEFAULT_ECDH_CURVE: string;
452
+ /**
453
+ * The default curve name to use for ECDH key agreement in a tls server.
454
+ * The default value is 'auto'. See tls.createSecureContext() for further
455
+ * information.
456
+ */
457
+ let DEFAULT_ECDH_CURVE: string;
371
458
  }
node v10/url.d.ts CHANGED
@@ -7,7 +7,6 @@ declare module "url" {
7
7
  host?: string;
8
8
  hostname?: string;
9
9
  href?: string;
10
- path?: string;
11
10
  pathname?: string;
12
11
  protocol?: string;
13
12
  search?: string;
@@ -24,6 +23,7 @@ declare module "url" {
24
23
  interface Url extends UrlObjectCommon {
25
24
  port?: string;
26
25
  query?: string | null | ParsedUrlQuery;
26
+ path?: string;
27
27
  }
28
28
 
29
29
  interface UrlWithParsedQuery extends Url {