@sanity/client 6.0.0 → 6.1.0-perspective.0

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.0.0";
11
+ var version = "6.1.0-perspective.0";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
@@ -841,6 +841,12 @@ function _requestObservable(client, httpRequest, options) {
841
841
  ...options.query
842
842
  };
843
843
  }
844
+ if (config.perspective === "previewDrafts") {
845
+ options.query = {
846
+ perspective: config.perspective,
847
+ ...options.query
848
+ };
849
+ }
844
850
  if (config.resultSourceMap) {
845
851
  options.query = {
846
852
  resultSourceMap: true,