lingo.dev 0.117.17 → 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.mjs CHANGED
@@ -10866,7 +10866,7 @@ var { machineIdSync } = pkg;
10866
10866
  var POSTHOG_API_KEY = "phc_eR0iSoQufBxNY36k0f0T15UvHJdTfHlh8rJcxsfhfXk";
10867
10867
  var POSTHOG_HOST = "eu.i.posthog.com";
10868
10868
  var POSTHOG_PATH = "/i/v0/e/";
10869
- var REQUEST_TIMEOUT_MS = 1e3;
10869
+ var REQUEST_TIMEOUT_MS = 3e3;
10870
10870
  var TRACKING_VERSION = "2.0";
10871
10871
  function determineDistinctId(providedId) {
10872
10872
  if (providedId) {
@@ -11124,6 +11124,9 @@ var i18n_default = new Command14().command("i18n").description(
11124
11124
  "Stop immediately on first error instead of continuing to process remaining buckets and locales (fail-fast mode)"
11125
11125
  ).action(async function(options) {
11126
11126
  updateGitignore();
11127
+ await trackEvent(null, "cmd.i18n.start", {
11128
+ rawOptions: options
11129
+ });
11127
11130
  const ora = Ora9();
11128
11131
  let flags;
11129
11132
  try {
@@ -11138,6 +11141,7 @@ var i18n_default = new Command14().command("i18n").description(
11138
11141
  errorCount: 1,
11139
11142
  stage: "flag_validation"
11140
11143
  });
11144
+ await new Promise((resolve) => setTimeout(resolve, 50));
11141
11145
  throw parseError;
11142
11146
  }
11143
11147
  if (flags.debug) {
@@ -11170,10 +11174,6 @@ var i18n_default = new Command14().command("i18n").description(
11170
11174
  authId = auth.id;
11171
11175
  ora.succeed(`Authenticated as ${auth.email}`);
11172
11176
  }
11173
- await trackEvent(authId, "cmd.i18n.start", {
11174
- i18nConfig,
11175
- flags
11176
- });
11177
11177
  let buckets = getBuckets(i18nConfig);
11178
11178
  if (flags.bucket?.length) {
11179
11179
  buckets = buckets.filter(
@@ -11527,6 +11527,7 @@ var i18n_default = new Command14().command("i18n").description(
11527
11527
  localeCount: targetLocales.length,
11528
11528
  processedSuccessfully: true
11529
11529
  });
11530
+ await new Promise((resolve) => setTimeout(resolve, 50));
11530
11531
  } else {
11531
11532
  ora.warn("Localization completed with errors.");
11532
11533
  await trackEvent(authId, "cmd.i18n.error", {
@@ -11538,6 +11539,7 @@ var i18n_default = new Command14().command("i18n").description(
11538
11539
  i18nConfig
11539
11540
  )
11540
11541
  });
11542
+ await new Promise((resolve) => setTimeout(resolve, 50));
11541
11543
  }
11542
11544
  } catch (error) {
11543
11545
  ora.fail(error.message);
@@ -11566,6 +11568,7 @@ var i18n_default = new Command14().command("i18n").description(
11566
11568
  errorCount: errorDetails.length + 1,
11567
11569
  previousErrors: createPreviousErrorContext(errorDetails)
11568
11570
  });
11571
+ await new Promise((resolve) => setTimeout(resolve, 50));
11569
11572
  }
11570
11573
  });
11571
11574
  function parseFlags(options) {
@@ -13310,8 +13313,10 @@ var run_default = new Command18().command("run").description("Run localization p
13310
13313
  config: ctx.config,
13311
13314
  flags: ctx.flags
13312
13315
  });
13316
+ await new Promise((resolve) => setTimeout(resolve, 50));
13313
13317
  } catch (error) {
13314
13318
  await trackEvent(authId, "cmd.run.error", {});
13319
+ await new Promise((resolve) => setTimeout(resolve, 50));
13315
13320
  if (args.sound) {
13316
13321
  await playSound("failure");
13317
13322
  }
@@ -14561,6 +14566,7 @@ var status_default = new Command20().command("status").description("Show the sta
14561
14566
  totalWordsToTranslate,
14562
14567
  authenticated: !!authId
14563
14568
  });
14569
+ await new Promise((resolve) => setTimeout(resolve, 50));
14564
14570
  exitGracefully();
14565
14571
  } catch (error) {
14566
14572
  ora.fail(error.message);
@@ -14569,6 +14575,7 @@ var status_default = new Command20().command("status").description("Show the sta
14569
14575
  error: error.message,
14570
14576
  authenticated: !!authId
14571
14577
  });
14578
+ await new Promise((resolve) => setTimeout(resolve, 50));
14572
14579
  process.exit(1);
14573
14580
  }
14574
14581
  });
@@ -14706,7 +14713,7 @@ async function renderHero2() {
14706
14713
  // package.json
14707
14714
  var package_default = {
14708
14715
  name: "lingo.dev",
14709
- version: "0.117.17",
14716
+ version: "0.117.19",
14710
14717
  description: "Lingo.dev CLI",
14711
14718
  private: false,
14712
14719
  repository: {