@types/node 10.17.11 → 10.17.15

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, 17 Dec 2019 18:09:23 GMT
11
+ * Last updated: Tue, 11 Feb 2020 17:16:37 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/globals.d.ts CHANGED
@@ -350,6 +350,12 @@ declare const Buffer: {
350
350
  */
351
351
  from(data: any[]): Buffer;
352
352
  from(data: Uint8Array): Buffer;
353
+ /**
354
+ * Creates a new buffer containing the coerced value of an object
355
+ * A `TypeError` will be thrown if {obj} has not mentioned methods or is not of other type appropriate for `Buffer.from()` variants.
356
+ * @param obj An object supporting `Symbol.toPrimitive` or `valueOf()`.
357
+ */
358
+ from(obj: { valueOf(): string | object } | { [Symbol.toPrimitive](hint: 'string'): string }, byteOffset?: number, length?: number): Buffer;
353
359
  /**
354
360
  * Creates a new Buffer containing the given JavaScript string {str}.
355
361
  * If provided, the {encoding} parameter identifies the character encoding.
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.11",
3
+ "version": "10.17.15",
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": "685ed0c22630ea23304fce28276dc62794e7af887fe65810b51b9548a841dcbb",
204
+ "typesPublisherContentHash": "289134b34871508393cda5aedd4d62dcd064257c7052fa5430e04a20f9de29d1",
205
205
  "typeScriptVersion": "2.8"
206
206
  }
node v10/readline.d.ts CHANGED
@@ -129,6 +129,7 @@ declare module "readline" {
129
129
  prompt?: string;
130
130
  crlfDelay?: number;
131
131
  removeHistoryDuplicates?: boolean;
132
+ escapeCodeTimeout?: number;
132
133
  }
133
134
 
134
135
  function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface;
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 {