@sanity/client
Advanced tools
Comparing version 6.22.2-bundle-perspective-1 to 6.22.2-bundle-perspective-2
@@ -523,3 +523,3 @@ import { getIt } from "get-it"; | ||
}, validateApiBundlePerspective = function(perspective, bundlePerspective) { | ||
if (perspective !== "raw" && bundlePerspective) | ||
if (perspective && perspective !== "raw" && bundlePerspective) | ||
throw new TypeError( | ||
@@ -526,0 +526,0 @@ "Invalid, perspective and bundlePerspective parameters are mutually exclusive" |
@@ -523,3 +523,3 @@ import { getIt } from "get-it"; | ||
}, validateApiBundlePerspective = function(perspective, bundlePerspective) { | ||
if (perspective !== "raw" && bundlePerspective) | ||
if (perspective && perspective !== "raw" && bundlePerspective) | ||
throw new TypeError( | ||
@@ -1541,3 +1541,3 @@ "Invalid, perspective and bundlePerspective parameters are mutually exclusive" | ||
} | ||
var name = "@sanity/client", version = "6.22.2-bundle-perspective-1"; | ||
var name = "@sanity/client", version = "6.22.2-bundle-perspective-2"; | ||
const middleware = [ | ||
@@ -1544,0 +1544,0 @@ debug({ verbose: !0, namespace: "sanity:client" }), |
{ | ||
"name": "@sanity/client", | ||
"version": "6.22.2-bundle-perspective-1", | ||
"version": "6.22.2-bundle-perspective-2", | ||
"description": "Client for retrieving, creating and patching data from Sanity.io", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -48,3 +48,3 @@ import {generateHelpUrl} from './generateHelpUrl' | ||
) { | ||
if (perspective !== 'raw' && bundlePerspective) { | ||
if (perspective && perspective !== 'raw' && bundlePerspective) { | ||
throw new TypeError( | ||
@@ -51,0 +51,0 @@ 'Invalid, perspective and bundlePerspective parameters are mutually exclusive', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2189626