@sanity/client 6.0.0 → 6.1.0-scope.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-scope.0";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
@@ -847,6 +847,12 @@ function _requestObservable(client, httpRequest, options) {
847
847
  ...options.query
848
848
  };
849
849
  }
850
+ if (config.scope) {
851
+ options.query = {
852
+ scope: config.scope,
853
+ ...options.query
854
+ };
855
+ }
850
856
  const reqOptions = requestOptions(config, Object.assign({}, options, {
851
857
  url: _getUrl(client, uri, useCdn)
852
858
  }));