lingo.dev 0.92.6 → 0.92.7
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 +5 -14
- package/build/cli.cjs.map +1 -1
- package/build/cli.mjs +5 -14
- package/build/cli.mjs.map +1 -1
- package/package.json +1 -1
package/build/cli.cjs
CHANGED
|
@@ -4070,18 +4070,6 @@ async function trackEvent(distinctId, event, properties) {
|
|
|
4070
4070
|
try {
|
|
4071
4071
|
const actualId = distinctId || `device-${machineIdSync()}`;
|
|
4072
4072
|
const { PostHog } = await Promise.resolve().then(() => _interopRequireWildcard(require("posthog-node")));
|
|
4073
|
-
const safeProperties = properties ? JSON.parse(
|
|
4074
|
-
JSON.stringify(properties, (key, value) => {
|
|
4075
|
-
if (value instanceof Error) {
|
|
4076
|
-
return {
|
|
4077
|
-
name: value.name,
|
|
4078
|
-
message: value.message,
|
|
4079
|
-
stack: value.stack
|
|
4080
|
-
};
|
|
4081
|
-
}
|
|
4082
|
-
return value;
|
|
4083
|
-
})
|
|
4084
|
-
) : {};
|
|
4085
4073
|
const posthog = new PostHog(
|
|
4086
4074
|
"phc_eR0iSoQufBxNY36k0f0T15UvHJdTfHlh8rJcxsfhfXk",
|
|
4087
4075
|
{
|
|
@@ -4094,7 +4082,7 @@ async function trackEvent(distinctId, event, properties) {
|
|
|
4094
4082
|
distinctId: actualId,
|
|
4095
4083
|
event,
|
|
4096
4084
|
properties: {
|
|
4097
|
-
...
|
|
4085
|
+
...properties,
|
|
4098
4086
|
meta: {
|
|
4099
4087
|
version: process.env.npm_package_version,
|
|
4100
4088
|
isCi: process.env.CI === "true"
|
|
@@ -4668,6 +4656,9 @@ var i18n_default = new (0, _interactivecommander.Command)().command("i18n").desc
|
|
|
4668
4656
|
});
|
|
4669
4657
|
} else {
|
|
4670
4658
|
ora.warn("Localization completed with errors.");
|
|
4659
|
+
trackEvent(authId || "unknown", "cmd.i18n.error", {
|
|
4660
|
+
flags
|
|
4661
|
+
});
|
|
4671
4662
|
}
|
|
4672
4663
|
} catch (error) {
|
|
4673
4664
|
ora.fail(error.message);
|
|
@@ -6311,7 +6302,7 @@ async function renderHero() {
|
|
|
6311
6302
|
// package.json
|
|
6312
6303
|
var package_default = {
|
|
6313
6304
|
name: "lingo.dev",
|
|
6314
|
-
version: "0.92.
|
|
6305
|
+
version: "0.92.7",
|
|
6315
6306
|
description: "Lingo.dev CLI",
|
|
6316
6307
|
private: false,
|
|
6317
6308
|
publishConfig: {
|