@fusebase/fusebase-gate-sdk 2.2.13-sdk.9 → 2.2.14
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.
|
@@ -88,7 +88,7 @@ function buildQueryString(query) {
|
|
|
88
88
|
* Create SDK client
|
|
89
89
|
*/
|
|
90
90
|
function createClient(config) {
|
|
91
|
-
const { baseUrl, auth, defaultHeaders = {}, timeout = 30000 } = config;
|
|
91
|
+
const { baseUrl, auth, defaultHeaders = {}, timeout = 30000, credentials, } = config;
|
|
92
92
|
// Build authorization header
|
|
93
93
|
const authHeader = {};
|
|
94
94
|
if (auth === null || auth === void 0 ? void 0 : auth.authorization) {
|
|
@@ -180,6 +180,7 @@ function createClient(config) {
|
|
|
180
180
|
method,
|
|
181
181
|
headers: requestHeaders,
|
|
182
182
|
body: requestBody,
|
|
183
|
+
credentials,
|
|
183
184
|
signal: controller.signal,
|
|
184
185
|
});
|
|
185
186
|
clearTimeout(timeoutId);
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -22,6 +22,11 @@ export interface ClientConfig {
|
|
|
22
22
|
* Request timeout in milliseconds (default: 30000)
|
|
23
23
|
*/
|
|
24
24
|
timeout?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Fetch credentials mode
|
|
27
|
+
* Use "include" to send cookies on cross-origin requests.
|
|
28
|
+
*/
|
|
29
|
+
credentials?: RequestCredentials;
|
|
25
30
|
}
|
|
26
31
|
/**
|
|
27
32
|
* Authentication configuration
|
package/package.json
CHANGED
package/release-notes/latest.md
CHANGED