@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.
package/dist/index.cjs CHANGED
@@ -8,7 +8,7 @@ var getIt = require('get-it');
8
8
  var rxjs = require('rxjs');
9
9
  var operators = require('rxjs/operators');
10
10
  var name = "@sanity/client";
11
- var version = "6.2.0-fetch.1";
11
+ var version = "6.2.0-fetch.2";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
@@ -168,7 +168,10 @@ function requestOptions(config) {
168
168
  proxy: overrides.proxy || config.proxy,
169
169
  json: true,
170
170
  withCredentials,
171
- fetch: overrides.fetch || config.fetch
171
+ fetch: typeof overrides.fetch === "object" && typeof config.fetch === "object" ? {
172
+ ...config.fetch,
173
+ ...overrides.fetch
174
+ } : overrides.fetch || config.fetch
172
175
  });
173
176
  }
174
177
  function getSelection(sel) {