lingo.dev 0.117.18 → 0.117.19

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.cjs CHANGED
@@ -10870,7 +10870,7 @@ var { machineIdSync } = _nodemachineid2.default;
10870
10870
  var POSTHOG_API_KEY = "phc_eR0iSoQufBxNY36k0f0T15UvHJdTfHlh8rJcxsfhfXk";
10871
10871
  var POSTHOG_HOST = "eu.i.posthog.com";
10872
10872
  var POSTHOG_PATH = "/i/v0/e/";
10873
- var REQUEST_TIMEOUT_MS = 1e3;
10873
+ var REQUEST_TIMEOUT_MS = 3e3;
10874
10874
  var TRACKING_VERSION = "2.0";
10875
10875
  function determineDistinctId(providedId) {
10876
10876
  if (providedId) {
@@ -11128,6 +11128,9 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
11128
11128
  "Stop immediately on first error instead of continuing to process remaining buckets and locales (fail-fast mode)"
11129
11129
  ).action(async function(options) {
11130
11130
  updateGitignore();
11131
+ await trackEvent(null, "cmd.i18n.start", {
11132
+ rawOptions: options
11133
+ });
11131
11134
  const ora = _ora2.default.call(void 0, );
11132
11135
  let flags;
11133
11136
  try {
@@ -11142,6 +11145,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
11142
11145
  errorCount: 1,
11143
11146
  stage: "flag_validation"
11144
11147
  });
11148
+ await new Promise((resolve) => setTimeout(resolve, 50));
11145
11149
  throw parseError;
11146
11150
  }
11147
11151
  if (flags.debug) {
@@ -11174,10 +11178,6 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
11174
11178
  authId = auth.id;
11175
11179
  ora.succeed(`Authenticated as ${auth.email}`);
11176
11180
  }
11177
- await trackEvent(authId, "cmd.i18n.start", {
11178
- i18nConfig,
11179
- flags
11180
- });
11181
11181
  let buckets = getBuckets(i18nConfig);
11182
11182
  if (_optionalChain([flags, 'access', _343 => _343.bucket, 'optionalAccess', _344 => _344.length])) {
11183
11183
  buckets = buckets.filter(
@@ -11531,6 +11531,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
11531
11531
  localeCount: targetLocales.length,
11532
11532
  processedSuccessfully: true
11533
11533
  });
11534
+ await new Promise((resolve) => setTimeout(resolve, 50));
11534
11535
  } else {
11535
11536
  ora.warn("Localization completed with errors.");
11536
11537
  await trackEvent(authId, "cmd.i18n.error", {
@@ -11542,6 +11543,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
11542
11543
  i18nConfig
11543
11544
  )
11544
11545
  });
11546
+ await new Promise((resolve) => setTimeout(resolve, 50));
11545
11547
  }
11546
11548
  } catch (error) {
11547
11549
  ora.fail(error.message);
@@ -11570,6 +11572,7 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
11570
11572
  errorCount: errorDetails.length + 1,
11571
11573
  previousErrors: createPreviousErrorContext(errorDetails)
11572
11574
  });
11575
+ await new Promise((resolve) => setTimeout(resolve, 50));
11573
11576
  }
11574
11577
  });
11575
11578
  function parseFlags(options) {
@@ -13314,8 +13317,10 @@ var run_default = new (0, _interactivecommander.Command)().command("run").descri
13314
13317
  config: ctx.config,
13315
13318
  flags: ctx.flags
13316
13319
  });
13320
+ await new Promise((resolve) => setTimeout(resolve, 50));
13317
13321
  } catch (error) {
13318
13322
  await trackEvent(authId, "cmd.run.error", {});
13323
+ await new Promise((resolve) => setTimeout(resolve, 50));
13319
13324
  if (args.sound) {
13320
13325
  await playSound("failure");
13321
13326
  }
@@ -14565,6 +14570,7 @@ var status_default = new (0, _interactivecommander.Command)().command("status").
14565
14570
  totalWordsToTranslate,
14566
14571
  authenticated: !!authId
14567
14572
  });
14573
+ await new Promise((resolve) => setTimeout(resolve, 50));
14568
14574
  exitGracefully();
14569
14575
  } catch (error) {
14570
14576
  ora.fail(error.message);
@@ -14573,6 +14579,7 @@ var status_default = new (0, _interactivecommander.Command)().command("status").
14573
14579
  error: error.message,
14574
14580
  authenticated: !!authId
14575
14581
  });
14582
+ await new Promise((resolve) => setTimeout(resolve, 50));
14576
14583
  process.exit(1);
14577
14584
  }
14578
14585
  });
@@ -14710,7 +14717,7 @@ async function renderHero2() {
14710
14717
  // package.json
14711
14718
  var package_default = {
14712
14719
  name: "lingo.dev",
14713
- version: "0.117.18",
14720
+ version: "0.117.19",
14714
14721
  description: "Lingo.dev CLI",
14715
14722
  private: false,
14716
14723
  repository: {