wolverine-ai 5.3.3 → 5.3.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wolverine-ai",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.4",
|
|
4
4
|
"description": "Self-healing Node.js server framework powered by AI. Catches crashes, diagnoses errors, generates fixes, verifies, and restarts — automatically.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -159,10 +159,11 @@ async function x402Plugin(fastify, opts) {
|
|
|
159
159
|
|
|
160
160
|
// Verify via facilitator
|
|
161
161
|
try {
|
|
162
|
+
console.log(` 💰 x402 verify: from=${decodedPayment.payload?.authorization?.from} value=${decodedPayment.payload?.authorization?.value} network=${decodedPayment.network}`);
|
|
162
163
|
const verifyResult = await _facilitatorClient.verify(decodedPayment, actualRequirements);
|
|
163
164
|
if (!verifyResult.isValid) {
|
|
164
|
-
console.log(` ⚠️ x402 verify failed: ${verifyResult.invalidReason}`);
|
|
165
|
-
reply.code(402).send({ error: verifyResult.invalidReason || "Payment verification failed", accepts: [paymentRequirements], payer: verifyResult.payer });
|
|
165
|
+
console.log(` ⚠️ x402 verify failed: ${verifyResult.invalidReason} ${verifyResult.invalidMessage || ""}`);
|
|
166
|
+
reply.code(402).send({ error: verifyResult.invalidReason || "Payment verification failed", message: verifyResult.invalidMessage, accepts: [paymentRequirements], payer: verifyResult.payer });
|
|
166
167
|
return;
|
|
167
168
|
}
|
|
168
169
|
} catch (err) {
|