libphonenumber-js 1.9.11 → 1.9.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/core/index.d.ts CHANGED
@@ -91,6 +91,11 @@ export class AsYouType {
91
91
  getNumber(): PhoneNumber | undefined;
92
92
  getChars(): string;
93
93
  getTemplate(): string;
94
+ getCallingCode(): string | undefined;
95
+ getCountry(): CountryCode | undefined;
96
+ isInternational(): boolean;
97
+ isPossible(): boolean;
98
+ isValid(): boolean;
94
99
  }
95
100
 
96
101
  // The exported `Metadata` name is already used for exporting the "raw" JSON metadata type.
package/core/index.js CHANGED
@@ -30,4 +30,4 @@ export { default as formatIncompletePhoneNumber } from '../es6/formatIncompleteP
30
30
  export { default as parseIncompletePhoneNumber, parsePhoneNumberCharacter } from '../es6/parseIncompletePhoneNumber'
31
31
  export { default as parseDigits } from '../es6/helpers/parseDigits'
32
32
 
33
- export { parseRFC3966, formatRFC3966 } from '../es6/helpers/RFC3966'
33
+ export { parseRFC3966, formatRFC3966 } from '../es6/helpers/RFC3966'
package/custom.d.ts CHANGED
@@ -150,6 +150,11 @@ export class AsYouType {
150
150
  getNationalNumber(): string;
151
151
  getChars(): string;
152
152
  getTemplate(): string;
153
+ getCallingCode(): string | undefined;
154
+ getCountry(): CountryCode | undefined;
155
+ isInternational(): boolean;
156
+ isPossible(): boolean;
157
+ isValid(): boolean;
153
158
  }
154
159
 
155
160
  // The exported `Metadata` name is already used for exporting the "raw" JSON metadata type.
package/index.d.ts CHANGED
@@ -148,6 +148,11 @@ export class AsYouType {
148
148
  getNationalNumber(): string;
149
149
  getChars(): string;
150
150
  getTemplate(): string;
151
+ getCallingCode(): string | undefined;
152
+ getCountry(): CountryCode | undefined;
153
+ isInternational(): boolean;
154
+ isPossible(): boolean;
155
+ isValid(): boolean;
151
156
  }
152
157
 
153
158
  // The exported `Metadata` name is already used for exporting the "raw" JSON metadata type.
package/index.es6.js CHANGED
@@ -63,4 +63,4 @@ export { searchPhoneNumbers as searchPhoneNumbersCustom } from './es6/findPhoneN
63
63
  export { PhoneNumberSearch as PhoneNumberSearchCustom } from './es6/findPhoneNumbers_'
64
64
  export { default as getNumberTypeCustom } from './es6/getNumberType'
65
65
  export { default as getCountryCallingCodeCustom, default as getPhoneCodeCustom } from './es6/getCountryCallingCode'
66
- export { default as AsYouTypeCustom } from './es6/AsYouType'
66
+ export { default as AsYouTypeCustom } from './es6/AsYouType'
package/max/index.js CHANGED
@@ -36,4 +36,4 @@ export {
36
36
  parseRFC3966,
37
37
  formatRFC3966,
38
38
  DIGIT_PLACEHOLDER
39
- } from '../core/index'
39
+ } from '../core/index'