@sanity/client 6.17.3-canary.1 → 6.17.3-canary.2
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 +1 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +9 -9
- package/dist/index.browser.d.ts +9 -9
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/data/dataMethods.ts +1 -1
- package/src/data/live.ts +2 -2
- package/src/types.ts +3 -3
- package/umd/sanityClient.js +1 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/index.browser.cjs
CHANGED
|
@@ -619,7 +619,7 @@ const encodeQueryString = ({
|
|
|
619
619
|
skipCrossDatasetReferenceValidation: options.skipCrossDatasetReferenceValidation
|
|
620
620
|
}), isResponse = (event) => event.type === "response", getBody = (event) => event.body, indexBy = (docs, attr) => docs.reduce((indexed, doc) => (indexed[attr(doc)] = doc, indexed), /* @__PURE__ */ Object.create(null)), getQuerySizeLimit = 11264;
|
|
621
621
|
function _fetch(client, httpRequest, _stega, query, __params = {}, options = {}) {
|
|
622
|
-
const _params = options.
|
|
622
|
+
const _params = options.livePos ? { ...__params, _: options.livePos } : __params, stega = "stega" in options ? {
|
|
623
623
|
..._stega || {},
|
|
624
624
|
...typeof options.stega == "boolean" ? { enabled: options.stega } : options.stega || {}
|
|
625
625
|
} : _stega, params = stega.enabled ? stegaClean.stegaClean(_params) : _params, mapResponse = options.filterResponse === !1 ? (res) => res : (res) => res.result, { cache, next, ...opts } = {
|