@sanity/client 6.22.2-bundle-perspective → 6.22.2-bundle-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 +5 -1
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +5 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data/dataMethods.ts +5 -1
- package/umd/sanityClient.js +5 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/index.js
CHANGED
|
@@ -743,7 +743,11 @@ function _requestObservable(client, httpRequest, options) {
|
|
|
743
743
|
const perspective = options.perspective || config.perspective;
|
|
744
744
|
typeof perspective == "string" && perspective !== "raw" && (validateApiPerspective(perspective), options.query = { perspective, ...options.query }, perspective === "previewDrafts" && useCdn && (useCdn = !1, printCdnPreviewDraftsWarning()));
|
|
745
745
|
const bundlePerspective = options.bundlePerspective || config.bundlePerspective;
|
|
746
|
-
Array.isArray(bundlePerspective) && bundlePerspective.length > 0 && (validateApiBundlePerspective(perspective, bundlePerspective), options.query = {
|
|
746
|
+
Array.isArray(bundlePerspective) && bundlePerspective.length > 0 && (validateApiBundlePerspective(perspective, bundlePerspective), options.query = {
|
|
747
|
+
perspective: void 0,
|
|
748
|
+
bundlePerspective: bundlePerspective.join(","),
|
|
749
|
+
...options.query
|
|
750
|
+
}), options.lastLiveEventId && (options.query = { ...options.query, lastLiveEventId: options.lastLiveEventId }), options.returnQuery === !1 && (options.query = { returnQuery: "false", ...options.query });
|
|
747
751
|
}
|
|
748
752
|
const reqOptions = requestOptions(
|
|
749
753
|
config,
|
|
@@ -1533,7 +1537,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
1533
1537
|
return printNoDefaultExport(), createClient2(config);
|
|
1534
1538
|
};
|
|
1535
1539
|
}
|
|
1536
|
-
var name = "@sanity/client", version = "6.22.2-bundle-perspective";
|
|
1540
|
+
var name = "@sanity/client", version = "6.22.2-bundle-perspective-1";
|
|
1537
1541
|
const middleware = [
|
|
1538
1542
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
1539
1543
|
headers({ "User-Agent": `${name} ${version}` }),
|