@sanity/client 6.2.0-fetch.0 → 6.2.0-fetch.2
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.browser.cjs +5 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +5 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/http/requestOptions.ts +4 -0
- package/src/types.ts +13 -0
- package/umd/sanityClient.js +5 -1
- package/umd/sanityClient.min.js +3 -3
package/dist/index.browser.cjs
CHANGED
|
@@ -160,7 +160,11 @@ function requestOptions(config) {
|
|
|
160
160
|
timeout: typeof timeout === "undefined" ? 5 * 60 * 1e3 : timeout,
|
|
161
161
|
proxy: overrides.proxy || config.proxy,
|
|
162
162
|
json: true,
|
|
163
|
-
withCredentials
|
|
163
|
+
withCredentials,
|
|
164
|
+
fetch: typeof overrides.fetch === "object" && typeof config.fetch === "object" ? {
|
|
165
|
+
...config.fetch,
|
|
166
|
+
...overrides.fetch
|
|
167
|
+
} : overrides.fetch || config.fetch
|
|
164
168
|
});
|
|
165
169
|
}
|
|
166
170
|
function getSelection(sel) {
|