gemi 0.30.1 → 0.30.2

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.
@@ -434,7 +434,9 @@ function useMutation(method, url, ...args) {
434
434
  });
435
435
  const [inputs = {}, options = defaultOptions] = args ?? [];
436
436
  const params = "params" in inputs ? { ..._params, ...inputs.params } : _params;
437
- const finalUrl = applyParams(String(url).replace(`${method}:`, ""), params);
437
+ const search = "search" in inputs ? inputs.search : {};
438
+ const searchParams = new URLSearchParams(search);
439
+ const finalUrl = [applyParams(String(url).replace(`${method}:`, ""), params), searchParams.toString()].filter(Boolean).join("?");
438
440
  let body = null;
439
441
  const contentType = typeof input === "undefined" || input instanceof FormData ? {} : { "Content-Type": "application/json" };
440
442
  if (input instanceof FormData) {