lingo.dev 0.89.1 → 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/build/cli.cjs +14 -13
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +14 -13
- package/build/cli.mjs.map +1 -1
- package/package.json +2 -2
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');
|
|
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(
|
|
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,
|
|
@@ -5886,7 +5887,7 @@ function validateParams2(i18nConfig, flags) {
|
|
|
5886
5887
|
// package.json
|
|
5887
5888
|
var package_default = {
|
|
5888
5889
|
name: "lingo.dev",
|
|
5889
|
-
version: "0.89.
|
|
5890
|
+
version: "0.89.2",
|
|
5890
5891
|
description: "Lingo.dev CLI",
|
|
5891
5892
|
private: false,
|
|
5892
5893
|
publishConfig: {
|
|
@@ -5986,7 +5987,7 @@ var package_default = {
|
|
|
5986
5987
|
"node-webvtt": "^1.9.4",
|
|
5987
5988
|
"object-hash": "^3.0.0",
|
|
5988
5989
|
octokit: "^4.0.2",
|
|
5989
|
-
open: "^10.1.
|
|
5990
|
+
open: "^10.1.2",
|
|
5990
5991
|
ora: "^8.1.1",
|
|
5991
5992
|
"p-limit": "^6.2.0",
|
|
5992
5993
|
"php-array-reader": "^2.1.2",
|