@haven_ai/sdk 0.1.7 → 0.1.8
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/dist/index.cjs +1 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1618,13 +1618,7 @@ var HavenClient = class {
|
|
|
1618
1618
|
paymentRequired.x402Version,
|
|
1619
1619
|
requirements
|
|
1620
1620
|
);
|
|
1621
|
-
|
|
1622
|
-
const payment = decodeBase64Json3(header);
|
|
1623
|
-
return btoa(JSON.stringify({
|
|
1624
|
-
x402Version: paymentRequired.x402Version,
|
|
1625
|
-
accepted: option,
|
|
1626
|
-
payload: payment.payload
|
|
1627
|
-
}));
|
|
1621
|
+
return header;
|
|
1628
1622
|
}
|
|
1629
1623
|
cacheX402Receipt(idempotencyKey, paymentHeader, receipt) {
|
|
1630
1624
|
const expiresAt = getPaymentHeaderValidBefore(paymentHeader);
|