@sanity/client 0.0.0-dev.4 → 0.0.0-dev.6

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.d.ts CHANGED
@@ -297,7 +297,8 @@ export declare interface ClientConfig {
297
297
  * @deprecated Don't use
298
298
  */
299
299
  requester?: Requester
300
- encodeStegaSourceMap?: boolean
300
+ resultSourceMap?: boolean
301
+ encodeHackySourceMap?: boolean
301
302
  }
302
303
 
303
304
  /** @public */
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export { adapter as unstable__adapter, environment as unstable__environment } fr
4
4
  import { Observable, lastValueFrom } from 'rxjs';
5
5
  import { map, filter } from 'rxjs/operators';
6
6
  var name = "@sanity/client";
7
- var version = "0.0.0-dev.4";
7
+ var version = "0.0.0-dev.6";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
@@ -813,7 +813,13 @@ function _requestObservable(client, httpRequest, options) {
813
813
  ...options.query
814
814
  };
815
815
  }
816
- if (config.encodeStegaSourceMap) {
816
+ if (config.resultSourceMap) {
817
+ options.query = {
818
+ resultSourceMap: true,
819
+ ...options.query
820
+ };
821
+ }
822
+ if (config.encodeHackySourceMap) {
817
823
  options.query = {
818
824
  encodeHackySourceMap: true,
819
825
  ...options.query