@types/node 20.14.10 → 20.14.11

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.
Files changed (3) hide show
  1. node/README.md +1 -1
  2. node/crypto.d.ts +5 -4
  3. node/package.json +2 -2
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: Fri, 05 Jul 2024 19:07:00 GMT
11
+ * Last updated: Tue, 16 Jul 2024 20:07:33 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
node/crypto.d.ts CHANGED
@@ -1364,6 +1364,7 @@ declare module "crypto" {
1364
1364
  interface SignKeyObjectInput extends SigningOptions {
1365
1365
  key: KeyObject;
1366
1366
  }
1367
+ interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
1367
1368
  interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
1368
1369
  interface VerifyKeyObjectInput extends SigningOptions {
1369
1370
  key: KeyObject;
@@ -1459,9 +1460,9 @@ declare module "crypto" {
1459
1460
  * called. Multiple calls to `sign.sign()` will result in an error being thrown.
1460
1461
  * @since v0.1.92
1461
1462
  */
1462
- sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
1463
+ sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): Buffer;
1463
1464
  sign(
1464
- privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
1465
+ privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
1465
1466
  outputFormat: BinaryToTextEncoding,
1466
1467
  ): string;
1467
1468
  }
@@ -3336,12 +3337,12 @@ declare module "crypto" {
3336
3337
  function sign(
3337
3338
  algorithm: string | null | undefined,
3338
3339
  data: NodeJS.ArrayBufferView,
3339
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
3340
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3340
3341
  ): Buffer;
3341
3342
  function sign(
3342
3343
  algorithm: string | null | undefined,
3343
3344
  data: NodeJS.ArrayBufferView,
3344
- key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
3345
+ key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
3345
3346
  callback: (error: Error | null, data: Buffer) => void,
3346
3347
  ): void;
3347
3348
  /**
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.14.10",
3
+ "version": "20.14.11",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -212,6 +212,6 @@
212
212
  "dependencies": {
213
213
  "undici-types": "~5.26.4"
214
214
  },
215
- "typesPublisherContentHash": "b17c0002475911f007185cf574aab21231670287a5241042fb3697a72c3d2ce3",
215
+ "typesPublisherContentHash": "e16ff5cc6bae8ed88d0ff399d3af0b1017ab1349e316830d51bf3a03a5e1a236",
216
216
  "typeScriptVersion": "4.8"
217
217
  }