@formatjs/intl-listformat 5.0.13 → 5.0.14
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/LICENSE.md +1 -1
- package/package.json +2 -2
- package/polyfill.iife.js +20 -20
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2021 FormatJS
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/intl-listformat",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.14",
|
|
4
4
|
"description": "Formats JS list in a i18n-safe way",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"intl",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "git@github.com:formatjs/formatjs.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@formatjs/ecma402-abstract": "1.6.
|
|
22
|
+
"@formatjs/ecma402-abstract": "1.6.5",
|
|
23
23
|
"tslib": "^2.1.0"
|
|
24
24
|
},
|
|
25
25
|
"main": "index.js",
|
package/polyfill.iife.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
return __assign.apply(this, arguments);
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
// bazel-out/
|
|
49
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/utils.js
|
|
50
50
|
function setInternalSlot(map, pl, field, value) {
|
|
51
51
|
if (!map.get(pl)) {
|
|
52
52
|
map.set(pl, Object.create(null));
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
// bazel-out/
|
|
87
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/types/date-time.js
|
|
88
88
|
var RangePatternType;
|
|
89
89
|
(function(RangePatternType2) {
|
|
90
90
|
RangePatternType2["startRange"] = "startRange";
|
|
@@ -92,12 +92,12 @@
|
|
|
92
92
|
RangePatternType2["endRange"] = "endRange";
|
|
93
93
|
})(RangePatternType || (RangePatternType = {}));
|
|
94
94
|
|
|
95
|
-
// bazel-out/
|
|
95
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/CanonicalizeLocaleList.js
|
|
96
96
|
function CanonicalizeLocaleList(locales) {
|
|
97
97
|
return Intl.getCanonicalLocales(locales);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
// bazel-out/
|
|
100
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/262.js
|
|
101
101
|
function ToString(o) {
|
|
102
102
|
if (typeof o === "symbol") {
|
|
103
103
|
throw TypeError("Cannot convert a Symbol value to a string");
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
var MS_PER_MINUTE = MS_PER_SECOND * SECONDS_PER_MINUTE;
|
|
117
117
|
var MS_PER_HOUR = MS_PER_MINUTE * MINUTES_PER_HOUR;
|
|
118
118
|
|
|
119
|
-
// bazel-out/
|
|
119
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/PartitionPattern.js
|
|
120
120
|
function PartitionPattern(pattern) {
|
|
121
121
|
var result = [];
|
|
122
122
|
var beginIndex = pattern.indexOf("{");
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
return result;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
// bazel-out/
|
|
151
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/GetOption.js
|
|
152
152
|
function GetOption(opts, prop, type, values, fallback) {
|
|
153
153
|
if (typeof opts !== "object") {
|
|
154
154
|
throw new TypeError("Options must be an object");
|
|
@@ -174,7 +174,7 @@
|
|
|
174
174
|
return fallback;
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
-
// bazel-out/
|
|
177
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/BestAvailableLocale.js
|
|
178
178
|
function BestAvailableLocale(availableLocales, locale) {
|
|
179
179
|
var candidate = locale;
|
|
180
180
|
while (true) {
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
// bazel-out/
|
|
195
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/LookupMatcher.js
|
|
196
196
|
function LookupMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
197
197
|
var result = {locale: ""};
|
|
198
198
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
return result;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
// bazel-out/
|
|
214
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/BestFitMatcher.js
|
|
215
215
|
function BestFitMatcher(availableLocales, requestedLocales, getDefaultLocale) {
|
|
216
216
|
var minimizedAvailableLocaleMap = {};
|
|
217
217
|
var minimizedAvailableLocales = new Set();
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
};
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
// bazel-out/
|
|
252
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/UnicodeExtensionValue.js
|
|
253
253
|
function UnicodeExtensionValue(extension, key) {
|
|
254
254
|
invariant(key.length === 2, "key must have 2 elements");
|
|
255
255
|
var size = extension.length;
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
return void 0;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
// bazel-out/
|
|
291
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/ResolveLocale.js
|
|
292
292
|
function ResolveLocale(availableLocales, requestedLocales, options, relevantExtensionKeys, localeData, getDefaultLocale) {
|
|
293
293
|
var matcher = options.localeMatcher;
|
|
294
294
|
var r;
|
|
@@ -352,7 +352,7 @@
|
|
|
352
352
|
return result;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
-
// bazel-out/
|
|
355
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/GetOptionsObject.js
|
|
356
356
|
function GetOptionsObject(options) {
|
|
357
357
|
if (typeof options === "undefined") {
|
|
358
358
|
return Object.create(null);
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
throw new TypeError("Options must be an object");
|
|
364
364
|
}
|
|
365
365
|
|
|
366
|
-
// bazel-out/
|
|
366
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/IsSanctionedSimpleUnitIdentifier.js
|
|
367
367
|
var SANCTIONED_UNITS = [
|
|
368
368
|
"angle-degree",
|
|
369
369
|
"area-acre",
|
|
@@ -414,12 +414,12 @@
|
|
|
414
414
|
}
|
|
415
415
|
var SIMPLE_UNITS = SANCTIONED_UNITS.map(removeUnitNamespace);
|
|
416
416
|
|
|
417
|
-
// bazel-out/
|
|
417
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/NumberFormat/format_to_parts.js
|
|
418
418
|
var S_UNICODE_REGEX = /[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B98-\u2BFF\u2CE5-\u2CEA\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9B\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD10-\uDD6C\uDD70-\uDDAC\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED5\uDEE0-\uDEEC\uDEF0-\uDEFA\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD00-\uDD0B\uDD0D-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95]/;
|
|
419
419
|
var CARET_S_UNICODE_REGEX = new RegExp("^" + S_UNICODE_REGEX.source);
|
|
420
420
|
var S_DOLLAR_UNICODE_REGEX = new RegExp(S_UNICODE_REGEX.source + "$");
|
|
421
421
|
|
|
422
|
-
// bazel-out/
|
|
422
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/LookupSupportedLocales.js
|
|
423
423
|
function LookupSupportedLocales(availableLocales, requestedLocales) {
|
|
424
424
|
var subset = [];
|
|
425
425
|
for (var _i = 0, requestedLocales_1 = requestedLocales; _i < requestedLocales_1.length; _i++) {
|
|
@@ -433,7 +433,7 @@
|
|
|
433
433
|
return subset;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
// bazel-out/
|
|
436
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/SupportedLocales.js
|
|
437
437
|
function SupportedLocales(availableLocales, requestedLocales, options) {
|
|
438
438
|
var matcher = "best fit";
|
|
439
439
|
if (options !== void 0) {
|
|
@@ -446,7 +446,7 @@
|
|
|
446
446
|
return LookupSupportedLocales(availableLocales, requestedLocales);
|
|
447
447
|
}
|
|
448
448
|
|
|
449
|
-
// bazel-out/
|
|
449
|
+
// bazel-out/k8-fastbuild/bin/packages/ecma402-abstract/lib/data.js
|
|
450
450
|
var MissingLocaleDataError = function(_super) {
|
|
451
451
|
__extends(MissingLocaleDataError2, _super);
|
|
452
452
|
function MissingLocaleDataError2() {
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
return MissingLocaleDataError2;
|
|
458
458
|
}(Error);
|
|
459
459
|
|
|
460
|
-
// bazel-out/
|
|
460
|
+
// bazel-out/k8-fastbuild/bin/packages/intl-listformat/lib/index.js
|
|
461
461
|
function validateInstance(instance, method) {
|
|
462
462
|
if (!(instance instanceof ListFormat)) {
|
|
463
463
|
throw new TypeError("Method Intl.ListFormat.prototype." + method + " called on incompatible receiver " + String(instance));
|
|
@@ -650,12 +650,12 @@
|
|
|
650
650
|
} catch (e) {
|
|
651
651
|
}
|
|
652
652
|
|
|
653
|
-
// bazel-out/
|
|
653
|
+
// bazel-out/k8-fastbuild/bin/packages/intl-listformat/lib/should-polyfill.js
|
|
654
654
|
function shouldPolyfill() {
|
|
655
655
|
return typeof Intl === "undefined" || !("ListFormat" in Intl);
|
|
656
656
|
}
|
|
657
657
|
|
|
658
|
-
// bazel-out/
|
|
658
|
+
// bazel-out/k8-fastbuild/bin/packages/intl-listformat/lib/polyfill.js
|
|
659
659
|
if (shouldPolyfill()) {
|
|
660
660
|
Object.defineProperty(Intl, "ListFormat", {
|
|
661
661
|
value: lib_default,
|