@sanity/client 6.17.3-canary.0 → 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 +2 -2
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +10 -7
- package/dist/index.browser.d.ts +10 -7
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/data/dataMethods.ts +3 -1
- package/src/data/live.ts +2 -2
- package/src/types.ts +4 -1
- package/umd/sanityClient.js +2 -2
- package/umd/sanityClient.min.js +1 -1
package/dist/index.browser.cjs
CHANGED
|
@@ -618,8 +618,8 @@ const encodeQueryString = ({
|
|
|
618
618
|
autoGenerateArrayKeys: options.autoGenerateArrayKeys,
|
|
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
|
-
function _fetch(client, httpRequest, _stega, query,
|
|
622
|
-
const stega = "stega" in options ? {
|
|
621
|
+
function _fetch(client, httpRequest, _stega, query, __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 } = {
|