@sanity/client 7.4.0 → 7.4.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 +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 +2 -2
- package/src/data/encodeQueryString.ts +1 -1
- package/umd/sanityClient.js +1 -1
- package/umd/sanityClient.min.js +1 -1
package/dist/index.js
CHANGED
|
@@ -671,7 +671,7 @@ const encodeQueryString = ({
|
|
|
671
671
|
const searchParams = new URLSearchParams(), { tag, includeMutations, returnQuery, ...opts } = options;
|
|
672
672
|
tag && searchParams.append("tag", tag), searchParams.append("query", query);
|
|
673
673
|
for (const [key, value] of Object.entries(params))
|
|
674
|
-
searchParams.append(`$${key}`, JSON.stringify(value));
|
|
674
|
+
value !== void 0 && searchParams.append(`$${key}`, JSON.stringify(value));
|
|
675
675
|
for (const [key, value] of Object.entries(opts))
|
|
676
676
|
value && searchParams.append(key, `${value}`);
|
|
677
677
|
return returnQuery === !1 && searchParams.append("returnQuery", "false"), includeMutations === !1 && searchParams.append("includeMutations", "false"), `?${searchParams}`;
|
|
@@ -2510,7 +2510,7 @@ function defineDeprecatedCreateClient(createClient2) {
|
|
|
2510
2510
|
return printNoDefaultExport(), createClient2(config);
|
|
2511
2511
|
};
|
|
2512
2512
|
}
|
|
2513
|
-
var name = "@sanity/client", version = "7.4.
|
|
2513
|
+
var name = "@sanity/client", version = "7.4.1";
|
|
2514
2514
|
const middleware = [
|
|
2515
2515
|
debug({ verbose: !0, namespace: "sanity:client" }),
|
|
2516
2516
|
headers({ "User-Agent": `${name} ${version}` }),
|