@maptiler/geocoding-control 0.0.57 → 0.0.58
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/leaflet.js +630 -628
- package/dist/leaflet.umd.js +4 -4
- package/dist/maplibregl.js +630 -628
- package/dist/maplibregl.umd.js +4 -4
- package/package.json +1 -1
- package/src/lib/GeocodingControl.svelte +9 -3
package/package.json
CHANGED
|
@@ -380,13 +380,19 @@
|
|
|
380
380
|
|
|
381
381
|
abortController?.abort();
|
|
382
382
|
|
|
383
|
-
|
|
383
|
+
const ac = new AbortController();
|
|
384
|
+
|
|
385
|
+
abortController = ac;
|
|
384
386
|
|
|
385
387
|
let res: Response;
|
|
386
388
|
|
|
387
389
|
try {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
+
console.log("fetch");
|
|
391
|
+
|
|
392
|
+
res = await fetch(url, { signal: ac.signal }).finally(() => {
|
|
393
|
+
if (ac === abortController) {
|
|
394
|
+
abortController = undefined;
|
|
395
|
+
}
|
|
390
396
|
});
|
|
391
397
|
} catch (e) {
|
|
392
398
|
if (e && typeof e === "object" && (e as any).name === "AbortError") {
|