@formatjs/ecma402-abstract 1.15.0 → 1.16.0

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.
Files changed (95) hide show
  1. package/262.d.ts +1 -2
  2. package/CanonicalizeLocaleList.d.ts +0 -1
  3. package/CanonicalizeTimeZoneName.d.ts +0 -1
  4. package/CoerceOptionsToObject.d.ts +0 -1
  5. package/DefaultNumberOption.d.ts +0 -1
  6. package/GetNumberOption.d.ts +0 -1
  7. package/GetOption.d.ts +0 -1
  8. package/GetOptionsObject.d.ts +0 -1
  9. package/GetStringOrBooleanOption.d.ts +0 -1
  10. package/IsSanctionedSimpleUnitIdentifier.d.ts +0 -1
  11. package/IsValidTimeZoneName.d.ts +0 -1
  12. package/IsWellFormedCurrencyCode.d.ts +0 -1
  13. package/IsWellFormedUnitIdentifier.d.ts +0 -1
  14. package/NumberFormat/ApplyUnsignedRoundingMode.d.ts +0 -1
  15. package/NumberFormat/CollapseNumberRange.d.ts +0 -1
  16. package/NumberFormat/ComputeExponent.d.ts +0 -1
  17. package/NumberFormat/ComputeExponentForMagnitude.d.ts +0 -1
  18. package/NumberFormat/CurrencyDigits.d.ts +0 -1
  19. package/NumberFormat/FormatApproximately.d.ts +0 -1
  20. package/NumberFormat/FormatNumericRange.d.ts +0 -1
  21. package/NumberFormat/FormatNumericRangeToParts.d.ts +0 -1
  22. package/NumberFormat/FormatNumericToParts.d.ts +0 -1
  23. package/NumberFormat/FormatNumericToString.d.ts +0 -1
  24. package/NumberFormat/GetUnsignedRoundingMode.d.ts +0 -1
  25. package/NumberFormat/InitializeNumberFormat.d.ts +0 -1
  26. package/NumberFormat/PartitionNumberPattern.d.ts +0 -1
  27. package/NumberFormat/PartitionNumberRangePattern.d.ts +0 -1
  28. package/NumberFormat/SetNumberFormatDigitOptions.d.ts +0 -1
  29. package/NumberFormat/SetNumberFormatUnitOptions.d.ts +0 -1
  30. package/NumberFormat/ToRawFixed.d.ts +0 -1
  31. package/NumberFormat/ToRawPrecision.d.ts +0 -1
  32. package/NumberFormat/digit-mapping.generated.d.ts +0 -1
  33. package/NumberFormat/digit-mapping.generated.d.ts.map +1 -1
  34. package/NumberFormat/format_to_parts.d.ts +0 -1
  35. package/PartitionPattern.d.ts +0 -1
  36. package/SupportedLocales.d.ts +0 -1
  37. package/data.d.ts +0 -1
  38. package/index.d.ts +0 -1
  39. package/lib/262.d.ts +1 -2
  40. package/lib/CanonicalizeLocaleList.d.ts +0 -1
  41. package/lib/CanonicalizeTimeZoneName.d.ts +0 -1
  42. package/lib/CoerceOptionsToObject.d.ts +0 -1
  43. package/lib/DefaultNumberOption.d.ts +0 -1
  44. package/lib/GetNumberOption.d.ts +0 -1
  45. package/lib/GetOption.d.ts +0 -1
  46. package/lib/GetOptionsObject.d.ts +0 -1
  47. package/lib/GetStringOrBooleanOption.d.ts +0 -1
  48. package/lib/IsSanctionedSimpleUnitIdentifier.d.ts +0 -1
  49. package/lib/IsValidTimeZoneName.d.ts +0 -1
  50. package/lib/IsWellFormedCurrencyCode.d.ts +0 -1
  51. package/lib/IsWellFormedUnitIdentifier.d.ts +0 -1
  52. package/lib/NumberFormat/ApplyUnsignedRoundingMode.d.ts +0 -1
  53. package/lib/NumberFormat/CollapseNumberRange.d.ts +0 -1
  54. package/lib/NumberFormat/ComputeExponent.d.ts +0 -1
  55. package/lib/NumberFormat/ComputeExponentForMagnitude.d.ts +0 -1
  56. package/lib/NumberFormat/CurrencyDigits.d.ts +0 -1
  57. package/lib/NumberFormat/FormatApproximately.d.ts +0 -1
  58. package/lib/NumberFormat/FormatNumericRange.d.ts +0 -1
  59. package/lib/NumberFormat/FormatNumericRangeToParts.d.ts +0 -1
  60. package/lib/NumberFormat/FormatNumericToParts.d.ts +0 -1
  61. package/lib/NumberFormat/FormatNumericToString.d.ts +0 -1
  62. package/lib/NumberFormat/GetUnsignedRoundingMode.d.ts +0 -1
  63. package/lib/NumberFormat/InitializeNumberFormat.d.ts +0 -1
  64. package/lib/NumberFormat/PartitionNumberPattern.d.ts +0 -1
  65. package/lib/NumberFormat/PartitionNumberRangePattern.d.ts +0 -1
  66. package/lib/NumberFormat/SetNumberFormatDigitOptions.d.ts +0 -1
  67. package/lib/NumberFormat/SetNumberFormatUnitOptions.d.ts +0 -1
  68. package/lib/NumberFormat/ToRawFixed.d.ts +0 -1
  69. package/lib/NumberFormat/ToRawPrecision.d.ts +0 -1
  70. package/lib/NumberFormat/digit-mapping.generated.d.ts +0 -1
  71. package/lib/NumberFormat/digit-mapping.generated.d.ts.map +1 -1
  72. package/lib/NumberFormat/format_to_parts.d.ts +0 -1
  73. package/lib/PartitionPattern.d.ts +0 -1
  74. package/lib/SupportedLocales.d.ts +0 -1
  75. package/lib/data.d.ts +0 -1
  76. package/lib/index.d.ts +0 -1
  77. package/lib/regex.generated.d.ts +0 -1
  78. package/lib/types/core.d.ts +0 -1
  79. package/lib/types/date-time.d.ts +0 -1
  80. package/lib/types/displaynames.d.ts +0 -1
  81. package/lib/types/list.d.ts +0 -1
  82. package/lib/types/number.d.ts +0 -1
  83. package/lib/types/plural-rules.d.ts +0 -1
  84. package/lib/types/relative-time.d.ts +0 -1
  85. package/lib/utils.d.ts +0 -1
  86. package/package.json +10 -2
  87. package/regex.generated.d.ts +0 -1
  88. package/types/core.d.ts +0 -1
  89. package/types/date-time.d.ts +0 -1
  90. package/types/displaynames.d.ts +0 -1
  91. package/types/list.d.ts +0 -1
  92. package/types/number.d.ts +0 -1
  93. package/types/plural-rules.d.ts +0 -1
  94. package/types/relative-time.d.ts +0 -1
  95. package/utils.d.ts +0 -1
