@countersign/x402
Advanced tools
+1
-0
@@ -51,2 +51,3 @@ "use strict"; | ||
| let options = (body.accepts ?? []).filter((o) => typeof o.maxAmountRequired === "string" && /^\d+$/.test(o.maxAmountRequired)); | ||
| options = options.filter((o) => o.extra?.decimals === void 0 || Number.isFinite(o.extra.decimals)); | ||
| if (opts.asset) { | ||
@@ -53,0 +54,0 @@ const want = opts.asset.toLowerCase(); |
+1
-0
@@ -22,2 +22,3 @@ // src/index.ts | ||
| let options = (body.accepts ?? []).filter((o) => typeof o.maxAmountRequired === "string" && /^\d+$/.test(o.maxAmountRequired)); | ||
| options = options.filter((o) => o.extra?.decimals === void 0 || Number.isFinite(o.extra.decimals)); | ||
| if (opts.asset) { | ||
@@ -24,0 +25,0 @@ const want = opts.asset.toLowerCase(); |
+1
-1
| { | ||
| "name": "@countersign/x402", | ||
| "version": "0.1.3", | ||
| "version": "0.1.4", | ||
| "description": "Govern x402 (HTTP-402 machine payments) with Countersign — guard an agent's payment against policy before it pays.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
27010
0.76%240
0.84%