libphonenumber-js 1.12.3 → 1.12.5
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/bundle/libphonenumber-js.min.js +1 -1
- package/bundle/libphonenumber-js.min.js.map +1 -1
- package/bundle/libphonenumber-max.js +1 -1
- package/bundle/libphonenumber-max.js.map +1 -1
- package/bundle/libphonenumber-min.js +1 -1
- package/bundle/libphonenumber-min.js.map +1 -1
- package/bundle/libphonenumber-mobile.js +1 -1
- package/bundle/libphonenumber-mobile.js.map +1 -1
- package/index.d.cts +4 -15
- package/index.d.ts +4 -15
- package/metadata.full.json +1 -1
- package/metadata.full.json.js +1 -1
- package/metadata.max.json +1 -1
- package/metadata.max.json.js +1 -1
- package/metadata.min.json +1 -1
- package/metadata.min.json.js +1 -1
- package/metadata.mobile.json +1 -1
- package/metadata.mobile.json.js +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -27,6 +27,10 @@ export {
|
|
|
27
27
|
NationalNumber,
|
|
28
28
|
Extension,
|
|
29
29
|
ParseError,
|
|
30
|
+
// `FormatNumberOptions` export is deprecated.
|
|
31
|
+
// It's still here just due to legacy compatibility.
|
|
32
|
+
// https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/174#note_2380633424
|
|
33
|
+
FormatNumberOptions,
|
|
30
34
|
NumberFoundLegacy,
|
|
31
35
|
NumberFormat,
|
|
32
36
|
NumberType,
|
|
@@ -153,21 +157,6 @@ export function parse(text: string, options?: CountryCode | ParseNumberOptions):
|
|
|
153
157
|
*/
|
|
154
158
|
export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
|
|
155
159
|
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated
|
|
158
|
-
*/
|
|
159
|
-
type FormatExtension = (number: string, extension: string, metadata: MetadataJson) => string
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated
|
|
163
|
-
*/
|
|
164
|
-
export type FormatNumberOptions = {
|
|
165
|
-
v2?: boolean;
|
|
166
|
-
fromCountry?: CountryCode;
|
|
167
|
-
humanReadable?: boolean;
|
|
168
|
-
formatExtension?: FormatExtension;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
160
|
/**
|
|
172
161
|
* @deprecated
|
|
173
162
|
*/
|
package/index.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export {
|
|
|
27
27
|
NationalNumber,
|
|
28
28
|
Extension,
|
|
29
29
|
ParseError,
|
|
30
|
+
// `FormatNumberOptions` export is deprecated.
|
|
31
|
+
// It's still here just due to legacy compatibility.
|
|
32
|
+
// https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/174#note_2380633424
|
|
33
|
+
FormatNumberOptions,
|
|
30
34
|
NumberFoundLegacy,
|
|
31
35
|
NumberFormat,
|
|
32
36
|
NumberType,
|
|
@@ -153,21 +157,6 @@ export function parse(text: string, options?: CountryCode | ParseNumberOptions):
|
|
|
153
157
|
*/
|
|
154
158
|
export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
|
|
155
159
|
|
|
156
|
-
/**
|
|
157
|
-
* @deprecated
|
|
158
|
-
*/
|
|
159
|
-
type FormatExtension = (number: string, extension: string, metadata: MetadataJson) => string
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @deprecated
|
|
163
|
-
*/
|
|
164
|
-
export type FormatNumberOptions = {
|
|
165
|
-
v2?: boolean;
|
|
166
|
-
fromCountry?: CountryCode;
|
|
167
|
-
humanReadable?: boolean;
|
|
168
|
-
formatExtension?: FormatExtension;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
160
|
/**
|
|
172
161
|
* @deprecated
|
|
173
162
|
*/
|