lingo.dev 0.89.1 → 0.89.3
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 +16 -15
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +16 -15
- package/build/cli.mjs.map +1 -1
- package/package.json +4 -4
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;
|
|
3731
3729
|
async function trackEvent(distinctId, event, properties) {
|
|
3732
3730
|
if (process.env.DO_NOT_TRACK) {
|
|
3733
3731
|
return;
|
|
3734
3732
|
}
|
|
3735
3733
|
try {
|
|
3736
|
-
const
|
|
3737
|
-
|
|
3738
|
-
(key, value) => {
|
|
3734
|
+
const { PostHog } = await Promise.resolve().then(() => _interopRequireWildcard(require("posthog-node")));
|
|
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,
|
|
@@ -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.3",
|
|
5890
5891
|
description: "Lingo.dev CLI",
|
|
5891
5892
|
private: false,
|
|
5892
5893
|
publishConfig: {
|
|
@@ -5986,12 +5987,12 @@ 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",
|
|
5993
5994
|
plist: "^3.1.0",
|
|
5994
|
-
"posthog-node": "^4.
|
|
5995
|
+
"posthog-node": "^4.17.0",
|
|
5995
5996
|
prettier: "^3.4.2",
|
|
5996
5997
|
"rehype-stringify": "^10.0.1",
|
|
5997
5998
|
"remark-disable-tokenizers": "^1.1.1",
|
|
@@ -6030,7 +6031,7 @@ var package_default = {
|
|
|
6030
6031
|
"@types/plist": "^3.0.5",
|
|
6031
6032
|
"@types/xml2js": "^0.4.14",
|
|
6032
6033
|
tsup: "^8.3.5",
|
|
6033
|
-
typescript: "^5.
|
|
6034
|
+
typescript: "^5.8.3",
|
|
6034
6035
|
vitest: "^3.1.2"
|
|
6035
6036
|
},
|
|
6036
6037
|
engines: {
|