bun-types 1.1.30-canary.20240927T140542 → 1.1.30-canary.20240929T140457
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.
- package/bun.d.ts +5 -1
- package/package.json +1 -1
package/bun.d.ts
CHANGED
|
@@ -3469,8 +3469,12 @@ declare module "bun" {
|
|
|
3469
3469
|
* Create a new hasher
|
|
3470
3470
|
*
|
|
3471
3471
|
* @param algorithm The algorithm to use. See {@link algorithms} for a list of supported algorithms
|
|
3472
|
+
* @param hmacKey Optional key for HMAC. Must be a string or `TypedArray`. If not provided, the hasher will be a non-HMAC hasher.
|
|
3472
3473
|
*/
|
|
3473
|
-
constructor(
|
|
3474
|
+
constructor(
|
|
3475
|
+
algorithm: SupportedCryptoAlgorithms,
|
|
3476
|
+
hmacKey?: string | NodeJS.TypedArray,
|
|
3477
|
+
);
|
|
3474
3478
|
|
|
3475
3479
|
/**
|
|
3476
3480
|
* Update the hash with data
|
package/package.json
CHANGED