package/262.d.ts CHANGED
@@ -71,7 +71,7 @@ export declare function InLeapYear(t: number): 0 | 1;
71
71
  * https://tc39.es/ecma262/#sec-month-number
72
72
  * @param t
73
73
  */
74
- export declare function MonthFromTime(t: number): 0 | 1 | 4 | 7 | 2 | 3 | 5 | 6 | 8 | 9 | 10 | 11;
74
+ export declare function MonthFromTime(t: number): 0 | 1 | 2 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9 | 11;
75
75
  export declare function DateFromTime(t: number): number;
76
76
  export declare function HourFromTime(t: number): number;
77
77
  export declare function MinFromTime(t: number): number;
@@ -89,4 +89,3 @@ export declare function OrdinaryHasInstance(C: Object, O: any, internalSlots?: {
89
89
  boundTargetFunction: any;
90
90
  }): boolean;
91
91
  export declare function msFromTime(t: number): number;
92
- //# sourceMappingURL=262.d.ts.map
@@ -3,4 +3,3 @@
3
3
  * @param locales
4
4
  */
5
5
  export declare function CanonicalizeLocaleList(locales?: string | string[]): string[];
6
- //# sourceMappingURL=CanonicalizeLocaleList.d.ts.map
@@ -6,4 +6,3 @@ export declare function CanonicalizeTimeZoneName(tz: string, { tzData, uppercase
6
6
  tzData: Record<string, unknown>;
7
7
  uppercaseLinks: Record<string, string>;
8
8
  }): string;
9
- //# sourceMappingURL=CanonicalizeTimeZoneName.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * @returns
5
5
  */
6
6
  export declare function CoerceOptionsToObject<T>(options?: T): T;
7
- //# sourceMappingURL=CoerceOptionsToObject.d.ts.map
@@ -6,4 +6,3 @@
6
6
  * @param fallback
7
7
  */
8
8
  export declare function DefaultNumberOption(val: any, min: number, max: number, fallback: number): number;
9
- //# sourceMappingURL=DefaultNumberOption.d.ts.map
@@ -7,4 +7,3 @@
7
7
  * @param fallback
8
8
  */
