@sanity/client 0.0.0-dev.1 → 0.0.0-dev.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
@@ -15,7 +15,7 @@ function _interopDefaultCompat(e) {
15
15
  }
16
16
  var polyfilledEventSource__default = /*#__PURE__*/_interopDefaultCompat(polyfilledEventSource);
17
17
  var name = "@sanity/client";
18
- var version = "0.0.0-dev.1";
18
+ var version = "0.0.0-dev.2";
19
19
  const middleware = [middleware$1.debug({
20
20
  verbose: true,
21
21
  namespace: "sanity:client"
@@ -808,12 +808,11 @@ function _requestObservable(client, httpRequest, options) {
808
808
  console.error("You need to set `apiVersion` to `X` to use `unstable_overlayDrafts");
809
809
  }
810
810
  options.query = {
811
+ ...options.query,
811
812
  params: {
812
- ...(options.query.params || {
813
- draftMode: true
814
- })
815
- },
816
- ...options.query
813
+ ...(options.query.params || {}),
814
+ draftMode: true
815
+ }
817
816
  };
818
817
  }
819
818
  const reqOptions = requestOptions(config, Object.assign({}, options, {