libphonenumber-js 1.12.2 → 1.12.4

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/index.d.cts CHANGED
@@ -153,21 +153,6 @@ export function parse(text: string, options?: CountryCode | ParseNumberOptions):
153
153
  */
154
154
  export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
155
155
 
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
156
  /**
172
157
  * @deprecated
173
158
  */
package/index.d.ts CHANGED
@@ -153,21 +153,6 @@ export function parse(text: string, options?: CountryCode | ParseNumberOptions):
153
153
  */
154
154
  export function parseNumber(text: string, options?: CountryCode | ParseNumberOptions): ParsedNumber | {};
155
155
 
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
156
  /**
172
157
  * @deprecated
173
158
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libphonenumber-js",
3
- "version": "1.12.2",
3
+ "version": "1.12.4",
4
4
  "description": "A simpler (and smaller) rewrite of Google Android's libphonenumber library in javascript",
5
5
  "main": "index.cjs",
6
6
  "module": "index.js",
package/types.d.cts CHANGED
@@ -97,12 +97,12 @@ export interface FormatNumberOptions {
97
97
  humanReadable?: boolean;
98
98
  nationalPrefix?: boolean;
99
99
  formatExtension?: FormatExtension;
100
- };
100
+ }
101
101
 
102
102
  export interface FormatNumberOptionsWithoutIDD {
103
103
  v2?: boolean;
104
104
  formatExtension?: FormatExtension;
105
- };
105
+ }
106
106
 
107
107
  // // https://stackoverflow.com/a/67026991
108
108
  // type ArrayOfAtLeastOneCountryCode = [CountryCode, ...CountryCode[]];
package/types.d.ts CHANGED
@@ -97,12 +97,12 @@ export interface FormatNumberOptions {
97
97
  humanReadable?: boolean;
98
98
  nationalPrefix?: boolean;
99
99
  formatExtension?: FormatExtension;
100
- };
100
+ }
101
101
 
102
102
  export interface FormatNumberOptionsWithoutIDD {
103
103
  v2?: boolean;
104
104
  formatExtension?: FormatExtension;
105
- };
105
+ }
106
106
 
107
107
  // // https://stackoverflow.com/a/67026991
108
108
  // type ArrayOfAtLeastOneCountryCode = [CountryCode, ...CountryCode[]];