9
9
  export declare function GetNumberOption<T extends object, K extends keyof T>(options: T, property: K, minimum: number, maximum: number, fallback: number): number;
10
- //# sourceMappingURL=GetNumberOption.d.ts.map
package/GetOption.d.ts CHANGED
@@ -7,4 +7,3 @@
7
7
  * @param fallback
8
8
  */
9
9
  export declare function GetOption<T extends object, K extends keyof T, F>(opts: T, prop: K, type: 'string' | 'boolean', values: T[K][] | undefined, fallback: F): Exclude<T[K], undefined> | F;
10
- //# sourceMappingURL=GetOption.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * @returns
5
5
  */
6
6
  export declare function GetOptionsObject<T extends object>(options?: T): T;
7
- //# sourceMappingURL=GetOptionsObject.d.ts.map
@@ -8,4 +8,3 @@
8
8
  * @param fallback
9
9
  */
10
10
  export declare function GetStringOrBooleanOption<T extends object, K extends keyof T>(opts: T, prop: K, values: T[K][] | undefined, trueValue: T[K] | boolean, falsyValue: T[K] | boolean, fallback: T[K] | boolean): T[K] | boolean;
11
- //# sourceMappingURL=GetStringOrBooleanOption.d.ts.map
@@ -11,4 +11,3 @@ export declare const SIMPLE_UNITS: string[];
11
11
  * https://tc39.es/ecma402/#sec-issanctionedsimpleunitidentifier
12
12
  */
13
13
  export declare function IsSanctionedSimpleUnitIdentifier(unitIdentifier: string): boolean;
14
- //# sourceMappingURL=IsSanctionedSimpleUnitIdentifier.d.ts.map
@@ -7,4 +7,3 @@ export declare function IsValidTimeZoneName(tz: string, { tzData, uppercaseLinks
7
7
  tzData: Record<string, unknown>;
8
8
  uppercaseLinks: Record<string, string>;
9
9
  }): boolean;
10
- //# sourceMappingURL=IsValidTimeZoneName.d.ts.map
@@ -2,4 +2,3 @@
2
2
  * https://tc39.es/ecma402/#sec-iswellformedcurrencycode
3
3
  */
4
4
  export declare function IsWellFormedCurrencyCode(currency: string): boolean;
5
- //# sourceMappingURL=IsWellFormedCurrencyCode.d.ts.map
@@ -3,4 +3,3 @@
3
3
  * @param unit
4
4
  */
5
5
  export declare function IsWellFormedUnitIdentifier(unit: string): boolean;
6
- //# sourceMappingURL=IsWellFormedUnitIdentifier.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { UnsignedRoundingModeType } from '../types/number';
2
2
  export declare function ApplyUnsignedRoundingMode(x: number, r1: number, r2: number, unsignedRoundingMode: UnsignedRoundingModeType): number;
3
- //# sourceMappingURL=ApplyUnsignedRoundingMode.d.ts.map
@@ -2,4 +2,3 @@
2
2
  * https://tc39.es/ecma402/#sec-collapsenumberrange
3
3
  */
4
4
  export declare function CollapseNumberRange<T>(result: T): T;
5
- //# sourceMappingURL=CollapseNumberRange.d.ts.map
@@ -9,4 +9,3 @@ import { NumberFormatInternal } from '../types/number';
9
9
  export declare function ComputeExponent(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
10
10
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
11
11
  }): [number, number];
12
- //# sourceMappingURL=ComputeExponent.d.ts.map
@@ -7,4 +7,3 @@ import { NumberFormatInternal } from '../types/number';
7
7
  export declare function ComputeExponentForMagnitude(numberFormat: Intl.NumberFormat, magnitude: number, { getInternalSlots, }: {
8
8
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
9
9
  }): number;
10
- //# sourceMappingURL=ComputeExponentForMagnitude.d.ts.map
@@ -4,4 +4,3 @@
4
4
  export declare function CurrencyDigits(c: string, { currencyDigitsData }: {
5
5
  currencyDigitsData: Record<string, number>;
6
6
  }): number;
