@arkyn/shared 2.2.2 → 2.2.3
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.
|
@@ -7,7 +7,7 @@ import type { FormatToPhoneFunction } from "@arkyn/types";
|
|
|
7
7
|
*
|
|
8
8
|
* @param prop - The phone number string to be formatted. It must include the country code and optionally a prefix.
|
|
9
9
|
* Example formats:
|
|
10
|
-
* - "+55
|
|
10
|
+
* - "+55 32912345678"
|
|
11
11
|
* - "+1 1234567890"
|
|
12
12
|
*
|
|
13
13
|
* @returns The formatted phone number string based on the country's formatting rules.
|
|
@@ -88,7 +88,7 @@ function getCountryWithoutPrefixCode(countryCode) {
|
|
|
88
88
|
*
|
|
89
89
|
* @param prop - The phone number string to be formatted. It must include the country code and optionally a prefix.
|
|
90
90
|
* Example formats:
|
|
91
|
-
* - "+55
|
|
91
|
+
* - "+55 32912345678"
|
|
92
92
|
* - "+1 1234567890"
|
|
93
93
|
*
|
|
94
94
|
* @returns The formatted phone number string based on the country's formatting rules.
|
package/package.json
CHANGED
|
@@ -108,7 +108,7 @@ function getCountryWithoutPrefixCode(countryCode: string) {
|
|
|
108
108
|
*
|
|
109
109
|
* @param prop - The phone number string to be formatted. It must include the country code and optionally a prefix.
|
|
110
110
|
* Example formats:
|
|
111
|
-
* - "+55
|
|
111
|
+
* - "+55 32912345678"
|
|
112
112
|
* - "+1 1234567890"
|
|
113
113
|
*
|
|
114
114
|
* @returns The formatted phone number string based on the country's formatting rules.
|