@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.js
CHANGED
|
@@ -830,11 +830,13 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
830
830
|
...options.query
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
|
-
if (
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
833
|
+
if (canUseCdn) {
|
|
834
|
+
if (config.resultSourceMap) {
|
|
835
|
+
options.query = {
|
|
836
|
+
resultSourceMap: true,
|
|
837
|
+
...options.query
|
|
838
|
+
};
|
|
839
|
+
}
|
|
838
840
|
}
|
|
839
841
|
const reqOptions = requestOptions(config, Object.assign({}, options, {
|
|
840
842
|
url: _getUrl(client, uri, useCdn)
|