@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.cjs
CHANGED
|
@@ -253,13 +253,13 @@ const encodeQueryString = _ref2 => {
|
|
|
253
253
|
tag,
|
|
254
254
|
...opts
|
|
255
255
|
} = options;
|
|
256
|
-
if (tag) searchParams.
|
|
257
|
-
searchParams.
|
|
256
|
+
if (tag) searchParams.append("tag", tag);
|
|
257
|
+
searchParams.append("query", query);
|
|
258
258
|
for (const [key, value] of Object.entries(params)) {
|
|
259
|
-
searchParams.
|
|
259
|
+
searchParams.append("$".concat(key), JSON.stringify(value));
|
|
260
260
|
}
|
|
261
261
|
for (const [key, value] of Object.entries(opts)) {
|
|
262
|
-
if (value) searchParams.
|
|
262
|
+
if (value) searchParams.append(key, "".concat(value));
|
|
263
263
|
}
|
|
264
264
|
return "?".concat(searchParams);
|
|
265
265
|
};
|