7
- //# sourceMappingURL=CurrencyDigits.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
5
5
  export declare function FormatApproximately(numberFormat: Intl.NumberFormat, result: NumberFormatPart[], { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): NumberFormatPart[];
8
- //# sourceMappingURL=FormatApproximately.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
5
5
  export declare function FormatNumericRange(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): string;
8
- //# sourceMappingURL=FormatNumericRange.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberRangeToParts } from '../types/number';
5
5
  export declare function FormatNumericRangeToParts(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): NumberRangeToParts[];
8
- //# sourceMappingURL=FormatNumericRangeToParts.d.ts.map
@@ -2,4 +2,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
2
2
  export declare function FormatNumericToParts(nf: Intl.NumberFormat, x: number, implDetails: {
3
3
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
4
4
  }): NumberFormatPart[];
5
- //# sourceMappingURL=FormatNumericToParts.d.ts.map
@@ -6,4 +6,3 @@ export declare function FormatNumericToString(intlObject: Pick<NumberFormatDigit
6
6
  roundedNumber: number;
7
7
  formattedString: string;
8
8
  };
9
- //# sourceMappingURL=FormatNumericToString.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { RoundingModeType, UnsignedRoundingModeType } from '../types/number';
2
2
  export declare function GetUnsignedRoundingMode(roundingMode: RoundingModeType, isNegative: boolean): UnsignedRoundingModeType;
3
- //# sourceMappingURL=GetUnsignedRoundingMode.d.ts.map
@@ -10,4 +10,3 @@ export declare function InitializeNumberFormat(nf: Intl.NumberFormat, locales: s
10
10
  getDefaultLocale(): string;
11
11
  currencyDigitsData: Record<string, number>;
12
12
  }): Intl.NumberFormat;
13
- //# sourceMappingURL=InitializeNumberFormat.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
5
5
  export declare function PartitionNumberPattern(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): import("../types/number").NumberFormatPart[];
8
- //# sourceMappingURL=PartitionNumberPattern.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
5
5
  export declare function PartitionNumberRangePattern(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): NumberFormatPart[];
8
- //# sourceMappingURL=PartitionNumberRangePattern.d.ts.map
@@ -3,4 +3,3 @@ import { NumberFormatDigitOptions, NumberFormatNotation, NumberFormatDigitIntern
3
3
  * https://tc39.es/ecma402/#sec-setnfdigitoptions
4
4
  */
5
5
  export declare function SetNumberFormatDigitOptions(internalSlots: NumberFormatDigitInternalSlots, opts: NumberFormatDigitOptions, mnfdDefault: number, mxfdDefault: number, notation: NumberFormatNotation): void;
6
- //# sourceMappingURL=SetNumberFormatDigitOptions.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatOptions } from '../types/number';
5
5
  export declare function SetNumberFormatUnitOptions(nf: Intl.NumberFormat, options: NumberFormatOptions | undefined, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): void;
8
- //# sourceMappingURL=SetNumberFormatUnitOptions.d.ts.map
@@ -7,4 +7,3 @@ import { RawNumberFormatResult } from '../types/number';
7
7
  * @param maxFraction and integer between 0 and 20
8
8
  */
9
9
  export declare function ToRawFixed(x: number, minFraction: number, maxFraction: number): RawNumberFormatResult;
10
- //# sourceMappingURL=ToRawFixed.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { RawNumberFormatResult } from '../types/number';
2
2
  export declare function ToRawPrecision(x: number, minPrecision: number, maxPrecision: number): RawNumberFormatResult;
3
- //# sourceMappingURL=ToRawPrecision.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const digitMapping: Record<string, ReadonlyArray<string>>;
2
- //# sourceMappingURL=digit-mapping.generated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"digit-mapping.generated.d.ts","sourceRoot":"","sources":["../NumberFormat/digit-mapping.generated.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CA6wB9D,CAAC"}
1
+ {"version":3,"file":"digit-mapping.generated.d.ts","sourceRoot":"","sources":["../NumberFormat/digit-mapping.generated.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAA67G,CAAC"}
@@ -19,4 +19,3 @@ export default function formatToParts(numberResult: NumberResult, data: NumberFo
19
19
  unitDisplay?: NumberFormatOptionsUnitDisplay;
20
20
  }): NumberFormatPart[];
21
21
  export {};
22
- //# sourceMappingURL=format_to_parts.d.ts.map
@@ -6,4 +6,3 @@ export declare function PartitionPattern<T extends string>(pattern: string): Arr
6
6
  type: T;
7
7
  value: string | undefined;
8
8
  }>;
9
- //# sourceMappingURL=PartitionPattern.d.ts.map
@@ -7,4 +7,3 @@
7
7
  export declare function SupportedLocales(availableLocales: Set<string>, requestedLocales: string[], options?: {
8
8
  localeMatcher?: 'best fit' | 'lookup';
9
9
  }): string[];
10
- //# sourceMappingURL=SupportedLocales.d.ts.map
package/data.d.ts CHANGED
@@ -3,4 +3,3 @@ declare class MissingLocaleDataError extends Error {
3
3
  }
