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.mjs CHANGED
@@ -30861,8 +30861,9 @@ var MoltsPayServer = class {
30861
30861
  this.useMainnet = process.env.USE_MAINNET?.toLowerCase() === "true";
30862
30862
  this.networkId = this.useMainnet ? "eip155:8453" : "eip155:84532";
30863
30863
  const facilitatorConfig = options.facilitators || {
30864
- primary: "cdp",
30865
- strategy: "failover",
30864
+ primary: process.env.FACILITATOR_PRIMARY || "cdp",
30865
+ fallback: process.env.FACILITATOR_FALLBACK?.split(",").filter(Boolean),
30866
+ strategy: process.env.FACILITATOR_STRATEGY || "failover",
30866
30867
  config: {
30867
30868
  cdp: { useMainnet: this.useMainnet }
30868
30869
  }