@sanity/client 6.4.3 → 6.4.4
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 +4 -4
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/data/encodeQueryString.ts +5 -4
- package/umd/sanityClient.js +4 -4
- package/umd/sanityClient.min.js +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -249,13 +249,13 @@ const encodeQueryString = _ref2 => {
|
|
|
249
249
|
tag,
|
|
250
250
|
...opts
|
|
251
251
|
} = options;
|
|
252
|
-
if (tag) searchParams.
|
|
253
|
-
searchParams.
|
|
252
|
+
if (tag) searchParams.append("tag", tag);
|
|
253
|
+
searchParams.append("query", query);
|
|
254
254
|
for (const [key, value] of Object.entries(params)) {
|
|
255
|
-
searchParams.
|
|
255
|
+
searchParams.append("$".concat(key), JSON.stringify(value));
|
|
256
256
|
}
|
|
257
257
|
for (const [key, value] of Object.entries(opts)) {
|
|
258
|
-
if (value) searchParams.
|
|
258
|
+
if (value) searchParams.append(key, "".concat(value));
|
|
259
259
|
}
|
|
260
260
|
return "?".concat(searchParams);
|
|
261
261
|
};
|