4
4
  export declare function isMissingLocaleDataError(e: Error): e is MissingLocaleDataError;
5
5
  export {};
6
- //# sourceMappingURL=data.d.ts.map
package/index.d.ts CHANGED
@@ -42,4 +42,3 @@ export * from './types/displaynames';
42
42
  export { invariant } from './utils';
43
43
  export type { LocaleData } from './types/core';
44
44
  export * from './262';
45
- //# sourceMappingURL=index.d.ts.map
package/lib/262.d.ts CHANGED
@@ -71,7 +71,7 @@ export declare function InLeapYear(t: number): 0 | 1;
71
71
  * https://tc39.es/ecma262/#sec-month-number
72
72
  * @param t
73
73
  */
74
- export declare function MonthFromTime(t: number): 0 | 1 | 4 | 7 | 2 | 3 | 5 | 6 | 8 | 9 | 10 | 11;
74
+ export declare function MonthFromTime(t: number): 0 | 1 | 2 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9 | 11;
75
75
  export declare function DateFromTime(t: number): number;
76
76
  export declare function HourFromTime(t: number): number;
77
77
  export declare function MinFromTime(t: number): number;
@@ -89,4 +89,3 @@ export declare function OrdinaryHasInstance(C: Object, O: any, internalSlots?: {
89
89
  boundTargetFunction: any;
90
90
  }): boolean;
91
91
  export declare function msFromTime(t: number): number;
92
- //# sourceMappingURL=262.d.ts.map
@@ -3,4 +3,3 @@
3
3
  * @param locales
4
4
  */
5
5
  export declare function CanonicalizeLocaleList(locales?: string | string[]): string[];
6
- //# sourceMappingURL=CanonicalizeLocaleList.d.ts.map
@@ -6,4 +6,3 @@ export declare function CanonicalizeTimeZoneName(tz: string, { tzData, uppercase
6
6
  tzData: Record<string, unknown>;
7
7
  uppercaseLinks: Record<string, string>;
8
8
  }): string;
9
- //# sourceMappingURL=CanonicalizeTimeZoneName.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * @returns
5
5
  */
6
6
  export declare function CoerceOptionsToObject<T>(options?: T): T;
7
- //# sourceMappingURL=CoerceOptionsToObject.d.ts.map
@@ -6,4 +6,3 @@
6
6
  * @param fallback
7
7
  */
8
8
  export declare function DefaultNumberOption(val: any, min: number, max: number, fallback: number): number;
9
- //# sourceMappingURL=DefaultNumberOption.d.ts.map
@@ -7,4 +7,3 @@
7
7
  * @param fallback
8
8
  */
9
9
  export declare function GetNumberOption<T extends object, K extends keyof T>(options: T, property: K, minimum: number, maximum: number, fallback: number): number;
10
- //# sourceMappingURL=GetNumberOption.d.ts.map
@@ -7,4 +7,3 @@
7
7
  * @param fallback
8
8
  */
9
9
  export declare function GetOption<T extends object, K extends keyof T, F>(opts: T, prop: K, type: 'string' | 'boolean', values: T[K][] | undefined, fallback: F): Exclude<T[K], undefined> | F;
10
- //# sourceMappingURL=GetOption.d.ts.map
@@ -4,4 +4,3 @@
4
4
  * @returns
5
5
  */
6
6
  export declare function GetOptionsObject<T extends object>(options?: T): T;
7
- //# sourceMappingURL=GetOptionsObject.d.ts.map
@@ -8,4 +8,3 @@
8
8
  * @param fallback
9
9
  */
10
10
  export declare function GetStringOrBooleanOption<T extends object, K extends keyof T>(opts: T, prop: K, values: T[K][] | undefined, trueValue: T[K] | boolean, falsyValue: T[K] | boolean, fallback: T[K] | boolean): T[K] | boolean;
11
- //# sourceMappingURL=GetStringOrBooleanOption.d.ts.map
@@ -11,4 +11,3 @@ export declare const SIMPLE_UNITS: string[];
11
11
  * https://tc39.es/ecma402/#sec-issanctionedsimpleunitidentifier
12
12
  */
13
13
  export declare function IsSanctionedSimpleUnitIdentifier(unitIdentifier: string): boolean;
14
- //# sourceMappingURL=IsSanctionedSimpleUnitIdentifier.d.ts.map
@@ -7,4 +7,3 @@ export declare function IsValidTimeZoneName(tz: string, { tzData, uppercaseLinks
7
7
  tzData: Record<string, unknown>;
8
8
  uppercaseLinks: Record<string, string>;
9
9
  }): boolean;
