@formatjs/ecma402-abstract
Advanced tools
Comparing version 1.15.0 to 1.16.0
@@ -74,3 +74,3 @@ /** | ||
*/ | ||
export declare function MonthFromTime(t: number): 0 | 1 | 4 | 7 | 2 | 3 | 5 | 6 | 8 | 9 | 10 | 11; | ||
export declare function MonthFromTime(t: number): 0 | 1 | 2 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9 | 11; | ||
export declare function DateFromTime(t: number): number; | ||
@@ -93,2 +93,1 @@ export declare function HourFromTime(t: number): number; | ||
export declare function msFromTime(t: number): number; | ||
//# sourceMappingURL=262.d.ts.map |
@@ -6,2 +6,1 @@ /** | ||
export declare function CanonicalizeLocaleList(locales?: string | string[]): string[]; | ||
//# sourceMappingURL=CanonicalizeLocaleList.d.ts.map |
@@ -9,2 +9,1 @@ /** | ||
}): string; | ||
//# sourceMappingURL=CanonicalizeTimeZoneName.d.ts.map |
@@ -7,2 +7,1 @@ /** | ||
export declare function CoerceOptionsToObject<T>(options?: T): T; | ||
//# sourceMappingURL=CoerceOptionsToObject.d.ts.map |
@@ -6,2 +6,1 @@ declare class MissingLocaleDataError extends Error { | ||
export {}; | ||
//# sourceMappingURL=data.d.ts.map |
@@ -9,2 +9,1 @@ /** | ||
export declare function DefaultNumberOption(val: any, min: number, max: number, fallback: number): number; | ||
//# sourceMappingURL=DefaultNumberOption.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
export declare function GetNumberOption<T extends object, K extends keyof T>(options: T, property: K, minimum: number, maximum: number, fallback: number): number; | ||
//# sourceMappingURL=GetNumberOption.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
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; | ||
//# sourceMappingURL=GetOption.d.ts.map |
@@ -7,2 +7,1 @@ /** | ||
export declare function GetOptionsObject<T extends object>(options?: T): T; | ||
//# sourceMappingURL=GetOptionsObject.d.ts.map |
@@ -11,2 +11,1 @@ /** | ||
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; | ||
//# sourceMappingURL=GetStringOrBooleanOption.d.ts.map |
@@ -45,2 +45,1 @@ export * from './CanonicalizeLocaleList'; | ||
export * from './262'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -14,2 +14,1 @@ /** | ||
export declare function IsSanctionedSimpleUnitIdentifier(unitIdentifier: string): boolean; | ||
//# sourceMappingURL=IsSanctionedSimpleUnitIdentifier.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
}): boolean; | ||
//# sourceMappingURL=IsValidTimeZoneName.d.ts.map |
@@ -5,2 +5,1 @@ /** | ||
export declare function IsWellFormedCurrencyCode(currency: string): boolean; | ||
//# sourceMappingURL=IsWellFormedCurrencyCode.d.ts.map |
@@ -6,2 +6,1 @@ /** | ||
export declare function IsWellFormedUnitIdentifier(unit: string): boolean; | ||
//# sourceMappingURL=IsWellFormedUnitIdentifier.d.ts.map |
@@ -74,3 +74,3 @@ /** | ||
*/ | ||
export declare function MonthFromTime(t: number): 0 | 1 | 4 | 7 | 2 | 3 | 5 | 6 | 8 | 9 | 10 | 11; | ||
export declare function MonthFromTime(t: number): 0 | 1 | 2 | 3 | 4 | 8 | 5 | 6 | 10 | 7 | 9 | 11; | ||
export declare function DateFromTime(t: number): number; | ||
@@ -93,2 +93,1 @@ export declare function HourFromTime(t: number): number; | ||
export declare function msFromTime(t: number): number; | ||
//# sourceMappingURL=262.d.ts.map |
@@ -6,2 +6,1 @@ /** | ||
export declare function CanonicalizeLocaleList(locales?: string | string[]): string[]; | ||
//# sourceMappingURL=CanonicalizeLocaleList.d.ts.map |
@@ -9,2 +9,1 @@ /** | ||
}): string; | ||
//# sourceMappingURL=CanonicalizeTimeZoneName.d.ts.map |
@@ -7,2 +7,1 @@ /** | ||
export declare function CoerceOptionsToObject<T>(options?: T): T; | ||
//# sourceMappingURL=CoerceOptionsToObject.d.ts.map |
@@ -6,2 +6,1 @@ declare class MissingLocaleDataError extends Error { | ||
export {}; | ||
//# sourceMappingURL=data.d.ts.map |
@@ -9,2 +9,1 @@ /** | ||
export declare function DefaultNumberOption(val: any, min: number, max: number, fallback: number): number; | ||
//# sourceMappingURL=DefaultNumberOption.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
export declare function GetNumberOption<T extends object, K extends keyof T>(options: T, property: K, minimum: number, maximum: number, fallback: number): number; | ||
//# sourceMappingURL=GetNumberOption.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
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; | ||
//# sourceMappingURL=GetOption.d.ts.map |
@@ -7,2 +7,1 @@ /** | ||
export declare function GetOptionsObject<T extends object>(options?: T): T; | ||
//# sourceMappingURL=GetOptionsObject.d.ts.map |
@@ -11,2 +11,1 @@ /** | ||
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; | ||
//# sourceMappingURL=GetStringOrBooleanOption.d.ts.map |
@@ -45,2 +45,1 @@ export * from './CanonicalizeLocaleList'; | ||
export * from './262'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -14,2 +14,1 @@ /** | ||
export declare function IsSanctionedSimpleUnitIdentifier(unitIdentifier: string): boolean; | ||
//# sourceMappingURL=IsSanctionedSimpleUnitIdentifier.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
}): boolean; | ||
//# sourceMappingURL=IsValidTimeZoneName.d.ts.map |
@@ -5,2 +5,1 @@ /** | ||
export declare function IsWellFormedCurrencyCode(currency: string): boolean; | ||
//# sourceMappingURL=IsWellFormedCurrencyCode.d.ts.map |
@@ -6,2 +6,1 @@ /** | ||
export declare function IsWellFormedUnitIdentifier(unit: string): boolean; | ||
//# sourceMappingURL=IsWellFormedUnitIdentifier.d.ts.map |
import { UnsignedRoundingModeType } from '../types/number'; | ||
export declare function ApplyUnsignedRoundingMode(x: number, r1: number, r2: number, unsignedRoundingMode: UnsignedRoundingModeType): number; | ||
//# sourceMappingURL=ApplyUnsignedRoundingMode.d.ts.map |
@@ -5,2 +5,1 @@ /** | ||
export declare function CollapseNumberRange<T>(result: T): T; | ||
//# sourceMappingURL=CollapseNumberRange.d.ts.map |
@@ -12,2 +12,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): [number, number]; | ||
//# sourceMappingURL=ComputeExponent.d.ts.map |
@@ -10,2 +10,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): number; | ||
//# sourceMappingURL=ComputeExponentForMagnitude.d.ts.map |
@@ -7,2 +7,1 @@ /** | ||
}): number; | ||
//# sourceMappingURL=CurrencyDigits.d.ts.map |
export declare const digitMapping: Record<string, ReadonlyArray<string>>; | ||
//# sourceMappingURL=digit-mapping.generated.d.ts.map |
@@ -22,2 +22,1 @@ import { NumberFormatOptionsStyle, NumberFormatOptionsNotation, NumberFormatOptionsCompactDisplay, NumberFormatOptionsCurrencyDisplay, NumberFormatOptionsCurrencySign, NumberFormatOptionsUnitDisplay, NumberFormatLocaleInternalData, NumberFormatPart, UseGroupingType } from '../types/number'; | ||
export {}; | ||
//# sourceMappingURL=format_to_parts.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number'; | ||
}): NumberFormatPart[]; | ||
//# sourceMappingURL=FormatApproximately.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): string; | ||
//# sourceMappingURL=FormatNumericRange.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberRangeToParts } from '../types/number'; | ||
}): NumberRangeToParts[]; | ||
//# sourceMappingURL=FormatNumericRangeToParts.d.ts.map |
@@ -5,2 +5,1 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number'; | ||
}): NumberFormatPart[]; | ||
//# sourceMappingURL=FormatNumericToParts.d.ts.map |
@@ -9,2 +9,1 @@ import { NumberFormatDigitInternalSlots } from '../types/number'; | ||
}; | ||
//# sourceMappingURL=FormatNumericToString.d.ts.map |
import { RoundingModeType, UnsignedRoundingModeType } from '../types/number'; | ||
export declare function GetUnsignedRoundingMode(roundingMode: RoundingModeType, isNegative: boolean): UnsignedRoundingModeType; | ||
//# sourceMappingURL=GetUnsignedRoundingMode.d.ts.map |
@@ -13,2 +13,1 @@ import { NumberFormatInternal, NumberFormatOptions, NumberFormatLocaleInternalData } from '../types/number'; | ||
}): Intl.NumberFormat; | ||
//# sourceMappingURL=InitializeNumberFormat.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): import("../types/number").NumberFormatPart[]; | ||
//# sourceMappingURL=PartitionNumberPattern.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number'; | ||
}): NumberFormatPart[]; | ||
//# sourceMappingURL=PartitionNumberRangePattern.d.ts.map |
@@ -6,2 +6,1 @@ import { NumberFormatDigitOptions, NumberFormatNotation, NumberFormatDigitInternalSlots } from '../types/number'; | ||
export declare function SetNumberFormatDigitOptions(internalSlots: NumberFormatDigitInternalSlots, opts: NumberFormatDigitOptions, mnfdDefault: number, mxfdDefault: number, notation: NumberFormatNotation): void; | ||
//# sourceMappingURL=SetNumberFormatDigitOptions.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberFormatOptions } from '../types/number'; | ||
}): void; | ||
//# sourceMappingURL=SetNumberFormatUnitOptions.d.ts.map |
@@ -10,2 +10,1 @@ import { RawNumberFormatResult } from '../types/number'; | ||
export declare function ToRawFixed(x: number, minFraction: number, maxFraction: number): RawNumberFormatResult; | ||
//# sourceMappingURL=ToRawFixed.d.ts.map |
import { RawNumberFormatResult } from '../types/number'; | ||
export declare function ToRawPrecision(x: number, minPrecision: number, maxPrecision: number): RawNumberFormatResult; | ||
//# sourceMappingURL=ToRawPrecision.d.ts.map |
@@ -9,2 +9,1 @@ /** | ||
}>; | ||
//# sourceMappingURL=PartitionPattern.d.ts.map |
export declare const S_UNICODE_REGEX: RegExp; | ||
//# sourceMappingURL=regex.generated.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
}): string[]; | ||
//# sourceMappingURL=SupportedLocales.d.ts.map |
@@ -11,2 +11,1 @@ export type Locale = string; | ||
} | ||
//# sourceMappingURL=core.d.ts.map |
@@ -136,2 +136,1 @@ export type Formats = Pick<Intl.DateTimeFormatOptions, 'weekday' | 'era' | 'year' | 'month' | 'day' | 'dayPeriod' | 'hour' | 'minute' | 'second' | 'timeZoneName'> & { | ||
} | ||
//# sourceMappingURL=date-time.d.ts.map |
@@ -66,2 +66,1 @@ import { LocaleData } from './core'; | ||
export {}; | ||
//# sourceMappingURL=displaynames.d.ts.map |
@@ -19,2 +19,1 @@ import { LocaleData } from './core'; | ||
} | ||
//# sourceMappingURL=list.d.ts.map |
@@ -165,2 +165,1 @@ import { LDMLPluralRule } from './plural-rules'; | ||
} | ||
//# sourceMappingURL=number.d.ts.map |
@@ -17,2 +17,1 @@ import { LocaleData } from './core'; | ||
} | ||
//# sourceMappingURL=plural-rules.d.ts.map |
@@ -41,2 +41,1 @@ import { LocaleData } from './core'; | ||
export {}; | ||
//# sourceMappingURL=relative-time.d.ts.map |
@@ -24,2 +24,1 @@ /** | ||
export declare function invariant(condition: boolean, message: string, Err?: any): asserts condition; | ||
//# sourceMappingURL=utils.d.ts.map |
import { UnsignedRoundingModeType } from '../types/number'; | ||
export declare function ApplyUnsignedRoundingMode(x: number, r1: number, r2: number, unsignedRoundingMode: UnsignedRoundingModeType): number; | ||
//# sourceMappingURL=ApplyUnsignedRoundingMode.d.ts.map |
@@ -5,2 +5,1 @@ /** | ||
export declare function CollapseNumberRange<T>(result: T): T; | ||
//# sourceMappingURL=CollapseNumberRange.d.ts.map |
@@ -12,2 +12,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): [number, number]; | ||
//# sourceMappingURL=ComputeExponent.d.ts.map |
@@ -10,2 +10,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): number; | ||
//# sourceMappingURL=ComputeExponentForMagnitude.d.ts.map |
@@ -7,2 +7,1 @@ /** | ||
}): number; | ||
//# sourceMappingURL=CurrencyDigits.d.ts.map |
export declare const digitMapping: Record<string, ReadonlyArray<string>>; | ||
//# sourceMappingURL=digit-mapping.generated.d.ts.map |
@@ -22,2 +22,1 @@ import { NumberFormatOptionsStyle, NumberFormatOptionsNotation, NumberFormatOptionsCompactDisplay, NumberFormatOptionsCurrencyDisplay, NumberFormatOptionsCurrencySign, NumberFormatOptionsUnitDisplay, NumberFormatLocaleInternalData, NumberFormatPart, UseGroupingType } from '../types/number'; | ||
export {}; | ||
//# sourceMappingURL=format_to_parts.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number'; | ||
}): NumberFormatPart[]; | ||
//# sourceMappingURL=FormatApproximately.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): string; | ||
//# sourceMappingURL=FormatNumericRange.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberRangeToParts } from '../types/number'; | ||
}): NumberRangeToParts[]; | ||
//# sourceMappingURL=FormatNumericRangeToParts.d.ts.map |
@@ -5,2 +5,1 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number'; | ||
}): NumberFormatPart[]; | ||
//# sourceMappingURL=FormatNumericToParts.d.ts.map |
@@ -9,2 +9,1 @@ import { NumberFormatDigitInternalSlots } from '../types/number'; | ||
}; | ||
//# sourceMappingURL=FormatNumericToString.d.ts.map |
import { RoundingModeType, UnsignedRoundingModeType } from '../types/number'; | ||
export declare function GetUnsignedRoundingMode(roundingMode: RoundingModeType, isNegative: boolean): UnsignedRoundingModeType; | ||
//# sourceMappingURL=GetUnsignedRoundingMode.d.ts.map |
@@ -13,2 +13,1 @@ import { NumberFormatInternal, NumberFormatOptions, NumberFormatLocaleInternalData } from '../types/number'; | ||
}): Intl.NumberFormat; | ||
//# sourceMappingURL=InitializeNumberFormat.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal } from '../types/number'; | ||
}): import("../types/number").NumberFormatPart[]; | ||
//# sourceMappingURL=PartitionNumberPattern.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberFormatPart } from '../types/number'; | ||
}): NumberFormatPart[]; | ||
//# sourceMappingURL=PartitionNumberRangePattern.d.ts.map |
@@ -6,2 +6,1 @@ import { NumberFormatDigitOptions, NumberFormatNotation, NumberFormatDigitInternalSlots } from '../types/number'; | ||
export declare function SetNumberFormatDigitOptions(internalSlots: NumberFormatDigitInternalSlots, opts: NumberFormatDigitOptions, mnfdDefault: number, mxfdDefault: number, notation: NumberFormatNotation): void; | ||
//# sourceMappingURL=SetNumberFormatDigitOptions.d.ts.map |
@@ -8,2 +8,1 @@ import { NumberFormatInternal, NumberFormatOptions } from '../types/number'; | ||
}): void; | ||
//# sourceMappingURL=SetNumberFormatUnitOptions.d.ts.map |
@@ -10,2 +10,1 @@ import { RawNumberFormatResult } from '../types/number'; | ||
export declare function ToRawFixed(x: number, minFraction: number, maxFraction: number): RawNumberFormatResult; | ||
//# sourceMappingURL=ToRawFixed.d.ts.map |
import { RawNumberFormatResult } from '../types/number'; | ||
export declare function ToRawPrecision(x: number, minPrecision: number, maxPrecision: number): RawNumberFormatResult; | ||
//# sourceMappingURL=ToRawPrecision.d.ts.map |
{ | ||
"name": "@formatjs/ecma402-abstract", | ||
"version": "1.15.0", | ||
"version": "1.16.0", | ||
"description": "A collection of implementation for ECMAScript abstract operations", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/intl-localematcher": "0.2.32", | ||
"@formatjs/intl-localematcher": "0.3.0", | ||
"tslib": "^2.4.0" | ||
@@ -33,2 +33,10 @@ }, | ||
"types": "index.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"import": "./lib/index.js", | ||
"default": "./index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"homepage": "https://github.com/formatjs/formatjs", | ||
@@ -35,0 +43,0 @@ "license": "MIT", |
@@ -9,2 +9,1 @@ /** | ||
}>; | ||
//# sourceMappingURL=PartitionPattern.d.ts.map |
export declare const S_UNICODE_REGEX: RegExp; | ||
//# sourceMappingURL=regex.generated.d.ts.map |
@@ -10,2 +10,1 @@ /** | ||
}): string[]; | ||
//# sourceMappingURL=SupportedLocales.d.ts.map |
@@ -11,2 +11,1 @@ export type Locale = string; | ||
} | ||
//# sourceMappingURL=core.d.ts.map |
@@ -136,2 +136,1 @@ export type Formats = Pick<Intl.DateTimeFormatOptions, 'weekday' | 'era' | 'year' | 'month' | 'day' | 'dayPeriod' | 'hour' | 'minute' | 'second' | 'timeZoneName'> & { | ||
} | ||
//# sourceMappingURL=date-time.d.ts.map |
@@ -66,2 +66,1 @@ import { LocaleData } from './core'; | ||
export {}; | ||
//# sourceMappingURL=displaynames.d.ts.map |
@@ -19,2 +19,1 @@ import { LocaleData } from './core'; | ||
} | ||
//# sourceMappingURL=list.d.ts.map |
@@ -165,2 +165,1 @@ import { LDMLPluralRule } from './plural-rules'; | ||
} | ||
//# sourceMappingURL=number.d.ts.map |
@@ -17,2 +17,1 @@ import { LocaleData } from './core'; | ||
} | ||
//# sourceMappingURL=plural-rules.d.ts.map |
@@ -41,2 +41,1 @@ import { LocaleData } from './core'; | ||
export {}; | ||
//# sourceMappingURL=relative-time.d.ts.map |
@@ -24,2 +24,1 @@ /** | ||
export declare function invariant(condition: boolean, message: string, Err?: any): asserts condition; | ||
//# sourceMappingURL=utils.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
318371
1
+ Added@formatjs/intl-localematcher@0.3.0(transitive)
- Removed@formatjs/intl-localematcher@0.2.32(transitive)