@types/node 16.18.68 → 16.18.70
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 +11 -5
- node v16.18/dgram.d.ts +10 -0
- node v16.18/package.json +2 -2
- node v16.18/ts4.8/crypto.d.ts +11 -5
- node v16.18/ts4.8/dgram.d.ts +10 -0
node v16.18/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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 07 Jan 2024 15:35:36 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v16.18/crypto.d.ts
CHANGED
|
@@ -628,6 +628,12 @@ declare module "crypto" {
|
|
|
628
628
|
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
629
629
|
export(options?: KeyExportOptions<"der">): Buffer;
|
|
630
630
|
export(options?: JwkKeyExportOptions): JsonWebKey;
|
|
631
|
+
/**
|
|
632
|
+
* Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters.
|
|
633
|
+
* This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
|
|
634
|
+
* @since v16.15.0
|
|
635
|
+
*/
|
|
636
|
+
equals(otherKeyObject: KeyObject): boolean;
|
|
631
637
|
/**
|
|
632
638
|
* For secret keys, this property represents the size of the key in bytes. This
|
|
633
639
|
* property is `undefined` for asymmetric keys.
|
|
@@ -2454,6 +2460,10 @@ declare module "crypto" {
|
|
|
2454
2460
|
* Name of the curve to use
|
|
2455
2461
|
*/
|
|
2456
2462
|
namedCurve: string;
|
|
2463
|
+
/**
|
|
2464
|
+
* Must be `'named'` or `'explicit'`. Default: `'named'`.
|
|
2465
|
+
*/
|
|
2466
|
+
paramEncoding?: "explicit" | "named" | undefined;
|
|
2457
2467
|
}
|
|
2458
2468
|
interface RSAKeyPairKeyObjectOptions {
|
|
2459
2469
|
/**
|
|
@@ -2564,11 +2574,7 @@ declare module "crypto" {
|
|
|
2564
2574
|
type: "pkcs8";
|
|
2565
2575
|
};
|
|
2566
2576
|
}
|
|
2567
|
-
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2568
|
-
/**
|
|
2569
|
-
* Name of the curve to use.
|
|
2570
|
-
*/
|
|
2571
|
-
namedCurve: string;
|
|
2577
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
|
|
2572
2578
|
publicKeyEncoding: {
|
|
2573
2579
|
type: "pkcs1" | "spki";
|
|
2574
2580
|
format: PubF;
|
node v16.18/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 v16.19.0
|
|
232
|
+
* @return the number of bytes queued for sending.
|
|
233
|
+
*/
|
|
234
|
+
getSendQueueSize(): number;
|
|
235
|
+
/**
|
|
236
|
+
* @since 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 v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.70",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
},
|
|
223
223
|
"scripts": {},
|
|
224
224
|
"dependencies": {},
|
|
225
|
-
"typesPublisherContentHash": "
|
|
225
|
+
"typesPublisherContentHash": "31abc8d1d12a4367624c5740e76f7bc15ffd7060a838f692e6f99277ea9ed0e5",
|
|
226
226
|
"typeScriptVersion": "4.6",
|
|
227
227
|
"nonNpm": true
|
|
228
228
|
}
|
node v16.18/ts4.8/crypto.d.ts
CHANGED
|
@@ -628,6 +628,12 @@ declare module "crypto" {
|
|
|
628
628
|
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
629
629
|
export(options?: KeyExportOptions<"der">): Buffer;
|
|
630
630
|
export(options?: JwkKeyExportOptions): JsonWebKey;
|
|
631
|
+
/**
|
|
632
|
+
* Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters.
|
|
633
|
+
* This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
|
|
634
|
+
* @since v16.15.0
|
|
635
|
+
*/
|
|
636
|
+
equals(otherKeyObject: KeyObject): boolean;
|
|
631
637
|
/**
|
|
632
638
|
* For secret keys, this property represents the size of the key in bytes. This
|
|
633
639
|
* property is `undefined` for asymmetric keys.
|
|
@@ -2452,6 +2458,10 @@ declare module "crypto" {
|
|
|
2452
2458
|
* Name of the curve to use
|
|
2453
2459
|
*/
|
|
2454
2460
|
namedCurve: string;
|
|
2461
|
+
/**
|
|
2462
|
+
* Must be `'named'` or `'explicit'`. Default: `'named'`.
|
|
2463
|
+
*/
|
|
2464
|
+
paramEncoding?: "explicit" | "named" | undefined;
|
|
2455
2465
|
}
|
|
2456
2466
|
interface RSAKeyPairKeyObjectOptions {
|
|
2457
2467
|
/**
|
|
@@ -2562,11 +2572,7 @@ declare module "crypto" {
|
|
|
2562
2572
|
type: "pkcs8";
|
|
2563
2573
|
};
|
|
2564
2574
|
}
|
|
2565
|
-
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2566
|
-
/**
|
|
2567
|
-
* Name of the curve to use.
|
|
2568
|
-
*/
|
|
2569
|
-
namedCurve: string;
|
|
2575
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
|
|
2570
2576
|
publicKeyEncoding: {
|
|
2571
2577
|
type: "pkcs1" | "spki";
|
|
2572
2578
|
format: PubF;
|
node v16.18/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 v16.19.0
|
|
232
|
+
* @return the number of bytes queued for sending.
|
|
233
|
+
*/
|
|
234
|
+
getSendQueueSize(): number;
|
|
235
|
+
/**
|
|
236
|
+
* @since 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
|