@sanity/client 0.0.0-dev.5 → 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.browser.cjs +6 -0
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +6 -0
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/data/dataMethods.ts +5 -0
- package/src/types.ts +3 -0
- package/umd/sanityClient.js +6 -0
- package/umd/sanityClient.min.js +3 -3
package/dist/index.browser.cjs
CHANGED
|
@@ -814,6 +814,12 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
814
814
|
...options.query
|
|
815
815
|
};
|
|
816
816
|
}
|
|
817
|
+
if (config.encodeHackySourceMap) {
|
|
818
|
+
options.query = {
|
|
819
|
+
encodeHackySourceMap: true,
|
|
820
|
+
...options.query
|
|
821
|
+
};
|
|
822
|
+
}
|
|
817
823
|
const reqOptions = requestOptions(config, Object.assign({}, options, {
|
|
818
824
|
url: _getUrl(client, uri, useCdn)
|
|
819
825
|
}));
|