kui-utils 0.0.33 → 0.0.34

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/cjs/index.js CHANGED
@@ -1968,6 +1968,8 @@ var getPhoneNumberFromPhoneParams = function (_a, fill) {
1968
1968
 
1969
1969
  var getPhoneParamsFromString = function (phone) {
1970
1970
  var _a;
1971
+ if (!phone)
1972
+ return null;
1971
1973
  var formattedPhone = phone.replace(/\D/g, "");
1972
1974
  var phoneDigits = formattedPhone.split("");
1973
1975
  var phoneCode = ((_a = __spreadArray([], countries, true).find(function (country) {