@sanity/client 6.2.0-fetch.1 → 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.
@@ -161,7 +161,10 @@ function requestOptions(config) {
161
161
  proxy: overrides.proxy || config.proxy,
162
162
  json: true,
163
163
  withCredentials,
164
- fetch: overrides.fetch || config.fetch
164
+ fetch: typeof overrides.fetch === "object" && typeof config.fetch === "object" ? {
165
+ ...config.fetch,
166
+ ...overrides.fetch
167
+ } : overrides.fetch || config.fetch
165
168
  });
166
169
  }
167
170
  function getSelection(sel) {