@sanity/client 6.0.1 → 6.0.2-beta.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.browser.cjs +7 -5
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +7 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/data/dataMethods.ts +4 -2
- package/umd/sanityClient.js +13 -7
- package/umd/sanityClient.min.js +3 -3
package/dist/index.browser.cjs
CHANGED
|
@@ -834,11 +834,13 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
834
834
|
...options.query
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
-
if (
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
837
|
+
if (canUseCdn) {
|
|
838
|
+
if (config.resultSourceMap) {
|
|
839
|
+
options.query = {
|
|
840
|
+
resultSourceMap: true,
|
|
841
|
+
...options.query
|
|
842
|
+
};
|
|
843
|
+
}
|
|
842
844
|
}
|
|
843
845
|
const reqOptions = requestOptions(config, Object.assign({}, options, {
|
|
844
846
|
url: _getUrl(client, uri, useCdn)
|