@types/node 18.19.38 → 18.19.40
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 +5 -4
- node v18.19/package.json +3 -3
- node v18.19/test.d.ts +2 -2
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: 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 v18.19/crypto.d.ts
CHANGED
|
@@ -1349,6 +1349,7 @@ declare module "crypto" {
|
|
|
1349
1349
|
interface SignKeyObjectInput extends SigningOptions {
|
|
1350
1350
|
key: KeyObject;
|
|
1351
1351
|
}
|
|
1352
|
+
interface SignJsonWebKeyInput extends JsonWebKeyInput, SigningOptions {}
|
|
1352
1353
|
interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {}
|
|
1353
1354
|
interface VerifyKeyObjectInput extends SigningOptions {
|
|
1354
1355
|
key: KeyObject;
|
|
@@ -1444,9 +1445,9 @@ declare module "crypto" {
|
|
|
1444
1445
|
* called. Multiple calls to `sign.sign()` will result in an error being thrown.
|
|
1445
1446
|
* @since v0.1.92
|
|
1446
1447
|
*/
|
|
1447
|
-
sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer;
|
|
1448
|
+
sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput): Buffer;
|
|
1448
1449
|
sign(
|
|
1449
|
-
privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput,
|
|
1450
|
+
privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput | SignJsonWebKeyInput,
|
|
1450
1451
|
outputFormat: BinaryToTextEncoding,
|
|
1451
1452
|
): string;
|
|
1452
1453
|
}
|
|
@@ -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 v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.40",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -217,6 +217,6 @@
|
|
|
217
217
|
"dependencies": {
|
|
218
218
|
"undici-types": "~5.26.4"
|
|
219
219
|
},
|
|
220
|
-
"typesPublisherContentHash": "
|
|
221
|
-
"typeScriptVersion": "4.
|
|
220
|
+
"typesPublisherContentHash": "66d6b061541c7ad111b7ddb83bd9aecbbd950c26f2b1903c2381246f0bc10d7b",
|
|
221
|
+
"typeScriptVersion": "4.8"
|
|
222
222
|
}
|
node v18.19/test.d.ts
CHANGED
|
@@ -729,7 +729,7 @@ declare module "node:test" {
|
|
|
729
729
|
* This function is used to change the behavior of an existing mock.
|
|
730
730
|
* @param implementation The function to be used as the mock's new implementation.
|
|
731
731
|
*/
|
|
732
|
-
mockImplementation(implementation:
|
|
732
|
+
mockImplementation(implementation: F): void;
|
|
733
733
|
|
|
734
734
|
/**
|
|
735
735
|
* This function is used to change the behavior of an existing mock for a single invocation.
|
|
@@ -739,7 +739,7 @@ declare module "node:test" {
|
|
|
739
739
|
* @param onCall The invocation number that will use `implementation`.
|
|
740
740
|
* If the specified invocation has already occurred then an exception is thrown.
|
|
741
741
|
*/
|
|
742
|
-
mockImplementationOnce(implementation:
|
|
742
|
+
mockImplementationOnce(implementation: F, onCall?: number): void;
|
|
743
743
|
|
|
744
744
|
/**
|
|
745
745
|
* Resets the call history of the mock function.
|