@types/node 16.18.13 → 16.18.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 v16.18/README.md +1 -1
- node v16.18/crypto.d.ts +10 -4
- node v16.18/net.d.ts +6 -0
- node v16.18/package.json +2 -2
- node v16.18/ts4.8/crypto.d.ts +10 -4
- node v16.18/ts4.8/net.d.ts +6 -0
node v16.18/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 13 Mar 2023 18:02:39 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.18/crypto.d.ts
CHANGED
|
@@ -1276,6 +1276,7 @@ declare module 'crypto' {
|
|
|
1276
1276
|
interface VerifyKeyObjectInput extends SigningOptions {
|
|
1277
1277
|
key: KeyObject;
|
|
1278
1278
|
}
|
|
1279
|
+
interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
|
|
1279
1280
|
type KeyLike = string | Buffer | KeyObject;
|
|
1280
1281
|
/**
|
|
1281
1282
|
* The `Sign` class is a utility for generating signatures. It can be used in one
|
|
@@ -1430,8 +1431,8 @@ declare module 'crypto' {
|
|
|
1430
1431
|
* be passed instead of a public key.
|
|
1431
1432
|
* @since v0.1.92
|
|
1432
1433
|
*/
|
|
1433
|
-
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
1434
|
-
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
|
|
1434
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
1435
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
|
|
1435
1436
|
}
|
|
1436
1437
|
/**
|
|
1437
1438
|
* Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
|
|
@@ -2938,11 +2939,16 @@ declare module 'crypto' {
|
|
|
2938
2939
|
* If the `callback` function is provided this function uses libuv's threadpool.
|
|
2939
2940
|
* @since v12.0.0
|
|
2940
2941
|
*/
|
|
2941
|
-
function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
2942
2942
|
function verify(
|
|
2943
2943
|
algorithm: string | null | undefined,
|
|
2944
2944
|
data: NodeJS.ArrayBufferView,
|
|
2945
|
-
key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
|
|
2945
|
+
key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
|
|
2946
|
+
signature: NodeJS.ArrayBufferView
|
|
2947
|
+
): boolean;
|
|
2948
|
+
function verify(
|
|
2949
|
+
algorithm: string | null | undefined,
|
|
2950
|
+
data: NodeJS.ArrayBufferView,
|
|
2951
|
+
key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
|
|
2946
2952
|
signature: NodeJS.ArrayBufferView,
|
|
2947
2953
|
callback: (error: Error | null, result: boolean) => void
|
|
2948
2954
|
): void;
|
node v16.18/net.d.ts
CHANGED
|
@@ -271,6 +271,12 @@ declare module 'net' {
|
|
|
271
271
|
* @since v18.8.0, v16.18.0
|
|
272
272
|
*/
|
|
273
273
|
readonly localFamily?: string;
|
|
274
|
+
/**
|
|
275
|
+
* This is `true` if the socket is not connected yet, either because `.connect()`
|
|
276
|
+
* has not yet been called or because it is still in the process of connecting (see `socket.connecting`).
|
|
277
|
+
* @since v10.16.0
|
|
278
|
+
*/
|
|
279
|
+
readonly pending: boolean;
|
|
274
280
|
/**
|
|
275
281
|
* This property represents the state of the connection as a string.
|
|
276
282
|
* @see {https://nodejs.org/api/net.html#socketreadystate}
|
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.15",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "86f1181e79f6f94c4aed8476c3fe5d775705c75a48ad3ff0e12a59d025fcc416",
|
|
231
231
|
"typeScriptVersion": "4.2"
|
|
232
232
|
}
|
node v16.18/ts4.8/crypto.d.ts
CHANGED
|
@@ -1274,6 +1274,7 @@ declare module 'crypto' {
|
|
|
1274
1274
|
interface VerifyKeyObjectInput extends SigningOptions {
|
|
1275
1275
|
key: KeyObject;
|
|
1276
1276
|
}
|
|
1277
|
+
interface VerifyJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
|
|
1277
1278
|
type KeyLike = string | Buffer | KeyObject;
|
|
1278
1279
|
/**
|
|
1279
1280
|
* The `Sign` class is a utility for generating signatures. It can be used in one
|
|
@@ -1428,8 +1429,8 @@ declare module 'crypto' {
|
|
|
1428
1429
|
* be passed instead of a public key.
|
|
1429
1430
|
* @since v0.1.92
|
|
1430
1431
|
*/
|
|
1431
|
-
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
1432
|
-
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
|
|
1432
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
1433
|
+
verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean;
|
|
1433
1434
|
}
|
|
1434
1435
|
/**
|
|
1435
1436
|
* Creates a `DiffieHellman` key exchange object using the supplied `prime` and an
|
|
@@ -2936,11 +2937,16 @@ declare module 'crypto' {
|
|
|
2936
2937
|
* If the `callback` function is provided this function uses libuv's threadpool.
|
|
2937
2938
|
* @since v12.0.0
|
|
2938
2939
|
*/
|
|
2939
|
-
function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean;
|
|
2940
2940
|
function verify(
|
|
2941
2941
|
algorithm: string | null | undefined,
|
|
2942
2942
|
data: NodeJS.ArrayBufferView,
|
|
2943
|
-
key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput,
|
|
2943
|
+
key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
|
|
2944
|
+
signature: NodeJS.ArrayBufferView
|
|
2945
|
+
): boolean;
|
|
2946
|
+
function verify(
|
|
2947
|
+
algorithm: string | null | undefined,
|
|
2948
|
+
data: NodeJS.ArrayBufferView,
|
|
2949
|
+
key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput | VerifyJsonWebKeyInput,
|
|
2944
2950
|
signature: NodeJS.ArrayBufferView,
|
|
2945
2951
|
callback: (error: Error | null, result: boolean) => void
|
|
2946
2952
|
): void;
|
node v16.18/ts4.8/net.d.ts
CHANGED
|
@@ -271,6 +271,12 @@ declare module 'net' {
|
|
|
271
271
|
* @since v18.8.0, v16.18.0
|
|
272
272
|
*/
|
|
273
273
|
readonly localFamily?: string;
|
|
274
|
+
/**
|
|
275
|
+
* This is `true` if the socket is not connected yet, either because `.connect()`
|
|
276
|
+
* has not yet been called or because it is still in the process of connecting (see `socket.connecting`).
|
|
277
|
+
* @since v10.16.0
|
|
278
|
+
*/
|
|
279
|
+
readonly pending: boolean;
|
|
274
280
|
/**
|
|
275
281
|
* This property represents the state of the connection as a string.
|
|
276
282
|
* @see {https://nodejs.org/api/net.html#socketreadystate}
|