@types/node 10.5.6 → 10.5.7
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 +2 -2
- node/index.d.ts +31 -34
- node/package.json +7 -2
node/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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, 06 Aug 2018 21:55:25 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 <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Zane Hannan AU <https://github.com/ZaneHannanAU>.
|
|
16
|
+
These definitions were written by Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Parambir Singh <https://github.com/parambirs>, Christian Vaagland Tellnes <https://github.com/tellnes>, Wilco Bakker <https://github.com/WilcoBakker>, Nicolas Voigt <https://github.com/octo-sniffle>, Chigozirim C. <https://github.com/smac89>, Flarna <https://github.com/Flarna>, Mariusz Wiktorczyk <https://github.com/mwiktorczyk>, wwwy3y3 <https://github.com/wwwy3y3>, Deividas Bakanas <https://github.com/DeividasBakanas>, Kelvin Jin <https://github.com/kjin>, Alvis HT Tang <https://github.com/alvis>, Sebastian Silbermann <https://github.com/eps1lon>, Hannes Magnusson <https://github.com/Hannes-Magnusson-CK>, Alberto Schiabel <https://github.com/jkomyno>, Klaus Meinhardt <https://github.com/ajafff>, Huw <https://github.com/hoo29>, Nicolas Even <https://github.com/n-e>, Bruno Scheufler <https://github.com/brunoscheufler>, Mohsen Azimi <https://github.com/mohsen1>, Hoàng Văn Khải <https://github.com/KSXGitHub>, Alexander T. <https://github.com/a-tarasyuk>, Lishude <https://github.com/islishude>, Andrew Makarov <https://github.com/r3nya>, Zane Hannan AU <https://github.com/ZaneHannanAU>, Eugene Y. Q. Shen <https://github.com/eyqs>.
|
node/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
// Lishude <https://github.com/islishude>
|
|
27
27
|
// Andrew Makarov <https://github.com/r3nya>
|
|
28
28
|
// Zane Hannan AU <https://github.com/ZaneHannanAU>
|
|
29
|
+
// Eugene Y. Q. Shen <https://github.com/eyqs>
|
|
29
30
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
30
31
|
|
|
31
32
|
/** inspector module types */
|
|
@@ -5862,8 +5863,8 @@ declare module "crypto" {
|
|
|
5862
5863
|
export interface Signer extends NodeJS.WritableStream {
|
|
5863
5864
|
update(data: string | Buffer | NodeJS.TypedArray | DataView): Signer;
|
|
5864
5865
|
update(data: string, input_encoding: Utf8AsciiLatin1Encoding): Signer;
|
|
5865
|
-
sign(private_key: string | { key: string; passphrase: string }): Buffer;
|
|
5866
|
-
sign(private_key: string | { key: string; passphrase: string }, output_format: HexBase64Latin1Encoding): string;
|
|
5866
|
+
sign(private_key: string | { key: string; passphrase: string, padding?: number, saltLength?: number }): Buffer;
|
|
5867
|
+
sign(private_key: string | { key: string; passphrase: string, padding?: number, saltLength?: number }, output_format: HexBase64Latin1Encoding): string;
|
|
5867
5868
|
}
|
|
5868
5869
|
export function createVerify(algorith: string, options?: stream.WritableOptions): Verify;
|
|
5869
5870
|
export interface Verify extends NodeJS.WritableStream {
|
|
@@ -6381,7 +6382,7 @@ declare module "util" {
|
|
|
6381
6382
|
}
|
|
6382
6383
|
|
|
6383
6384
|
declare module "assert" {
|
|
6384
|
-
function internal(value: any, message?: string): void;
|
|
6385
|
+
function internal(value: any, message?: string | Error): void;
|
|
6385
6386
|
namespace internal {
|
|
6386
6387
|
export class AssertionError implements Error {
|
|
6387
6388
|
name: string;
|
|
@@ -6390,46 +6391,42 @@ declare module "assert" {
|
|
|
6390
6391
|
expected: any;
|
|
6391
6392
|
operator: string;
|
|
6392
6393
|
generatedMessage: boolean;
|
|
6394
|
+
code: 'ERR_ASSERTION';
|
|
6393
6395
|
|
|
6394
6396
|
constructor(options?: {
|
|
6395
6397
|
message?: string; actual?: any; expected?: any;
|
|
6396
|
-
operator?: string;
|
|
6398
|
+
operator?: string; stackStartFn?: Function
|
|
6397
6399
|
});
|
|
6398
6400
|
}
|
|
6399
6401
|
|
|
6400
|
-
export function fail(message
|
|
6401
|
-
/** @deprecated since v10.0.0 */
|
|
6402
|
-
export function fail(actual: any, expected: any, message?: string, operator?: string): never;
|
|
6403
|
-
export function ok(value: any, message?: string): void;
|
|
6404
|
-
/** @deprecated use strictEqual() */
|
|
6405
|
-
export function equal(actual: any, expected: any, message?: string): void;
|
|
6406
|
-
/** @deprecated use notStrictEqual() */
|
|
6407
|
-
export function notEqual(actual: any, expected: any, message?: string): void;
|
|
6408
|
-
/** @deprecated use deepStrictEqual() */
|
|
6409
|
-
export function deepEqual(actual: any, expected: any, message?: string): void;
|
|
6410
|
-
/** @deprecated use notDeepStrictEqual() */
|
|
6411
|
-
export function notDeepEqual(
|
|
6412
|
-
export function strictEqual(actual: any, expected: any, message?: string): void;
|
|
6413
|
-
export function notStrictEqual(actual: any, expected: any, message?: string): void;
|
|
6414
|
-
export function deepStrictEqual(actual: any, expected: any, message?: string): void;
|
|
6415
|
-
export function notDeepStrictEqual(actual: any, expected: any, message?: string): void;
|
|
6416
|
-
|
|
6417
|
-
export function throws(block: Function, message?: string): void;
|
|
6418
|
-
export function throws(block: Function, error: Function, message?: string): void;
|
|
6419
|
-
export function
|
|
6420
|
-
export function
|
|
6421
|
-
|
|
6422
|
-
export function doesNotThrow(block: Function, message?: string): void;
|
|
6423
|
-
export function doesNotThrow(block: Function, error: Function, message?: string): void;
|
|
6424
|
-
export function doesNotThrow(block: Function, error: RegExp, message?: string): void;
|
|
6425
|
-
export function doesNotThrow(block: Function, error: (err: any) => boolean, message?: string): void;
|
|
6402
|
+
export function fail(message?: string | Error): never;
|
|
6403
|
+
/** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */
|
|
6404
|
+
export function fail(actual: any, expected: any, message?: string | Error, operator?: string, stackStartFn?: Function): never;
|
|
6405
|
+
export function ok(value: any, message?: string | Error): void;
|
|
6406
|
+
/** @deprecated since v9.9.0 - use strictEqual() instead. */
|
|
6407
|
+
export function equal(actual: any, expected: any, message?: string | Error): void;
|
|
6408
|
+
/** @deprecated since v9.9.0 - use notStrictEqual() instead. */
|
|
6409
|
+
export function notEqual(actual: any, expected: any, message?: string | Error): void;
|
|
6410
|
+
/** @deprecated since v9.9.0 - use deepStrictEqual() instead. */
|
|
6411
|
+
export function deepEqual(actual: any, expected: any, message?: string | Error): void;
|
|
6412
|
+
/** @deprecated since v9.9.0 - use notDeepStrictEqual() instead. */
|
|
6413
|
+
export function notDeepEqual(actual: any, expected: any, message?: string | Error): void;
|
|
6414
|
+
export function strictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
6415
|
+
export function notStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
6416
|
+
export function deepStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
6417
|
+
export function notDeepStrictEqual(actual: any, expected: any, message?: string | Error): void;
|
|
6418
|
+
|
|
6419
|
+
export function throws(block: Function, message?: string | Error): void;
|
|
6420
|
+
export function throws(block: Function, error: RegExp | Function | Object | Error, message?: string | Error): void;
|
|
6421
|
+
export function doesNotThrow(block: Function, message?: string | Error): void;
|
|
6422
|
+
export function doesNotThrow(block: Function, error: RegExp | Function, message?: string | Error): void;
|
|
6426
6423
|
|
|
6427
6424
|
export function ifError(value: any): void;
|
|
6428
6425
|
|
|
6429
|
-
export function rejects(block: Function | Promise<any>, message?: string): Promise<void>;
|
|
6430
|
-
export function rejects(block: Function | Promise<any>, error:
|
|
6431
|
-
export function doesNotReject(block: Function | Promise<any>, message?: string): Promise<void>;
|
|
6432
|
-
export function doesNotReject(block: Function | Promise<any>, error:
|
|
6426
|
+
export function rejects(block: Function | Promise<any>, message?: string | Error): Promise<void>;
|
|
6427
|
+
export function rejects(block: Function | Promise<any>, error: RegExp | Function | Object | Error, message?: string | Error): Promise<void>;
|
|
6428
|
+
export function doesNotReject(block: Function | Promise<any>, message?: string | Error): Promise<void>;
|
|
6429
|
+
export function doesNotReject(block: Function | Promise<any>, error: RegExp | Function, message?: string | Error): Promise<void>;
|
|
6433
6430
|
|
|
6434
6431
|
export var strict: typeof internal;
|
|
6435
6432
|
}
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -131,6 +131,11 @@
|
|
|
131
131
|
"name": "Zane Hannan AU",
|
|
132
132
|
"url": "https://github.com/ZaneHannanAU",
|
|
133
133
|
"githubUsername": "ZaneHannanAU"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "Eugene Y. Q. Shen",
|
|
137
|
+
"url": "https://github.com/eyqs",
|
|
138
|
+
"githubUsername": "eyqs"
|
|
134
139
|
}
|
|
135
140
|
],
|
|
136
141
|
"main": "",
|
|
@@ -140,6 +145,6 @@
|
|
|
140
145
|
},
|
|
141
146
|
"scripts": {},
|
|
142
147
|
"dependencies": {},
|
|
143
|
-
"typesPublisherContentHash": "
|
|
148
|
+
"typesPublisherContentHash": "ff6a9da38f7afe6c2a421ae121c99dabed96f1aca57674b6f7bf87b20f8dc62b",
|
|
144
149
|
"typeScriptVersion": "2.0"
|
|
145
150
|
}
|