generate-ui-cli 2.1.3 → 2.1.5
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/runtime/config.js +2 -4
- package/dist/telemetry.js +4 -4
- package/package.json +1 -1
package/dist/runtime/config.js
CHANGED
|
@@ -11,10 +11,8 @@ function getCliVersion() {
|
|
|
11
11
|
return package_json_1.default.version || '0.0.0';
|
|
12
12
|
}
|
|
13
13
|
function getApiBaseUrl() {
|
|
14
|
-
return (
|
|
15
|
-
'https://generateuibackend-production.up.railway.app');
|
|
14
|
+
return ('https://generateuibackend-production.up.railway.app/events');
|
|
16
15
|
}
|
|
17
16
|
function getWebAuthUrl() {
|
|
18
|
-
return (
|
|
19
|
-
'https://generateuibackend-production.up.railway.app');
|
|
17
|
+
return ('https://generateuibackend-production.up.railway.app/events');
|
|
20
18
|
}
|
package/dist/telemetry.js
CHANGED
|
@@ -7,8 +7,7 @@ const config_1 = require("./runtime/config");
|
|
|
7
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
|
-
const TELEMETRY_URL =
|
|
11
|
-
'https://api.generateui.dev/telemetry';
|
|
10
|
+
const TELEMETRY_URL = 'https://generateuibackend-production.up.railway.app/events';
|
|
12
11
|
const TELEMETRY_TIMEOUT_MS = 1000;
|
|
13
12
|
function getOsName() {
|
|
14
13
|
return process.platform;
|
|
@@ -103,11 +102,12 @@ async function trackCommand(command, cliEnabled) {
|
|
|
103
102
|
cliVersion: (0, config_1.getCliVersion)()
|
|
104
103
|
});
|
|
105
104
|
}
|
|
105
|
+
if (command === 'login')
|
|
106
|
+
return;
|
|
106
107
|
await sendEvent({
|
|
107
|
-
event:
|
|
108
|
+
event: command,
|
|
108
109
|
installationId: config.installationId,
|
|
109
110
|
deviceId: device.deviceId,
|
|
110
|
-
command,
|
|
111
111
|
email: config.lastLoginEmail ?? '',
|
|
112
112
|
cliVersion: (0, config_1.getCliVersion)()
|
|
113
113
|
});
|