@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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2531,6 +2531,9 @@ var CloudCatalogClient = class {
|
|
|
2531
2531
|
}
|
|
2532
2532
|
};
|
|
2533
2533
|
|
|
2534
|
+
// src/transport/fetch.ts
|
|
2535
|
+
var wrapFetch = (implementation) => (input, init) => implementation(input, init);
|
|
2536
|
+
|
|
2534
2537
|
// src/config.ts
|
|
2535
2538
|
var DEFAULT_ENDPOINT = "https://edge.erpc.global";
|
|
2536
2539
|
var DEFAULT_AVALANCHE_ENDPOINT = "https://ava-rpc.erpc.global";
|
|
@@ -2544,7 +2547,7 @@ var requireFetch = (provided) => {
|
|
|
2544
2547
|
"A Fetch API implementation is required in this runtime"
|
|
2545
2548
|
);
|
|
2546
2549
|
}
|
|
2547
|
-
return implementation;
|
|
2550
|
+
return wrapFetch(implementation);
|
|
2548
2551
|
};
|
|
2549
2552
|
var normalizeLegacyEndpoint = (endpoint) => {
|
|
2550
2553
|
endpoint.search = "";
|
|
@@ -5719,7 +5722,7 @@ var requireFetch2 = (provided) => {
|
|
|
5719
5722
|
"A Fetch API implementation is required in this runtime"
|
|
5720
5723
|
);
|
|
5721
5724
|
}
|
|
5722
|
-
return implementation;
|
|
5725
|
+
return wrapFetch(implementation);
|
|
5723
5726
|
};
|
|
5724
5727
|
var cloudEndpoint = (value) => {
|
|
5725
5728
|
let endpoint;
|
|
@@ -6460,7 +6463,7 @@ var normalizeBridgeConfig = (config) => {
|
|
|
6460
6463
|
allowUnauthenticatedBuild,
|
|
6461
6464
|
minimumQuoteValiditySeconds,
|
|
6462
6465
|
timeoutMs,
|
|
6463
|
-
fetch: implementation
|
|
6466
|
+
fetch: wrapFetch(implementation)
|
|
6464
6467
|
});
|
|
6465
6468
|
};
|
|
6466
6469
|
var requestSignal = (timeoutMs, external) => {
|