@settlemint/sdk-js 2.5.5-main172aa319 → 2.5.5-main29c0724f
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/settlemint.cjs +2 -2
- package/dist/settlemint.cjs.map +1 -1
- package/dist/settlemint.d.cts +23 -35
- package/dist/settlemint.d.ts +23 -35
- package/dist/settlemint.js +2 -2
- package/dist/settlemint.js.map +1 -1
- package/package.json +2 -2
package/dist/settlemint.cjs
CHANGED
|
@@ -2580,7 +2580,7 @@ function createSettleMintClient(options) {
|
|
|
2580
2580
|
const baseUrl = new URL(validatedOptions.instance).toString().replace(/\/$/, "");
|
|
2581
2581
|
const gqlClient = new graphql_request.GraphQLClient(`${baseUrl}/api/graphql`, {
|
|
2582
2582
|
headers: { "x-auth-token": validatedOptions.accessToken ?? "" },
|
|
2583
|
-
fetch: async (input, init) => {
|
|
2583
|
+
fetch: (async (input, init) => {
|
|
2584
2584
|
const response = await (0, __settlemint_sdk_utils_http.fetchWithRetry)(input, init);
|
|
2585
2585
|
const contentType = response.headers.get("content-type");
|
|
2586
2586
|
if (contentType?.includes("application/json") || contentType?.includes("application/graphql-response+json")) {
|
|
@@ -2591,7 +2591,7 @@ function createSettleMintClient(options) {
|
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
2593
|
return response;
|
|
2594
|
-
}
|
|
2594
|
+
})
|
|
2595
2595
|
});
|
|
2596
2596
|
return {
|
|
2597
2597
|
workspace: {
|