x402-surface-check 0.2.41 → 0.2.42

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.
@@ -1020,8 +1020,9 @@ function usesDecimalAmount(accept, result) {
1020
1020
  const amount = String(rawAmount)
1021
1021
  if (amount.includes('.')) return true
1022
1022
  if (accept.maxAmountRequired !== undefined || accept.maxAmount !== undefined) return false
1023
+ if (accept.asset) return false
1023
1024
  if (!accept.asset && (accept.token || result.headers?.['x-payment-token'])) return true
1024
- return result.headers?.['x-payment-amount'] === amount
1025
+ return false
1025
1026
  }
1026
1027
 
1027
1028
  function challengePrice(accept, result) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x402-surface-check",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "description": "No-payment x402 public-surface checker for manifests, OpenAPI specs, and HTTP 402 challenges.",
5
5
  "type": "module",
6
6
  "bin": {