tele_number_utils 1.0.8 → 1.0.9
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/package.json +1 -1
- package/dist/country/country.d.ts +0 -7
- package/dist/country/country.d.ts.map +0 -1
- package/dist/country/country.js +0 -1502
- package/dist/country/getCountry.d.ts +0 -9
- package/dist/country/getCountry.d.ts.map +0 -1
- package/dist/country/getCountry.js +0 -104
- package/dist/country/util.d.ts +0 -49
- package/dist/country/util.d.ts.map +0 -1
- package/dist/country/util.js +0 -88
- package/dist/formatter/index.d.ts +0 -4
- package/dist/formatter/index.d.ts.map +0 -1
- package/dist/formatter/index.js +0 -35
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -4
- package/dist/parsed/index.d.ts +0 -36
- package/dist/parsed/index.d.ts.map +0 -1
- package/dist/parsed/index.js +0 -303
- package/dist/parsed/test.d.ts +0 -2
- package/dist/parsed/test.d.ts.map +0 -1
- package/dist/parsed/test.js +0 -30
package/dist/parsed/test.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { parsePhoneNumber } from ".";
|
|
2
|
-
// Test numbers
|
|
3
|
-
const testNumbers = [
|
|
4
|
-
// ---- UK +44 ----
|
|
5
|
-
"+442071234567", // UK main
|
|
6
|
-
"+441632960123", // Isle of Man
|
|
7
|
-
"+441534123456", // Jersey
|
|
8
|
-
"+441481987654", // Guernsey
|
|
9
|
-
// ---- NANPA +1 ----
|
|
10
|
-
"+12015551234", // US
|
|
11
|
-
"+14165551234", // Canada
|
|
12
|
-
"+17875551234", // Puerto Rico
|
|
13
|
-
// ---- Russia / Kazakhstan +7 ----
|
|
14
|
-
"+79161234567", // Russia
|
|
15
|
-
"+76171234567", // Kazakhstan
|
|
16
|
-
// ---- Australian territories +672 ----
|
|
17
|
-
"+67212345678", // Australian external territory
|
|
18
|
-
// ---- Regular countries ----
|
|
19
|
-
"+919876543210", // India
|
|
20
|
-
"+4915123456789", // Germany
|
|
21
|
-
// ---- Edge cases ----
|
|
22
|
-
"4915123456789", // Missing +
|
|
23
|
-
"+999123456789", // Unknown code
|
|
24
|
-
];
|
|
25
|
-
// Run parser and log results
|
|
26
|
-
console.log("===== Phone Number Parsing Test =====");
|
|
27
|
-
for (const number of testNumbers) {
|
|
28
|
-
const parsed = parsePhoneNumber(number);
|
|
29
|
-
console.log(`${number} =>`, parsed);
|
|
30
|
-
}
|