moltspay 0.9.0 → 0.9.1

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
@@ -30903,8 +30903,9 @@ var MoltsPayServer = class {
30903
30903
  this.useMainnet = process.env.USE_MAINNET?.toLowerCase() === "true";
30904
30904
  this.networkId = this.useMainnet ? "eip155:8453" : "eip155:84532";
30905
30905
  const facilitatorConfig = options.facilitators || {
30906
- primary: "cdp",
30907
- strategy: "failover",
30906
+ primary: process.env.FACILITATOR_PRIMARY || "cdp",
30907
+ fallback: process.env.FACILITATOR_FALLBACK?.split(",").filter(Boolean),
30908
+ strategy: process.env.FACILITATOR_STRATEGY || "failover",
30908
30909
  config: {
30909
30910
  cdp: { useMainnet: this.useMainnet }
30910
30911
  }