@sanity/client 6.0.1 → 6.1.0-scope.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 +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 +8 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data/dataMethods.ts +4 -0
- package/src/types.ts +9 -0
- package/umd/sanityClient.js +6 -0
- package/umd/sanityClient.min.js +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -836,6 +836,12 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
836
836
|
...options.query
|
|
837
837
|
};
|
|
838
838
|
}
|
|
839
|
+
if (config.scope) {
|
|
840
|
+
options.query = {
|
|
841
|
+
scope: config.scope,
|
|
842
|
+
...options.query
|
|
843
|
+
};
|
|
844
|
+
}
|
|
839
845
|
const reqOptions = requestOptions(config, Object.assign({}, options, {
|
|
840
846
|
url: _getUrl(client, uri, useCdn)
|
|
841
847
|
}));
|