@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.
@@ -968,9 +968,10 @@ function _requestObservable(client, httpRequest, options) {
968
968
  };
969
969
  }
970
970
  if (["GET", "HEAD", "POST"].indexOf(options.method || "GET") >= 0 && uri.indexOf("/data/query/") === 0) {
971
- if ((_a = options.resultSourceMap) != null ? _a : config.resultSourceMap) {
971
+ const resultSourceMap = (_a = options.resultSourceMap) != null ? _a : config.resultSourceMap;
972
+ if (resultSourceMap !== void 0 && resultSourceMap !== false) {
972
973
  options.query = {
973
- resultSourceMap: true,
974
+ resultSourceMap,
974
975
  ...options.query
975
976
  };
976
977
  }