@sanity/client 6.4.2 → 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.js CHANGED
@@ -4,7 +4,7 @@ export { adapter as unstable__adapter, environment as unstable__environment } fr
4
4
  import { Observable, lastValueFrom } from 'rxjs';
5
5
  import { map, filter } from 'rxjs/operators';
6
6
  var name = "@sanity/client";
7
- var version = "6.4.2";
7
+ var version = "6.4.4";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
@@ -269,13 +269,13 @@ const encodeQueryString = _ref2 => {
269
269
  tag,
270
270
  ...opts
271
271
  } = options;
272
- if (tag) searchParams.set("tag", tag);
273
- searchParams.set("query", query);
272
+ if (tag) searchParams.append("tag", tag);
273
+ searchParams.append("query", query);
274
274
  for (const [key, value] of Object.entries(params)) {
275
- searchParams.set("$".concat(key), JSON.stringify(value));
275
+ searchParams.append("$".concat(key), JSON.stringify(value));
276
276
  }
277
277
  for (const [key, value] of Object.entries(opts)) {
278
- if (value) searchParams.set(key, "".concat(value));
278
+ if (value) searchParams.append(key, "".concat(value));
279
279
  }
280
280
  return "?".concat(searchParams);
281
281
  };