@sanity/client
Advanced tools
Comparing version 6.22.2-bundle-perspective to 6.22.2-bundle-perspective-1
@@ -746,3 +746,7 @@ import { getIt } from "get-it"; | ||
const bundlePerspective = options.bundlePerspective || config.bundlePerspective; | ||
Array.isArray(bundlePerspective) && bundlePerspective.length > 0 && (validateApiBundlePerspective(perspective, bundlePerspective), options.query = { perspective: void 0, bundlePerspective, ...options.query }), options.lastLiveEventId && (options.query = { ...options.query, lastLiveEventId: options.lastLiveEventId }), options.returnQuery === !1 && (options.query = { returnQuery: "false", ...options.query }); | ||
Array.isArray(bundlePerspective) && bundlePerspective.length > 0 && (validateApiBundlePerspective(perspective, bundlePerspective), options.query = { | ||
perspective: void 0, | ||
bundlePerspective: bundlePerspective.join(","), | ||
...options.query | ||
}), options.lastLiveEventId && (options.query = { ...options.query, lastLiveEventId: options.lastLiveEventId }), options.returnQuery === !1 && (options.query = { returnQuery: "false", ...options.query }); | ||
} | ||
@@ -749,0 +753,0 @@ const reqOptions = requestOptions( |
@@ -746,3 +746,7 @@ import { getIt } from "get-it"; | ||
const bundlePerspective = options.bundlePerspective || config.bundlePerspective; | ||
Array.isArray(bundlePerspective) && bundlePerspective.length > 0 && (validateApiBundlePerspective(perspective, bundlePerspective), options.query = { perspective: void 0, bundlePerspective, ...options.query }), options.lastLiveEventId && (options.query = { ...options.query, lastLiveEventId: options.lastLiveEventId }), options.returnQuery === !1 && (options.query = { returnQuery: "false", ...options.query }); | ||
Array.isArray(bundlePerspective) && bundlePerspective.length > 0 && (validateApiBundlePerspective(perspective, bundlePerspective), options.query = { | ||
perspective: void 0, | ||
bundlePerspective: bundlePerspective.join(","), | ||
...options.query | ||
}), options.lastLiveEventId && (options.query = { ...options.query, lastLiveEventId: options.lastLiveEventId }), options.returnQuery === !1 && (options.query = { returnQuery: "false", ...options.query }); | ||
} | ||
@@ -1537,3 +1541,3 @@ const reqOptions = requestOptions( | ||
} | ||
var name = "@sanity/client", version = "6.22.2-bundle-perspective"; | ||
var name = "@sanity/client", version = "6.22.2-bundle-perspective-1"; | ||
const middleware = [ | ||
@@ -1540,0 +1544,0 @@ debug({ verbose: !0, namespace: "sanity:client" }), |
{ | ||
"name": "@sanity/client", | ||
"version": "6.22.2-bundle-perspective", | ||
"version": "6.22.2-bundle-perspective-1", | ||
"description": "Client for retrieving, creating and patching data from Sanity.io", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -422,3 +422,7 @@ import {from, type MonoTypeOperatorFunction, Observable} from 'rxjs' | ||
validateApiBundlePerspective(perspective, bundlePerspective) | ||
options.query = {perspective: undefined, bundlePerspective, ...options.query} | ||
options.query = { | ||
perspective: undefined, | ||
bundlePerspective: bundlePerspective.join(','), | ||
...options.query, | ||
} | ||
} | ||
@@ -425,0 +429,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2189453
24929
5