@types/node 18.19.3 → 18.19.4
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 v18.19/README.md +1 -1
- node v18.19/crypto.d.ts +11 -5
- node v18.19/package.json +2 -2
- node v18.19/ts4.8/crypto.d.ts +11 -5
node v18.19/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/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 30 Dec 2023 00:22:50 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/crypto.d.ts
CHANGED
|
@@ -655,6 +655,12 @@ declare module "crypto" {
|
|
|
655
655
|
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
656
656
|
export(options?: KeyExportOptions<"der">): Buffer;
|
|
657
657
|
export(options?: JwkKeyExportOptions): JsonWebKey;
|
|
658
|
+
/**
|
|
659
|
+
* Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters.
|
|
660
|
+
* This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
|
|
661
|
+
* @since v16.15.0
|
|
662
|
+
*/
|
|
663
|
+
equals(otherKeyObject: KeyObject): boolean;
|
|
658
664
|
/**
|
|
659
665
|
* For secret keys, this property represents the size of the key in bytes. This
|
|
660
666
|
* property is `undefined` for asymmetric keys.
|
|
@@ -2493,6 +2499,10 @@ declare module "crypto" {
|
|
|
2493
2499
|
* Name of the curve to use
|
|
2494
2500
|
*/
|
|
2495
2501
|
namedCurve: string;
|
|
2502
|
+
/**
|
|
2503
|
+
* Must be `'named'` or `'explicit'`. Default: `'named'`.
|
|
2504
|
+
*/
|
|
2505
|
+
paramEncoding?: "explicit" | "named" | undefined;
|
|
2496
2506
|
}
|
|
2497
2507
|
interface RSAKeyPairKeyObjectOptions {
|
|
2498
2508
|
/**
|
|
@@ -2603,11 +2613,7 @@ declare module "crypto" {
|
|
|
2603
2613
|
type: "pkcs8";
|
|
2604
2614
|
};
|
|
2605
2615
|
}
|
|
2606
|
-
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2607
|
-
/**
|
|
2608
|
-
* Name of the curve to use.
|
|
2609
|
-
*/
|
|
2610
|
-
namedCurve: string;
|
|
2616
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
|
|
2611
2617
|
publicKeyEncoding: {
|
|
2612
2618
|
type: "pkcs1" | "spki";
|
|
2613
2619
|
format: PubF;
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.4",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"dependencies": {
|
|
230
230
|
"undici-types": "~5.26.4"
|
|
231
231
|
},
|
|
232
|
-
"typesPublisherContentHash": "
|
|
232
|
+
"typesPublisherContentHash": "489a22a64eb7dcc115c313b2439310f14ec4513d38646f073e2e8eff7303d0bc",
|
|
233
233
|
"typeScriptVersion": "4.6",
|
|
234
234
|
"nonNpm": true
|
|
235
235
|
}
|
node v18.19/ts4.8/crypto.d.ts
CHANGED
|
@@ -655,6 +655,12 @@ declare module "crypto" {
|
|
|
655
655
|
export(options: KeyExportOptions<"pem">): string | Buffer;
|
|
656
656
|
export(options?: KeyExportOptions<"der">): Buffer;
|
|
657
657
|
export(options?: JwkKeyExportOptions): JsonWebKey;
|
|
658
|
+
/**
|
|
659
|
+
* Returns `true` or `false` depending on whether the keys have exactly the same type, value, and parameters.
|
|
660
|
+
* This method is not [constant time](https://en.wikipedia.org/wiki/Timing_attack).
|
|
661
|
+
* @since v16.15.0
|
|
662
|
+
*/
|
|
663
|
+
equals(otherKeyObject: KeyObject): boolean;
|
|
658
664
|
/**
|
|
659
665
|
* For secret keys, this property represents the size of the key in bytes. This
|
|
660
666
|
* property is `undefined` for asymmetric keys.
|
|
@@ -2493,6 +2499,10 @@ declare module "crypto" {
|
|
|
2493
2499
|
* Name of the curve to use
|
|
2494
2500
|
*/
|
|
2495
2501
|
namedCurve: string;
|
|
2502
|
+
/**
|
|
2503
|
+
* Must be `'named'` or `'explicit'`. Default: `'named'`.
|
|
2504
|
+
*/
|
|
2505
|
+
paramEncoding?: "explicit" | "named" | undefined;
|
|
2496
2506
|
}
|
|
2497
2507
|
interface RSAKeyPairKeyObjectOptions {
|
|
2498
2508
|
/**
|
|
@@ -2603,11 +2613,7 @@ declare module "crypto" {
|
|
|
2603
2613
|
type: "pkcs8";
|
|
2604
2614
|
};
|
|
2605
2615
|
}
|
|
2606
|
-
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> {
|
|
2607
|
-
/**
|
|
2608
|
-
* Name of the curve to use.
|
|
2609
|
-
*/
|
|
2610
|
-
namedCurve: string;
|
|
2616
|
+
interface ECKeyPairOptions<PubF extends KeyFormat, PrivF extends KeyFormat> extends ECKeyPairKeyObjectOptions {
|
|
2611
2617
|
publicKeyEncoding: {
|
|
2612
2618
|
type: "pkcs1" | "spki";
|
|
2613
2619
|
format: PubF;
|