@relai-fi/x402 0.5.23 → 0.5.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -722,7 +722,8 @@ function createX402Client(config) {
722
722
  evmRpcUrls = {},
723
723
  maxAmountAtomic,
724
724
  integritas,
725
- verbose = false
725
+ verbose = false,
726
+ defaultHeaders = {}
726
727
  } = config;
727
728
  const relayWsEnabled = relayWs?.enabled === true;
728
729
  const relayWsPreflightTimeoutMs = relayWs?.preflightTimeoutMs ?? 5e3;
@@ -989,6 +990,7 @@ function createX402Client(config) {
989
990
  const fromInput = input instanceof Request ? headersToRecord(input.headers) : {};
990
991
  const fromInit = headersToRecord(init?.headers);
991
992
  const merged = {
993
+ ...defaultHeaders,
992
994
  ...fromInput,
993
995
  ...fromInit
994
996
  };