@formatjs/cli 6.16.14 → 6.16.15
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/bin/formatjs +13 -12
- package/bin/formatjs.map +1 -1
- package/package.json +7 -7
package/bin/formatjs
CHANGED
|
@@ -15182,11 +15182,11 @@ function doPrintAST(ast, isInPlural) {
|
|
|
15182
15182
|
if (isPluralElement(el)) return printPluralElement(el);
|
|
15183
15183
|
if (isSelectElement(el)) return printSelectElement(el);
|
|
15184
15184
|
if (isPoundElement(el)) return "#";
|
|
15185
|
-
if (isTagElement(el)) return printTagElement(el);
|
|
15185
|
+
if (isTagElement(el)) return printTagElement(el, isInPlural);
|
|
15186
15186
|
}).join("");
|
|
15187
15187
|
}
|
|
15188
|
-
function printTagElement(el) {
|
|
15189
|
-
return `<${el.value}>${
|
|
15188
|
+
function printTagElement(el, isInPlural) {
|
|
15189
|
+
return `<${el.value}>${doPrintAST(el.children, isInPlural)}</${el.value}>`;
|
|
15190
15190
|
}
|
|
15191
15191
|
function quoteSyntaxToken(token) {
|
|
15192
15192
|
return `'${token.split("'").join("''")}'`;
|
|
@@ -162951,7 +162951,16 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
162951
162951
|
}
|
|
162952
162952
|
});
|
|
162953
162953
|
}));
|
|
162954
|
-
|
|
162954
|
+
//#endregion
|
|
162955
|
+
//#region node_modules/.aspect_rules_js/@typescript+typescript6@6.0.2/node_modules/@typescript/typescript6/lib/typescript.js
|
|
162956
|
+
var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
162957
|
+
module.exports = require_typescript$1();
|
|
162958
|
+
}));
|
|
162959
|
+
//#endregion
|
|
162960
|
+
//#region node_modules/.aspect_rules_js/@formatjs+ts-transformer@0.0.0/node_modules/@formatjs/ts-transformer/index.js
|
|
162961
|
+
var import_compat = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
162962
|
+
module.exports = require_typescript();
|
|
162963
|
+
})))(), 1);
|
|
162955
162964
|
const LEVEL_COLORS = {
|
|
162956
162965
|
debug: "green",
|
|
162957
162966
|
warn: "yellow",
|
|
@@ -163543,15 +163552,7 @@ async function resolveBuiltinFormatter(format) {
|
|
|
163543
163552
|
}
|
|
163544
163553
|
}
|
|
163545
163554
|
//#endregion
|
|
163546
|
-
//#region node_modules/.aspect_rules_js/@typescript+typescript6@6.0.2/node_modules/@typescript/typescript6/lib/typescript.js
|
|
163547
|
-
var require_typescript = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
163548
|
-
module.exports = require_typescript$1();
|
|
163549
|
-
}));
|
|
163550
|
-
//#endregion
|
|
163551
163555
|
//#region packages/cli-lib/parse_script.ts
|
|
163552
|
-
var import_compat = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
163553
|
-
module.exports = require_typescript();
|
|
163554
|
-
})))());
|
|
163555
163556
|
/**
|
|
163556
163557
|
* Invoid TypeScript module transpilation with our TS transformer
|
|
163557
163558
|
* @param opts Formatjs TS Transformer opt
|