@elsoul/erpc-sdk 0.8.0 → 0.8.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.cjs CHANGED
@@ -2533,6 +2533,9 @@ var CloudCatalogClient = class {
2533
2533
  }
2534
2534
  };
2535
2535
 
2536
+ // src/transport/fetch.ts
2537
+ var wrapFetch = (implementation) => (input, init) => implementation(input, init);
2538
+
2536
2539
  // src/config.ts
2537
2540
  var DEFAULT_ENDPOINT = "https://edge.erpc.global";
2538
2541
  var DEFAULT_AVALANCHE_ENDPOINT = "https://ava-rpc.erpc.global";
@@ -2546,7 +2549,7 @@ var requireFetch = (provided) => {
2546
2549
  "A Fetch API implementation is required in this runtime"
2547
2550
  );
2548
2551
  }
2549
- return implementation;
2552
+ return wrapFetch(implementation);
2550
2553
  };
2551
2554
  var normalizeLegacyEndpoint = (endpoint) => {
2552
2555
  endpoint.search = "";
@@ -5721,7 +5724,7 @@ var requireFetch2 = (provided) => {
5721
5724
  "A Fetch API implementation is required in this runtime"
5722
5725
  );
5723
5726
  }
5724
- return implementation;
5727
+ return wrapFetch(implementation);
5725
5728
  };
5726
5729
  var cloudEndpoint = (value) => {
5727
5730
  let endpoint;
@@ -6462,7 +6465,7 @@ var normalizeBridgeConfig = (config) => {
6462
6465
  allowUnauthenticatedBuild,
6463
6466
  minimumQuoteValiditySeconds,
6464
6467
  timeoutMs,
6465
- fetch: implementation
6468
+ fetch: wrapFetch(implementation)
6466
6469
  });
6467
6470
  };
6468
6471
  var requestSignal = (timeoutMs, external) => {