intl-messageformat 9.10.0 → 9.11.3
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.
|
@@ -1035,7 +1035,7 @@ var Parser = function() {
|
|
|
1035
1035
|
var _a2;
|
|
1036
1036
|
var hasOtherClause = false;
|
|
1037
1037
|
var options = [];
|
|
1038
|
-
var parsedSelectors = new Set();
|
|
1038
|
+
var parsedSelectors = /* @__PURE__ */ new Set();
|
|
1039
1039
|
var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
|
|
1040
1040
|
while (true) {
|
|
1041
1041
|
if (selector.length === 0) {
|
|
@@ -1322,7 +1322,7 @@ var serializerDefault = function() {
|
|
|
1322
1322
|
return JSON.stringify(arguments);
|
|
1323
1323
|
};
|
|
1324
1324
|
function ObjectWithoutPrototypeCache() {
|
|
1325
|
-
this.cache = Object.create(null);
|
|
1325
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1326
1326
|
}
|
|
1327
1327
|
ObjectWithoutPrototypeCache.prototype.get = function(key) {
|
|
1328
1328
|
return this.cache[key];
|
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
var IntlMessageFormat = (function() {
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
6
|
var __markAsModule = function(target) {
|
|
4
7
|
return __defProp(target, "__esModule", { value: true });
|
|
5
8
|
};
|
|
6
9
|
var __export = function(target, all) {
|
|
7
|
-
__markAsModule(target);
|
|
8
10
|
for (var name in all)
|
|
9
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
12
|
};
|
|
13
|
+
var __reExport = function(target, module, copyDefault, desc) {
|
|
14
|
+
if (module && typeof module === "object" || typeof module === "function")
|
|
15
|
+
for (var keys = __getOwnPropNames(module), i = 0, n = keys.length, key; i < n; i++) {
|
|
16
|
+
key = keys[i];
|
|
17
|
+
if (!__hasOwnProp.call(target, key) && (copyDefault || key !== "default"))
|
|
18
|
+
__defProp(target, key, { get: function(k) {
|
|
19
|
+
return module[k];
|
|
20
|
+
}.bind(null, key), enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return target;
|
|
23
|
+
};
|
|
24
|
+
var __toCommonJS = /* @__PURE__ */ function(cache) {
|
|
25
|
+
return function(module, temp) {
|
|
26
|
+
return cache && cache.get(module) || (temp = __reExport(__markAsModule({}), module, 1), cache && cache.set(module, temp), temp);
|
|
27
|
+
};
|
|
28
|
+
}(typeof WeakMap !== "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
11
29
|
|
|
12
30
|
// bazel-out/darwin-fastbuild/bin/packages/intl-messageformat/lib/index.js
|
|
13
31
|
var lib_exports = {};
|
|
@@ -85,7 +103,7 @@ var IntlMessageFormat = (function() {
|
|
|
85
103
|
ar[i] = from[i];
|
|
86
104
|
}
|
|
87
105
|
}
|
|
88
|
-
return to.concat(ar || from);
|
|
106
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
89
107
|
}
|
|
90
108
|
|
|
91
109
|
// bazel-out/darwin-fastbuild/bin/packages/icu-messageformat-parser/lib/error.js
|
|
@@ -1104,7 +1122,7 @@ var IntlMessageFormat = (function() {
|
|
|
1104
1122
|
var _a2;
|
|
1105
1123
|
var hasOtherClause = false;
|
|
1106
1124
|
var options = [];
|
|
1107
|
-
var parsedSelectors = new Set();
|
|
1125
|
+
var parsedSelectors = /* @__PURE__ */ new Set();
|
|
1108
1126
|
var selector = parsedFirstIdentifier.value, selectorLocation = parsedFirstIdentifier.location;
|
|
1109
1127
|
while (true) {
|
|
1110
1128
|
if (selector.length === 0) {
|
|
@@ -1391,7 +1409,7 @@ var IntlMessageFormat = (function() {
|
|
|
1391
1409
|
return JSON.stringify(arguments);
|
|
1392
1410
|
};
|
|
1393
1411
|
function ObjectWithoutPrototypeCache() {
|
|
1394
|
-
this.cache = Object.create(null);
|
|
1412
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1395
1413
|
}
|
|
1396
1414
|
ObjectWithoutPrototypeCache.prototype.get = function(key) {
|
|
1397
1415
|
return this.cache[key];
|
|
@@ -1802,7 +1820,7 @@ var IntlMessageFormat = (function() {
|
|
|
1802
1820
|
|
|
1803
1821
|
// bazel-out/darwin-fastbuild/bin/packages/intl-messageformat/lib/index.js
|
|
1804
1822
|
var lib_default = IntlMessageFormat;
|
|
1805
|
-
return lib_exports;
|
|
1823
|
+
return __toCommonJS(lib_exports);
|
|
1806
1824
|
})();
|
|
1807
1825
|
/*! *****************************************************************************
|
|
1808
1826
|
Copyright (c) Microsoft Corporation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intl-messageformat",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.11.3",
|
|
4
4
|
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"module": "lib/index.js",
|
|
32
32
|
"types": "index.d.ts",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@formatjs/ecma402-abstract": "1.11.
|
|
35
|
-
"@formatjs/fast-memoize": "1.2.
|
|
36
|
-
"@formatjs/icu-messageformat-parser": "2.0.
|
|
34
|
+
"@formatjs/ecma402-abstract": "1.11.2",
|
|
35
|
+
"@formatjs/fast-memoize": "1.2.1",
|
|
36
|
+
"@formatjs/icu-messageformat-parser": "2.0.17",
|
|
37
37
|
"tslib": "^2.1.0"
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|