+14
-0
@@ -808,2 +808,16 @@ "use strict"; | ||
| } | ||
| const extensionResult = resourceServer.validateExtensions( | ||
| paymentRequiredForMatch, | ||
| paymentPayload | ||
| ); | ||
| if (!extensionResult.valid) { | ||
| return createPaymentRequiredResult( | ||
| resourceServer, | ||
| toolName, | ||
| config, | ||
| extensionResult.invalidReason, | ||
| transportContext, | ||
| paymentPayload | ||
| ); | ||
| } | ||
| const extMap = config.extensions ?? {}; | ||
@@ -810,0 +824,0 @@ const verifyResult = await resourceServer.verifyPayment( |
+14
-0
@@ -765,2 +765,16 @@ // src/client/x402MCPClient.ts | ||
| } | ||
| const extensionResult = resourceServer.validateExtensions( | ||
| paymentRequiredForMatch, | ||
| paymentPayload | ||
| ); | ||
| if (!extensionResult.valid) { | ||
| return createPaymentRequiredResult( | ||
| resourceServer, | ||
| toolName, | ||
| config, | ||
| extensionResult.invalidReason, | ||
| transportContext, | ||
| paymentPayload | ||
| ); | ||
| } | ||
| const extMap = config.extensions ?? {}; | ||
@@ -767,0 +781,0 @@ const verifyResult = await resourceServer.verifyPayment( |
+3
-3
| { | ||
| "name": "@x402/mcp", | ||
| "version": "2.14.0", | ||
| "version": "2.15.0", | ||
| "main": "./dist/cjs/index.js", | ||
@@ -30,3 +30,3 @@ "module": "./dist/esm/index.js", | ||
| "vite": "^6.2.6", | ||
| "@x402/evm": "~2.14.0" | ||
| "@x402/evm": "~2.15.0" | ||
| }, | ||
@@ -36,3 +36,3 @@ "dependencies": { | ||
| "zod": "^3.24.2", | ||
| "@x402/core": "~2.14.0" | ||
| "@x402/core": "~2.15.0" | ||
| }, | ||
@@ -39,0 +39,0 @@ "exports": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
330788
0.59%3051
0.93%+ Added
- Removed
Updated