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.
@@ -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 (process.env.GENERATEUI_API_BASE_URL?.trim() ||
15
- 'https://generateuibackend-production.up.railway.app');
14
+ return ('https://generateuibackend-production.up.railway.app/events');
16
15
  }
17
16
  function getWebAuthUrl() {
18
- return (process.env.GENERATEUI_WEB_AUTH_URL?.trim() ||
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 = process.env.GENERATEUI_TELEMETRY_URL?.trim() ||
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: 'command_run',
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generate-ui-cli",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "Generate UI from OpenAPI",
5
5
  "license": "MIT",
6
6
  "repository": {