@types/node 14.0.8 → 14.0.12
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 +1 -1
- node/child_process.d.ts +4 -4
- node/http.d.ts +4 -0
- node/package.json +2 -2
- node/stream.d.ts +2 -0
node/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.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Mon,
|
|
11
|
+
* Last updated: Mon, 08 Jun 2020 18:51:15 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node/child_process.d.ts
CHANGED
|
@@ -436,13 +436,13 @@ declare module "child_process" {
|
|
|
436
436
|
input?: string | NodeJS.ArrayBufferView;
|
|
437
437
|
killSignal?: NodeJS.Signals | number;
|
|
438
438
|
maxBuffer?: number;
|
|
439
|
-
encoding?: BufferEncoding;
|
|
439
|
+
encoding?: BufferEncoding | 'buffer' | null;
|
|
440
440
|
}
|
|
441
441
|
interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions {
|
|
442
442
|
encoding: BufferEncoding;
|
|
443
443
|
}
|
|
444
444
|
interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions {
|
|
445
|
-
encoding
|
|
445
|
+
encoding?: 'buffer' | null;
|
|
446
446
|
}
|
|
447
447
|
interface SpawnSyncReturns<T> {
|
|
448
448
|
pid: number;
|
|
@@ -467,13 +467,13 @@ declare module "child_process" {
|
|
|
467
467
|
shell?: string;
|
|
468
468
|
killSignal?: NodeJS.Signals | number;
|
|
469
469
|
maxBuffer?: number;
|
|
470
|
-
encoding?: BufferEncoding;
|
|
470
|
+
encoding?: BufferEncoding | 'buffer' | null;
|
|
471
471
|
}
|
|
472
472
|
interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions {
|
|
473
473
|
encoding: BufferEncoding;
|
|
474
474
|
}
|
|
475
475
|
interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions {
|
|
476
|
-
encoding
|
|
476
|
+
encoding?: 'buffer' | null;
|
|
477
477
|
}
|
|
478
478
|
function execSync(command: string): Buffer;
|
|
479
479
|
function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string;
|
node/http.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ declare module "http" {
|
|
|
16
16
|
'access-control-allow-origin'?: string;
|
|
17
17
|
'access-control-expose-headers'?: string;
|
|
18
18
|
'access-control-max-age'?: string;
|
|
19
|
+
'access-control-request-headers'?: string;
|
|
20
|
+
'access-control-request-method'?: string;
|
|
19
21
|
'age'?: string;
|
|
20
22
|
'allow'?: string;
|
|
21
23
|
'alt-svc'?: string;
|
|
@@ -42,6 +44,7 @@ declare module "http" {
|
|
|
42
44
|
'if-unmodified-since'?: string;
|
|
43
45
|
'last-modified'?: string;
|
|
44
46
|
'location'?: string;
|
|
47
|
+
'origin'?: string;
|
|
45
48
|
'pragma'?: string;
|
|
46
49
|
'proxy-authenticate'?: string;
|
|
47
50
|
'proxy-authorization'?: string;
|
|
@@ -356,6 +359,7 @@ declare module "http" {
|
|
|
356
359
|
class Agent {
|
|
357
360
|
maxFreeSockets: number;
|
|
358
361
|
maxSockets: number;
|
|
362
|
+
readonly freeSockets: NodeJS.ReadOnlyDict<Socket[]>;
|
|
359
363
|
readonly sockets: NodeJS.ReadOnlyDict<Socket[]>;
|
|
360
364
|
readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
|
|
361
365
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.12",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -251,6 +251,6 @@
|
|
|
251
251
|
},
|
|
252
252
|
"scripts": {},
|
|
253
253
|
"dependencies": {},
|
|
254
|
-
"typesPublisherContentHash": "
|
|
254
|
+
"typesPublisherContentHash": "b3ce80a8e48819173a340f5ab817f9031f2120c196748224b7751baa2b48e9c9",
|
|
255
255
|
"typeScriptVersion": "3.0"
|
|
256
256
|
}
|
node/stream.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ declare module "stream" {
|
|
|
26
26
|
static from(iterable: Iterable<any> | AsyncIterable<any>, options?: ReadableOptions): Readable;
|
|
27
27
|
|
|
28
28
|
readable: boolean;
|
|
29
|
+
readonly readableEncoding: BufferEncoding | null;
|
|
30
|
+
readonly readableEnded: boolean;
|
|
29
31
|
readonly readableHighWaterMark: number;
|
|
30
32
|
readonly readableLength: number;
|
|
31
33
|
readonly readableObjectMode: boolean;
|