@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.js
CHANGED
|
@@ -1616,13 +1616,7 @@ var HavenClient = class {
|
|
|
1616
1616
|
paymentRequired.x402Version,
|
|
1617
1617
|
requirements
|
|
1618
1618
|
);
|
|
1619
|
-
|
|
1620
|
-
const payment = decodeBase64Json3(header);
|
|
1621
|
-
return btoa(JSON.stringify({
|
|
1622
|
-
x402Version: paymentRequired.x402Version,
|
|
1623
|
-
accepted: option,
|
|
1624
|
-
payload: payment.payload
|
|
1625
|
-
}));
|
|
1619
|
+
return header;
|
|
1626
1620
|
}
|
|
1627
1621
|
cacheX402Receipt(idempotencyKey, paymentHeader, receipt) {
|
|
1628
1622
|
const expiresAt = getPaymentHeaderValidBefore(paymentHeader);
|