lingo.dev 0.117.5 → 0.117.6

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/build/cli.mjs CHANGED
@@ -2728,16 +2728,9 @@ function appendResourceNode(document, resourceNode) {
2728
2728
  function setTextualNodeContent(node, value, useCdata) {
2729
2729
  const escapedValue = useCdata ? escapeApostrophesOnly(value) : escapeAndroidString(value);
2730
2730
  node._ = escapedValue;
2731
- node.$$ = node.$$ ?? [];
2732
- let textNode = node.$$.find(
2733
- (child) => child["#name"] === "__text__" || child["#name"] === "__cdata"
2734
- );
2735
- if (!textNode) {
2736
- textNode = {};
2737
- node.$$.push(textNode);
2738
- }
2739
- textNode["#name"] = useCdata ? "__cdata" : "__text__";
2740
- textNode._ = escapedValue;
2731
+ node.$$ = [
2732
+ { "#name": useCdata ? "__cdata" : "__text__", _: escapedValue }
2733
+ ];
2741
2734
  }
2742
2735
  function buildResourceNameMap(document) {
2743
2736
  const map = /* @__PURE__ */ new Map();
@@ -13839,7 +13832,7 @@ async function renderHero2() {
13839
13832
  // package.json
13840
13833
  var package_default = {
13841
13834
  name: "lingo.dev",
13842
- version: "0.117.5",
13835
+ version: "0.117.6",
13843
13836
  description: "Lingo.dev CLI",
13844
13837
  private: false,
13845
13838
  publishConfig: {