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 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/telemetry';
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: 'command_run',
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
  });
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.4",
4
4
  "description": "Generate UI from OpenAPI",
5
5
  "license": "MIT",
6
6
  "repository": {