@funkit/api-base
Advanced tools
Comparing version 1.0.1 to 1.0.2-next.0
# @funkit/api-base | ||
## 1.0.2-next.0 | ||
### Patch Changes | ||
- 3889115: fix: ensure salt is always hex | ||
## 1.0.1 | ||
@@ -4,0 +10,0 @@ |
@@ -49,3 +49,3 @@ /**===============* | ||
sourceOfFund: string; | ||
salt: bigint; | ||
salt: Hex; | ||
clientMetadata: object; | ||
@@ -52,0 +52,0 @@ }; |
export declare function randomBytes(length: number): `0x${string}`; | ||
export declare function generateRandomCheckoutSalt(): bigint; | ||
export declare function generateRandomCheckoutSalt(): `0x${string}`; | ||
export declare function roundToNearestBottomTenth(n: number): number; |
@@ -15,3 +15,3 @@ "use strict"; | ||
function generateRandomCheckoutSalt() { | ||
return BigInt(randomBytes(32)); | ||
return (0, viem_1.toHex)(BigInt(randomBytes(32))); | ||
} | ||
@@ -18,0 +18,0 @@ function roundToNearestBottomTenth(n) { |
{ | ||
"name": "@funkit/api-base", | ||
"version": "1.0.1", | ||
"version": "1.0.2-next.0", | ||
"description": "Base API for Funkit", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154541
2
3
0