@sanity/client 6.22.2-bundle-perspective-1 → 6.22.2-bundle-perspective-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.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.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/config.ts +1 -1
- package/umd/sanityClient.js +1 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -520,7 +520,7 @@ const validateApiPerspective = function(perspective) {
|
|
|
520
520
|
);
|
|
521
521
|
}
|
|
522
522
|
}, validateApiBundlePerspective = function(perspective, bundlePerspective) {
|
|
523
|
-
if (perspective !== "raw" && bundlePerspective)
|
|
523
|
+
if (perspective && perspective !== "raw" && bundlePerspective)
|
|
524
524
|
throw new TypeError(
|
|
525
525
|
"Invalid, perspective and bundlePerspective parameters are mutually exclusive"
|
|
526
526
|
);
|