libphonenumber-js 1.9.47 → 1.9.48
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/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/types.d.ts +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -67,6 +67,11 @@ And edit the README:
|
|
|
67
67
|
|
|
68
68
|
This changelog [only](https://gitlab.com/catamphetamine/libphonenumber-js/-/issues/16#note_594165443) mentions the changes in the code. See [Google's changelog](https://github.com/google/libphonenumber/blob/master/release_notes.txt) for metadata changes.
|
|
69
69
|
|
|
70
|
+
1.9.48 / 06.02.2022
|
|
71
|
+
==================
|
|
72
|
+
|
|
73
|
+
* Merged a [pull request](https://gitlab.com/catamphetamine/libphonenumber-js/-/merge_requests/8) that [changed the declaration](https://github.com/catamphetamine/libphonenumber-js/issues/170#issuecomment-1030821520) of basic "string" types like `E164Number`, `NationalNumber`, `Extension`, etc.
|
|
74
|
+
|
|
70
75
|
1.9.45 / xx.01.2022
|
|
71
76
|
==================
|
|
72
77
|
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -43,13 +43,13 @@ export type Examples = {
|
|
|
43
43
|
export type NumberFormat = 'NATIONAL' | 'National' | 'INTERNATIONAL' | 'International' | 'E.164' | 'RFC3966' | 'IDD';
|
|
44
44
|
export type NumberType = undefined | 'PREMIUM_RATE' | 'TOLL_FREE' | 'SHARED_COST' | 'VOIP' | 'PERSONAL_NUMBER' | 'PAGER' | 'UAN' | 'VOICEMAIL' | 'FIXED_LINE_OR_MOBILE' | 'FIXED_LINE' | 'MOBILE';
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
46
|
+
type Tagged<A, T> = A & { __tag: T };
|
|
47
|
+
|
|
48
|
+
type E164Number = Tagged<string, "E164Number">;
|
|
49
|
+
type NationalNumber = Tagged<string, "NationalNumber">;
|
|
50
|
+
type Extension = Tagged<string, "Extension">;
|
|
51
|
+
type CarrierCode = Tagged<string, "CarrierCode">;
|
|
52
|
+
type CountryCallingCode = Tagged<string, "CountryCallingCode">;
|
|
53
53
|
|
|
54
54
|
type FormatExtension = (formattedNumber: string, extension: Extension, metadata: MetadataJson) => string
|
|
55
55
|
|