diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d691d2..4067388 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,4 +132,4 @@ jobs: - name: Stop API if: always() run: | - [[ -n "${API_PID:-}" ]] && kill "$API_PID" 2>/dev/null || true \ No newline at end of file + [[ -n "${API_PID:-}" ]] && kill "$API_PID" 2>/dev/null || true diff --git a/.prettierrc.json b/.prettierrc.json index 93520a5..8a0f27e 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -3,5 +3,4 @@ "singleQuote": false, "trailingComma": "none", "printWidth": 100 - } diff --git a/apps/agent-client/package.json b/apps/agent-client/package.json index 524c427..3e549a8 100644 --- a/apps/agent-client/package.json +++ b/apps/agent-client/package.json @@ -33,4 +33,4 @@ "typescript": "^5.8.3", "vitest": "^3.2.4" } -} \ No newline at end of file +} diff --git a/apps/agent-client/src/cli.test.ts b/apps/agent-client/src/cli.test.ts index 0ee20bd..031934e 100644 --- a/apps/agent-client/src/cli.test.ts +++ b/apps/agent-client/src/cli.test.ts @@ -86,7 +86,7 @@ describe("buildReceipt", () => { provider: "search.basic", term: "test query", price: 0.01, - traceId: "trace_abc123", + traceId: "trace_abc123" }); expect(receipt).toEqual({ @@ -94,7 +94,7 @@ describe("buildReceipt", () => { provider: "search.basic", input: "test query", price: 0.01, - traceId: "trace_abc123", + traceId: "trace_abc123" }); }); @@ -103,7 +103,7 @@ describe("buildReceipt", () => { const receipt = buildReceipt({ mode: "scrape", provider: "scrape.page", - term: "https://example.com", + term: "https://example.com" }); expect(receipt).toEqual({ @@ -111,7 +111,7 @@ describe("buildReceipt", () => { provider: "scrape.page", input: "https://example.com", price: null, - traceId: null, + traceId: null }); }); @@ -123,7 +123,7 @@ describe("buildReceipt", () => { provider: "search.basic", term: long, price: 0.05, - traceId: "trace_xyz", + traceId: "trace_xyz" }); expect(receipt.input).toBe("a".repeat(47) + "..."); @@ -140,7 +140,7 @@ describe("formatSummary", () => { asset: "USDC", traceId: "trace-abc-123", evidenceId: "ev-xyz-789", - latencyMs: 342, + latencyMs: 342 }; it("includes mode and provider", () => { diff --git a/apps/agent-client/src/cli.ts b/apps/agent-client/src/cli.ts index 7cfbcb0..a3a2df8 100644 --- a/apps/agent-client/src/cli.ts +++ b/apps/agent-client/src/cli.ts @@ -17,22 +17,20 @@ export interface SummaryInput { /** Formats the post-query summary table. Pure function — safe to unit-test directly. */ export function formatSummary(input: SummaryInput): string { const rows: [string, string][] = [ - ["Mode", input.mode], - ["Provider", input.provider], - ["Status", String(input.status)], - ["Client", input.isDemoMode ? "demo" : "real"], + ["Mode", input.mode], + ["Provider", input.provider], + ["Status", String(input.status)], + ["Client", input.isDemoMode ? "demo" : "real"], ["Price (USD)", input.priceUsd != null ? String(input.priceUsd) : "n/a"], - ["Asset", input.asset ?? "n/a"], - ["Trace ID", input.traceId ?? "unavailable"], - ["Evidence ID", input.evidenceId ?? "unavailable"], + ["Asset", input.asset ?? "n/a"], + ["Trace ID", input.traceId ?? "unavailable"], + ["Evidence ID", input.evidenceId ?? "unavailable"] ]; if (input.latencyMs != null) { rows.push(["Latency", `${input.latencyMs}ms`]); } const labelWidth = Math.max(...rows.map(([label]) => label.length)); - const body = rows - .map(([label, value]) => ` ${label.padEnd(labelWidth)} ${value}`) - .join("\n"); + const body = rows.map(([label, value]) => ` ${label.padEnd(labelWidth)} ${value}`).join("\n"); const divider = "=".repeat(labelWidth + 4 + 20); return `\n=== Query402 Paid Query Summary ===\n${body}\n${divider}`; } @@ -76,7 +74,7 @@ export function buildReceipt(input: { provider: input.provider, input: redactInput(input.term), price: input.price ?? null, - traceId: input.traceId ?? null, + traceId: input.traceId ?? null }; } @@ -117,8 +115,10 @@ async function main() { const latencyMs = Date.now() - start; const payload = result.body as Record; - const resultBlock = (payload?.result ?? (payload?.body as Record)?.result) as Record | undefined; - const evidenceBlock = (payload?.payment as Record)?.evidence as Record | undefined; + const resultBlock = (payload?.result ?? (payload?.body as Record)?.result) as + Record | undefined; + const evidenceBlock = (payload?.payment as Record)?.evidence as + Record | undefined; console.log( formatSummary({ @@ -130,7 +130,7 @@ async function main() { asset: (evidenceBlock?.proofLinks as Record | undefined)?.asset, traceId: resultBlock?.traceId as string | undefined, evidenceId: (evidenceBlock?.id ?? evidenceBlock?.evidenceId) as string | undefined, - latencyMs, + latencyMs }) ); } diff --git a/apps/agent-client/src/transcript.ts b/apps/agent-client/src/transcript.ts index aaea821..77604c6 100644 --- a/apps/agent-client/src/transcript.ts +++ b/apps/agent-client/src/transcript.ts @@ -37,9 +37,7 @@ const OUT_DIR = path.resolve(__dirname, "../../../transcript"); // Guard: refuse to run outside DEMO_MODE // --------------------------------------------------------------------------- if (config.DEMO_MODE !== "true") { - console.error( - "ERROR: Set DEMO_MODE=true to generate a transcript without live credentials." - ); + console.error("ERROR: Set DEMO_MODE=true to generate a transcript without live credentials."); process.exit(1); } @@ -49,10 +47,10 @@ const API_BASE = config.API_BASE_URL.replace(/\/$/, ""); // Secret redaction // --------------------------------------------------------------------------- const SECRET_PATTERNS: RegExp[] = [ - /S[A-Z0-9]{55}/g, // Stellar secret key (starts with S, 56 chars) - /Bearer\s+\S+/gi, // Bearer tokens - /x-payment:\s*\S+/gi, // raw payment header value - /X402-Payment:\s*\S+/gi, + /S[A-Z0-9]{55}/g, // Stellar secret key (starts with S, 56 chars) + /Bearer\s+\S+/gi, // Bearer tokens + /x-payment:\s*\S+/gi, // raw payment header value + /X402-Payment:\s*\S+/gi ]; const REDACTED = "[REDACTED]"; @@ -61,7 +59,7 @@ const SENSITIVE_HEADER_KEYS = new Set([ "x402-payment", "authorization", "x-api-key", - "payment-response", // raw tx ID; replaced with presence flag below + "payment-response" // raw tx ID; replaced with presence flag below ]); const SENSITIVE_OBJ_KEYS = new Set([ @@ -71,7 +69,7 @@ const SENSITIVE_OBJ_KEYS = new Set([ "private_key", "privatekey", "api_key", - "apikey", + "apikey" ]); function redact(value: unknown): unknown { @@ -117,15 +115,21 @@ interface RawResult { function httpGet(url: string): Promise { return new Promise((resolve, reject) => { - http.get(url, (res) => { - let raw = ""; - res.on("data", (chunk: Buffer) => (raw += chunk.toString())); - res.on("end", () => { - let body: unknown; - try { body = JSON.parse(raw); } catch { body = raw; } - resolve({ status: res.statusCode ?? 0, headers: res.headers, body }); - }); - }).on("error", reject); + http + .get(url, (res) => { + let raw = ""; + res.on("data", (chunk: Buffer) => (raw += chunk.toString())); + res.on("end", () => { + let body: unknown; + try { + body = JSON.parse(raw); + } catch { + body = raw; + } + resolve({ status: res.statusCode ?? 0, headers: res.headers, body }); + }); + }) + .on("error", reject); }); } @@ -167,9 +171,7 @@ async function step1Health(): Promise { responseHeaders: safeHeaders(r.headers), body: redact(r.body), note: - r.status === 200 - ? "API is healthy and ready." - : "API responded but may not be fully ready.", + r.status === 200 ? "API is healthy and ready." : "API responded but may not be fully ready." }; } catch (err) { return { @@ -177,7 +179,7 @@ async function step1Health(): Promise { timestamp, status: "n/a", error: `Could not reach ${API_BASE}/health — is the API running? (${err})`, - note: "Transcript is still written for CI evidence purposes.", + note: "Transcript is still written for CI evidence purposes." }; } } @@ -192,14 +194,14 @@ async function step2Catalog(): Promise { status: r.status, responseHeaders: safeHeaders(r.headers), body: redact(r.body), - note: "Available search/news/scrape providers with per-request pricing.", + note: "Available search/news/scrape providers with per-request pricing." }; } catch (err) { return { step: "2_provider_catalog", timestamp, status: "n/a", - error: String(err), + error: String(err) }; } } @@ -210,9 +212,9 @@ async function step2Catalog(): Promise { */ async function step3PaidQueries(): Promise { const queries: Array[0]> = [ - { mode: "search", provider: "search.pro", query: "latest stellar x402 updates" }, - { mode: "news", provider: "news.deep", query: "stablecoin micropayments" }, - { mode: "scrape", provider: "scrape.extract", url: "https://developers.stellar.org" }, + { mode: "search", provider: "search.pro", query: "latest stellar x402 updates" }, + { mode: "news", provider: "news.deep", query: "stablecoin micropayments" }, + { mode: "scrape", provider: "scrape.extract", url: "https://developers.stellar.org" } ]; const steps: Step[] = []; @@ -225,24 +227,24 @@ async function step3PaidQueries(): Promise { try { const response = await runPaidQuery(q); const payload = response.body as Record | undefined; - const result = payload?.result as Record | undefined; + const result = payload?.result as Record | undefined; steps.push({ step: label, timestamp, status: response.status, body: redact({ - provider: q.provider, - endpoint: response.endpoint, + provider: q.provider, + endpoint: response.endpoint, // Never write the raw payment-response header value; record presence only payment_response_present: Boolean(response.paymentResponse), - price_usd: result?.priceUsd ?? "n/a", - items_returned: Array.isArray(result?.items) ? result.items.length : 0, - result_body: payload, + price_usd: result?.priceUsd ?? "n/a", + items_returned: Array.isArray(result?.items) ? result.items.length : 0, + result_body: payload }), note: "DEMO_MODE=true — payment header contains a placeholder tx ID; " + - "no real Stellar transaction is submitted or settled.", + "no real Stellar transaction is submitted or settled." }); } catch (err) { steps.push({ step: label, timestamp, status: "n/a", error: String(err) }); @@ -254,21 +256,21 @@ async function step3PaidQueries(): Promise { function step4Metadata(paidSteps: Step[]): Step { const first = paidSteps.find((s) => s.status !== "n/a"); - const body = first?.body as Record | undefined; + const body = first?.body as Record | undefined; return { step: "4_response_metadata", timestamp: new Date().toISOString(), status: "n/a", body: { - provider: body?.provider ?? "search.pro", - price_usd: body?.price_usd ?? "n/a", + provider: body?.provider ?? "search.pro", + price_usd: body?.price_usd ?? "n/a", settlement_network: "stellar:testnet", - payment_status: "DEMO — no real Stellar settlement", + payment_status: "DEMO — no real Stellar settlement", note: "In production this section contains the facilitator-signed " + - "payment-response header. Here it is intentionally omitted.", + "payment-response header. Here it is intentionally omitted." }, - note: "Synthesised from paid-query responses. No secrets included.", + note: "Synthesised from paid-query responses. No secrets included." }; } @@ -282,14 +284,14 @@ async function step5Analytics(): Promise { status: r.status, responseHeaders: safeHeaders(r.headers), body: redact(r.body), - note: "Total spend + per-category breakdown stored in SQLite.", + note: "Total spend + per-category breakdown stored in SQLite." }; } catch (err) { return { step: "5_analytics_summary", timestamp, status: "n/a", - error: String(err), + error: String(err) }; } } @@ -308,7 +310,7 @@ function assemble(steps: Step[]): Transcript { "Generated in DEMO_MODE. No real Stellar credentials or live payments " + "were used. All secret fields are redacted. " + "Safe to attach to Drips/SCF updates and investor notes.", - steps, + steps }; } @@ -323,13 +325,13 @@ function toText(t: Transcript): string { ` Network : ${t.settlement_network}`, ` ⚠ ${t.warning}`, bar, - "", + "" ]; for (const s of t.steps) { lines.push(`▶ ${s.step}`); lines.push(` Timestamp : ${s.timestamp}`); lines.push(` Status : ${s.status}`); - if (s.note) lines.push(` Note : ${s.note}`); + if (s.note) lines.push(` Note : ${s.note}`); if (s.error) lines.push(` ERROR : ${s.error}`); if (s.body) { lines.push(" Body:"); @@ -348,10 +350,10 @@ function writeArtifact(t: Transcript): { json: string; txt: string } { const slug = t.generated_at.replace(/[:.]/g, "-").replace("T", "_"); const jsonPath = path.join(OUT_DIR, `demo-transcript-${slug}.json`); - const txtPath = path.join(OUT_DIR, `demo-transcript-${slug}.txt`); + const txtPath = path.join(OUT_DIR, `demo-transcript-${slug}.txt`); fs.writeFileSync(jsonPath, JSON.stringify(t, null, 2), "utf8"); - fs.writeFileSync(txtPath, toText(t), "utf8"); + fs.writeFileSync(txtPath, toText(t), "utf8"); return { json: jsonPath, txt: txtPath }; } @@ -397,4 +399,4 @@ async function main(): Promise { main().catch((err) => { console.error("Fatal:", err); process.exit(1); -}); \ No newline at end of file +}); diff --git a/apps/agent-client/src/validate-real.test.ts b/apps/agent-client/src/validate-real.test.ts index a06b73f..0d2d556 100644 --- a/apps/agent-client/src/validate-real.test.ts +++ b/apps/agent-client/src/validate-real.test.ts @@ -18,9 +18,9 @@ describe("safeFacilitatorUrl", () => { it("strips auth credentials from URL", async () => { const { safeFacilitatorUrl } = await import("./validate-real.js"); - expect( - safeFacilitatorUrl("https://user:password@channels.openzeppelin.com/x402/testnet") - ).toBe("channels.openzeppelin.com"); + expect(safeFacilitatorUrl("https://user:password@channels.openzeppelin.com/x402/testnet")).toBe( + "channels.openzeppelin.com" + ); }); it("preserves port in host", async () => { diff --git a/apps/agent-client/src/validate-real.ts b/apps/agent-client/src/validate-real.ts index 7dd7939..ffc1de5 100644 --- a/apps/agent-client/src/validate-real.ts +++ b/apps/agent-client/src/validate-real.ts @@ -86,17 +86,25 @@ async function main() { console.log("\n--- Facilitator Health ---"); if (!config.X402_FACILITATOR_URL) { console.log(`Host: not configured`); - console.log(`Warning: X402_FACILITATOR_URL is not set. Set it in your .env file for real payment validation.`); + console.log( + `Warning: X402_FACILITATOR_URL is not set. Set it in your .env file for real payment validation.` + ); console.log(`Probe attempted: no`); console.log(`Network: ${network}`); console.log(`Timestamp: ${probeTimestamp}`); - throw new Error("X402_FACILITATOR_URL is not configured. Real payment validation requires a facilitator URL."); + throw new Error( + "X402_FACILITATOR_URL is not configured. Real payment validation requires a facilitator URL." + ); } else { console.log(`Host: ${facilitatorHost ?? "unparseable"}`); console.log(`Network: ${network}`); console.log("[probe] Checking facilitator /supported..."); const healthResult = await checkFacilitator(config.X402_FACILITATOR_URL); - const reasonText = healthResult.ok ? undefined : typeof healthResult.body === "string" ? healthResult.body : JSON.stringify(healthResult.body); + const reasonText = healthResult.ok + ? undefined + : typeof healthResult.body === "string" + ? healthResult.body + : JSON.stringify(healthResult.body); console.log(`Probe attempted: yes`); console.log(`Status: ${healthResult.status === 0 ? "N/A" : healthResult.status}`); if (!healthResult.ok && reasonText) { @@ -105,9 +113,7 @@ async function main() { console.log(`Timestamp: ${probeTimestamp}`); if (!healthResult.ok) { - throw new Error( - `Facilitator check failed (${healthResult.status}): ${reasonText}` - ); + throw new Error(`Facilitator check failed (${healthResult.status}): ${reasonText}`); } console.log("[ok] Facilitator reachable and returned /supported response."); } diff --git a/apps/api/src/lib/persistence.ts b/apps/api/src/lib/persistence.ts index f50a0ca..6353847 100644 --- a/apps/api/src/lib/persistence.ts +++ b/apps/api/src/lib/persistence.ts @@ -129,6 +129,65 @@ export async function getAnalyticsSummary( return getStorageRepository().getAnalyticsSummary(options); } +export interface AnalyticsExport { + exportedAt: string; + totalQueries: number; + totalSpendUsd: number; + spendByMode: Record; + spendByProvider: Record; + queryCountByStatus: { + demo: number; + paid: number; + failed: number; + }; + paymentEvidenceCount: number; +} + +export async function getAnalyticsExport(): Promise { + const usage = await getUsageEvents(); + const payments = await getPaymentAttempts(); + + const exportedAt = new Date().toISOString(); + const totalQueries = usage.length; + + const spendByMode: Record = { search: 0, news: 0, scrape: 0 }; + const spendByProvider: Record = {}; + const queryCountByStatus = { demo: 0, paid: 0, failed: 0 }; + + for (const event of usage) { + spendByMode[event.mode] += event.priceUsd; + spendByProvider[event.providerId] = (spendByProvider[event.providerId] ?? 0) + event.priceUsd; + + if (event.paymentStatus === "demo-paid") { + queryCountByStatus.demo++; + } else if (event.paymentStatus === "failed") { + queryCountByStatus.failed++; + } else { + queryCountByStatus.paid++; + } + } + + const totalSpendUsd = Number( + Object.values(spendByMode) + .reduce((sum, v) => sum + v, 0) + .toFixed(6) + ); + + const paymentEvidenceCount = payments.filter( + (p) => p.transactionHash || p.facilitatorResult || p.evidenceKind + ).length; + + return { + exportedAt, + totalQueries, + totalSpendUsd, + spendByMode, + spendByProvider, + queryCountByStatus, + paymentEvidenceCount + }; +} + export async function persistPaidRequest(input: PersistPaidRequestInput): Promise { const payment = buildPaymentAttempt(input); const usage = buildUsageEvent(input, { diff --git a/apps/api/src/lib/pricing.test.ts b/apps/api/src/lib/pricing.test.ts index 3b0e7c1..bbca87d 100644 --- a/apps/api/src/lib/pricing.test.ts +++ b/apps/api/src/lib/pricing.test.ts @@ -243,81 +243,70 @@ describe("x402 cross-layer price consistency", () => { }); } - it( - "falls back to route base price for unknown provider IDs — base price must be defined for all x402 route modes", - () => { - for (const mode of routeModes) { - const routeKey = `GET /x402/${mode}`; - const basePrice = protectedRouteBasePrices[routeKey]; - expect( - basePrice, - `Missing fallback base price for route "${routeKey}" — agents with unknown providers would receive no valid payment requirement` - ).toBeDefined(); - expect( - basePrice, - `Fallback base price for "${routeKey}" is not a valid USD price string` - ).toMatch(/^\$\d+\.?\d*$/); - } - } - ); - - it( - "getProviderById('phantom.provider') returns undefined — unknown providers resolve to undefined and do not alter base price", - () => { - expect(getProviderById("phantom.provider")).toBeUndefined(); - expect(getProviderById("")).toBeUndefined(); - expect(getProviderById("search")).toBeUndefined(); + it("falls back to route base price for unknown provider IDs — base price must be defined for all x402 route modes", () => { + for (const mode of routeModes) { + const routeKey = `GET /x402/${mode}`; + const basePrice = protectedRouteBasePrices[routeKey]; + expect( + basePrice, + `Missing fallback base price for route "${routeKey}" — agents with unknown providers would receive no valid payment requirement` + ).toBeDefined(); + expect( + basePrice, + `Fallback base price for "${routeKey}" is not a valid USD price string` + ).toMatch(/^\$\d+\.?\d*$/); } - ); - - it( - "category mismatch guard — a provider from one category cannot resolve under a different route mode", - () => { - const allIds = providers.map((p) => p.id); - const uniqueIds = new Set(allIds); - expect(uniqueIds.size).toBe(allIds.length); - - for (const mode of routeModes) { - const categoryIds = new Set(providers.filter((p) => p.category === mode).map((p) => p.id)); - const otherModes = routeModes.filter((m) => m !== mode); - for (const other of otherModes) { - const otherIds = providers.filter((p) => p.category === other).map((p) => p.id); - const collision = otherIds.find((id) => categoryIds.has(id)); - expect( - collision, - `Provider ID "${collision}" appears in both "${mode}" and "${other}" categories — x402 category-match guard would be bypassed` - ).toBeUndefined(); - } + }); + + it("getProviderById('phantom.provider') returns undefined — unknown providers resolve to undefined and do not alter base price", () => { + expect(getProviderById("phantom.provider")).toBeUndefined(); + expect(getProviderById("")).toBeUndefined(); + expect(getProviderById("search")).toBeUndefined(); + }); + + it("category mismatch guard — a provider from one category cannot resolve under a different route mode", () => { + const allIds = providers.map((p) => p.id); + const uniqueIds = new Set(allIds); + expect(uniqueIds.size).toBe(allIds.length); + + for (const mode of routeModes) { + const categoryIds = new Set(providers.filter((p) => p.category === mode).map((p) => p.id)); + const otherModes = routeModes.filter((m) => m !== mode); + for (const other of otherModes) { + const otherIds = providers.filter((p) => p.category === other).map((p) => p.id); + const collision = otherIds.find((id) => categoryIds.has(id)); + expect( + collision, + `Provider ID "${collision}" appears in both "${mode}" and "${other}" categories — x402 category-match guard would be bypassed` + ).toBeUndefined(); } } - ); - - it( - "drift-detection: surfaces offending provider ID when catalog price diverges from route base price", - () => { - // Simulate drift: search.basic raised from $0.01 to $0.05 without updating protectedRouteBasePrices. - const driftedProviders = providers.map((p) => - p.id === "search.basic" ? { ...p, priceUsd: 0.05 } : p - ); - - const searchProviders = driftedProviders.filter((p) => p.category === "search" && p.enabled); - const routeBase = protectedRouteBasePrices["GET /x402/search"]; - expect(routeBase).toBeDefined(); - - const baseMicroUsd = toMicroUsd(parseRoutePrice(routeBase)); - const minCategoryMicroUsd = toMicroUsd(Math.min(...searchProviders.map((p) => p.priceUsd))); - - // With search.basic at 0.05, new minimum is search.pro at 0.02 (20000 µ$). - // Route base remains $0.01 (10000 µ$) — drift is detected. - const hasDrift = baseMicroUsd !== minCategoryMicroUsd; - expect(hasDrift).toBe(true); - - const deviatingProviders = searchProviders - .filter((p) => toMicroUsd(p.priceUsd) !== baseMicroUsd) - .map((p) => p.id); - expect(deviatingProviders).toContain("search.basic"); - } - ); + }); + + it("drift-detection: surfaces offending provider ID when catalog price diverges from route base price", () => { + // Simulate drift: search.basic raised from $0.01 to $0.05 without updating protectedRouteBasePrices. + const driftedProviders = providers.map((p) => + p.id === "search.basic" ? { ...p, priceUsd: 0.05 } : p + ); + + const searchProviders = driftedProviders.filter((p) => p.category === "search" && p.enabled); + const routeBase = protectedRouteBasePrices["GET /x402/search"]; + expect(routeBase).toBeDefined(); + + const baseMicroUsd = toMicroUsd(parseRoutePrice(routeBase)); + const minCategoryMicroUsd = toMicroUsd(Math.min(...searchProviders.map((p) => p.priceUsd))); + + // With search.basic at 0.05, new minimum is search.pro at 0.02 (20000 µ$). + // Route base remains $0.01 (10000 µ$) — drift is detected. + const hasDrift = baseMicroUsd !== minCategoryMicroUsd; + expect(hasDrift).toBe(true); + + const deviatingProviders = searchProviders + .filter((p) => toMicroUsd(p.priceUsd) !== baseMicroUsd) + .map((p) => p.id); + expect(deviatingProviders).toContain("search.basic"); + }); +}); describe("capability matrix", () => { it("returns all providers with correct shape", () => { diff --git a/apps/api/src/lib/storage/serialization.ts b/apps/api/src/lib/storage/serialization.ts index 50b21fe..56bbb2b 100644 --- a/apps/api/src/lib/storage/serialization.ts +++ b/apps/api/src/lib/storage/serialization.ts @@ -235,9 +235,7 @@ export function rowToUsageEvent(row: Record): UsageEvent { : undefined, sponsorPublicKey: row.sponsor_public_key ? String(row.sponsor_public_key) : undefined, priceOutlier: priceOutlier || undefined, - priceOutlierReason: row.price_outlier_reason - ? String(row.price_outlier_reason) - : undefined + priceOutlierReason: row.price_outlier_reason ? String(row.price_outlier_reason) : undefined }; } diff --git a/apps/api/src/lib/urlSafety.test.ts b/apps/api/src/lib/urlSafety.test.ts index 62950d8..373ddf1 100644 --- a/apps/api/src/lib/urlSafety.test.ts +++ b/apps/api/src/lib/urlSafety.test.ts @@ -1,89 +1,90 @@ -import { validateUrl, resolveAndValidate, getRequestPolicy, safeErrorMessage } from './urlSafety'; +import { describe, expect, it } from "vitest"; +import { validateUrl, getRequestPolicy, safeErrorMessage } from "./urlSafety.js"; -describe('validateUrl', () => { - it('allows public HTTPS URLs', () => { - const result = validateUrl('https://developers.stellar.org/docs'); +describe("validateUrl", () => { + it("allows public HTTPS URLs", () => { + const result = validateUrl("https://developers.stellar.org/docs"); expect(result.safe).toBe(true); }); - it('allows public HTTP URLs', () => { - const result = validateUrl('http://example.com/page'); + it("allows public HTTP URLs", () => { + const result = validateUrl("http://example.com/page"); expect(result.safe).toBe(true); }); - it('rejects FTP protocol', () => { - const result = validateUrl('ftp://files.example.com'); + it("rejects FTP protocol", () => { + const result = validateUrl("ftp://files.example.com"); expect(result.safe).toBe(false); }); - it('rejects URLs with credentials', () => { - const result = validateUrl('https://user:pass@example.com'); + it("rejects URLs with credentials", () => { + const result = validateUrl("https://user:pass@example.com"); expect(result.safe).toBe(false); }); - it('rejects localhost', () => { - const result = validateUrl('http://localhost:3000/admin'); + it("rejects localhost", () => { + const result = validateUrl("http://localhost:3000/admin"); expect(result.safe).toBe(false); }); - it('rejects 127.0.0.1', () => { - const result = validateUrl('http://127.0.0.1:8080'); + it("rejects 127.0.0.1", () => { + const result = validateUrl("http://127.0.0.1:8080"); expect(result.safe).toBe(false); }); - it('rejects 192.168.x.x', () => { - const result = validateUrl('http://192.168.1.100'); + it("rejects 192.168.x.x", () => { + const result = validateUrl("http://192.168.1.100"); expect(result.safe).toBe(false); }); - it('rejects 10.x.x.x', () => { - const result = validateUrl('http://10.0.0.5'); + it("rejects 10.x.x.x", () => { + const result = validateUrl("http://10.0.0.5"); expect(result.safe).toBe(false); }); - it('rejects 172.16.x.x', () => { - const result = validateUrl('http://172.16.0.1'); + it("rejects 172.16.x.x", () => { + const result = validateUrl("http://172.16.0.1"); expect(result.safe).toBe(false); }); - it('rejects link-local 169.254.x.x', () => { - const result = validateUrl('http://169.254.1.1'); + it("rejects link-local 169.254.x.x", () => { + const result = validateUrl("http://169.254.1.1"); expect(result.safe).toBe(false); }); - it('rejects cloud metadata IP', () => { - const result = validateUrl('http://169.254.169.254/latest/meta-data'); + it("rejects cloud metadata IP", () => { + const result = validateUrl("http://169.254.169.254/latest/meta-data"); expect(result.safe).toBe(false); }); - it('rejects IPv6 loopback', () => { - const result = validateUrl('http://[::1]:8080'); + it("rejects IPv6 loopback", () => { + const result = validateUrl("http://[::1]:8080"); expect(result.safe).toBe(false); }); - it('rejects IPv6 link-local', () => { - const result = validateUrl('http://[fe80::1]:8080'); + it("rejects IPv6 link-local", () => { + const result = validateUrl("http://[fe80::1]:8080"); expect(result.safe).toBe(false); }); - it('sanitizes URL by removing fragment', () => { - const result = validateUrl('https://example.com/page?q=1'); - expect(result.sanitizedUrl).toBe('https://example.com/page?q=1'); + it("sanitizes URL by removing fragment", () => { + const result = validateUrl("https://example.com/page?q=1"); + expect(result.sanitizedUrl).toBe("https://example.com/page?q=1"); }); - it('returns safe error message without internal details', () => { - const msg = safeErrorMessage(new Error('ECONNREFUSED')); - expect(msg).toContain('not reachable'); - expect(msg).not.toContain('ECONNREFUSED'); + it("returns safe error message without internal details", () => { + const msg = safeErrorMessage(new Error("ECONNREFUSED")); + expect(msg).toContain("not reachable"); + expect(msg).not.toContain("ECONNREFUSED"); }); }); -describe('getRequestPolicy', () => { - it('returns timeout, size limit, and redirect limit', () => { +describe("getRequestPolicy", () => { + it("returns timeout, size limit, and redirect limit", () => { const policy = getRequestPolicy(); expect(policy.timeout).toBeGreaterThan(0); expect(policy.maxResponseSize).toBeGreaterThan(0); expect(policy.maxRedirects).toBeGreaterThan(0); - expect(policy.allowedContentTypes).toContain('text/html'); + expect(policy.allowedContentTypes).toContain("text/html"); }); }); diff --git a/apps/api/src/lib/urlSafety.ts b/apps/api/src/lib/urlSafety.ts index dbe87ce..aaaa841 100644 --- a/apps/api/src/lib/urlSafety.ts +++ b/apps/api/src/lib/urlSafety.ts @@ -1,22 +1,46 @@ -import { URL } from 'url'; -import { promises as dns } from 'dns'; - -const BLOCKED_HOSTS = new Set([ - 'localhost', '127.0.0.1', '0.0.0.0', '::1', '[::1]', -]); - -const BLOCKED_PREFIXES = ['127.', '10.', '192.168.', '172.16.', '172.17.', '172.18.', - '172.19.', '172.20.', '172.21.', '172.22.', '172.23.', '172.24.', '172.25.', - '172.26.', '172.27.', '172.28.', '172.29.', '172.30.', '172.31.', '169.254.', - 'fc00:', 'fd00:', 'fe80:', +import { URL } from "url"; +import { promises as dns } from "dns"; + +const BLOCKED_HOSTS = new Set(["localhost", "127.0.0.1", "0.0.0.0", "::1", "[::1]"]); + +const BLOCKED_PREFIXES = [ + "127.", + "10.", + "192.168.", + "172.16.", + "172.17.", + "172.18.", + "172.19.", + "172.20.", + "172.21.", + "172.22.", + "172.23.", + "172.24.", + "172.25.", + "172.26.", + "172.27.", + "172.28.", + "172.29.", + "172.30.", + "172.31.", + "169.254.", + "fc00:", + "fd00:", + "fe80:" ]; -const BLOCKED_CLOUD_META = ['169.254.169.254', '[fd00:ec2::254]']; +const BLOCKED_CLOUD_META = ["169.254.169.254", "fd00:ec2::254", "[fd00:ec2::254]"]; const MAX_REDIRECTS = 5; const REQUEST_TIMEOUT_MS = 10_000; const MAX_RESPONSE_SIZE_BYTES = 5 * 1024 * 1024; -const ALLOWED_CONTENT_TYPES = ['text/html', 'application/json', 'text/plain', 'application/xml', 'text/xml']; +const ALLOWED_CONTENT_TYPES = [ + "text/html", + "application/json", + "text/plain", + "application/xml", + "text/xml" +]; export interface UrlPolicyResult { safe: boolean; @@ -26,33 +50,36 @@ export interface UrlPolicyResult { export function validateUrl(raw: string): UrlPolicyResult { try { - let url = new URL(raw); + const url = new URL(raw); - if (!['http:', 'https:'].includes(url.protocol)) { - return { safe: false, sanitizedUrl: '', error: 'Only HTTP/HTTPS protocols are allowed' }; + if (!["http:", "https:"].includes(url.protocol)) { + return { safe: false, sanitizedUrl: "", error: "Only HTTP/HTTPS protocols are allowed" }; } if (url.username || url.password) { - return { safe: false, sanitizedUrl: '', error: 'Credentials in URLs are not allowed' }; + return { safe: false, sanitizedUrl: "", error: "Credentials in URLs are not allowed" }; } - const hostname = url.hostname.toLowerCase(); + let hostname = url.hostname.toLowerCase(); + if (hostname.startsWith("[") && hostname.endsWith("]")) { + hostname = hostname.slice(1, -1); + } if (BLOCKED_HOSTS.has(hostname) || BLOCKED_CLOUD_META.includes(hostname)) { - return { safe: false, sanitizedUrl: '', error: 'URL targets a blocked host' }; + return { safe: false, sanitizedUrl: "", error: "URL targets a blocked host" }; } for (const prefix of BLOCKED_PREFIXES) { if (hostname.startsWith(prefix)) { - return { safe: false, sanitizedUrl: '', error: 'URL targets a private/restricted network' }; + return { safe: false, sanitizedUrl: "", error: "URL targets a private/restricted network" }; } } - const sanitized = url.protocol + '//' + url.hostname + url.pathname + url.search; + const sanitized = url.protocol + "//" + url.hostname + url.pathname + url.search; return { safe: true, sanitizedUrl: sanitized }; } catch { - return { safe: false, sanitizedUrl: '', error: 'Invalid URL format' }; + return { safe: false, sanitizedUrl: "", error: "Invalid URL format" }; } } @@ -67,17 +94,17 @@ export async function resolveAndValidate(raw: string): Promise for (const addr of addresses) { for (const prefix of BLOCKED_PREFIXES) { if (addr.startsWith(prefix)) { - return { safe: false, sanitizedUrl: '', error: 'DNS resolved to a blocked address' }; + return { safe: false, sanitizedUrl: "", error: "DNS resolved to a blocked address" }; } } if (BLOCKED_HOSTS.has(addr) || BLOCKED_CLOUD_META.includes(addr)) { - return { safe: false, sanitizedUrl: '', error: 'DNS resolved to a blocked address' }; + return { safe: false, sanitizedUrl: "", error: "DNS resolved to a blocked address" }; } } return result; } catch { - return { safe: false, sanitizedUrl: '', error: 'DNS resolution failed' }; + return { safe: false, sanitizedUrl: "", error: "DNS resolution failed" }; } } @@ -87,18 +114,18 @@ export function getRequestPolicy() { maxResponseSize: MAX_RESPONSE_SIZE_BYTES, maxRedirects: MAX_REDIRECTS, allowedContentTypes: ALLOWED_CONTENT_TYPES, - validateRedirect: (url: string) => validateUrl(url), + validateRedirect: (url: string) => validateUrl(url) }; } export function safeErrorMessage(err: unknown): string { if (err instanceof Error) { - if (err.message.includes('DNS') || err.message.includes('ENOTFOUND')) { - return 'Unable to resolve the requested URL'; + if (err.message.includes("DNS") || err.message.includes("ENOTFOUND")) { + return "Unable to resolve the requested URL"; } - if (err.message.includes('ECONNREFUSED') || err.message.includes('ETIMEDOUT')) { - return 'The target server is not reachable'; + if (err.message.includes("ECONNREFUSED") || err.message.includes("ETIMEDOUT")) { + return "The target server is not reachable"; } } - return 'The request could not be completed due to security restrictions'; + return "The request could not be completed due to security restrictions"; } diff --git a/apps/api/src/routes/protected.idempotency.test.ts b/apps/api/src/routes/protected.idempotency.test.ts index 4377106..46ab219 100644 --- a/apps/api/src/routes/protected.idempotency.test.ts +++ b/apps/api/src/routes/protected.idempotency.test.ts @@ -2,10 +2,7 @@ import { randomUUID } from "node:crypto"; import express from "express"; import request from "supertest"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; -import { - applyApiTestEnv, - resetApiTestStorage -} from "../test/api-test-helpers.js"; +import { applyApiTestEnv, resetApiTestStorage } from "../test/api-test-helpers.js"; const executeQueryMock = vi.fn(); diff --git a/apps/api/src/routes/public.test.ts b/apps/api/src/routes/public.test.ts index 0aea27c..507c324 100644 --- a/apps/api/src/routes/public.test.ts +++ b/apps/api/src/routes/public.test.ts @@ -272,8 +272,18 @@ describe("public routes", () => { const { persistPaymentAndUsage } = await import("../lib/persistence.js"); await persistPaymentAndUsage( buildPaidQueryFixture({ - payment: { id: "pay_fixture_demo_01", status: "demo-paid", evidenceKind: "demo", transactionHash: undefined }, - usage: { id: "use_fixture_demo_01", paymentStatus: "demo-paid", paymentKind: "demo", paymentTxHash: undefined } + payment: { + id: "pay_fixture_demo_01", + status: "demo-paid", + evidenceKind: "demo", + transactionHash: undefined + }, + usage: { + id: "use_fixture_demo_01", + paymentStatus: "demo-paid", + paymentKind: "demo", + paymentTxHash: undefined + } }) ); diff --git a/apps/api/src/routes/public.ts b/apps/api/src/routes/public.ts index 43e9fb4..86280d6 100644 --- a/apps/api/src/routes/public.ts +++ b/apps/api/src/routes/public.ts @@ -1,7 +1,7 @@ import { Router } from "express"; import { z } from "zod"; import { buildCapabilityMatrix, getSortedProviders } from "../lib/pricing.js"; -import { getAnalyticsSummary, getUsageEvents } from "../lib/persistence.js"; +import { getAnalyticsExport, getAnalyticsSummary, getUsageEvents } from "../lib/persistence.js"; import { config, getConfigSnapshot } from "../lib/config.js"; import { apiVersion } from "../lib/build-metadata.js"; import { getCatalog } from "../services/query-service.js"; @@ -74,6 +74,15 @@ publicRouter.get("/api/usage", async (req, res, next) => { } }); +publicRouter.get("/api/export", async (_req, res, next) => { + try { + const exportData = await getAnalyticsExport(); + res.json(exportData); + } catch (error) { + next(error); + } +}); + publicRouter.get("/api/analytics", async (req, res, next) => { try { const parsed = analyticsQuerySchema.safeParse(req.query); diff --git a/apps/api/src/test/storage-test-helpers.ts b/apps/api/src/test/storage-test-helpers.ts index d91ede4..3b11748 100644 --- a/apps/api/src/test/storage-test-helpers.ts +++ b/apps/api/src/test/storage-test-helpers.ts @@ -75,10 +75,12 @@ export function buildTestPaymentAttempt(overrides: Partial = {}) }; } -export function buildPaidQueryFixture(overrides: { - payment?: Partial; - usage?: Partial; -} = {}): PaidQueryFixture { +export function buildPaidQueryFixture( + overrides: { + payment?: Partial; + usage?: Partial; + } = {} +): PaidQueryFixture { const payment: PaymentAttempt = { id: "pay_fixture_0001", endpoint: "/x402/search", diff --git a/apps/web/src/components/PaymentEvidenceBanner.tsx b/apps/web/src/components/PaymentEvidenceBanner.tsx index fc7e499..642a86b 100644 --- a/apps/web/src/components/PaymentEvidenceBanner.tsx +++ b/apps/web/src/components/PaymentEvidenceBanner.tsx @@ -17,13 +17,15 @@ export function getPaymentEvidenceInfo( return { status: "missing", title: "Missing Payment Evidence", - description: "No verified payment evidence was found for this query execution. Intents should always settle via x402.", + description: + "No verified payment evidence was found for this query execution. Intents should always settle via x402.", className: "payment-banner--missing" }; } const net = (evidence.network || network || "").toLowerCase(); - const isTestnet = net.includes("test") || net.includes("september 2015") || net.includes("testnet"); + const isTestnet = + net.includes("test") || net.includes("september 2015") || net.includes("testnet"); const explorerBase = isTestnet ? "https://stellar.expert/explorer/testnet" : "https://stellar.expert/explorer/public"; @@ -52,14 +54,16 @@ export function getPaymentEvidenceInfo( : undefined; const sponsorText = evidence.payer ? ` (Payer: ${evidence.payer})` : ""; - const amountText = evidence.amount && evidence.asset ? ` of ${evidence.amount} ${evidence.asset}` : ""; + const amountText = + evidence.amount && evidence.asset ? ` of ${evidence.amount} ${evidence.asset}` : ""; return { status: "verified", title: evidence.kind === "settled" ? "Payment Settled" : "Payment Verified", - description: evidence.kind === "settled" - ? `Successfully settled payment${amountText} on Stellar ${evidence.network}${sponsorText}.` - : `Authorized payment challenge${amountText} on Stellar ${evidence.network}${sponsorText} (settlement pending).`, + description: + evidence.kind === "settled" + ? `Successfully settled payment${amountText} on Stellar ${evidence.network}${sponsorText}.` + : `Authorized payment challenge${amountText} on Stellar ${evidence.network}${sponsorText} (settlement pending).`, explorerUrl, className: "payment-banner--verified" }; @@ -104,12 +108,7 @@ export default function PaymentEvidenceBanner({ payment }: PaymentEvidenceBanner {info.explorerUrl && ( - + Explorer diff --git a/apps/web/src/pages/ControlDeckPage.tsx b/apps/web/src/pages/ControlDeckPage.tsx index 622c3a2..fcb3c27 100644 --- a/apps/web/src/pages/ControlDeckPage.tsx +++ b/apps/web/src/pages/ControlDeckPage.tsx @@ -14,7 +14,6 @@ import { Sparkles, TerminalSquare, Check, - AlertTriangle, Clock, XCircle } from "lucide-react"; @@ -152,9 +151,7 @@ export default function ControlDeckPage() { id: "receipt", label: "Receipt/export available", status: hasReceipts ? "pass" : "pending", - detail: hasReceipts - ? `${analytics!.recentTransactions.length} transaction(s)` - : undefined + detail: hasReceipts ? `${analytics!.recentTransactions.length} transaction(s)` : undefined } ]; }, [providers, result, analytics, demoMode]); @@ -739,14 +736,20 @@ export default function ControlDeckPage() { {showAnalyticsSkeleton ? ( ) : !hasUsageHistory ? ( -

- No spend recorded yet. -

+

No spend recorded yet.

) : (
    {Object.entries(analytics!.spendByPaymentSource).map(([source, amount]) => (
  • - {source === "demo" ? "Demo" : source === "sponsored" ? "Sponsored" : source === "wallet" ? "Wallet" : source} + + {source === "demo" + ? "Demo" + : source === "sponsored" + ? "Sponsored" + : source === "wallet" + ? "Wallet" + : source} + {money(amount)}
  • ))} @@ -1123,9 +1126,7 @@ function EvidenceRow(props: { item: EvidenceCheckItem }) { const { item } = props; return (
  • - - {evidenceIconMap[item.status]} - + {evidenceIconMap[item.status]} {item.label} {item.detail ? {item.detail} : null}
  • diff --git a/package-lock.json b/package-lock.json index 23b777d..c11b3d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -78,7 +78,6 @@ "name": "@query402/web", "version": "0.1.0", "dependencies": { - "@esbuild/linux-x64": "0.21.5", "@query402/shared": "0.1.0", "@stellar/freighter-api": "^6.0.1", "@x402/core": "^2.17.0", @@ -94,7 +93,7 @@ "@types/node": "^22.20.0", "@types/react": "^18.3.20", "@types/react-dom": "^18.3.7", - "@vitejs/plugin-react": "^4.4.1", + "@vitejs/plugin-react": "4.3.4", "autoprefixer": "^10.4.21", "postcss": "^8.5.3", "tailwindcss": "^3.4.17", @@ -106,6 +105,46 @@ "@rollup/rollup-linux-x64-gnu": "^4.60.1" } }, + "apps/web/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "cpu": [ + "x64" + ], + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "apps/web/node_modules/@vitejs/plugin-react": { + "version": "4.3.4", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.26.0", + "@babel/plugin-transform-react-jsx-self": "^7.25.9", + "@babel/plugin-transform-react-jsx-source": "^7.25.9", + "@types/babel__core": "^7.20.5", + "react-refresh": "^0.14.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.2.0 || ^5.0.0 || ^6.0.0" + } + }, + "apps/web/node_modules/react-refresh": { + "version": "0.14.2", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/@adraffy/ens-normalize": { "version": "1.11.1", "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz", @@ -139,168 +178,6 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/code-frame": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", - "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.29.7", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", - "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", - "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-compilation-targets": "^7.29.7", - "@babel/helper-module-transforms": "^7.29.7", - "@babel/helpers": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/template": "^7.29.7", - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7", - "@jridgewell/remapping": "^2.3.5", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.7.tgz", - "integrity": "sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7", - "@jridgewell/gen-mapping": "^0.3.12", - "@jridgewell/trace-mapping": "^0.3.28", - "jsesc": "^3.0.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", - "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/compat-data": "^7.29.7", - "@babel/helper-validator-option": "^7.29.7", - "browserslist": "^4.24.0", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-globals": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", - "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", - "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/traverse": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", - "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-module-imports": "^7.29.7", - "@babel/helper-validator-identifier": "^7.29.7", - "@babel/traverse": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", - "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-string-parser": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", @@ -321,30 +198,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-validator-option": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", - "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.7.tgz", - "integrity": "sha512-1k2lAGRMfHTcwuNYcCNUmaUffmQv8KWMfh2iJUUeRlwlwH4FdNG7mfPI10NPfLHJFThE4Tyr4mv7kTNZOiPuBg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/parser": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.7.tgz", @@ -361,72 +214,6 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/plugin-transform-react-jsx-self": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.29.7.tgz", - "integrity": "sha512-TL0hMc9xzy86VD31nUiwzd5otRAcyEPcsegCxolO0PvcXuH1v0kECe/UIznYFihpkvU5wg/jk4v0TTEFfm53fw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-react-jsx-source": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.29.7.tgz", - "integrity": "sha512-06IyK09H3wi4cGbhDBwp5gUGo0IKtnYa8tyTiephirPCK6fbobVGiXMMI5zLQ4aKEYP3wZ3ArU44o+8KMrSG/Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-plugin-utils": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", - "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/types": "^7.29.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.29.7", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.7.tgz", - "integrity": "sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.29.7", - "@babel/generator": "^7.29.7", - "@babel/helper-globals": "^7.29.7", - "@babel/parser": "^7.29.7", - "@babel/template": "^7.29.7", - "@babel/types": "^7.29.7", - "debug": "^4.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/types": { "version": "7.29.7", "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.7.tgz", @@ -452,9 +239,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", - "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz", + "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==", "cpu": [ "ppc64" ], @@ -469,9 +256,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.27.7", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", - "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "version": "0.28.1", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz", + "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==", "cpu": [ "arm" ], @@ -481,7 +268,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -499,7 +285,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -517,7 +302,6 @@ "os": [ "android" ], - "peer": true, "engines": { "node": ">=18" } @@ -535,7 +319,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">=18" } @@ -553,7 +336,6 @@ "os": [ "darwin" ], - "peer": true, "engines": { "node": ">=18" } @@ -571,7 +353,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -589,7 +370,6 @@ "os": [ "freebsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -607,7 +387,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -625,7 +404,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -643,7 +421,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -661,7 +438,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -679,7 +455,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -697,7 +472,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -715,7 +489,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -733,7 +506,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -751,7 +523,6 @@ "os": [ "linux" ], - "peer": true, "engines": { "node": ">=18" } @@ -769,7 +540,6 @@ "os": [ "netbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -787,7 +557,6 @@ "os": [ "netbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -805,7 +574,6 @@ "os": [ "openbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -823,7 +591,6 @@ "os": [ "openbsd" ], - "peer": true, "engines": { "node": ">=18" } @@ -841,7 +608,6 @@ "os": [ "openharmony" ], - "peer": true, "engines": { "node": ">=18" } @@ -859,7 +625,6 @@ "os": [ "sunos" ], - "peer": true, "engines": { "node": ">=18" } @@ -877,7 +642,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -895,7 +659,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -913,7 +676,6 @@ "os": [ "win32" ], - "peer": true, "engines": { "node": ">=18" } @@ -1167,17 +929,6 @@ "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@jridgewell/remapping": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", - "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.5", - "@jridgewell/trace-mapping": "^0.3.24" - } - }, "node_modules/@jridgewell/resolve-uri": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", @@ -1344,13 +1095,6 @@ "node": ">=14.0.0" } }, - "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-beta.27", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz", - "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==", - "dev": true, - "license": "MIT" - }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.62.2", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz", @@ -1400,9 +1144,7 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1598,7 +1340,6 @@ "cpu": [ "x64" ], - "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1843,51 +1584,6 @@ "node": ">=20.0.0" } }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", - "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", - "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, "node_modules/@types/better-sqlite3": { "version": "7.6.13", "resolved": "https://registry.npmjs.org/@types/better-sqlite3/-/better-sqlite3-7.6.13.tgz", @@ -1974,9 +1670,9 @@ } }, "node_modules/@types/express-serve-static-core": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.1.tgz", - "integrity": "sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-5.1.2.tgz", + "integrity": "sha512-d3KvEXBSo/lOAMc2u6fkyDHBvetBHeqD7wm/AcXfLpSOQwlmG9D/aQ0SFswVjv05p7ullQS7Mjohj6/VdbZuTg==", "dev": true, "license": "MIT", "dependencies": { @@ -2008,9 +1704,9 @@ "license": "MIT" }, "node_modules/@types/node": { - "version": "22.20.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.0.tgz", - "integrity": "sha512-QWlFW2wf3nTjC13/DqRnBpR4ZO36VJH/JVBkA/vcnmbTBNQIlnObqyqZE1tUR7+Ni23Lda8R1BxMfbXRpCUx5g==", + "version": "22.20.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.1.tgz", + "integrity": "sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q==", "dev": true, "license": "MIT", "dependencies": { @@ -2105,304 +1801,79 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.62.0.tgz", - "integrity": "sha512-o+mpz7EYiMzXoySXiKmzlabIvTVqUuK5yLrAedRPRDA0IpPFMUV1IXt6OqljIxX/kumN6EjUYp41Hqelh6p/Dw==", + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.63.0.tgz", + "integrity": "sha512-rvwSgqT+DHpWdzfSzPatRLm02a0GlESt++9iy3hLCDY4BgkaLcl8LBi9Yh7XGFBpwcBE/K3024QuXWTpbz4FfQ==", "dev": true, "license": "MIT", "dependencies": { - "@noble/hashes": "^1.7.0", - "apg-js": "^4.4.0" - } - }, - "node_modules/@stellar/freighter-api": { - "version": "6.0.1", - "license": "Apache-2.0", - "dependencies": { - "buffer": "6.0.3", - "semver": "7.7.1" - } - }, - "node_modules/@stellar/freighter-api/node_modules/semver": { - "version": "7.7.1", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" + "@eslint-community/regexpp": "^4.12.2", + "@typescript-eslint/scope-manager": "8.63.0", + "@typescript-eslint/type-utils": "8.63.0", + "@typescript-eslint/utils": "8.63.0", + "@typescript-eslint/visitor-keys": "8.63.0", + "ignore": "^7.0.5", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.5.0" }, "engines": { - "node": ">=10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.63.0", + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@stellar/js-xdr": { - "version": "4.0.0", - "license": "Apache-2.0", + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.5", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz", + "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=20.0.0", - "pnpm": ">=9.0.0" + "node": ">= 4" } }, - "node_modules/@stellar/stellar-base": { - "version": "15.0.0", - "license": "Apache-2.0", + "node_modules/@typescript-eslint/parser": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.63.0.tgz", + "integrity": "sha512-gwh4gvvlaVDKKxyfxMG+Gnu1u9X0OQBwyGLkbwB65dIzBKnxeRiJlNFqlI3zwVhNXJIs6qV7mlFCn/BIajlVig==", + "dev": true, + "license": "MIT", "dependencies": { - "@noble/curves": "^1.9.7", - "@stellar/js-xdr": "^4.0.0", - "base32.js": "^0.1.0", - "bignumber.js": "^9.3.1", - "buffer": "^6.0.3", - "sha.js": "^2.4.12" + "@typescript-eslint/scope-manager": "8.63.0", + "@typescript-eslint/types": "8.63.0", + "@typescript-eslint/typescript-estree": "8.63.0", + "@typescript-eslint/visitor-keys": "8.63.0", + "debug": "^4.4.3" }, "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@stellar/stellar-sdk": { - "version": "15.0.1", - "license": "Apache-2.0", - "dependencies": { - "@stellar/stellar-base": "^15.0.0", - "axios": "1.14.0", - "bignumber.js": "^9.3.1", - "commander": "^14.0.3", - "eventsource": "^2.0.2", - "feaxios": "^0.0.23", - "randombytes": "^2.1.0", - "toml": "^3.0.0", - "urijs": "^1.19.11" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, - "bin": { - "stellar-js": "bin/stellar-js" + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, - "engines": { - "node": ">=20.0.0" - } - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.27.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.28.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.2" - } - }, - "node_modules/@types/better-sqlite3": { - "version": "7.6.13", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/body-parser": { - "version": "1.19.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/connect": "*", - "@types/node": "*" - } - }, - "node_modules/@types/chai": { - "version": "5.2.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/deep-eql": "*", - "assertion-error": "^2.0.1" - } - }, - "node_modules/@types/connect": { - "version": "3.4.38", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/cookiejar": { - "version": "2.1.5", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/cors": { - "version": "2.8.19", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/deep-eql": { - "version": "4.0.2", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/estree": { - "version": "1.0.8", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/express": { - "version": "5.0.6", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/body-parser": "*", - "@types/express-serve-static-core": "^5.0.0", - "@types/serve-static": "^2" - } - }, - "node_modules/@types/express-serve-static-core": { - "version": "5.1.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*", - "@types/qs": "*", - "@types/range-parser": "*", - "@types/send": "*" - } - }, - "node_modules/@types/http-errors": { - "version": "2.0.5", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/methods": { - "version": "1.1.4", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "22.20.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.0.tgz", - "integrity": "sha512-QWlFW2wf3nTjC13/DqRnBpR4ZO36VJH/JVBkA/vcnmbTBNQIlnObqyqZE1tUR7+Ni23Lda8R1BxMfbXRpCUx5g==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@types/prop-types": { - "version": "15.7.15", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/qs": { - "version": "6.15.0", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/range-parser": { - "version": "1.2.7", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/react": { - "version": "18.3.28", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/prop-types": "*", - "csstype": "^3.2.2" - } - }, - "node_modules/@types/react-dom": { - "version": "18.3.7", - "dev": true, - "license": "MIT", "peerDependencies": { - "@types/react": "^18.0.0" - } - }, - "node_modules/@types/send": { - "version": "1.2.1", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/serve-static": { - "version": "2.2.0", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/http-errors": "*", - "@types/node": "*" - } - }, - "node_modules/@types/superagent": { - "version": "8.1.10", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/cookiejar": "^2.1.5", - "@types/methods": "^1.1.4", - "@types/node": "*", - "form-data": "^4.0.0" - } - }, - "node_modules/@types/supertest": { - "version": "6.0.3", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/methods": "^1.1.4", - "@types/superagent": "^8.1.0" + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.62.0.tgz", - "integrity": "sha512-o+mpz7EYiMzXoySXiKmzlabIvTVqUuK5yLrAedRPRDA0IpPFMUV1IXt6OqljIxX/kumN6EjUYp41Hqelh6p/Dw==", + "node_modules/@typescript-eslint/project-service": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.63.0.tgz", + "integrity": "sha512-e5dh0/UI0ok53AlZ5wRkXCB32z/f2jUZqPR/ygAw5WYaSw8j9EoJWlS7wQjr/dmOaqWjnPIn2m+HhVPCMWGZVQ==", "dev": true, "license": "MIT", "dependencies": { - "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.62.0", - "@typescript-eslint/type-utils": "8.62.0", - "@typescript-eslint/utils": "8.62.0", - "@typescript-eslint/visitor-keys": "8.62.0", - "ignore": "^7.0.5", - "natural-compare": "^1.4.0", - "ts-api-utils": "^2.5.0" + "@typescript-eslint/tsconfig-utils": "^8.63.0", + "@typescript-eslint/types": "^8.63.0", + "debug": "^4.4.3" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2412,23 +1883,18 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.62.0", - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@typescript-eslint/utils": { - "version": "8.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.62.0.tgz", - "integrity": "sha512-dzHeT2gySzZtLDsuqxU9AkYgIsQoHAHtRBpOqM+Ofzx1Bwrd2RcCjQJ+6iQbsHOIR6NS33bF2W1k3blN1zLDrA==", + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.63.0.tgz", + "integrity": "sha512-uUyfMWCnDSN8bCpcrY8nGP2BLkQ9Xn0GsipcONcpIDWhwhO4ZSyHvyS14U3X75mzxWxL3I2UZIrenTzdzcJO8A==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.62.0", - "@typescript-eslint/types": "8.62.0", - "@typescript-eslint/typescript-estree": "8.62.0", - "@typescript-eslint/visitor-keys": "8.62.0", - "debug": "^4.4.3" + "@typescript-eslint/types": "8.63.0", + "@typescript-eslint/visitor-keys": "8.63.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2436,23 +1902,14 @@ "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@typescript-eslint/project-service": { - "version": "8.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.62.0.tgz", - "integrity": "sha512-wexnCqiTg7BOGtbLDftYpRWlmLq4xfoMd7BKFR6Y75sZS3QmRKLdN3yWLhmIYgqMmP/OXWpj3H8odkb5nGURCQ==", + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.63.0.tgz", + "integrity": "sha512-sUAbkulqBAsncKnbRP3+7CtQFRKicexnj7ZwNC6ddCR7EmrXvjvdCYMJbUIqMd6lwoEriZjwLo08aS5tSjVMHg==", "dev": true, "license": "MIT", - "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.62.0", - "@typescript-eslint/types": "^8.62.0", - "debug": "^4.4.3" - }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, @@ -2464,15 +1921,18 @@ "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "8.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.62.0.tgz", - "integrity": "sha512-1lX38kNxXIRb8mEc3lbq5mdHq1Pf2+U0nFU65KfT18mtPxxl0fvjuEE92mHuXPuCtElJhOrddOpyMlM3Z0umEA==", + "node_modules/@typescript-eslint/type-utils": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.63.0.tgz", + "integrity": "sha512-Nzzh/OGxVCOjObjaj1CQF2RUasyYy2Jfuh+zZ3PjLzG2fYRriAiZLib9UKtO+CpQAS3YHiAS+ckZDclwqI1TPA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.62.0", - "@typescript-eslint/visitor-keys": "8.62.0" + "@typescript-eslint/types": "8.63.0", + "@typescript-eslint/typescript-estree": "8.63.0", + "@typescript-eslint/utils": "8.63.0", + "debug": "^4.4.3", + "ts-api-utils": "^2.5.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -2480,12 +1940,16 @@ "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@vitejs/plugin-react": { - "version": "4.7.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz", - "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==", + "node_modules/@typescript-eslint/types": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.63.0.tgz", + "integrity": "sha512-xyLtl9DUBBFrcJS4x2pIqGLH68/tC2uOa4Z7pUteW09D3bXnnXUom4dyPikzWgB7llmIc1zoeI3aoUdC4rPK/Q==", "dev": true, "license": "MIT", "engines": { @@ -2494,20 +1958,139 @@ "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@vitest/coverage-v8": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-3.2.6.tgz", - "integrity": "sha512-LsAdmUapA0qSN306d8+zOyawM0hFm2m2Hg9IwVNIKBm+qJV8cijiq2c+gxKZcB1HCfIWAy+0qEZDCUQA58A1cw==", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.63.0.tgz", + "integrity": "sha512-ygBkU+B7ex5UI/gKhaqexWev79uISfIv7XQCRNYO/jmD8rGLPyWLAb3KMRT6nd8Gt9bmUBi9+iX6tBdYfOY81Q==", "dev": true, "license": "MIT", "dependencies": { - "@ampproject/remapping": "^2.3.0", - "@bcoe/v8-coverage": "^1.0.2", + "@typescript-eslint/project-service": "8.63.0", + "@typescript-eslint/tsconfig-utils": "8.63.0", + "@typescript-eslint/types": "8.63.0", + "@typescript-eslint/visitor-keys": "8.63.0", + "debug": "^4.4.3", + "minimatch": "^10.2.2", + "semver": "^7.7.3", + "tinyglobby": "^0.2.15", + "ts-api-utils": "^2.5.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", + "dev": true, + "license": "MIT", + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", + "integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^4.0.2" + }, + "engines": { + "node": "18 || 20 || >=22" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "10.2.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.5.tgz", + "integrity": "sha512-MULkVLfKGYDFYejP07QOurDLLQpcjk7Fw+7jXS2R2czRQzR56yHRveU5NDJEOviH+hETZKSkIk5c+T23GjFUMg==", + "dev": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "brace-expansion": "^5.0.5" + }, + "engines": { + "node": "18 || 20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.63.0.tgz", + "integrity": "sha512-fUKaeAvrTuQg/Tgt3nliAUSZHJM6DlCcfyEmxCvlX8kieWSStBX+5O5Fnidtc3i2JrH+9c/GL4RY2iasd/GPTA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.9.1", + "@typescript-eslint/scope-manager": "8.63.0", + "@typescript-eslint/types": "8.63.0", + "@typescript-eslint/typescript-estree": "8.63.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.63.0.tgz", + "integrity": "sha512-UexrHGnGTpbuQHct2ExOc2ZcFbGUS9FOesCxxqdBGcpI1BxYu/LZ6U8Aq6/72XtF/qRBk9nhuGHFJIXXMhPMdw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "8.63.0", + "eslint-visitor-keys": "^5.0.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^20.19.0 || ^22.13.0 || >=24" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@vitest/coverage-v8": { + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-3.2.7.tgz", + "integrity": "sha512-NEGWJS2XNu2PfRLQwOO3CTKj1tTETxNBdk454vDxVBhxJYhPaA/eS0nAI0c+1El1P7a60z8+i+ZrQoGESweGKg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.3.0", + "@bcoe/v8-coverage": "^1.0.2", "ast-v8-to-istanbul": "^0.3.3", "debug": "^4.4.1", "istanbul-lib-coverage": "^3.2.2", @@ -2524,8 +2107,8 @@ "url": "https://opencollective.com/vitest" }, "peerDependencies": { - "@vitest/browser": "3.2.6", - "vitest": "3.2.6" + "@vitest/browser": "3.2.7", + "vitest": "3.2.7" }, "peerDependenciesMeta": { "@vitest/browser": { @@ -2534,15 +2117,15 @@ } }, "node_modules/@vitest/expect": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.6.tgz", - "integrity": "sha512-1+7q9BtaKzEmO+fmNT3kYvoNn5Y71XWAx2Q5HRim4tTVRQVRv4uJFAQ5FbK0OPUeNP/WmVCpxYxoJdvuHVjzBQ==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.7.tgz", + "integrity": "sha512-E8eBXaKibuvH2pSZErOjdVb5vF4PbKYcrnluBTYxEk1l/VhhwZg1kZQsdtjq+CsF5CFydf2Rdkz7jDHKSisi3w==", "dev": true, "license": "MIT", "dependencies": { "@types/chai": "^5.2.2", - "@vitest/spy": "3.2.6", - "@vitest/utils": "3.2.6", + "@vitest/spy": "3.2.7", + "@vitest/utils": "3.2.7", "chai": "^5.2.0", "tinyrainbow": "^2.0.0" }, @@ -2551,13 +2134,13 @@ } }, "node_modules/@vitest/mocker": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.6.tgz", - "integrity": "sha512-EZOrpDbkKotFAP7wPAQV1UIyoGOk4oX7ynWhBhLB7v+meMHbQhU16oPpIYGTTe4oFlhpryGpgpcZP/sin3hYuw==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.7.tgz", + "integrity": "sha512-Trr0hYO9CM3Wj6ksWHRhK9IZpIY6wTMO5u/MqXurMxT57sWBaOPEtP3Oq60ihZuh5JsiagKfz95OcxdEP6dBrA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "3.2.6", + "@vitest/spy": "3.2.7", "estree-walker": "^3.0.3", "magic-string": "^0.30.17" }, @@ -2578,9 +2161,9 @@ } }, "node_modules/@vitest/pretty-format": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.6.tgz", - "integrity": "sha512-lb7XXXzmm2h2ASzFnRvQpDo6onT1NmMJA3tkGTWiBFtRJ9lxGY3d3mm/Apt36gej2bkkOVLL/yTOtufDaFa/jA==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.7.tgz", + "integrity": "sha512-KUHlwqVu0sRlhCdyPdQ/wBoTfRahjUky1MubOmYw9fWfIZy1gNoHpuaaQBPAaMaVYdQYHJLurzj8ECCj5OwTqA==", "dev": true, "license": "MIT", "dependencies": { @@ -2591,13 +2174,13 @@ } }, "node_modules/@vitest/runner": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.6.tgz", - "integrity": "sha512-HYcoSj1w5tcgUnzoF0HcyaAQjpA1gj9ftUJ7iSJSuipc02jW9gKkigwZbjFldAfYHA1fa8UZVRftdMY5msWM9Q==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.7.tgz", + "integrity": "sha512-sB9y4ovltoQP+WaUPwmSxO9WIg9Ig694Di5PalVPsYHklAdE027mehpWF2SQSVq+k6sFgaivbTjTJwZLSHbedA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "3.2.6", + "@vitest/utils": "3.2.7", "pathe": "^2.0.3", "strip-literal": "^3.0.0" }, @@ -2606,13 +2189,13 @@ } }, "node_modules/@vitest/snapshot": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.6.tgz", - "integrity": "sha512-H+ZjNTWGpObenh0YnlBctAPnJSI20P81PL8BPzWpx54YXLLTm8hEsWawtcYLMrwvpK48hGxLLbCS+1KRXhsKhw==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.7.tgz", + "integrity": "sha512-7C+MwShwtBSI5Buwoyg3s/iY1eHL9PKAf+O1wVh/TdnjXUtkoL/9YQtre90i4MtNXM6edP1wJ2zOBpfCyhIS7g==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "3.2.6", + "@vitest/pretty-format": "3.2.7", "magic-string": "^0.30.17", "pathe": "^2.0.3" }, @@ -2621,9 +2204,9 @@ } }, "node_modules/@vitest/spy": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.6.tgz", - "integrity": "sha512-oq6BbH68WzcWmwtBrU9nqLeaXTR4XwJF7FSLkKEZo4i6eoXcrxjcwSuTvWBIRUTC6VC72nXYunzqgZA+IKdtxg==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.7.tgz", + "integrity": "sha512-Q2eQGI6d2L/hBtZ0qNuKcAGid68XK6cv1xsoaIma6PaJhHPoqcEJhYpXZ/5myCMqkNgtP6UKuBhbc0nHKnrkuQ==", "dev": true, "license": "MIT", "dependencies": { @@ -2634,13 +2217,13 @@ } }, "node_modules/@vitest/utils": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.6.tgz", - "integrity": "sha512-lI23nIs4bnT3T8NIoh+vFaz5s2/DdP0Jgt2jxwgWljvwn82cLJtyi/If+fjFyoLMGIOz0U/fKvWE0d4jsNQEfg==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.7.tgz", + "integrity": "sha512-x6BDOd7dyo3PFLY3I9/HJ25X/6OurhGXk2/B9gOZNPF7XDVjeBK4k01lQE5uvDpbuheErh91qYuE1E2OEjK3Rw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "3.2.6", + "@vitest/pretty-format": "3.2.7", "loupe": "^3.1.4", "tinyrainbow": "^2.0.0" }, @@ -2788,39 +2371,9 @@ } }, "node_modules/@x402/stellar/node_modules/bignumber.js": { - "version": "11.1.4", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-11.1.4.tgz", - "integrity": "sha512-AJ9dSeaUGj2xu7tEwmdqb51dqdb633xo4njI9K8ZFfcLrNr0XN8/EPkkZUNaF9fkCblGt2zVwZymesUdGynEkQ==", - "license": "MIT" - }, - "node_modules/@x402/stellar/node_modules/eventsource": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-4.1.0.tgz", - "integrity": "sha512-2GuF51iuHX6A9xdTccMTsNb7VO0lHZihApxhvQzJB5A03DvHDd2FQepodbMaztPBmBcE/ox7o2gqaxGhYB9LhQ==", - "license": "MIT", - "dependencies": { - "eventsource-parser": "^3.0.1" - }, - "engines": { - "node": ">=22.0.0" - } - }, - "node_modules/@x402/stellar/node_modules/axios": { - "version": "1.16.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.16.1.tgz", - "integrity": "sha512-caYkukvroVPO8KrzuJEb50Hm07KwfBZPEC3VeFHTsqWHvKTsy54hjJz9BS/cdaypROE2rH6xvm9mHX4fgWkr3A==", - "license": "MIT", - "dependencies": { - "follow-redirects": "^1.16.0", - "form-data": "^4.0.5", - "https-proxy-agent": "^5.0.1", - "proxy-from-env": "^2.1.0" - } - }, - "node_modules/@x402/stellar/node_modules/bignumber.js": { - "version": "11.1.4", - "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-11.1.4.tgz", - "integrity": "sha512-AJ9dSeaUGj2xu7tEwmdqb51dqdb633xo4njI9K8ZFfcLrNr0XN8/EPkkZUNaF9fkCblGt2zVwZymesUdGynEkQ==", + "version": "11.1.5", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-11.1.5.tgz", + "integrity": "sha512-6WmzCNtUnfKpbozq+hOgWaZMMzORmYBwF1xZScyoIX3QRYWeKTtxxwDOW5tIz7C9BdjkIYHGTcelCLkXg0mndw==", "license": "MIT" }, "node_modules/@x402/stellar/node_modules/eventsource": { @@ -3033,13 +2586,6 @@ "js-tokens": "^10.0.0" } }, - "node_modules/ast-v8-to-istanbul/node_modules/js-tokens": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz", - "integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==", - "dev": true, - "license": "MIT" - }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -3155,9 +2701,9 @@ "license": "MIT" }, "node_modules/baseline-browser-mapping": { - "version": "2.10.40", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.40.tgz", - "integrity": "sha512-BSSLZ9/Cjjv7Gtj5B68ZzXcXUg8iOf3fme+FCuh8rC/Go+Kmh8cox7M3A8dolou16s64QjLPOSdngh7GxXvkSw==", + "version": "2.10.42", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.42.tgz", + "integrity": "sha512-c/jurFrDLyui7o1J86yLkRu4LMsTYcBohveus7/I2Hzdn9KIP2bdJPTue/lR1KH46enoPbD77GKeSYNdyPoD3Q==", "dev": true, "license": "Apache-2.0", "bin": { @@ -3282,9 +2828,9 @@ } }, "node_modules/brace-expansion": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.15.tgz", - "integrity": "sha512-EwOCDEex4quD37XhqM3omwtMoJjr//isUZz1JopUNWms+4Z2ViyM/k1YIRePpoVNnQhENnxtFjLaxNHrT7xIUg==", + "version": "1.1.16", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", + "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", "dev": true, "license": "MIT", "dependencies": { @@ -3306,9 +2852,9 @@ } }, "node_modules/browserslist": { - "version": "4.28.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.4.tgz", - "integrity": "sha512-MTc8i/x9jBQd1iMw2CFGS+rwMa07eYjLR0CCTLDACl9xhxy+nIs3KeML/biicXtk9JrZ6dnnTatmc7ErPXIxqw==", + "version": "4.28.5", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.5.tgz", + "integrity": "sha512-Cu2E6QejHWzuDMTkuwgpABFgDfZrXLQq5V13YOACZx4mFAG4IwGTbTfHPMr4WtxlHoXSM8FIuRwYYCz5XiabaQ==", "dev": true, "funding": [ { @@ -3326,10 +2872,10 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.10.38", - "caniuse-lite": "^1.0.30001799", - "electron-to-chromium": "^1.5.376", - "node-releases": "^2.0.48", + "baseline-browser-mapping": "^2.10.42", + "caniuse-lite": "^1.0.30001800", + "electron-to-chromium": "^1.5.387", + "node-releases": "^2.0.50", "update-browserslist-db": "^1.2.3" }, "bin": { @@ -3450,9 +2996,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001799", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001799.tgz", - "integrity": "sha512-hG1bReV+OUU+MOqK4t/ZWI0tZOyz3rqS9XuhOUz1cIcbwBKjOyJEJuw9ER5JuNyqxNk8u/JUVbGibBOL1yrjFw==", + "version": "1.0.30001803", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001803.tgz", + "integrity": "sha512-g/uHREV2ZpK9qMalCsWaxmA6ol+DX8GYhuf3T40RKoP+oL7vhRJh8LNt73PCjpnR6l14FzfPrB5Yux4PKm2meg==", "dev": true, "funding": [ { @@ -3638,13 +3184,6 @@ "node": ">= 0.6" } }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, "node_modules/cookie": { "version": "0.7.2", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", @@ -3889,9 +3428,9 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.380", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.380.tgz", - "integrity": "sha512-W6d5AbuEoRayO447cqrg6lKJIlscgRnnxOZl/08kfV71BQDoEBC7Wwis68z87LjyK6f4kWyTaubuDbhHKrZkbA==", + "version": "1.5.389", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.389.tgz", + "integrity": "sha512-cEto7aeOqBfU1D+c5py5pE+ooscKE75JifxLBdFUZsqAxRS6y7kebtxAZvICszSl05gPjYHDTjY+lXpyGvpJbg==", "dev": true, "license": "ISC" }, @@ -4020,18 +3559,6 @@ "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=18" - } - }, - "node_modules/escalade": { - "version": "3.2.0", - "dev": true, - "license": "MIT", "engines": { "node": ">=6" } @@ -4388,9 +3915,9 @@ "license": "MIT" }, "node_modules/fast-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.2.tgz", - "integrity": "sha512-rVjf7ArG3LTk+FS6Yw81V1DLuZl1bRbNrev6Tmd/9RaroeeRRJhAt7jg/6YFxbvAQXUCavSoZhPPj6oOx+5KjQ==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.3.tgz", + "integrity": "sha512-i70LwGWUduXqzicKXWshooq+sWL1K3WUU5rKZNG/0i3a1OSoX3HqhH5WbWwTmqWfor4urUakGPiRQcleRZTwOg==", "funding": [ { "type": "github", @@ -4700,16 +4227,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -4798,9 +4315,9 @@ } }, "node_modules/glob/node_modules/brace-expansion": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.1.tgz", - "integrity": "sha512-WR1cURNjuvBLMZBMbqM0UoE+WAfdUcEV1ccD8PVBVOI+Z3ND4+SZbN8RsfT2bMuG1qwz5RFvPukSZm5fF2D5eA==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", + "integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", "dev": true, "license": "MIT", "dependencies": { @@ -4950,9 +4467,9 @@ } }, "node_modules/iconv-lite": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", - "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.3.tgz", + "integrity": "sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==", "license": "MIT", "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" @@ -5278,9 +4795,10 @@ } }, "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-10.0.0.tgz", + "integrity": "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q==", + "dev": true, "license": "MIT" }, "node_modules/js-yaml": { @@ -5306,19 +4824,6 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsesc": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", - "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", - "dev": true, - "license": "MIT", - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", @@ -5340,19 +4845,6 @@ "dev": true, "license": "MIT" }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "license": "MIT", - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/keyv": { "version": "4.5.4", "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", @@ -5432,6 +4924,12 @@ "loose-envify": "cli.js" } }, + "node_modules/loose-envify/node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, "node_modules/loupe": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz", @@ -5440,14 +4938,11 @@ "license": "MIT" }, "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", + "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", "dev": true, - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } + "license": "ISC" }, "node_modules/lucide-react": { "version": "0.511.0", @@ -5720,9 +5215,9 @@ } }, "node_modules/node-abi": { - "version": "3.92.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.92.0.tgz", - "integrity": "sha512-KdHvFWZjEKDf0cakgFjebl371GPsISX2oZHcuyKqM7DtogIsHrqKeLTo8wBHxaXRAQlY2PsPlZmfo+9ZCxEREQ==", + "version": "3.94.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.94.0.tgz", + "integrity": "sha512-W5ZNO5KRPB5TkYmGVD9F6YqhsglXJzE6etpbmT+f6EQElhiX/UTG551cnsRGvLG3fyZEg9HwaDmNmj5nwJ4z9g==", "license": "MIT", "dependencies": { "semver": "^7.3.5" @@ -5837,9 +5332,9 @@ } }, "node_modules/ox": { - "version": "0.14.29", - "resolved": "https://registry.npmjs.org/ox/-/ox-0.14.29.tgz", - "integrity": "sha512-M5j87Ec4V99MQdRct/g09eWXW60g6zhHTUs1lr4deUtrPDnezBdCJTgKd7pxqTpSZBFveV0ALi9jMMuT1qKyNg==", + "version": "0.14.30", + "resolved": "https://registry.npmjs.org/ox/-/ox-0.14.30.tgz", + "integrity": "sha512-LI11uu+8iiM1B3CLckgd++YF1a0A2k5wDoM9ZeQMiL21BOzQs6L//BLS6hb1HSEKCyycdDIQLsVQx9MjpcC0hA==", "funding": [ { "type": "github", @@ -5986,13 +5481,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", - "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", - "dev": true, - "license": "ISC" - }, "node_modules/path-to-regexp": { "version": "8.4.2", "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", @@ -6028,9 +5516,9 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", - "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", + "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", "dev": true, "license": "MIT", "engines": { @@ -6338,9 +5826,9 @@ } }, "node_modules/prettier": { - "version": "3.9.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.1.tgz", - "integrity": "sha512-ppiDo2CSwexck1eyZUwJHg/N3nf1+6IRCv7W/VJ5vaLnVCmB7+3CdRfMwoCHBBX6xTrREDTksZ4OZl5SSf4zXA==", + "version": "3.9.4", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.4.tgz", + "integrity": "sha512-yWG/o/4oJfo036EKAfK6ACAoDOfHeRHx4tuxkfBZiauURiaSmYwlpOr5LQqKtIkRD2z1PLteme2WoxEnj4tHTg==", "dev": true, "license": "MIT", "bin": { @@ -6540,16 +6028,6 @@ "react": "^18.3.1" } }, - "node_modules/react-refresh": { - "version": "0.17.0", - "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz", - "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/react-router": { "version": "6.30.4", "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.30.4.tgz", @@ -7478,9 +6956,9 @@ } }, "node_modules/test-exclude/node_modules/brace-expansion": { - "version": "5.0.6", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.6.tgz", - "integrity": "sha512-kLpxurY4Z4r9sgMsyG0Z9uzsBlgiU/EFKhj/h91/8yHu0edo7XuixOIH3VcJ8kkxs6/jPzoI6U9Vj3WqbMQ94g==", + "version": "5.0.7", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.7.tgz", + "integrity": "sha512-7oFy703dxfY3/NLxC1fh2SUCQ0H9rmAY+5EpDVfXjUTTs+HEwR2nYaqLv+GWcTsumwxPfiz6CzCNkwXwBUwqCA==", "dev": true, "license": "MIT", "dependencies": { @@ -7662,9 +7140,9 @@ "license": "Apache-2.0" }, "node_modules/tsx": { - "version": "4.22.4", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.22.4.tgz", - "integrity": "sha512-X8EX+XV4QR5xCsrgxaED954zTDfY8KqlDtskKEL0cHhyS/P8b4IFOvGDQpsC9Q1XnLq915wEfwwY/zzskCtmhg==", + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.0.tgz", + "integrity": "sha512-eUdUIaCr963q2h5u3+QwvYp0+eqPvn+egeqZUm0hwERCqqx1E3kK5ehbGCvqSE5MQAULr67ww0cA3jKc3YkM1w==", "dev": true, "license": "MIT", "dependencies": { @@ -7771,16 +7249,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.62.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.62.0.tgz", - "integrity": "sha512-8QxXi+ZACKX0kaqO4gY8kn0RSD9gFfaHDWwjqtEN48aWCBkX4MJaufWN+c3BzlrXLOxfywDL8CaoqUwcRq4j4Q==", + "version": "8.63.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.63.0.tgz", + "integrity": "sha512-xgwXyzG4sK9ALkBxbyGkTMMOS+imnW65iPhxCQMK83KhxyoDNW7l+IDqEf9vMdoUidHpOoS967RCq4eMiTexwQ==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.62.0", - "@typescript-eslint/parser": "8.62.0", - "@typescript-eslint/typescript-estree": "8.62.0", - "@typescript-eslint/utils": "8.62.0" + "@typescript-eslint/eslint-plugin": "8.63.0", + "@typescript-eslint/parser": "8.63.0", + "@typescript-eslint/typescript-estree": "8.63.0", + "@typescript-eslint/utils": "8.63.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -7859,503 +7337,197 @@ "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dev": true, "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/urijs": { - "version": "1.19.11", - "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", - "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==", - "license": "MIT" - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "license": "MIT" - }, - "node_modules/vary": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", - "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", - "license": "MIT", - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/viem": { - "version": "2.53.1", - "resolved": "https://registry.npmjs.org/viem/-/viem-2.53.1.tgz", - "integrity": "sha512-FhfJ/SW73CVosiyVLmIMVgKDRKYV1AGCLzZoHYvmNayyVff63Qi1ocPCk59LqC/cNw244RbBJjHnmxqXkE7NpA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/wevm" - } - ], - "license": "MIT", - "dependencies": { - "@noble/curves": "1.9.1", - "@noble/hashes": "1.8.0", - "@scure/bip32": "1.7.0", - "@scure/bip39": "1.6.0", - "abitype": "1.2.3", - "isows": "1.0.7", - "ox": "0.14.29", - "ws": "8.20.1" - }, - "peerDependencies": { - "typescript": ">=5.0.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/viem/node_modules/@noble/curves": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", - "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.8.0" - }, - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/vite": { - "version": "5.4.21", - "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", - "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", - "dev": true, - "license": "MIT", - "dependencies": { - "esbuild": "^0.21.3", - "postcss": "^8.4.43", - "rollup": "^4.20.0" - }, - "bin": { - "vite": "bin/vite.js" - }, - "engines": { - "node": "^18.0.0 || >=20.0.0" - }, - "funding": { - "url": "https://github.com/vitejs/vite?sponsor=1" - }, - "optionalDependencies": { - "fsevents": "~2.3.3" - }, - "peerDependencies": { - "@types/node": "^18.0.0 || >=20.0.0", - "less": "*", - "lightningcss": "^1.21.0", - "sass": "*", - "sass-embedded": "*", - "stylus": "*", - "sugarss": "*", - "terser": "^5.4.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "less": { - "optional": true - }, - "lightningcss": { - "optional": true - }, - "sass": { - "optional": true - }, - "sass-embedded": { - "optional": true - }, - "stylus": { - "optional": true - }, - "sugarss": { - "optional": true - }, - "terser": { - "optional": true - } - } - }, - "node_modules/vite-node": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", - "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", - "dev": true, - "license": "MIT", - "dependencies": { - "cac": "^6.7.14", - "debug": "^4.4.1", - "es-module-lexer": "^1.7.0", - "pathe": "^2.0.3", - "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" - }, - "bin": { - "vite-node": "vite-node.mjs" - }, - "engines": { - "node": "^18.0.0 || ^20.0.0 || >=22.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vite/node_modules/@esbuild/aix-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", - "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", - "cpu": [ - "ppc64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", - "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", - "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/android-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", - "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/darwin-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", - "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/darwin-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", - "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/freebsd-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", - "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/freebsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", - "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", - "cpu": [ - "x64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-arm": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", - "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", - "cpu": [ - "arm" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-arm64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", - "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-ia32": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", - "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", - "cpu": [ - "ia32" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-loong64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", - "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", - "cpu": [ - "loong64" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/vite/node_modules/@esbuild/linux-mips64el": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", - "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", - "cpu": [ - "mips64el" - ], - "dev": true, - "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "punycode": "^2.1.0" } }, - "node_modules/vite/node_modules/@esbuild/linux-ppc64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", - "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", - "cpu": [ - "ppc64" - ], - "dev": true, + "node_modules/urijs": { + "version": "1.19.11", + "resolved": "https://registry.npmjs.org/urijs/-/urijs-1.19.11.tgz", + "integrity": "sha512-HXgFDgDommxn5/bIv0cnQZsPhHDA90NPHD6+c/v21U5+Sx5hoP8+dP9IZXBU1gIfvdRfhG8cel9QNPeionfcCQ==", + "license": "MIT" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], "engines": { - "node": ">=12" + "node": ">= 0.8" } }, - "node_modules/vite/node_modules/@esbuild/linux-riscv64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", - "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", - "cpu": [ - "riscv64" + "node_modules/viem": { + "version": "2.54.6", + "resolved": "https://registry.npmjs.org/viem/-/viem-2.54.6.tgz", + "integrity": "sha512-OfybECKJYVmhiNqz+SHhed+O2h6niQ+0Wjg9J0b4bV+/QrvLgjxhfKO7hZqsuK1YtZ/0BErBKy708Zp+cU5T0Q==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wevm" + } ], - "dev": true, "license": "MIT", - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" + "dependencies": { + "@noble/curves": "1.9.1", + "@noble/hashes": "1.8.0", + "@scure/bip32": "1.7.0", + "@scure/bip39": "1.6.0", + "abitype": "1.2.3", + "isows": "1.0.7", + "ox": "0.14.30", + "ws": "8.21.0" + }, + "peerDependencies": { + "typescript": ">=5.0.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } } }, - "node_modules/vite/node_modules/@esbuild/linux-s390x": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", - "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", - "cpu": [ - "s390x" - ], - "dev": true, + "node_modules/viem/node_modules/@noble/curves": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.1.tgz", + "integrity": "sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==", "license": "MIT", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "@noble/hashes": "1.8.0" + }, "engines": { - "node": ">=12" + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/vite/node_modules/@esbuild/linux-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", - "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", - "cpu": [ - "x64" - ], + "node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "linux" - ], + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, "engines": { - "node": ">=12" + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } } }, - "node_modules/vite/node_modules/@esbuild/netbsd-x64": { - "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", - "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", - "cpu": [ - "x64" - ], + "node_modules/vite-node": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz", + "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==", "dev": true, "license": "MIT", - "optional": true, - "os": [ - "netbsd" - ], + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.4.1", + "es-module-lexer": "^1.7.0", + "pathe": "^2.0.3", + "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, "engines": { - "node": ">=12" + "node": "^18.0.0 || ^20.0.0 || >=22.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" } }, - "node_modules/vite/node_modules/@esbuild/openbsd-x64": { + "node_modules/vite/node_modules/@esbuild/aix-ppc64": { "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", - "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", "cpu": [ - "x64" + "ppc64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "openbsd" + "aix" ], "engines": { "node": ">=12" } }, - "node_modules/vite/node_modules/@esbuild/sunos-x64": { + "node_modules/vite/node_modules/@esbuild/android-arm": { "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", - "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", "cpu": [ - "x64" + "arm" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "sunos" + "android" ], "engines": { "node": ">=12" } }, - "node_modules/vite/node_modules/@esbuild/win32-arm64": { + "node_modules/vite/node_modules/@esbuild/android-arm64": { "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", - "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", "cpu": [ "arm64" ], @@ -8363,41 +7535,41 @@ "license": "MIT", "optional": true, "os": [ - "win32" + "android" ], "engines": { "node": ">=12" } }, - "node_modules/vite/node_modules/@esbuild/win32-ia32": { + "node_modules/vite/node_modules/@esbuild/android-x64": { "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", - "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", "cpu": [ - "ia32" + "x64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "win32" + "android" ], "engines": { "node": ">=12" } }, - "node_modules/vite/node_modules/@esbuild/win32-x64": { + "node_modules/vite/node_modules/@esbuild/darwin-arm64": { "version": "0.21.5", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", - "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", "cpu": [ - "x64" + "arm64" ], "dev": true, "license": "MIT", "optional": true, "os": [ - "win32" + "darwin" ], "engines": { "node": ">=12" @@ -8590,6 +7762,23 @@ "node": ">=12" } }, + "node_modules/vite/node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/vite/node_modules/@esbuild/netbsd-x64": { "version": "0.21.5", "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", @@ -8732,20 +7921,20 @@ } }, "node_modules/vitest": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.6.tgz", - "integrity": "sha512-xejya+bT/j/+R/AGa1XOfRxLmNUlLtlwjRsFUILF+xHfzElmGcmFydy2gqqIrd62ptIEfwVMofd19uNWD9L7Nw==", + "version": "3.2.7", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.7.tgz", + "integrity": "sha512-KrxIJ62Fd89gfysR4WotlgZABiz2dqFPgqGzX7s+CwsqLFomRH7777ZcrOD6+WVAh7khPQP41A+BKbpcJFrdEg==", "dev": true, "license": "MIT", "dependencies": { "@types/chai": "^5.2.2", - "@vitest/expect": "3.2.6", - "@vitest/mocker": "3.2.6", - "@vitest/pretty-format": "^3.2.6", - "@vitest/runner": "3.2.6", - "@vitest/snapshot": "3.2.6", - "@vitest/spy": "3.2.6", - "@vitest/utils": "3.2.6", + "@vitest/expect": "3.2.7", + "@vitest/mocker": "3.2.7", + "@vitest/pretty-format": "^3.2.7", + "@vitest/runner": "3.2.7", + "@vitest/snapshot": "3.2.7", + "@vitest/spy": "3.2.7", + "@vitest/utils": "3.2.7", "chai": "^5.2.0", "debug": "^4.4.1", "expect-type": "^1.2.1", @@ -8775,8 +7964,8 @@ "@edge-runtime/vm": "*", "@types/debug": "^4.1.12", "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0", - "@vitest/browser": "3.2.6", - "@vitest/ui": "3.2.6", + "@vitest/browser": "3.2.7", + "@vitest/ui": "3.2.7", "happy-dom": "*", "jsdom": "*" }, @@ -8970,9 +8159,9 @@ "license": "ISC" }, "node_modules/ws": { - "version": "8.20.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.1.tgz", - "integrity": "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==", + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", "license": "MIT", "engines": { "node": ">=10.0.0" @@ -8990,13 +8179,6 @@ } } }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true, - "license": "ISC" - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/scripts/check-payment-leaks.mjs b/scripts/check-payment-leaks.mjs index 050607d..90672fe 100644 --- a/scripts/check-payment-leaks.mjs +++ b/scripts/check-payment-leaks.mjs @@ -45,7 +45,8 @@ function findLeaks(content) { } // 4. Facilitator API Key - const facilitatorKeyRegex = /(?:facilitator.*api.*key|x402.*facilitator.*api.*key)\s*[:=]\s*["']?([a-zA-Z0-9_\-]+)["']?/gi; + const facilitatorKeyRegex = + /(?:facilitator.*api.*key|x402.*facilitator.*api.*key)\s*[:=]\s*["']?([a-zA-Z0-9_\-]+)["']?/gi; while ((match = facilitatorKeyRegex.exec(line)) !== null) { const val = match[1]; const isRedacted = @@ -61,7 +62,8 @@ function findLeaks(content) { } // 5. X-Payment Header or payment-response header - const paymentHeaderRegex = /(?:x-payment|payment-response|x-payment-response)\s*[:=]\s*["']?([a-zA-Z0-9_\-\[\]\+\/=]+)["']?/gi; + const paymentHeaderRegex = + /(?:x-payment|payment-response|x-payment-response)\s*[:=]\s*["']?([a-zA-Z0-9_\-\[\]\+\/=]+)["']?/gi; while ((match = paymentHeaderRegex.exec(line)) !== null) { const val = match[1]; const isRedacted = @@ -71,7 +73,9 @@ function findLeaks(content) { val.endsWith("]") || val.startsWith("demo_tx_") || val.startsWith("demo-proof-") || - ["none", "", "tx_test", "proof_123", "demo-proof-news", "demo-proof-scrape"].includes(val.toLowerCase()); + ["none", "", "tx_test", "proof_123", "demo-proof-news", "demo-proof-scrape"].includes( + val.toLowerCase() + ); if (!isRedacted) { leaks.push({ lineNum, pattern: "X-Payment Header", match: val }); } @@ -150,12 +154,17 @@ function runSelfTest() { for (const fail of failingCases) { const leaks = findLeaks(fail.text); if (leaks.length === 0) { - console.error(`Self-test failed: Expected leak for pattern "${fail.pattern}" in "${fail.text}", but none found.`); + console.error( + `Self-test failed: Expected leak for pattern "${fail.pattern}" in "${fail.text}", but none found.` + ); process.exit(1); } const hasPattern = leaks.some((l) => l.pattern === fail.pattern); if (!hasPattern) { - console.error(`Self-test failed: Expected leak of type "${fail.pattern}" in "${fail.text}", but found different type:`, leaks); + console.error( + `Self-test failed: Expected leak of type "${fail.pattern}" in "${fail.text}", but found different type:`, + leaks + ); process.exit(1); } }