lingo.dev 0.89.3 → 0.89.4

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
@@ -3732,6 +3732,7 @@ async function trackEvent(distinctId, event, properties) {
3732
3732
  }
3733
3733
  try {
3734
3734
  const { PostHog } = await import("posthog-node");
3735
+ console.log("--- ---");
3735
3736
  const safeProperties = properties ? JSON.parse(
3736
3737
  JSON.stringify(properties, (key, value) => {
3737
3738
  if (value instanceof Error) {
@@ -3752,6 +3753,7 @@ async function trackEvent(distinctId, event, properties) {
3752
3753
  flushInterval: 0
3753
3754
  }
3754
3755
  );
3756
+ console.log("--- ---");
3755
3757
  await posthog.capture({
3756
3758
  distinctId,
3757
3759
  event,
@@ -3763,7 +3765,9 @@ async function trackEvent(distinctId, event, properties) {
3763
3765
  }
3764
3766
  }
3765
3767
  });
3768
+ console.log("--- ---");
3766
3769
  await posthog.shutdown();
3770
+ console.log("--- ---");
3767
3771
  } catch (error) {
3768
3772
  if (process.env.DEBUG) {
3769
3773
  console.error(error);
@@ -5418,9 +5422,8 @@ var getPlatformKit = () => {
5418
5422
  };
5419
5423
 
5420
5424
  // src/cli/cmd/ci/index.ts
5421
- var ci_default = new Command10().command("ci").description("Run Lingo.dev CI/CD action").helpOption("-h, --help", "Show help").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, program) => {
5422
- const apiKey = program.args[0];
5423
- const settings = getSettings(apiKey);
5425
+ var ci_default = new Command10().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) => {
5426
+ const settings = getSettings(options.apiKey);
5424
5427
  if (!settings.auth.apiKey) {
5425
5428
  console.error("No API key provided");
5426
5429
  return;
@@ -5887,7 +5890,7 @@ function validateParams2(i18nConfig, flags) {
5887
5890
  // package.json
5888
5891
  var package_default = {
5889
5892
  name: "lingo.dev",
5890
- version: "0.89.3",
5893
+ version: "0.89.4",
5891
5894
  description: "Lingo.dev CLI",
5892
5895
  private: false,
5893
5896
  publishConfig: {
@@ -5964,7 +5967,7 @@ var package_default = {
5964
5967
  dedent: "^1.5.3",
5965
5968
  diff: "^7.0.0",
5966
5969
  dotenv: "^16.4.7",
5967
- express: "^4.21.2",
5970
+ express: "^5.1.0",
5968
5971
  "external-editor": "^3.1.0",
5969
5972
  figlet: "^1.8.0",
5970
5973
  flat: "^6.0.1",
@@ -6016,7 +6019,7 @@ var package_default = {
6016
6019
  devDependencies: {
6017
6020
  "@types/cors": "^2.8.17",
6018
6021
  "@types/diff": "^7.0.0",
6019
- "@types/express": "^5.0.0",
6022
+ "@types/express": "^5.0.1",
6020
6023
  "@types/figlet": "^1.7.0",
6021
6024
  "@types/gettext-parser": "^4.0.4",
6022
6025
  "@types/glob": "^8.1.0",