lingo.dev 0.89.2 → 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.cjs CHANGED
@@ -3726,12 +3726,13 @@ function withExponentialBackoff(fn, maxAttempts = 3, baseDelay = 1e3) {
3726
3726
  }
3727
3727
 
3728
3728
  // src/cli/utils/observability.ts
3729
- var _posthognode = require('posthog-node');
3730
3729
  async function trackEvent(distinctId, event, properties) {
3731
3730
  if (process.env.DO_NOT_TRACK) {
3732
3731
  return;
3733
3732
  }
3734
3733
  try {
3734
+ const { PostHog } = await Promise.resolve().then(() => _interopRequireWildcard(require("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) {
@@ -3744,7 +3745,7 @@ async function trackEvent(distinctId, event, properties) {
3744
3745
  return value;
3745
3746
  })
3746
3747
  ) : {};
3747
- const posthog = new (0, _posthognode.PostHog)(
3748
+ const posthog = new PostHog(
3748
3749
  "phc_eR0iSoQufBxNY36k0f0T15UvHJdTfHlh8rJcxsfhfXk",
3749
3750
  {
3750
3751
  host: "https://eu.i.posthog.com",
@@ -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 (0, _interactivecommander.Command)().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 (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) => {
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.2",
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",
@@ -5992,7 +5995,7 @@ var package_default = {
5992
5995
  "p-limit": "^6.2.0",
5993
5996
  "php-array-reader": "^2.1.2",
5994
5997
  plist: "^3.1.0",
5995
- "posthog-node": "^4.11.2",
5998
+ "posthog-node": "^4.17.0",
5996
5999
  prettier: "^3.4.2",
5997
6000
  "rehype-stringify": "^10.0.1",
5998
6001
  "remark-disable-tokenizers": "^1.1.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",
@@ -6031,7 +6034,7 @@ var package_default = {
6031
6034
  "@types/plist": "^3.0.5",
6032
6035
  "@types/xml2js": "^0.4.14",
6033
6036
  tsup: "^8.3.5",
6034
- typescript: "^5.7.2",
6037
+ typescript: "^5.8.3",
6035
6038
  vitest: "^3.1.2"
6036
6039
  },
6037
6040
  engines: {