lingo.dev 0.89.0 → 0.89.2

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
@@ -172,5 +172,6 @@ Want to contribute? Create a pull request!
172
172
  - [Italian](/readme/it.md)
173
173
  - [Arabic](/readme/ar.md)
174
174
  - [Hindi](/readme/hi.md)
175
+ - [Bengali](/readme/bn.md)
175
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.
package/build/cli.cjs CHANGED
@@ -3726,16 +3726,14 @@ function withExponentialBackoff(fn, maxAttempts = 3, baseDelay = 1e3) {
3726
3726
  }
3727
3727
 
3728
3728
  // src/cli/utils/observability.ts
3729
- var _posthognode = require('posthog-node'); var _posthognode2 = _interopRequireDefault(_posthognode);
3730
- var { PostHog } = _posthognode2.default;
3729
+ var _posthognode = require('posthog-node');
3731
3730
  async function trackEvent(distinctId, event, properties) {
3732
3731
  if (process.env.DO_NOT_TRACK) {
3733
3732
  return;
3734
3733
  }
3735
3734
  try {
3736
- const safeProperties = properties ? JSON.parse(JSON.stringify(
3737
- properties,
3738
- (key, value) => {
3735
+ const safeProperties = properties ? JSON.parse(
3736
+ JSON.stringify(properties, (key, value) => {
3739
3737
  if (value instanceof Error) {
3740
3738
  return {
3741
3739
  name: value.name,
@@ -3744,13 +3742,16 @@ async function trackEvent(distinctId, event, properties) {
3744
3742
  };
3745
3743
  }
3746
3744
  return value;
3745
+ })
3746
+ ) : {};
3747
+ const posthog = new (0, _posthognode.PostHog)(
3748
+ "phc_eR0iSoQufBxNY36k0f0T15UvHJdTfHlh8rJcxsfhfXk",
3749
+ {
3750
+ host: "https://eu.i.posthog.com",
3751
+ flushAt: 1,
3752
+ flushInterval: 0
3747
3753
  }
3748
- )) : {};
3749
- const posthog = new PostHog("phc_eR0iSoQufBxNY36k0f0T15UvHJdTfHlh8rJcxsfhfXk", {
3750
- host: "https://eu.i.posthog.com",
3751
- flushAt: 1,
3752
- flushInterval: 0
3753
- });
3754
+ );
3754
3755
  await posthog.capture({
3755
3756
  distinctId,
3756
3757
  event,
@@ -4825,10 +4826,14 @@ var InBranchFlow = class extends IntegrationFlow {
4825
4826
  }).length > 0;
4826
4827
  }
4827
4828
  async runLingoDotDev() {
4828
- _child_process.execSync.call(void 0,
4829
- `npx lingo.dev@latest i18n --api-key ${this.platformKit.config.replexicaApiKey}`,
4830
- { stdio: "inherit" }
4831
- );
4829
+ try {
4830
+ await i18n_default.exitOverride().parseAsync(["--api-key", this.platformKit.config.replexicaApiKey], {
4831
+ from: "user"
4832
+ });
4833
+ } catch (err) {
4834
+ if (err.code === "commander.helpDisplayed") return;
4835
+ throw err;
4836
+ }
4832
4837
  }
4833
4838
  configureGit() {
4834
4839
  const { processOwnCommits } = this.platformKit.config;
@@ -5882,7 +5887,7 @@ function validateParams2(i18nConfig, flags) {
5882
5887
  // package.json
5883
5888
  var package_default = {
5884
5889
  name: "lingo.dev",
5885
- version: "0.89.0",
5890
+ version: "0.89.2",
5886
5891
  description: "Lingo.dev CLI",
5887
5892
  private: false,
5888
5893
  publishConfig: {
@@ -5982,7 +5987,7 @@ var package_default = {
5982
5987
  "node-webvtt": "^1.9.4",
5983
5988
  "object-hash": "^3.0.0",
5984
5989
  octokit: "^4.0.2",
5985
- open: "^10.1.0",
5990
+ open: "^10.1.2",
5986
5991
  ora: "^8.1.1",
5987
5992
  "p-limit": "^6.2.0",
5988
5993
  "php-array-reader": "^2.1.2",