@formatjs/intl
Advanced tools
Comparing version 1.3.3 to 1.3.4
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/23/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-base | ||
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/227/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-base | ||
// composite: false | ||
@@ -4,0 +4,0 @@ // declaration: true |
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/25/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-esm | ||
// /home/longlho/.cache/bazel/_bazel_longlho/576c18efaac10246ec115c72af79fca6/sandbox/linux-sandbox/225/execroot/formatjs/node_modules/@bazel/typescript/internal/ts_project_options_validator.js checked attributes for //packages/intl:dist-esm | ||
// composite: false | ||
@@ -4,0 +4,0 @@ // declaration: true |
15
index.js
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createIntl = exports.formatNumberToParts = exports.formatNumber = exports.formatRelativeTime = exports.formatPlural = exports.formatList = exports.formatDisplayName = exports.formatTimeToParts = exports.formatTime = exports.formatDateToParts = exports.formatDate = exports.formatMessage = exports.getNamedFormat = exports.createFormatters = exports.DEFAULT_INTL_CONFIG = exports.filterProps = exports.createIntlCache = exports.defineMessage = exports.defineMessages = void 0; | ||
__exportStar(require("./src/types"), exports); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./src/types"), exports); | ||
function defineMessages(msgs) { | ||
@@ -29,3 +20,3 @@ return msgs; | ||
Object.defineProperty(exports, "getNamedFormat", { enumerable: true, get: function () { return utils_1.getNamedFormat; } }); | ||
__exportStar(require("./src/error"), exports); | ||
tslib_1.__exportStar(require("./src/error"), exports); | ||
var message_1 = require("./src/message"); | ||
@@ -32,0 +23,0 @@ Object.defineProperty(exports, "formatMessage", { enumerable: true, get: function () { return message_1.formatMessage; } }); |
@@ -1,12 +0,2 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { __assign } from "tslib"; | ||
import { createFormatters, DEFAULT_INTL_CONFIG } from './utils'; | ||
@@ -13,0 +3,0 @@ import { InvalidConfigError, MissingDataError } from './error'; |
@@ -1,12 +0,2 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { __assign } from "tslib"; | ||
import { filterProps, getNamedFormat } from './utils'; | ||
@@ -13,0 +3,0 @@ import { IntlError } from './error'; |
@@ -1,14 +0,2 @@ | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
import { __extends } from "tslib"; | ||
export var IntlErrorCode; | ||
@@ -15,0 +3,0 @@ (function (IntlErrorCode) { |
@@ -1,12 +0,2 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
import { __assign } from "tslib"; | ||
import { invariant } from '@formatjs/ecma402-abstract'; | ||
@@ -13,0 +3,0 @@ import { IntlMessageFormat, } from 'intl-messageformat'; |
@@ -1,19 +0,2 @@ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
import { __assign, __spreadArrays } from "tslib"; | ||
import { IntlMessageFormat } from 'intl-messageformat'; | ||
@@ -20,0 +3,0 @@ import * as memoize from 'fast-memoize'; |
{ | ||
"name": "@formatjs/intl", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.", | ||
@@ -32,10 +32,11 @@ "keywords": [ | ||
"dependencies": { | ||
"@formatjs/ecma402-abstract": "^1.2.2", | ||
"@formatjs/intl-displaynames": "^3.3.9", | ||
"@formatjs/intl-listformat": "^4.2.7", | ||
"@formatjs/intl-relativetimeformat": "^7.2.7", | ||
"@formatjs/ecma402-abstract": "^1.2.3", | ||
"@formatjs/intl-displaynames": "^3.3.10", | ||
"@formatjs/intl-listformat": "^4.2.8", | ||
"@formatjs/intl-relativetimeformat": "^7.2.8", | ||
"fast-memoize": "^2.5.2", | ||
"intl-messageformat": "^9.3.8", | ||
"intl-messageformat-parser": "^6.0.7" | ||
"intl-messageformat": "^9.3.9", | ||
"intl-messageformat-parser": "^6.0.8", | ||
"tslib": "^2.0.1" | ||
} | ||
} |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createIntl = void 0; | ||
var tslib_1 = require("tslib"); | ||
var utils_1 = require("./utils"); | ||
@@ -31,3 +21,3 @@ var error_1 = require("./error"); | ||
var formatters = utils_1.createFormatters(cache); | ||
var resolvedConfig = __assign(__assign({}, utils_1.DEFAULT_INTL_CONFIG), config); | ||
var resolvedConfig = tslib_1.__assign(tslib_1.__assign({}, utils_1.DEFAULT_INTL_CONFIG), config); | ||
var locale = resolvedConfig.locale, defaultLocale = resolvedConfig.defaultLocale, onError = resolvedConfig.onError; | ||
@@ -52,4 +42,4 @@ if (!locale) { | ||
} | ||
return __assign(__assign({}, resolvedConfig), { formatters: formatters, formatNumber: number_1.formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: number_1.formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: relativeTime_1.formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: dateTime_1.formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: dateTime_1.formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: dateTime_1.formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: dateTime_1.formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: plural_1.formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: message_1.formatMessage.bind(null, resolvedConfig, formatters), formatList: list_1.formatList.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: displayName_1.formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) }); | ||
return tslib_1.__assign(tslib_1.__assign({}, resolvedConfig), { formatters: formatters, formatNumber: number_1.formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: number_1.formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: relativeTime_1.formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: dateTime_1.formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: dateTime_1.formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: dateTime_1.formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: dateTime_1.formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: plural_1.formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: message_1.formatMessage.bind(null, resolvedConfig, formatters), formatList: list_1.formatList.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: displayName_1.formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) }); | ||
} | ||
exports.createIntl = createIntl; |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.formatTimeToParts = exports.formatDateToParts = exports.formatTime = exports.formatDate = exports.getFormatter = void 0; | ||
var tslib_1 = require("tslib"); | ||
var utils_1 = require("./utils"); | ||
@@ -43,3 +33,3 @@ var error_1 = require("./error"); | ||
var format = options.format; | ||
var defaults = __assign(__assign({}, (timeZone && { timeZone: timeZone })), (format && utils_1.getNamedFormat(formats, type, format, onError))); | ||
var defaults = tslib_1.__assign(tslib_1.__assign({}, (timeZone && { timeZone: timeZone })), (format && utils_1.getNamedFormat(formats, type, format, onError))); | ||
var filteredOptions = utils_1.filterProps(options, DATE_TIME_FORMAT_OPTIONS, defaults); | ||
@@ -51,3 +41,3 @@ if (type === 'time' && | ||
// Add default formatting options if hour, minute, or second isn't defined. | ||
filteredOptions = __assign(__assign({}, filteredOptions), { hour: 'numeric', minute: 'numeric' }); | ||
filteredOptions = tslib_1.__assign(tslib_1.__assign({}, filteredOptions), { hour: 'numeric', minute: 'numeric' }); | ||
} | ||
@@ -54,0 +44,0 @@ return getDateTimeFormat(locale, filteredOptions); |
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
}; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MissingTranslationError = exports.MessageFormatError = exports.MissingDataError = exports.InvalidConfigError = exports.UnsupportedFormatterError = exports.IntlError = exports.IntlErrorCode = void 0; | ||
var tslib_1 = require("tslib"); | ||
var IntlErrorCode; | ||
@@ -26,3 +14,3 @@ (function (IntlErrorCode) { | ||
var IntlError = /** @class */ (function (_super) { | ||
__extends(IntlError, _super); | ||
tslib_1.__extends(IntlError, _super); | ||
function IntlError(code, message, exception) { | ||
@@ -40,3 +28,3 @@ var _this = _super.call(this, "[@formatjs/intl Error " + code + "] " + message + " \n" + (exception ? "\n" + exception.message + "\n" + exception.stack : '')) || this; | ||
var UnsupportedFormatterError = /** @class */ (function (_super) { | ||
__extends(UnsupportedFormatterError, _super); | ||
tslib_1.__extends(UnsupportedFormatterError, _super); | ||
function UnsupportedFormatterError(message, exception) { | ||
@@ -49,3 +37,3 @@ return _super.call(this, "UNSUPPORTED_FORMATTER" /* UNSUPPORTED_FORMATTER */, message, exception) || this; | ||
var InvalidConfigError = /** @class */ (function (_super) { | ||
__extends(InvalidConfigError, _super); | ||
tslib_1.__extends(InvalidConfigError, _super); | ||
function InvalidConfigError(message, exception) { | ||
@@ -58,3 +46,3 @@ return _super.call(this, "INVALID_CONFIG" /* INVALID_CONFIG */, message, exception) || this; | ||
var MissingDataError = /** @class */ (function (_super) { | ||
__extends(MissingDataError, _super); | ||
tslib_1.__extends(MissingDataError, _super); | ||
function MissingDataError(message, exception) { | ||
@@ -67,3 +55,3 @@ return _super.call(this, "MISSING_DATA" /* MISSING_DATA */, message, exception) || this; | ||
var MessageFormatError = /** @class */ (function (_super) { | ||
__extends(MessageFormatError, _super); | ||
tslib_1.__extends(MessageFormatError, _super); | ||
function MessageFormatError(message, locale, descriptor, exception) { | ||
@@ -78,3 +66,3 @@ var _this = _super.call(this, "FORMAT_ERROR" /* FORMAT_ERROR */, message + " \nLocale: " + locale + "\nMessageID: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.id) + "\nDefault Message: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.defaultMessage) + "\nDescription: " + (descriptor === null || descriptor === void 0 ? void 0 : descriptor.description) + " \n", exception) || this; | ||
var MissingTranslationError = /** @class */ (function (_super) { | ||
__extends(MissingTranslationError, _super); | ||
tslib_1.__extends(MissingTranslationError, _super); | ||
function MissingTranslationError(descriptor, locale) { | ||
@@ -81,0 +69,0 @@ var _this = _super.call(this, "MISSING_TRANSLATION" /* MISSING_TRANSLATION */, "Missing message: \"" + descriptor.id + "\" for locale \"" + locale + "\", using " + (descriptor.defaultMessage ? 'default message' : 'id') + " as fallback.") || this; |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.formatMessage = void 0; | ||
var tslib_1 = require("tslib"); | ||
var ecma402_abstract_1 = require("@formatjs/ecma402-abstract"); | ||
@@ -21,3 +11,3 @@ var intl_messageformat_1 = require("intl-messageformat"); | ||
return Object.keys(opts).reduce(function (all, k) { | ||
all[k] = __assign({ timeZone: timeZone }, opts[k]); | ||
all[k] = tslib_1.__assign({ timeZone: timeZone }, opts[k]); | ||
return all; | ||
@@ -27,5 +17,5 @@ }, {}); | ||
function deepMergeOptions(opts1, opts2) { | ||
var keys = Object.keys(__assign(__assign({}, opts1), opts2)); | ||
var keys = Object.keys(tslib_1.__assign(tslib_1.__assign({}, opts1), opts2)); | ||
return keys.reduce(function (all, k) { | ||
all[k] = __assign(__assign({}, (opts1[k] || {})), (opts2[k] || {})); | ||
all[k] = tslib_1.__assign(tslib_1.__assign({}, (opts1[k] || {})), (opts2[k] || {})); | ||
return all; | ||
@@ -39,3 +29,3 @@ }, {}); | ||
var mfFormats = intl_messageformat_1.IntlMessageFormat.formats; | ||
return __assign(__assign(__assign({}, mfFormats), f1), { date: deepMergeOptions(setTimeZoneInOptions(mfFormats.date, timeZone), setTimeZoneInOptions(f1.date || {}, timeZone)), time: deepMergeOptions(setTimeZoneInOptions(mfFormats.time, timeZone), setTimeZoneInOptions(f1.time || {}, timeZone)) }); | ||
return tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, mfFormats), f1), { date: deepMergeOptions(setTimeZoneInOptions(mfFormats.date, timeZone), setTimeZoneInOptions(f1.date || {}, timeZone)), time: deepMergeOptions(setTimeZoneInOptions(mfFormats.time, timeZone), setTimeZoneInOptions(f1.time || {}, timeZone)) }); | ||
} | ||
@@ -75,3 +65,3 @@ function formatMessage(_a, state, messageDescriptor, values) { | ||
} | ||
values = __assign(__assign({}, defaultRichTextElements), (values || {})); | ||
values = tslib_1.__assign(tslib_1.__assign({}, defaultRichTextElements), (values || {})); | ||
formats = deepMergeFormatsAndSetTimeZone(formats, timeZone); | ||
@@ -78,0 +68,0 @@ defaultFormats = deepMergeFormatsAndSetTimeZone(defaultFormats, timeZone); |
"use strict"; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getNamedFormat = exports.createFormatters = exports.createIntlCache = exports.DEFAULT_INTL_CONFIG = exports.filterProps = void 0; | ||
var tslib_1 = require("tslib"); | ||
var intl_messageformat_1 = require("intl-messageformat"); | ||
var memoize = __importStar(require("fast-memoize")); | ||
var memoize = tslib_1.__importStar(require("fast-memoize")); | ||
var error_1 = require("./error"); | ||
@@ -117,3 +81,3 @@ function filterProps(props, whitelist, defaults) { | ||
} | ||
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, __spreadArrays([void 0], args)))(); | ||
return new ((_a = Intl.DateTimeFormat).bind.apply(_a, tslib_1.__spreadArrays([void 0], args)))(); | ||
}, { | ||
@@ -129,3 +93,3 @@ cache: createFastMemoizeCache(cache.dateTime), | ||
} | ||
return new ((_a = Intl.NumberFormat).bind.apply(_a, __spreadArrays([void 0], args)))(); | ||
return new ((_a = Intl.NumberFormat).bind.apply(_a, tslib_1.__spreadArrays([void 0], args)))(); | ||
}, { | ||
@@ -141,3 +105,3 @@ cache: createFastMemoizeCache(cache.number), | ||
} | ||
return new ((_a = Intl.PluralRules).bind.apply(_a, __spreadArrays([void 0], args)))(); | ||
return new ((_a = Intl.PluralRules).bind.apply(_a, tslib_1.__spreadArrays([void 0], args)))(); | ||
}, { | ||
@@ -151,3 +115,3 @@ cache: createFastMemoizeCache(cache.pluralRules), | ||
getMessageFormat: memoizeIntl(function (message, locales, overrideFormats, opts) { | ||
return new intl_messageformat_1.IntlMessageFormat(message, locales, overrideFormats, __assign({ formatters: { | ||
return new intl_messageformat_1.IntlMessageFormat(message, locales, overrideFormats, tslib_1.__assign({ formatters: { | ||
getNumberFormat: getNumberFormat, | ||
@@ -166,3 +130,3 @@ getDateTimeFormat: getDateTimeFormat, | ||
} | ||
return new (RelativeTimeFormat.bind.apply(RelativeTimeFormat, __spreadArrays([void 0], args)))(); | ||
return new (RelativeTimeFormat.bind.apply(RelativeTimeFormat, tslib_1.__spreadArrays([void 0], args)))(); | ||
}, { | ||
@@ -178,3 +142,3 @@ cache: createFastMemoizeCache(cache.relativeTime), | ||
} | ||
return new (ListFormat.bind.apply(ListFormat, __spreadArrays([void 0], args)))(); | ||
return new (ListFormat.bind.apply(ListFormat, tslib_1.__spreadArrays([void 0], args)))(); | ||
}, { | ||
@@ -189,3 +153,3 @@ cache: createFastMemoizeCache(cache.list), | ||
} | ||
return new (DisplayNames.bind.apply(DisplayNames, __spreadArrays([void 0], args)))(); | ||
return new (DisplayNames.bind.apply(DisplayNames, tslib_1.__spreadArrays([void 0], args)))(); | ||
}, { | ||
@@ -192,0 +156,0 @@ cache: createFastMemoizeCache(cache.displayNames), |
122613
8
1860