libphonenumber-js 1.11.13 → 1.11.15
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/examples.mobile.json +1 -1
- package/examples.mobile.json.js +1 -1
- package/index.d.cts +54 -19
- package/index.d.ts +54 -19
- 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/examples.mobile.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"43012345","BH":"36001234","BI":"79561234","BJ":"
|
|
1
|
+
{"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"43012345","BH":"36001234","BI":"79561234","BJ":"0195123456","BL":"690001234","BM":"4413701234","BN":"7123456","BO":"71234567","BQ":"3181234","BR":"11961234567","BS":"2423591234","BT":"17123456","BW":"71123456","BY":"294911911","BZ":"6221234","CA":"5062345678","CC":"412345678","CD":"991234567","CF":"70012345","CG":"061234567","CH":"781234567","CI":"0123456789","CK":"71234","CL":"221234567","CM":"671234567","CN":"13123456789","CO":"3211234567","CR":"83123456","CU":"51234567","CV":"9911234","CW":"95181234","CX":"412345678","CY":"96123456","CZ":"601123456","DE":"15123456789","DJ":"77831001","DK":"34412345","DM":"7672251234","DO":"8092345678","DZ":"551234567","EC":"991234567","EE":"51234567","EG":"1001234567","EH":"650123456","ER":"7123456","ES":"612345678","ET":"911234567","FI":"412345678","FJ":"7012345","FK":"51234","FM":"3501234","FO":"211234","FR":"612345678","GA":"06031234","GB":"7400123456","GD":"4734031234","GE":"555123456","GF":"694201234","GG":"7781123456","GH":"231234567","GI":"57123456","GL":"221234","GM":"3012345","GN":"601123456","GP":"690001234","GQ":"222123456","GR":"6912345678","GT":"51234567","GU":"6713001234","GW":"955012345","GY":"6091234","HK":"51234567","HN":"91234567","HR":"921234567","HT":"34101234","HU":"201234567","ID":"812345678","IE":"850123456","IL":"502345678","IM":"7924123456","IN":"8123456789","IO":"3801234","IQ":"7912345678","IR":"9123456789","IS":"6111234","IT":"3123456789","JE":"7797712345","JM":"8762101234","JO":"790123456","JP":"9012345678","KE":"712123456","KG":"700123456","KH":"91234567","KI":"72001234","KM":"3212345","KN":"8697652917","KP":"1921234567","KR":"1020000000","KW":"50012345","KY":"3453231234","KZ":"7710009998","LA":"2023123456","LB":"71123456","LC":"7582845678","LI":"660234567","LK":"712345678","LR":"770123456","LS":"50123456","LT":"61234567","LU":"628123456","LV":"21234567","LY":"912345678","MA":"650123456","MC":"612345678","MD":"62112345","ME":"67622901","MF":"690001234","MG":"321234567","MH":"2351234","MK":"72345678","ML":"65012345","MM":"92123456","MN":"88123456","MO":"66123456","MP":"6702345678","MQ":"696201234","MR":"22123456","MS":"6644923456","MT":"96961234","MU":"52512345","MV":"7712345","MW":"991234567","MX":"2221234567","MY":"123456789","MZ":"821234567","NA":"811234567","NC":"751234","NE":"93123456","NF":"381234","NG":"8021234567","NI":"81234567","NL":"612345678","NO":"40612345","NP":"9841234567","NR":"5551234","NU":"8884012","NZ":"211234567","OM":"92123456","PA":"61234567","PE":"912345678","PF":"87123456","PG":"70123456","PH":"9051234567","PK":"3012345678","PL":"512345678","PM":"551234","PR":"7872345678","PS":"599123456","PT":"912345678","PW":"6201234","PY":"961456789","QA":"33123456","RE":"692123456","RO":"712034567","RS":"601234567","RU":"9123456789","RW":"720123456","SA":"512345678","SB":"7421234","SC":"2510123","SD":"911231234","SE":"701234567","SG":"81234567","SH":"51234","SI":"31234567","SJ":"41234567","SK":"912123456","SL":"25123456","SM":"66661212","SN":"701234567","SO":"71123456","SR":"7412345","SS":"977123456","ST":"9812345","SV":"70123456","SX":"7215205678","SY":"944567890","SZ":"76123456","TA":"8999","TC":"6492311234","TD":"63012345","TG":"90112345","TH":"812345678","TJ":"917123456","TK":"7290","TL":"77212345","TM":"66123456","TN":"20123456","TO":"7715123","TR":"5012345678","TT":"8682911234","TV":"901234","TW":"912345678","TZ":"621234567","UA":"501234567","UG":"712345678","US":"2015550123","UY":"94231234","UZ":"912345678","VA":"3123456789","VC":"7844301234","VE":"4121234567","VG":"2843001234","VI":"3406421234","VN":"912345678","VU":"5912345","WF":"821234","WS":"7212345","XK":"43201234","YE":"712345678","YT":"639012345","ZA":"711234567","ZM":"955123456","ZW":"712345678"}
|
package/examples.mobile.json.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is a workaround for a bug in web browsers' "native"
|
|
2
2
|
// ES6 importing system which is uncapable of importing "*.json" files.
|
|
3
3
|
// https://github.com/catamphetamine/libphonenumber-js/issues/239
|
|
4
|
-
export default {"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"43012345","BH":"36001234","BI":"79561234","BJ":"
|
|
4
|
+
export default {"AC":"40123","AD":"312345","AE":"501234567","AF":"701234567","AG":"2684641234","AI":"2642351234","AL":"672123456","AM":"77123456","AO":"923123456","AR":"91123456789","AS":"6847331234","AT":"664123456","AU":"412345678","AW":"5601234","AX":"412345678","AZ":"401234567","BA":"61123456","BB":"2462501234","BD":"1812345678","BE":"470123456","BF":"70123456","BG":"43012345","BH":"36001234","BI":"79561234","BJ":"0195123456","BL":"690001234","BM":"4413701234","BN":"7123456","BO":"71234567","BQ":"3181234","BR":"11961234567","BS":"2423591234","BT":"17123456","BW":"71123456","BY":"294911911","BZ":"6221234","CA":"5062345678","CC":"412345678","CD":"991234567","CF":"70012345","CG":"061234567","CH":"781234567","CI":"0123456789","CK":"71234","CL":"221234567","CM":"671234567","CN":"13123456789","CO":"3211234567","CR":"83123456","CU":"51234567","CV":"9911234","CW":"95181234","CX":"412345678","CY":"96123456","CZ":"601123456","DE":"15123456789","DJ":"77831001","DK":"34412345","DM":"7672251234","DO":"8092345678","DZ":"551234567","EC":"991234567","EE":"51234567","EG":"1001234567","EH":"650123456","ER":"7123456","ES":"612345678","ET":"911234567","FI":"412345678","FJ":"7012345","FK":"51234","FM":"3501234","FO":"211234","FR":"612345678","GA":"06031234","GB":"7400123456","GD":"4734031234","GE":"555123456","GF":"694201234","GG":"7781123456","GH":"231234567","GI":"57123456","GL":"221234","GM":"3012345","GN":"601123456","GP":"690001234","GQ":"222123456","GR":"6912345678","GT":"51234567","GU":"6713001234","GW":"955012345","GY":"6091234","HK":"51234567","HN":"91234567","HR":"921234567","HT":"34101234","HU":"201234567","ID":"812345678","IE":"850123456","IL":"502345678","IM":"7924123456","IN":"8123456789","IO":"3801234","IQ":"7912345678","IR":"9123456789","IS":"6111234","IT":"3123456789","JE":"7797712345","JM":"8762101234","JO":"790123456","JP":"9012345678","KE":"712123456","KG":"700123456","KH":"91234567","KI":"72001234","KM":"3212345","KN":"8697652917","KP":"1921234567","KR":"1020000000","KW":"50012345","KY":"3453231234","KZ":"7710009998","LA":"2023123456","LB":"71123456","LC":"7582845678","LI":"660234567","LK":"712345678","LR":"770123456","LS":"50123456","LT":"61234567","LU":"628123456","LV":"21234567","LY":"912345678","MA":"650123456","MC":"612345678","MD":"62112345","ME":"67622901","MF":"690001234","MG":"321234567","MH":"2351234","MK":"72345678","ML":"65012345","MM":"92123456","MN":"88123456","MO":"66123456","MP":"6702345678","MQ":"696201234","MR":"22123456","MS":"6644923456","MT":"96961234","MU":"52512345","MV":"7712345","MW":"991234567","MX":"2221234567","MY":"123456789","MZ":"821234567","NA":"811234567","NC":"751234","NE":"93123456","NF":"381234","NG":"8021234567","NI":"81234567","NL":"612345678","NO":"40612345","NP":"9841234567","NR":"5551234","NU":"8884012","NZ":"211234567","OM":"92123456","PA":"61234567","PE":"912345678","PF":"87123456","PG":"70123456","PH":"9051234567","PK":"3012345678","PL":"512345678","PM":"551234","PR":"7872345678","PS":"599123456","PT":"912345678","PW":"6201234","PY":"961456789","QA":"33123456","RE":"692123456","RO":"712034567","RS":"601234567","RU":"9123456789","RW":"720123456","SA":"512345678","SB":"7421234","SC":"2510123","SD":"911231234","SE":"701234567","SG":"81234567","SH":"51234","SI":"31234567","SJ":"41234567","SK":"912123456","SL":"25123456","SM":"66661212","SN":"701234567","SO":"71123456","SR":"7412345","SS":"977123456","ST":"9812345","SV":"70123456","SX":"7215205678","SY":"944567890","SZ":"76123456","TA":"8999","TC":"6492311234","TD":"63012345","TG":"90112345","TH":"812345678","TJ":"917123456","TK":"7290","TL":"77212345","TM":"66123456","TN":"20123456","TO":"7715123","TR":"5012345678","TT":"8682911234","TV":"901234","TW":"912345678","TZ":"621234567","UA":"501234567","UG":"712345678","US":"2015550123","UY":"94231234","UZ":"912345678","VA":"3123456789","VC":"7844301234","VE":"4121234567","VG":"2843001234","VI":"3406421234","VN":"912345678","VU":"5912345","WF":"821234","WS":"7212345","XK":"43201234","YE":"712345678","YT":"639012345","ZA":"711234567","ZM":"955123456","ZW":"712345678"}
|
package/index.d.cts
CHANGED
|
@@ -93,11 +93,14 @@ export class Metadata {
|
|
|
93
93
|
numberingPlan?: NumberingPlan;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated `parsePhoneNumber()` named export has been renamed to `parsePhoneNumberWithError()`
|
|
98
|
+
*/
|
|
98
99
|
export function parsePhoneNumber(text: string, defaultCountry?: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string, extract?: boolean }): PhoneNumber;
|
|
99
100
|
|
|
100
|
-
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated
|
|
103
|
+
*/
|
|
101
104
|
export interface ParsedNumber {
|
|
102
105
|
countryCallingCode?: CountryCallingCode;
|
|
103
106
|
country: CountryCode;
|
|
@@ -107,22 +110,32 @@ export interface ParsedNumber {
|
|
|
107
110
|
valid?: boolean;
|
|
108
111
|
}
|
|
109
112
|
|
|
110
|
-
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated
|
|
115
|
+
*/
|
|
111
116
|
export type ParseNumberOptions = {
|
|
112
117
|
defaultCountry?: CountryCode;
|
|
113
118
|
extended?: boolean;
|
|
114
119
|
};
|
|
115
120
|
|
|
116
|
-
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated
|
|
123
|
+
*/
|
|
117
124
|
export function parse(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber;
|
|
118
125
|
|
|
119
|
-
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated
|
|
128
|
+
*/
|
|
120
129
|
export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
|
|
121
130
|
|
|
122
|
-
|
|
131
|
+
/**
|
|
132
|
+
* @deprecated
|
|
133
|
+
*/
|
|
123
134
|
type FormatExtension = (number: string, extension: string, metadata: MetadataJson) => string
|
|
124
135
|
|
|
125
|
-
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated
|
|
138
|
+
*/
|
|
126
139
|
export type FormatNumberOptions = {
|
|
127
140
|
v2?: boolean;
|
|
128
141
|
fromCountry?: CountryCode;
|
|
@@ -130,49 +143,71 @@ export type FormatNumberOptions = {
|
|
|
130
143
|
formatExtension?: FormatExtension;
|
|
131
144
|
};
|
|
132
145
|
|
|
133
|
-
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated
|
|
148
|
+
*/
|
|
134
149
|
export function format(parsedNumber: ParsedNumber, format: NumberFormat): string;
|
|
135
150
|
export function format(phone: string, format: NumberFormat): string;
|
|
136
151
|
export function format(phone: string, country: CountryCode, format: NumberFormat): string;
|
|
137
152
|
|
|
138
|
-
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated
|
|
155
|
+
*/
|
|
139
156
|
export function formatNumber(parsedNumber: ParsedNumber, format: NumberFormat, options?: FormatNumberOptions): string;
|
|
140
157
|
export function formatNumber(phone: string, format: NumberFormat, options?: FormatNumberOptions): string;
|
|
141
158
|
export function formatNumber(phone: string, country: CountryCode, format: NumberFormat, options?: FormatNumberOptions): string;
|
|
142
159
|
|
|
143
|
-
|
|
160
|
+
/**
|
|
161
|
+
* @deprecated
|
|
162
|
+
*/
|
|
144
163
|
export function getNumberType(parsedNumber: ParsedNumber): NumberType;
|
|
145
164
|
export function getNumberType(phone: string, country?: CountryCode): NumberType;
|
|
146
165
|
|
|
147
|
-
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated
|
|
168
|
+
*/
|
|
148
169
|
export function isPossibleNumber(parsedNumber: ParsedNumber): boolean;
|
|
149
170
|
export function isPossibleNumber(phone: string, country?: CountryCode): boolean;
|
|
150
171
|
|
|
151
|
-
|
|
172
|
+
/**
|
|
173
|
+
* @deprecated
|
|
174
|
+
*/
|
|
152
175
|
export function isValidNumber(parsedNumber: ParsedNumber): boolean;
|
|
153
176
|
export function isValidNumber(phone: string, country?: CountryCode): boolean;
|
|
154
177
|
|
|
155
|
-
|
|
178
|
+
/**
|
|
179
|
+
* @deprecated
|
|
180
|
+
*/
|
|
156
181
|
export function isValidNumberForRegion(phone: string, country: CountryCode): boolean;
|
|
157
182
|
|
|
158
|
-
|
|
183
|
+
/**
|
|
184
|
+
* @deprecated
|
|
185
|
+
*/
|
|
159
186
|
export function findParsedNumbers(text: string, options?: CountryCode | { defaultCountry?: CountryCode }): NumberFoundLegacy[];
|
|
160
187
|
export function searchParsedNumbers(text: string, options?: CountryCode | { defaultCountry?: CountryCode }): IterableIterator<NumberFoundLegacy>;
|
|
161
188
|
|
|
162
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated
|
|
191
|
+
*/
|
|
163
192
|
export class ParsedNumberSearch {
|
|
164
193
|
constructor(text: string, options?: { defaultCountry?: CountryCode });
|
|
165
194
|
hasNext(): boolean;
|
|
166
195
|
next(): NumberFoundLegacy | undefined;
|
|
167
196
|
}
|
|
168
197
|
|
|
169
|
-
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated
|
|
200
|
+
*/
|
|
170
201
|
export function findNumbers(text: string, options?: CountryCode): NumberFoundLegacy[];
|
|
171
202
|
export function searchNumbers(text: string, options?: CountryCode): IterableIterator<NumberFoundLegacy>;
|
|
172
203
|
|
|
173
|
-
|
|
204
|
+
/**
|
|
205
|
+
* @deprecated
|
|
206
|
+
*/
|
|
174
207
|
export function findNumbers(text: string, options?: { defaultCountry?: CountryCode, v2: true }): NumberFound[];
|
|
175
208
|
export function searchNumbers(text: string, options?: { defaultCountry?: CountryCode, v2: true }): IterableIterator<NumberFound>;
|
|
176
209
|
|
|
177
|
-
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated
|
|
212
|
+
*/
|
|
178
213
|
export function getPhoneCode(countryCode: CountryCode): CountryCallingCode;
|
package/index.d.ts
CHANGED
|
@@ -93,11 +93,14 @@ export class Metadata {
|
|
|
93
93
|
numberingPlan?: NumberingPlan;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
/**
|
|
97
|
+
* @deprecated `parsePhoneNumber()` named export has been renamed to `parsePhoneNumberWithError()`
|
|
98
|
+
*/
|
|
98
99
|
export function parsePhoneNumber(text: string, defaultCountry?: CountryCode | { defaultCountry?: CountryCode, defaultCallingCode?: string, extract?: boolean }): PhoneNumber;
|
|
99
100
|
|
|
100
|
-
|
|
101
|
+
/**
|
|
102
|
+
* @deprecated
|
|
103
|
+
*/
|
|
101
104
|
export interface ParsedNumber {
|
|
102
105
|
countryCallingCode?: CountryCallingCode;
|
|
103
106
|
country: CountryCode;
|
|
@@ -107,22 +110,32 @@ export interface ParsedNumber {
|
|
|
107
110
|
valid?: boolean;
|
|
108
111
|
}
|
|
109
112
|
|
|
110
|
-
|
|
113
|
+
/**
|
|
114
|
+
* @deprecated
|
|
115
|
+
*/
|
|
111
116
|
export type ParseNumberOptions = {
|
|
112
117
|
defaultCountry?: CountryCode;
|
|
113
118
|
extended?: boolean;
|
|
114
119
|
};
|
|
115
120
|
|
|
116
|
-
|
|
121
|
+
/**
|
|
122
|
+
* @deprecated
|
|
123
|
+
*/
|
|
117
124
|
export function parse(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber;
|
|
118
125
|
|
|
119
|
-
|
|
126
|
+
/**
|
|
127
|
+
* @deprecated
|
|
128
|
+
*/
|
|
120
129
|
export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
|
|
121
130
|
|
|
122
|
-
|
|
131
|
+
/**
|
|
132
|
+
* @deprecated
|
|
133
|
+
*/
|
|
123
134
|
type FormatExtension = (number: string, extension: string, metadata: MetadataJson) => string
|
|
124
135
|
|
|
125
|
-
|
|
136
|
+
/**
|
|
137
|
+
* @deprecated
|
|
138
|
+
*/
|
|
126
139
|
export type FormatNumberOptions = {
|
|
127
140
|
v2?: boolean;
|
|
128
141
|
fromCountry?: CountryCode;
|
|
@@ -130,49 +143,71 @@ export type FormatNumberOptions = {
|
|
|
130
143
|
formatExtension?: FormatExtension;
|
|
131
144
|
};
|
|
132
145
|
|
|
133
|
-
|
|
146
|
+
/**
|
|
147
|
+
* @deprecated
|
|
148
|
+
*/
|
|
134
149
|
export function format(parsedNumber: ParsedNumber, format: NumberFormat): string;
|
|
135
150
|
export function format(phone: string, format: NumberFormat): string;
|
|
136
151
|
export function format(phone: string, country: CountryCode, format: NumberFormat): string;
|
|
137
152
|
|
|
138
|
-
|
|
153
|
+
/**
|
|
154
|
+
* @deprecated
|
|
155
|
+
*/
|
|
139
156
|
export function formatNumber(parsedNumber: ParsedNumber, format: NumberFormat, options?: FormatNumberOptions): string;
|
|
140
157
|
export function formatNumber(phone: string, format: NumberFormat, options?: FormatNumberOptions): string;
|
|
141
158
|
export function formatNumber(phone: string, country: CountryCode, format: NumberFormat, options?: FormatNumberOptions): string;
|
|
142
159
|
|
|
143
|
-
|
|
160
|
+
/**
|
|
161
|
+
* @deprecated
|
|
162
|
+
*/
|
|
144
163
|
export function getNumberType(parsedNumber: ParsedNumber): NumberType;
|
|
145
164
|
export function getNumberType(phone: string, country?: CountryCode): NumberType;
|
|
146
165
|
|
|
147
|
-
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated
|
|
168
|
+
*/
|
|
148
169
|
export function isPossibleNumber(parsedNumber: ParsedNumber): boolean;
|
|
149
170
|
export function isPossibleNumber(phone: string, country?: CountryCode): boolean;
|
|
150
171
|
|
|
151
|
-
|
|
172
|
+
/**
|
|
173
|
+
* @deprecated
|
|
174
|
+
*/
|
|
152
175
|
export function isValidNumber(parsedNumber: ParsedNumber): boolean;
|
|
153
176
|
export function isValidNumber(phone: string, country?: CountryCode): boolean;
|
|
154
177
|
|
|
155
|
-
|
|
178
|
+
/**
|
|
179
|
+
* @deprecated
|
|
180
|
+
*/
|
|
156
181
|
export function isValidNumberForRegion(phone: string, country: CountryCode): boolean;
|
|
157
182
|
|
|
158
|
-
|
|
183
|
+
/**
|
|
184
|
+
* @deprecated
|
|
185
|
+
*/
|
|
159
186
|
export function findParsedNumbers(text: string, options?: CountryCode | { defaultCountry?: CountryCode }): NumberFoundLegacy[];
|
|
160
187
|
export function searchParsedNumbers(text: string, options?: CountryCode | { defaultCountry?: CountryCode }): IterableIterator<NumberFoundLegacy>;
|
|
161
188
|
|
|
162
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated
|
|
191
|
+
*/
|
|
163
192
|
export class ParsedNumberSearch {
|
|
164
193
|
constructor(text: string, options?: { defaultCountry?: CountryCode });
|
|
165
194
|
hasNext(): boolean;
|
|
166
195
|
next(): NumberFoundLegacy | undefined;
|
|
167
196
|
}
|
|
168
197
|
|
|
169
|
-
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated
|
|
200
|
+
*/
|
|
170
201
|
export function findNumbers(text: string, options?: CountryCode): NumberFoundLegacy[];
|
|
171
202
|
export function searchNumbers(text: string, options?: CountryCode): IterableIterator<NumberFoundLegacy>;
|
|
172
203
|
|
|
173
|
-
|
|
204
|
+
/**
|
|
205
|
+
* @deprecated
|
|
206
|
+
*/
|
|
174
207
|
export function findNumbers(text: string, options?: { defaultCountry?: CountryCode, v2: true }): NumberFound[];
|
|
175
208
|
export function searchNumbers(text: string, options?: { defaultCountry?: CountryCode, v2: true }): IterableIterator<NumberFound>;
|
|
176
209
|
|
|
177
|
-
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated
|
|
212
|
+
*/
|
|
178
213
|
export function getPhoneCode(countryCode: CountryCode): CountryCallingCode;
|