akeyless-client-commons 1.0.174 → 1.0.175
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/helpers/index.d.mts
CHANGED
|
@@ -216,7 +216,7 @@ declare const isInternationalIsraelPhone: CheckFunction;
|
|
|
216
216
|
declare const local_israel_phone_format: ConvertFunction;
|
|
217
217
|
declare const international_israel_phone_format: ConvertFunction;
|
|
218
218
|
declare const get_international_phone_number: ConvertFunction;
|
|
219
|
-
declare const displayFormatPhoneNumber:
|
|
219
|
+
declare const displayFormatPhoneNumber: (phoneNumber: string, separator?: string) => string;
|
|
220
220
|
declare const is_iccid: (number: string) => boolean;
|
|
221
221
|
|
|
222
222
|
declare function cn(...inputs: ClassValue[]): string;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -216,7 +216,7 @@ declare const isInternationalIsraelPhone: CheckFunction;
|
|
|
216
216
|
declare const local_israel_phone_format: ConvertFunction;
|
|
217
217
|
declare const international_israel_phone_format: ConvertFunction;
|
|
218
218
|
declare const get_international_phone_number: ConvertFunction;
|
|
219
|
-
declare const displayFormatPhoneNumber:
|
|
219
|
+
declare const displayFormatPhoneNumber: (phoneNumber: string, separator?: string) => string;
|
|
220
220
|
declare const is_iccid: (number: string) => boolean;
|
|
221
221
|
|
|
222
222
|
declare function cn(...inputs: ClassValue[]): string;
|
package/dist/helpers/index.js
CHANGED
|
@@ -596,13 +596,13 @@ var get_international_phone_number = function(phone) {
|
|
|
596
596
|
if (!phone) return "+972";
|
|
597
597
|
return isInternational(phone) ? phone : international_israel_phone_format(phone);
|
|
598
598
|
};
|
|
599
|
-
var displayFormatPhoneNumber = function(phoneNumber) {
|
|
599
|
+
var displayFormatPhoneNumber = function(phoneNumber, separator) {
|
|
600
600
|
if (isInternational(phoneNumber)) {
|
|
601
601
|
var phoneNumberObject = (0, import_libphonenumber_js.parsePhoneNumberFromString)(phoneNumber);
|
|
602
602
|
if (!phoneNumberObject) {
|
|
603
603
|
return phoneNumber;
|
|
604
604
|
}
|
|
605
|
-
return phoneNumberObject.formatInternational().replace(/\s/g, "");
|
|
605
|
+
return phoneNumberObject.formatInternational().replace(/\s/g, separator !== null && separator !== void 0 ? separator : "");
|
|
606
606
|
}
|
|
607
607
|
return phoneNumber.replace(/(\d{3})(\d{3})(\d{4})/, "$1-$2-$3");
|
|
608
608
|
};
|
package/dist/helpers/index.mjs
CHANGED
|
@@ -264,13 +264,13 @@ var get_international_phone_number = function(phone) {
|
|
|
264
264
|
if (!phone) return "+972";
|
|
265
265
|
return isInternational(phone) ? phone : international_israel_phone_format(phone);
|
|
266
266
|
};
|
|
267
|
-
var displayFormatPhoneNumber = function(phoneNumber) {
|
|
267
|
+
var displayFormatPhoneNumber = function(phoneNumber, separator) {
|
|
268
268
|
if (isInternational(phoneNumber)) {
|
|
269
269
|
var phoneNumberObject = parsePhoneNumberFromString(phoneNumber);
|
|
270
270
|
if (!phoneNumberObject) {
|
|
271
271
|
return phoneNumber;
|
|
272
272
|
}
|
|
273
|
-
return phoneNumberObject.formatInternational().replace(/\s/g, "");
|
|
273
|
+
return phoneNumberObject.formatInternational().replace(/\s/g, separator !== null && separator !== void 0 ? separator : "");
|
|
274
274
|
}
|
|
275
275
|
return phoneNumber.replace(/(\d{3})(\d{3})(\d{4})/, "$1-$2-$3");
|
|
276
276
|
};
|