10
- //# sourceMappingURL=IsValidTimeZoneName.d.ts.map
@@ -2,4 +2,3 @@
2
2
  * https://tc39.es/ecma402/#sec-iswellformedcurrencycode
3
3
  */
4
4
  export declare function IsWellFormedCurrencyCode(currency: string): boolean;
5
- //# sourceMappingURL=IsWellFormedCurrencyCode.d.ts.map
@@ -3,4 +3,3 @@
3
3
  * @param unit
4
4
  */
5
5
  export declare function IsWellFormedUnitIdentifier(unit: string): boolean;
6
- //# sourceMappingURL=IsWellFormedUnitIdentifier.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { UnsignedRoundingModeType } from '../types/number';
2
2
  export declare function ApplyUnsignedRoundingMode(x: number, r1: number, r2: number, unsignedRoundingMode: UnsignedRoundingModeType): number;
3
- //# sourceMappingURL=ApplyUnsignedRoundingMode.d.ts.map
@@ -2,4 +2,3 @@
2
2
  * https://tc39.es/ecma402/#sec-collapsenumberrange
3
3
  */
4
4
  export declare function CollapseNumberRange<T>(result: T): T;
5
- //# sourceMappingURL=CollapseNumberRange.d.ts.map
@@ -9,4 +9,3 @@ import { NumberFormatInternal } from '../types/number';
9
9
  export declare function ComputeExponent(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
10
10
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
11
11
  }): [number, number];
12
- //# sourceMappingURL=ComputeExponent.d.ts.map
@@ -7,4 +7,3 @@ import { NumberFormatInternal } from '../types/number';
7
7
  export declare function ComputeExponentForMagnitude(numberFormat: Intl.NumberFormat, magnitude: number, { getInternalSlots, }: {
8
8
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
9
9
  }): number;
10
- //# sourceMappingURL=ComputeExponentForMagnitude.d.ts.map
@@ -4,4 +4,3 @@
4
4
  export declare function CurrencyDigits(c: string, { currencyDigitsData }: {
5
5
  currencyDigitsData: Record<string, number>;
6
6
  }): number;
7
- //# sourceMappingURL=CurrencyDigits.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
5
5
  export declare function FormatApproximately(numberFormat: Intl.NumberFormat, result: NumberFormatPart[], { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): NumberFormatPart[];
8
- //# sourceMappingURL=FormatApproximately.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
5
5
  export declare function FormatNumericRange(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): string;
8
- //# sourceMappingURL=FormatNumericRange.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberRangeToParts } from '../types/number';
5
5
  export declare function FormatNumericRangeToParts(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): NumberRangeToParts[];
8
- //# sourceMappingURL=FormatNumericRangeToParts.d.ts.map
@@ -2,4 +2,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
2
2
  export declare function FormatNumericToParts(nf: Intl.NumberFormat, x: number, implDetails: {
3
3
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
4
4
  }): NumberFormatPart[];
5
- //# sourceMappingURL=FormatNumericToParts.d.ts.map
@@ -6,4 +6,3 @@ export declare function FormatNumericToString(intlObject: Pick<NumberFormatDigit
6
6
  roundedNumber: number;
7
7
  formattedString: string;
8
8
  };
9
- //# sourceMappingURL=FormatNumericToString.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { RoundingModeType, UnsignedRoundingModeType } from '../types/number';
2
2
  export declare function GetUnsignedRoundingMode(roundingMode: RoundingModeType, isNegative: boolean): UnsignedRoundingModeType;
3
- //# sourceMappingURL=GetUnsignedRoundingMode.d.ts.map
@@ -10,4 +10,3 @@ export declare function InitializeNumberFormat(nf: Intl.NumberFormat, locales: s
10
10
  getDefaultLocale(): string;
11
11
  currencyDigitsData: Record<string, number>;
12
12
  }): Intl.NumberFormat;
13
- //# sourceMappingURL=InitializeNumberFormat.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal } from '../types/number';
5
5
  export declare function PartitionNumberPattern(numberFormat: Intl.NumberFormat, x: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): import("../types/number").NumberFormatPart[];
8
- //# sourceMappingURL=PartitionNumberPattern.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number';
5
5
  export declare function PartitionNumberRangePattern(numberFormat: Intl.NumberFormat, x: number, y: number, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): NumberFormatPart[];
