@types/node 20.10.5 → 20.10.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 +1 -1
- node/crypto.d.ts +11 -5
- node/dgram.d.ts +10 -0
- node/package.json +2 -2
- node/ts4.8/crypto.d.ts +11 -5
- node/ts4.8/dgram.d.ts +10 -0
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://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: Sun,
|
|
11
|
+
* Last updated: Sun, 07 Jan 2024 15:35:36 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node/crypto.d.ts
CHANGED
|
@@ -637,6 +637,12 @@ declare module "crypto" {
|
|
|
637
637
|
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
638
638
|
export(options?: KeyExportOptions<"der">): Buffer;
|
|
639
639
|
export(options?: JwkKeyExportOptions): JsonWebKey;
|
|
640
|
+
/**
|
|
641
|
+
* Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters.
|
|
642
|
+
* This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
|
|
643
|
+
* @since v16.15.0
|
|
644
|
+
*/
|
|
645
|
+
equals(otherKeyObject: KeyObject): boolean;
|
|
640
646
|
/**
|
|
641
647
|
* For secret keys, this property represents the size of the key in bytes. This
|
|
642
648
|
* property is `undefined` for asymmetric keys.
|
|
@@ -2475,6 +2481,10 @@ declare module "crypto" {
|
|
|
2475
2481
|
* Name of the curve to use
|
|
2476
2482
|
*/
|
|
2477
2483
|
namedCurve: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* Must be `'named'` or `'explicit'`. Default: `'named'`.
|
|
2486
|
+
*/
|
|
2487
|
+
paramEncoding?: "explicit" | "named" | undefined;
|
|
2478
2488
|
}
|
|
2479
2489
|
interface RSAKeyPairKeyObjectOptions {
|
|
2480
2490
|
/**
|
|
@@ -2585,11 +2595,7 @@ declare module "crypto" {
|
|
|
2585
2595
|
type: "pkcs8";
|
|
2586
2596
|
};
|
|
2587
2597
|
}
|
|
2588
|
-
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2589
|
-
/**
|
|
2590
|
-
* Name of the curve to use.
|
|
2591
|
-
*/
|
|
2592
|
-
namedCurve: string;
|
|
2598
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
|
|
2593
2599
|
publicKeyEncoding: {
|
|
2594
2600
|
type: "pkcs1" | "spki";
|
|
2595
2601
|
format: PubF;
|
node/dgram.d.ts
CHANGED
|
@@ -227,6 +227,16 @@ declare module "dgram" {
|
|
|
227
227
|
* @return the `SO_SNDBUF` socket send buffer size in bytes.
|
|
228
228
|
*/
|
|
229
229
|
getSendBufferSize(): number;
|
|
230
|
+
/**
|
|
231
|
+
* @since v18.8.0,v16.19.0
|
|
232
|
+
* @return the number of bytes queued for sending.
|
|
233
|
+
*/
|
|
234
|
+
getSendQueueSize(): number;
|
|
235
|
+
/**
|
|
236
|
+
* @since v18.8.0,v16.19.0
|
|
237
|
+
* @return the number of send requests currently in the queue awaiting to be processed.
|
|
238
|
+
*/
|
|
239
|
+
getSendQueueCount(): number;
|
|
230
240
|
/**
|
|
231
241
|
* By default, binding a socket will cause it to block the Node.js process from
|
|
232
242
|
* exiting as long as the socket is open. The `socket.unref()` method can be used
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.10.
|
|
3
|
+
"version": "20.10.7",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -224,7 +224,7 @@
|
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"undici-types": "~5.26.4"
|
|
226
226
|
},
|
|
227
|
-
"typesPublisherContentHash": "
|
|
227
|
+
"typesPublisherContentHash": "046bda929132f3b0ea734f317866954dfaa9a3eb325f8ac0f45460b1e007a9e2",
|
|
228
228
|
"typeScriptVersion": "4.6",
|
|
229
229
|
"nonNpm": true
|
|
230
230
|
}
|
node/ts4.8/crypto.d.ts
CHANGED
|
@@ -637,6 +637,12 @@ declare module "crypto" {
|
|
|
637
637
|
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
638
638
|
export(options?: KeyExportOptions<"der">): Buffer;
|
|
639
639
|
export(options?: JwkKeyExportOptions): JsonWebKey;
|
|
640
|
+
/**
|
|
641
|
+
* Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters.
|
|
642
|
+
* This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
|
|
643
|
+
* @since v16.15.0
|
|
644
|
+
*/
|
|
645
|
+
equals(otherKeyObject: KeyObject): boolean;
|
|
640
646
|
/**
|
|
641
647
|
* For secret keys, this property represents the size of the key in bytes. This
|
|
642
648
|
* property is `undefined` for asymmetric keys.
|
|
@@ -2475,6 +2481,10 @@ declare module "crypto" {
|
|
|
2475
2481
|
* Name of the curve to use
|
|
2476
2482
|
*/
|
|
2477
2483
|
namedCurve: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* Must be `'named'` or `'explicit'`. Default: `'named'`.
|
|
2486
|
+
*/
|
|
2487
|
+
paramEncoding?: "explicit" | "named" | undefined;
|
|
2478
2488
|
}
|
|
2479
2489
|
interface RSAKeyPairKeyObjectOptions {
|
|
2480
2490
|
/**
|
|
@@ -2585,11 +2595,7 @@ declare module "crypto" {
|
|
|
2585
2595
|
type: "pkcs8";
|
|
2586
2596
|
};
|
|
2587
2597
|
}
|
|
2588
|
-
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2589
|
-
/**
|
|
2590
|
-
* Name of the curve to use.
|
|
2591
|
-
*/
|
|
2592
|
-
namedCurve: string;
|
|
2598
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
|
|
2593
2599
|
publicKeyEncoding: {
|
|
2594
2600
|
type: "pkcs1" | "spki";
|
|
2595
2601
|
format: PubF;
|
node/ts4.8/dgram.d.ts
CHANGED
|
@@ -227,6 +227,16 @@ declare module "dgram" {
|
|
|
227
227
|
* @return the `SO_SNDBUF` socket send buffer size in bytes.
|
|
228
228
|
*/
|
|
229
229
|
getSendBufferSize(): number;
|
|
230
|
+
/**
|
|
231
|
+
* @since v18.8.0,v16.19.0
|
|
232
|
+
* @return the number of bytes queued for sending.
|
|
233
|
+
*/
|
|
234
|
+
getSendQueueSize(): number;
|
|
235
|
+
/**
|
|
236
|
+
* @since v18.8.0,v16.19.0
|
|
237
|
+
* @return the number of send requests currently in the queue awaiting to be processed.
|
|
238
|
+
*/
|
|
239
|
+
getSendQueueCount(): number;
|
|
230
240
|
/**
|
|
231
241
|
* By default, binding a socket will cause it to block the Node.js process from
|
|
232
242
|
* exiting as long as the socket is open. The `socket.unref()` method can be used
|