@sanity/client 0.0.0-dev.0 → 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.0";
7
+ var version = "0.0.0-dev.2";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
@@ -797,8 +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
- overlayDrafts: true,
801
- ...options.query
800
+ ...options.query,
801
+ params: {
802
+ ...(options.query.params || {}),
803
+ draftMode: true
804
+ }
802
805
  };
803
806
  }
804
807
  const reqOptions = requestOptions(config, Object.assign({}, options, {