@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.js CHANGED
@@ -4,7 +4,7 @@ import { Observable, lastValueFrom } from 'rxjs';
4
4
  import { map, filter } from 'rxjs/operators';
5
5
  import polyfilledEventSource from '@sanity/eventsource';
6
6
  var name = "@sanity/client";
7
- var version = "0.0.0-dev.1";
7
+ var version = "0.0.0-dev.2";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
@@ -797,12 +797,11 @@ function _requestObservable(client, httpRequest, options) {
797
797
  console.error("You need to set `apiVersion` to `X` to use `unstable_overlayDrafts");
798
798
  }
799
799
  options.query = {
800
+ ...options.query,
800
801
  params: {
801
- ...(options.query.params || {
802
- draftMode: true
803
- })
804
- },
805
- ...options.query
802
+ ...(options.query.params || {}),
803
+ draftMode: true
804
+ }
806
805
  };
807
806
  }
808
807
  const reqOptions = requestOptions(config, Object.assign({}, options, {