@karta.io/utils 0.33.3 → 0.33.4

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/index.cjs CHANGED
@@ -530,6 +530,8 @@ function useLogger(scope, options) {
530
530
  }
531
531
 
532
532
  function validatePhone(rule, value) {
533
+ if (!value)
534
+ return true;
533
535
  const phoneNumber = libphonenumberJs.parsePhoneNumberFromString(value);
534
536
  return phoneNumber ? phoneNumber.isValid() : false;
535
537
  }
package/dist/index.mjs CHANGED
@@ -528,6 +528,8 @@ function useLogger(scope, options) {
528
528
  }
529
529
 
530
530
  function validatePhone(rule, value) {
531
+ if (!value)
532
+ return true;
531
533
  const phoneNumber = parsePhoneNumberFromString(value);
532
534
  return phoneNumber ? phoneNumber.isValid() : false;
533
535
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karta.io/utils",
3
- "version": "0.33.3",
3
+ "version": "0.33.4",
4
4
  "description": "karta.io utils for admin and application",
5
5
  "author": "Vitaly Blokhin <karambafe@gmail.com>",
6
6
  "homepage": "",
@@ -23,7 +23,7 @@
23
23
  "vue": "3.2.x"
24
24
  },
25
25
  "dependencies": {
26
- "@karta.io/common-data": "^0.33.3",
26
+ "@karta.io/common-data": "^0.33.4",
27
27
  "@vueuse/core": "9.13.0",
28
28
  "async-validator": "4.2.5",
29
29
  "dayjs": "1.11.7",