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 +1 -0
- package/build/cli.cjs +22 -17
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +22 -17
- package/build/cli.mjs.map +1 -1
- package/package.json +4 -4
package/build/cli.mjs
CHANGED
|
@@ -3726,16 +3726,14 @@ function withExponentialBackoff(fn, maxAttempts = 3, baseDelay = 1e3) {
|
|
|
3726
3726
|
}
|
|
3727
3727
|
|
|
3728
3728
|
// src/cli/utils/observability.ts
|
|
3729
|
-
import
|
|
3730
|
-
var { PostHog } = pkg;
|
|
3729
|
+
import { PostHog } from "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(
|
|
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 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
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
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.
|
|
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.
|
|
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",
|