lingo.dev 0.90.2 → 0.90.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.
package/README.md CHANGED
@@ -174,4 +174,4 @@ Want to contribute? Create a pull request!
174
174
  - [Hindi](/readme/hi.md)
175
175
  - [Bengali](/readme/bn.md)
176
176
 
177
- Don't see your language? Just add a new language code to the [`i18n.json`](./i18n.json) file and open a PR.
177
+ Don't see your language? Just add a new language code to the [`i18n.json`](./i18n.json) file and open a PR!
package/build/cli.cjs CHANGED
@@ -1357,12 +1357,7 @@ function createAndroidLoader() {
1357
1357
  }
1358
1358
  const cdataRegex = /<!\[CDATA\[([\s\S]*?)\]\]>/g;
1359
1359
  value = value.replace(cdataRegex, (match, content) => content);
1360
- value = value.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/&apos;/g, "'");
1361
- if (value.startsWith('"') && value.endsWith('"') && value.length >= 2) {
1362
- value = value.substring(1, value.length - 1);
1363
- } else {
1364
- value = value === "" || /^\s+$/.test(value) ? value : value.trim();
1365
- }
1360
+ value = value.replace(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/g, "&").replace(/&quot;/g, '"').replace(/&apos;/g, "'").replace(/\\'/g, "'");
1366
1361
  result[name] = value;
1367
1362
  }
1368
1363
  const parsed = await _xml2js.parseStringPromise.call(void 0, input2, {
@@ -1394,7 +1389,9 @@ function createAndroidLoader() {
1394
1389
  } else if (item._ === "") {
1395
1390
  itemValue = "";
1396
1391
  }
1397
- items.push(itemValue === "" || /^\s+$/.test(itemValue) ? itemValue : itemValue.trim());
1392
+ items.push(
1393
+ itemValue === "" || /^\s+$/.test(itemValue) ? itemValue : itemValue.trim()
1394
+ );
1398
1395
  });
1399
1396
  }
1400
1397
  result[name] = items;
@@ -1463,9 +1460,8 @@ function createAndroidLoader() {
1463
1460
  };
1464
1461
  const processHtmlContent = (str) => {
1465
1462
  if (typeof str !== "string") return { _: String(str) };
1466
- const containsHtml = /<[a-z][\s\S]*>/i.test(str);
1467
- const containsSpecialChars = /[<>&]/.test(str);
1468
- return { _: str };
1463
+ const processedStr = str.replace(/'/g, "\\'");
1464
+ return { _: processedStr };
1469
1465
  };
1470
1466
  for (const [key, value] of Object.entries(payload)) {
1471
1467
  if (typeof value === "string") {
@@ -5513,7 +5509,24 @@ var getPlatformKit = () => {
5513
5509
  };
5514
5510
 
5515
5511
  // src/cli/cmd/ci/index.ts
5516
- var ci_default = new (0, _interactivecommander.Command)().command("ci").description("Run Lingo.dev CI/CD action").helpOption("-h, --help", "Show help").option("--api-key <key>", "API key").option("--pull-request", "Create a pull request with the changes", false).option("--commit-message <message>", "Commit message").option("--pull-request-title <title>", "Pull request title").option("--working-directory <dir>", "Working directory").option("--process-own-commits", "Process commits made by this action", false).action(async (options) => {
5512
+
5513
+ var ci_default = new (0, _interactivecommander.Command)().command("ci").description("Run Lingo.dev CI/CD action").helpOption("-h, --help", "Show help").option("--api-key <key>", "API key").option("--pull-request [boolean]", "Create a pull request with the changes").option("--commit-message <message>", "Commit message").option("--pull-request-title <title>", "Pull request title").option("--working-directory <dir>", "Working directory").option(
5514
+ "--process-own-commits [boolean]",
5515
+ "Process commits made by this action"
5516
+ ).option(
5517
+ "--debug",
5518
+ "Debug mode. Wait for user input before continuing.",
5519
+ false
5520
+ ).action(async (options) => {
5521
+ if (options.debug) {
5522
+ const { debug } = await _inquirer2.default.prompt([
5523
+ {
5524
+ type: "confirm",
5525
+ name: "debug",
5526
+ message: "Debug mode. Wait for user input before continuing."
5527
+ }
5528
+ ]);
5529
+ }
5517
5530
  const settings = getSettings(options.apiKey);
5518
5531
  if (!settings.auth.apiKey) {
5519
5532
  console.error("No API key provided");
@@ -6053,7 +6066,7 @@ async function renderHero() {
6053
6066
  // package.json
6054
6067
  var package_default = {
6055
6068
  name: "lingo.dev",
6056
- version: "0.90.2",
6069
+ version: "0.90.3",
6057
6070
  description: "Lingo.dev CLI",
6058
6071
  private: false,
6059
6072
  publishConfig: {