@sanity/client 6.0.1 → 6.1.0-perspective.1
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 +4 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/data/dataMethods.ts +4 -0
- package/src/types.ts +4 -0
- package/umd/sanityClient.js +6 -0
- package/umd/sanityClient.min.js +3 -3
package/dist/index.browser.cjs
CHANGED
|
@@ -834,6 +834,12 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
834
834
|
...options.query
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
|
+
if (typeof config.perspective === "string" && config.perspective !== "all") {
|
|
838
|
+
options.query = {
|
|
839
|
+
perspective: config.perspective,
|
|
840
|
+
...options.query
|
|
841
|
+
};
|
|
842
|
+
}
|
|
837
843
|
if (config.resultSourceMap) {
|
|
838
844
|
options.query = {
|
|
839
845
|
resultSourceMap: true,
|