@formatjs/ecma402-abstract
Advanced tools
Comparing version
@@ -24,3 +24,2 @@ export * from './CanonicalizeLocaleList'; | ||
export * from './PartitionPattern'; | ||
export * from './ResolveLocale'; | ||
export * from './SupportedLocales'; | ||
@@ -27,0 +26,0 @@ export { getInternalSlot, getMultiInternalSlots, isLiteralPart, setInternalSlot, setMultiInternalSlots, getMagnitude, defineProperty, } from './utils'; |
@@ -29,3 +29,2 @@ "use strict"; | ||
tslib_1.__exportStar(require("./PartitionPattern"), exports); | ||
tslib_1.__exportStar(require("./ResolveLocale"), exports); | ||
tslib_1.__exportStar(require("./SupportedLocales"), exports); | ||
@@ -32,0 +31,0 @@ var utils_1 = require("./utils"); |
@@ -24,3 +24,2 @@ export * from './CanonicalizeLocaleList'; | ||
export * from './PartitionPattern'; | ||
export * from './ResolveLocale'; | ||
export * from './SupportedLocales'; | ||
@@ -27,0 +26,0 @@ export { getInternalSlot, getMultiInternalSlots, isLiteralPart, setInternalSlot, setMultiInternalSlots, getMagnitude, defineProperty, } from './utils'; |
@@ -24,3 +24,2 @@ export * from './CanonicalizeLocaleList'; | ||
export * from './PartitionPattern'; | ||
export * from './ResolveLocale'; | ||
export * from './SupportedLocales'; | ||
@@ -27,0 +26,0 @@ export { getInternalSlot, getMultiInternalSlots, isLiteralPart, setInternalSlot, setMultiInternalSlots, getMagnitude, defineProperty, } from './utils'; |
import { CanonicalizeLocaleList } from '../CanonicalizeLocaleList'; | ||
import { GetOption } from '../GetOption'; | ||
import { ResolveLocale } from '../ResolveLocale'; | ||
import { ResolveLocale } from '@formatjs/intl-localematcher'; | ||
import { SetNumberFormatUnitOptions } from './SetNumberFormatUnitOptions'; | ||
@@ -5,0 +5,0 @@ import { CurrencyDigits } from './CurrencyDigits'; |
import { ToObject } from './262'; | ||
import { GetOption } from './GetOption'; | ||
import { LookupSupportedLocales } from './LookupSupportedLocales'; | ||
import { LookupSupportedLocales } from '@formatjs/intl-localematcher'; | ||
/** | ||
@@ -5,0 +5,0 @@ * https://tc39.es/ecma402/#sec-supportedlocales |
@@ -6,3 +6,3 @@ "use strict"; | ||
var GetOption_1 = require("../GetOption"); | ||
var ResolveLocale_1 = require("../ResolveLocale"); | ||
var intl_localematcher_1 = require("@formatjs/intl-localematcher"); | ||
var SetNumberFormatUnitOptions_1 = require("./SetNumberFormatUnitOptions"); | ||
@@ -32,3 +32,3 @@ var CurrencyDigits_1 = require("./CurrencyDigits"); | ||
opt.nu = numberingSystem; | ||
var r = ResolveLocale_1.ResolveLocale(availableLocales, requestedLocales, opt, | ||
var r = intl_localematcher_1.ResolveLocale(availableLocales, requestedLocales, opt, | ||
// [[RelevantExtensionKeys]] slot, which is a constant | ||
@@ -35,0 +35,0 @@ ['nu'], localeData, getDefaultLocale); |
{ | ||
"name": "@formatjs/ecma402-abstract", | ||
"version": "1.9.4", | ||
"version": "1.9.5", | ||
"description": "A collection of implementation for ECMAScript abstract operations", | ||
@@ -17,2 +17,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/intl-localematcher": "0.2.18", | ||
"tslib": "^2.1.0" | ||
@@ -19,0 +20,0 @@ }, |
@@ -6,3 +6,3 @@ "use strict"; | ||
var GetOption_1 = require("./GetOption"); | ||
var LookupSupportedLocales_1 = require("./LookupSupportedLocales"); | ||
var intl_localematcher_1 = require("@formatjs/intl-localematcher"); | ||
/** | ||
@@ -21,6 +21,6 @@ * https://tc39.es/ecma402/#sec-supportedlocales | ||
if (matcher === 'best fit') { | ||
return LookupSupportedLocales_1.LookupSupportedLocales(availableLocales, requestedLocales); | ||
return intl_localematcher_1.LookupSupportedLocales(availableLocales, requestedLocales); | ||
} | ||
return LookupSupportedLocales_1.LookupSupportedLocales(availableLocales, requestedLocales); | ||
return intl_localematcher_1.LookupSupportedLocales(availableLocales, requestedLocales); | ||
} | ||
exports.SupportedLocales = SupportedLocales; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
274224
-9.09%2
100%231
-13.48%5157
-10.27%+ Added