@spectratools/xapi-cli 0.6.4 → 0.6.6

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/cli.js CHANGED
@@ -4,6 +4,7 @@
4
4
  import { readFileSync as readFileSync2, realpathSync } from "fs";
5
5
  import { dirname, resolve } from "path";
6
6
  import { fileURLToPath } from "url";
7
+ import { initTelemetry, shutdownTelemetry } from "@spectratools/cli-shared/telemetry";
7
8
  import { Cli as Cli7 } from "incur";
8
9
 
9
10
  // src/auth.ts
@@ -2051,6 +2052,8 @@ var isMain = (() => {
2051
2052
  }
2052
2053
  })();
2053
2054
  if (isMain) {
2055
+ initTelemetry("xapi");
2056
+ process.on("beforeExit", () => shutdownTelemetry());
2054
2057
  cli.serve();
2055
2058
  }
2056
2059
  export {
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@
4
4
  import { readFileSync as readFileSync2, realpathSync } from "fs";
5
5
  import { dirname, resolve } from "path";
6
6
  import { fileURLToPath } from "url";
7
+ import { initTelemetry, shutdownTelemetry } from "@spectratools/cli-shared/telemetry";
7
8
  import { Cli as Cli7 } from "incur";
8
9
 
9
10
  // src/auth.ts
@@ -2051,6 +2052,8 @@ var isMain = (() => {
2051
2052
  }
2052
2053
  })();
2053
2054
  if (isMain) {
2055
+ initTelemetry("xapi");
2056
+ process.on("beforeExit", () => shutdownTelemetry());
2054
2057
  cli.serve();
2055
2058
  }
2056
2059
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectratools/xapi-cli",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "X (Twitter) API CLI for spectra-the-bot",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "incur": "^0.3.0",
22
- "@spectratools/cli-shared": "0.2.1"
22
+ "@spectratools/cli-shared": "0.4.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "typescript": "5.7.3",