intl-tel-input 24.7.0 → 24.8.1

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/vue/README.md CHANGED
@@ -34,7 +34,7 @@ See the [Validation demo](https://github.com/jackocnr/intl-tel-input/blob/master
34
34
  "vue:demo": "vite --config vue/demo/[demo variant]/vite.config.js"
35
35
  ```
36
36
 
37
- A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.7.0/build/js/utils.js"`.
37
+ A note on the utils script (~260KB): if you're lazy loading the IntlTelInput chunk (and so less worried about filesize) then you can just import IntlTelInput from `"intl-tel-input/vueWithUtils"`, to include the utils script. Alternatively, if you use the main `"intl-tel-input/vue"` import, then you should couple this with the `utilsScript` initialisation option - you will need to host the [utils.js](https://github.com/jackocnr/intl-tel-input/blob/master/build/js/utils.js) file, and then set the `utilsScript` option to that URL, or alternatively just point it to a CDN hosted version e.g. `"https://cdn.jsdelivr.net/npm/intl-tel-input@24.8.1/build/js/utils.js"`.
38
38
 
39
39
  ## Props
40
40
  Here's a list of all of the current props you can pass to the IntlTelInput Vue component.
@@ -2465,8 +2465,7 @@ const W = (u) => {
2465
2465
  );
2466
2466
  else if (typeof u == "function")
2467
2467
  try {
2468
- if (t = u(), !(t instanceof Promise))
2469
- throw new TypeError(`The function passed to loadUtils must return a promise for the utilities module, not ${typeof t}`);
2468
+ t = Promise.resolve(u());
2470
2469
  } catch (e) {
2471
2470
  return Promise.reject(e);
2472
2471
  }
@@ -2503,7 +2502,7 @@ const W = (u) => {
2503
2502
  loadUtils: W,
2504
2503
  startedLoadingUtilsScript: !1,
2505
2504
  startedLoadingAutoCountry: !1,
2506
- version: "24.7.0"
2505
+ version: "24.8.1"
2507
2506
  }
2508
2507
  ), J = {
2509
2508
  __name: "IntlTelInput",