@types/node 14.0.20 → 14.0.24
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/assert.d.ts +5 -5
- node/buffer.d.ts +1 -1
- node/crypto.d.ts +6 -6
- node/dns.d.ts +1 -1
- node/fs.d.ts +1 -1
- node/package.json +2 -2
- node/process.d.ts +9 -3
- node/querystring.d.ts +1 -1
- node/stream.d.ts +1 -0
- node/tls.d.ts +1 -1
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:
|
|
11
|
+
* Last updated: Mon, 20 Jul 2020 22:05:06 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `exports`, `global`, `module`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node/assert.d.ts
CHANGED
|
@@ -19,16 +19,16 @@ declare module "assert" {
|
|
|
19
19
|
type AssertPredicate = RegExp | (new() => object) | ((thrown: any) => boolean) | object | Error;
|
|
20
20
|
|
|
21
21
|
function fail(message?: string | Error): never;
|
|
22
|
-
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
|
22
|
+
/** @deprecated since v10.0.0 - use `fail([message])` or other assert functions instead. */
|
|
23
23
|
function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never;
|
|
24
24
|
function ok(value: any, message?: string | Error): void;
|
|
25
|
-
/** @deprecated since v9.9.0 - use strictEqual() instead. */
|
|
25
|
+
/** @deprecated since v9.9.0 - use `strictEqual()` instead. */
|
|
26
26
|
function equal(actual: any, expected: any, message?: string | Error): void;
|
|
27
|
-
/** @deprecated since v9.9.0 - use notStrictEqual() instead. */
|
|
27
|
+
/** @deprecated since v9.9.0 - use `notStrictEqual()` instead. */
|
|
28
28
|
function notEqual(actual: any, expected: any, message?: string | Error): void;
|
|
29
|
-
/** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
|
|
29
|
+
/** @deprecated since v9.9.0 - use `deepStrictEqual()` instead. */
|
|
30
30
|
function deepEqual(actual: any, expected: any, message?: string | Error): void;
|
|
31
|
-
/** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
|
|
31
|
+
/** @deprecated since v9.9.0 - use `notDeepStrictEqual()` instead. */
|
|
32
32
|
function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
|
|
33
33
|
function strictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
34
34
|
function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
node/buffer.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ declare module "buffer" {
|
|
|
13
13
|
export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer;
|
|
14
14
|
|
|
15
15
|
export const SlowBuffer: {
|
|
16
|
-
/** @deprecated since v6.0.0, use Buffer.allocUnsafeSlow() */
|
|
16
|
+
/** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */
|
|
17
17
|
new(size: number): Buffer;
|
|
18
18
|
prototype: Buffer;
|
|
19
19
|
};
|
node/crypto.d.ts
CHANGED
|
@@ -178,11 +178,11 @@ declare module "crypto" {
|
|
|
178
178
|
interface CipherGCMOptions extends stream.TransformOptions {
|
|
179
179
|
authTagLength?: number;
|
|
180
180
|
}
|
|
181
|
-
/** @deprecated since v10.0.0 use createCipheriv() */
|
|
181
|
+
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
|
182
182
|
function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM;
|
|
183
|
-
/** @deprecated since v10.0.0 use createCipheriv() */
|
|
183
|
+
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
|
184
184
|
function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM;
|
|
185
|
-
/** @deprecated since v10.0.0 use createCipheriv() */
|
|
185
|
+
/** @deprecated since v10.0.0 use `createCipheriv()` */
|
|
186
186
|
function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher;
|
|
187
187
|
|
|
188
188
|
function createCipheriv(
|
|
@@ -221,11 +221,11 @@ declare module "crypto" {
|
|
|
221
221
|
setAAD(buffer: Buffer, options?: { plaintextLength: number }): this;
|
|
222
222
|
getAuthTag(): Buffer;
|
|
223
223
|
}
|
|
224
|
-
/** @deprecated since v10.0.0 use createDecipheriv() */
|
|
224
|
+
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
225
225
|
function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM;
|
|
226
|
-
/** @deprecated since v10.0.0 use createDecipheriv() */
|
|
226
|
+
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
227
227
|
function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM;
|
|
228
|
-
/** @deprecated since v10.0.0 use createDecipheriv() */
|
|
228
|
+
/** @deprecated since v10.0.0 use `createDecipheriv()` */
|
|
229
229
|
function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher;
|
|
230
230
|
|
|
231
231
|
function createDecipheriv(
|
node/dns.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare module "dns" {
|
|
|
60
60
|
ttl: number;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
/** @deprecated Use AnyARecord or AnyAaaaRecord instead. */
|
|
63
|
+
/** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */
|
|
64
64
|
type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord;
|
|
65
65
|
|
|
66
66
|
interface AnyARecord extends RecordWithTtl {
|
node/fs.d.ts
CHANGED
|
@@ -1727,7 +1727,7 @@ declare module "fs" {
|
|
|
1727
1727
|
|
|
1728
1728
|
/**
|
|
1729
1729
|
* Asynchronously tests whether or not the given path exists by checking with the file system.
|
|
1730
|
-
* @deprecated
|
|
1730
|
+
* @deprecated since v1.0.0 Use `fs.stat()` or `fs.access()` instead
|
|
1731
1731
|
* @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol.
|
|
1732
1732
|
* URL support is _experimental_.
|
|
1733
1733
|
*/
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.24",
|
|
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": "9956ad12be184956292238abc1b4225e8f30d4731dc6fd23fd9a120e07c55ecb",
|
|
255
255
|
"typeScriptVersion": "3.0"
|
|
256
256
|
}
|
node/process.d.ts
CHANGED
|
@@ -174,12 +174,18 @@ declare module "process" {
|
|
|
174
174
|
/**
|
|
175
175
|
* Can also be a tty.WriteStream, not typed due to limitations.
|
|
176
176
|
*/
|
|
177
|
-
stdout: WriteStream
|
|
177
|
+
stdout: WriteStream & {
|
|
178
|
+
fd: 1;
|
|
179
|
+
};
|
|
178
180
|
/**
|
|
179
181
|
* Can also be a tty.WriteStream, not typed due to limitations.
|
|
180
182
|
*/
|
|
181
|
-
stderr: WriteStream
|
|
182
|
-
|
|
183
|
+
stderr: WriteStream & {
|
|
184
|
+
fd: 2;
|
|
185
|
+
};
|
|
186
|
+
stdin: ReadStream & {
|
|
187
|
+
fd: 0;
|
|
188
|
+
};
|
|
183
189
|
openStdin(): Socket;
|
|
184
190
|
argv: string[];
|
|
185
191
|
argv0: string;
|
node/querystring.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare module "querystring" {
|
|
|
10
10
|
|
|
11
11
|
interface ParsedUrlQuery extends NodeJS.Dict<string | string[]> { }
|
|
12
12
|
|
|
13
|
-
interface ParsedUrlQueryInput extends NodeJS.Dict<string | number | boolean | string
|
|
13
|
+
interface ParsedUrlQueryInput extends NodeJS.Dict<string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number> | ReadonlyArray<boolean> | null> {
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;
|
node/stream.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ declare module "stream" {
|
|
|
28
28
|
readable: boolean;
|
|
29
29
|
readonly readableEncoding: BufferEncoding | null;
|
|
30
30
|
readonly readableEnded: boolean;
|
|
31
|
+
readonly readableFlowing: boolean | null;
|
|
31
32
|
readonly readableHighWaterMark: number;
|
|
32
33
|
readonly readableLength: number;
|
|
33
34
|
readonly readableObjectMode: boolean;
|
node/tls.d.ts
CHANGED
|
@@ -726,7 +726,7 @@ declare module "tls" {
|
|
|
726
726
|
function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
727
727
|
function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket;
|
|
728
728
|
/**
|
|
729
|
-
* @deprecated
|
|
729
|
+
* @deprecated since v0.11.3 Use `tls.TLSSocket` instead.
|
|
730
730
|
*/
|
|
731
731
|
function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
|
|
732
732
|
function createSecureContext(details: SecureContextOptions): SecureContext;
|