8
- //# sourceMappingURL=PartitionNumberRangePattern.d.ts.map
@@ -3,4 +3,3 @@ import { NumberFormatDigitOptions, NumberFormatNotation, NumberFormatDigitIntern
3
3
  * https://tc39.es/ecma402/#sec-setnfdigitoptions
4
4
  */
5
5
  export declare function SetNumberFormatDigitOptions(internalSlots: NumberFormatDigitInternalSlots, opts: NumberFormatDigitOptions, mnfdDefault: number, mxfdDefault: number, notation: NumberFormatNotation): void;
6
- //# sourceMappingURL=SetNumberFormatDigitOptions.d.ts.map
@@ -5,4 +5,3 @@ import { NumberFormatInternal, NumberFormatOptions } from '../types/number';
5
5
  export declare function SetNumberFormatUnitOptions(nf: Intl.NumberFormat, options: NumberFormatOptions | undefined, { getInternalSlots, }: {
6
6
  getInternalSlots(nf: Intl.NumberFormat): NumberFormatInternal;
7
7
  }): void;
8
- //# sourceMappingURL=SetNumberFormatUnitOptions.d.ts.map
@@ -7,4 +7,3 @@ import { RawNumberFormatResult } from '../types/number';
7
7
  * @param maxFraction and integer between 0 and 20
8
8
  */
9
9
  export declare function ToRawFixed(x: number, minFraction: number, maxFraction: number): RawNumberFormatResult;
10
- //# sourceMappingURL=ToRawFixed.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import { RawNumberFormatResult } from '../types/number';
2
2
  export declare function ToRawPrecision(x: number, minPrecision: number, maxPrecision: number): RawNumberFormatResult;
3
- //# sourceMappingURL=ToRawPrecision.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const digitMapping: Record<string, ReadonlyArray<string>>;
2
- //# sourceMappingURL=digit-mapping.generated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"digit-mapping.generated.d.ts","sourceRoot":"","sources":["../../NumberFormat/digit-mapping.generated.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CA6wB9D,CAAC"}
1
+ {"version":3,"file":"digit-mapping.generated.d.ts","sourceRoot":"","sources":["../../NumberFormat/digit-mapping.generated.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAA67G,CAAC"}
@@ -19,4 +19,3 @@ export default function formatToParts(numberResult: NumberResult, data: NumberFo
19
19
  unitDisplay?: NumberFormatOptionsUnitDisplay;
20
20
  }): NumberFormatPart[];
21
21
  export {};
22
- //# sourceMappingURL=format_to_parts.d.ts.map
@@ -6,4 +6,3 @@ export declare function PartitionPattern<T extends string>(pattern: string): Arr
6
6
  type: T;
7
7
  value: string | undefined;
8
8
  }>;
9
- //# sourceMappingURL=PartitionPattern.d.ts.map
@@ -7,4 +7,3 @@
7
7
  export declare function SupportedLocales(availableLocales: Set<string>, requestedLocales: string[], options?: {
8
8
  localeMatcher?: 'best fit' | 'lookup';
9
9
  }): string[];
10
- //# sourceMappingURL=SupportedLocales.d.ts.map
package/lib/data.d.ts CHANGED
@@ -3,4 +3,3 @@ declare class MissingLocaleDataError extends Error {
3
3
  }
4
4
  export declare function isMissingLocaleDataError(e: Error): e is MissingLocaleDataError;
5
5
  export {};
6
- //# sourceMappingURL=data.d.ts.map
package/lib/index.d.ts CHANGED
@@ -42,4 +42,3 @@ export * from './types/displaynames';
42
42
  export { invariant } from './utils';
43
43
  export type { LocaleData } from './types/core';
44
44
  export * from './262';
45
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare const S_UNICODE_REGEX: RegExp;
2
- //# sourceMappingURL=regex.generated.d.ts.map
@@ -8,4 +8,3 @@ export interface LookupMatcherResult {
8
8
  extension?: string;
9
9
  nu?: string;
10
10
  }
11
- //# sourceMappingURL=core.d.ts.map
@@ -133,4 +133,3 @@ export interface IntlDateTimeFormatPart {
133
133
  value: string | undefined;
134
134
  source?: RangePatternType;
135
135
  }
136
- //# sourceMappingURL=date-time.d.ts.map
@@ -63,4 +63,3 @@ export interface DisplayNamesData {
63
63
  }
64
64
  export type DisplayNamesLocaleData = LocaleData<DisplayNamesData>;
65
65
  export {};
66
- //# sourceMappingURL=displaynames.d.ts.map
@@ -16,4 +16,3 @@ export interface ListPatternData {
16
16
  short?: ListPattern;
17
17
  narrow?: ListPattern;
18
18
  }
