@intl-tel-input/vue 28.0.5 → 28.0.6
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.
|
@@ -2215,15 +2215,22 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2215
2215
|
this.#oe();
|
|
2216
2216
|
return;
|
|
2217
2217
|
}
|
|
2218
|
-
if (this.#e.setLoading(!0), !Q.startedLoadingAutoCountry && (Q.startedLoadingAutoCountry = !0, typeof this.#t.geoIpLookup == "function"))
|
|
2219
|
-
let t
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2218
|
+
if (this.#e.setLoading(!0), !Q.startedLoadingAutoCountry && (Q.startedLoadingAutoCountry = !0, typeof this.#t.geoIpLookup == "function")) {
|
|
2219
|
+
let t;
|
|
2220
|
+
try {
|
|
2221
|
+
let n = await Promise.race([this.#t.geoIpLookup(), new Promise((e, n) => {
|
|
2222
|
+
t = setTimeout(() => n(/* @__PURE__ */ Error("intl-tel-input: geoIpLookup timed out after 10s")), 1e4);
|
|
2223
|
+
})]), r = typeof n == "string" ? n.toLowerCase() : "";
|
|
2224
|
+
if (!m(r)) {
|
|
2225
|
+
Q.startedLoadingAutoCountry = !1, e.forEachInstance("handleAutoCountryFailure");
|
|
2226
|
+
return;
|
|
2227
|
+
}
|
|
2228
|
+
Q.autoCountry = r, setTimeout(() => e.forEachInstance("handleAutoCountryLoaded"));
|
|
2229
|
+
} catch {
|
|
2230
|
+
Q.startedLoadingAutoCountry = !1, e.forEachInstance("handleAutoCountryFailure");
|
|
2231
|
+
} finally {
|
|
2232
|
+
t !== void 0 && clearTimeout(t);
|
|
2223
2233
|
}
|
|
2224
|
-
Q.autoCountry = n, setTimeout(() => e.forEachInstance("handleAutoCountryLoaded"));
|
|
2225
|
-
} catch {
|
|
2226
|
-
e.forEachInstance("handleAutoCountryFailure");
|
|
2227
2234
|
}
|
|
2228
2235
|
}
|
|
2229
2236
|
#D() {
|
|
@@ -2630,7 +2637,7 @@ var p = new Set(f.map((e) => e.iso2)), m = (e) => p.has(e), h = f, g = {
|
|
|
2630
2637
|
},
|
|
2631
2638
|
startedLoadingUtils: !1,
|
|
2632
2639
|
startedLoadingAutoCountry: !1,
|
|
2633
|
-
version: "28.0.
|
|
2640
|
+
version: "28.0.6",
|
|
2634
2641
|
NUMBER_FORMAT: M,
|
|
2635
2642
|
NUMBER_TYPE: N,
|
|
2636
2643
|
VALIDATION_ERROR: P
|
package/dist/IntlTelInput.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intl-tel-input/vue",
|
|
3
|
-
"version": "28.0.
|
|
3
|
+
"version": "28.0.6",
|
|
4
4
|
"description": "A Vue component for intl-tel-input, for entering, formatting, and validating international telephone numbers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"intl-tel-input": "^28.0.
|
|
27
|
+
"intl-tel-input": "^28.0.6"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"vue": "^3.0.0"
|