@openfacilitator/sdk 0.6.0 → 0.6.1
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.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -599,6 +599,7 @@ function createPaymentMiddleware(config) {
|
|
|
599
599
|
};
|
|
600
600
|
});
|
|
601
601
|
res.status(402).json({
|
|
602
|
+
x402Version: 2,
|
|
602
603
|
error: "Payment Required",
|
|
603
604
|
accepts
|
|
604
605
|
});
|
|
@@ -704,6 +705,7 @@ function honoPaymentMiddleware(config) {
|
|
|
704
705
|
};
|
|
705
706
|
});
|
|
706
707
|
return c.json({
|
|
708
|
+
x402Version: 2,
|
|
707
709
|
error: "Payment Required",
|
|
708
710
|
accepts
|
|
709
711
|
}, 402);
|
package/dist/index.mjs
CHANGED
|
@@ -548,6 +548,7 @@ function createPaymentMiddleware(config) {
|
|
|
548
548
|
};
|
|
549
549
|
});
|
|
550
550
|
res.status(402).json({
|
|
551
|
+
x402Version: 2,
|
|
551
552
|
error: "Payment Required",
|
|
552
553
|
accepts
|
|
553
554
|
});
|
|
@@ -653,6 +654,7 @@ function honoPaymentMiddleware(config) {
|
|
|
653
654
|
};
|
|
654
655
|
});
|
|
655
656
|
return c.json({
|
|
657
|
+
x402Version: 2,
|
|
656
658
|
error: "Payment Required",
|
|
657
659
|
accepts
|
|
658
660
|
}, 402);
|