19
- //# sourceMappingURL=list.d.ts.map
@@ -162,4 +162,3 @@ export interface NumberFormatPart {
162
162
  export interface NumberRangeToParts extends NumberFormatPart {
163
163
  result: string;
164
164
  }
165
- //# sourceMappingURL=number.d.ts.map
@@ -14,4 +14,3 @@ export interface PluralRulesInternal extends NumberFormatDigitInternalSlots {
14
14
  locale: string;
15
15
  type: 'cardinal' | 'ordinal';
16
16
  }
17
- //# sourceMappingURL=plural-rules.d.ts.map
@@ -38,4 +38,3 @@ export interface RelativeTimeFormatInternal {
38
38
  initializedRelativeTimeFormat: boolean;
39
39
  }
40
40
  export {};
41
- //# sourceMappingURL=relative-time.d.ts.map
package/lib/utils.d.ts CHANGED
@@ -21,4 +21,3 @@ export declare function defineProperty<T extends object>(target: T, name: string
21
21
  } & ThisType<any>): void;
22
22
  export declare const UNICODE_EXTENSION_SEQUENCE_REGEX: RegExp;
23
23
  export declare function invariant(condition: boolean, message: string, Err?: any): asserts condition;
24
- //# sourceMappingURL=utils.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formatjs/ecma402-abstract",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "A collection of implementation for ECMAScript abstract operations",
5
5
  "keywords": [
6
6
  "intl",
@@ -14,7 +14,7 @@
14
14
  "format"
15
15
  ],
16
16
  "dependencies": {
17
- "@formatjs/intl-localematcher": "0.2.32",
17
+ "@formatjs/intl-localematcher": "0.3.0",
18
18
  "tslib": "^2.4.0"
19
19
  },
20
20
  "author": "Long Ho <holevietlong@gmail.com",
@@ -29,6 +29,14 @@
29
29
  "main": "index.js",
30
30
  "module": "lib/index.js",
31
31
  "types": "index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./index.d.ts",
35
+ "import": "./lib/index.js",
36
+ "default": "./index.js"
37
+ },
38
+ "./package.json": "./package.json"
39
+ },
32
40
  "homepage": "https://github.com/formatjs/formatjs",
33
41
  "license": "MIT",
34
42
  "gitHead": "a7842673d8ad205171ad7c8cb8bb2f318b427c0c"
@@ -1,2 +1 @@
1
1
  export declare const S_UNICODE_REGEX: RegExp;
2
- //# sourceMappingURL=regex.generated.d.ts.map
package/types/core.d.ts CHANGED
@@ -8,4 +8,3 @@ export interface LookupMatcherResult {
8
8
  extension?: string;
9
9
  nu?: string;
10
10
  }
11
- //# sourceMappingURL=core.d.ts.map
@@ -133,4 +133,3 @@ export interface IntlDateTimeFormatPart {
133
133
  value: string | undefined;
134
134
  source?: RangePatternType;
135
135
  }
136
- //# sourceMappingURL=date-time.d.ts.map
@@ -63,4 +63,3 @@ export interface DisplayNamesData {
63
63
  }
64
64
  export type DisplayNamesLocaleData = LocaleData<DisplayNamesData>;
65
65
  export {};
66
- //# sourceMappingURL=displaynames.d.ts.map
package/types/list.d.ts CHANGED
@@ -16,4 +16,3 @@ export interface ListPatternData {
16
16
  short?: ListPattern;
17
17
  narrow?: ListPattern;
18
18
  }
19
- //# sourceMappingURL=list.d.ts.map
package/types/number.d.ts CHANGED
@@ -162,4 +162,3 @@ export interface NumberFormatPart {
162
162
  export interface NumberRangeToParts extends NumberFormatPart {
163
163
  result: string;
164
164
  }
165
- //# sourceMappingURL=number.d.ts.map
@@ -14,4 +14,3 @@ export interface PluralRulesInternal extends NumberFormatDigitInternalSlots {
14
14
  locale: string;
15
15
  type: 'cardinal' | 'ordinal';
16
16
  }
17
- //# sourceMappingURL=plural-rules.d.ts.map
@@ -38,4 +38,3 @@ export interface RelativeTimeFormatInternal {
38
38
  initializedRelativeTimeFormat: boolean;
39
39
  }
40
40
  export {};
41
- //# sourceMappingURL=relative-time.d.ts.map
package/utils.d.ts CHANGED
@@ -21,4 +21,3 @@ export declare function defineProperty<T extends object>(target: T, name: string
21
21
  } & ThisType<any>): void;
22
22
  export declare const UNICODE_EXTENSION_SEQUENCE_REGEX: RegExp;
23
23
  export declare function invariant(condition: boolean, message: string, Err?: any): asserts condition;
24
- //# sourceMappingURL=utils.d.ts.map