@maptiler/geocoding-control 0.0.58 → 0.0.60

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.
@@ -705,7 +705,7 @@ function Gl(r, t, e) {
705
705
  async function os(x, { byId: Ft = !1, exact: Fn = !1 } = {}) {
706
706
  e(16, hr = void 0);
707
707
  const zi = Zs(), Ge = new URLSearchParams();
708
- m && Ge.set("language", Array.isArray(m) ? m.join(",") : m), Xt && Ge.set("types", Xt.join(",")), zi || (p && Ge.set("bbox", p.map((Br) => Br.toFixed(6)).join(",")), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt)), Ft || (g && Ge.set("proximity", g.map((Br) => Br.toFixed(6)).join(",")), (Fn || !E) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
708
+ m != null && Ge.set("language", Array.isArray(m) ? m.join(",") : m), Xt && Ge.set("types", Xt.join(",")), zi || (p && Ge.set("bbox", p.map((Br) => Br.toFixed(6)).join(",")), yt && Ge.set("country", Array.isArray(yt) ? yt.join(",") : yt)), Ft || (g && Ge.set("proximity", g.map((Br) => Br.toFixed(6)).join(",")), (Fn || !E) && Ge.set("autocomplete", "false"), Ge.set("fuzzyMatch", String(ut))), X !== void 0 && Ge.set("limit", String(X)), Ge.set("key", u);
709
709
  const Fr = "https://api.maptiler.com/geocoding/" + encodeURIComponent(x) + ".json?" + Ge.toString();
710
710
  if (Fr === Qs) {
711
711
  Ft ? (e(12, J = void 0), e(44, it = _o[0])) : e(12, J = _o);
@@ -716,7 +716,7 @@ function Gl(r, t, e) {
716
716
  e(17, Ar = ve);
717
717
  let us;
718
718
  try {
719
- console.log("fetch"), us = await fetch(Fr, { signal: ve.signal }).finally(() => {
719
+ us = await fetch(Fr, { signal: ve.signal }).finally(() => {
720
720
  ve === Ar && e(17, Ar = void 0);
721
721
  });
722
722
  } catch (Br) {