@sanity/client 6.6.0 → 6.7.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.6.0";
11
+ var version = "6.7.0";
12
12
  const middleware = [middleware$1.debug({
13
13
  verbose: true,
14
14
  namespace: "sanity:client"
@@ -992,9 +992,10 @@ function _requestObservable(client, httpRequest, options) {
992
992
  };
993
993
  }
994
994
  if (["GET", "HEAD", "POST"].indexOf(options.method || "GET") >= 0 && uri.indexOf("/data/query/") === 0) {
995
- if ((_a = options.resultSourceMap) != null ? _a : config.resultSourceMap) {
995
+ const resultSourceMap = (_a = options.resultSourceMap) != null ? _a : config.resultSourceMap;
996
+ if (resultSourceMap !== void 0 && resultSourceMap !== false) {
996
997
  options.query = {
997
- resultSourceMap: true,
998
+ resultSourceMap,
998
999
  ...options.query
999
1000
  };
1000
1001
  }