generate-ui-cli 2.1.3 → 2.1.4
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/dist/telemetry.js +4 -3
- package/package.json +1 -1
package/dist/telemetry.js
CHANGED
|
@@ -8,7 +8,7 @@ const user_config_1 = require("./runtime/user-config");
|
|
|
8
8
|
const device_1 = require("./license/device");
|
|
9
9
|
const token_1 = require("./license/token");
|
|
10
10
|
const TELEMETRY_URL = process.env.GENERATEUI_TELEMETRY_URL?.trim() ||
|
|
11
|
-
'https://api.generateui.dev/
|
|
11
|
+
'https://api.generateui.dev/events';
|
|
12
12
|
const TELEMETRY_TIMEOUT_MS = 1000;
|
|
13
13
|
function getOsName() {
|
|
14
14
|
return process.platform;
|
|
@@ -103,11 +103,12 @@ async function trackCommand(command, cliEnabled) {
|
|
|
103
103
|
cliVersion: (0, config_1.getCliVersion)()
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
+
if (command === 'login')
|
|
107
|
+
return;
|
|
106
108
|
await sendEvent({
|
|
107
|
-
event:
|
|
109
|
+
event: command,
|
|
108
110
|
installationId: config.installationId,
|
|
109
111
|
deviceId: device.deviceId,
|
|
110
|
-
command,
|
|
111
112
|
email: config.lastLoginEmail ?? '',
|
|
112
113
|
cliVersion: (0, config_1.getCliVersion)()
|
|
113
114
|
});
|