@spectratools/etherscan-cli 0.3.2 → 0.3.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/cli.js CHANGED
@@ -4,6 +4,7 @@
4
4
  import { readFileSync, 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 Cli8 } from "incur";
8
9
 
9
10
  // src/commands/account.ts
@@ -1980,6 +1981,8 @@ var isMain = (() => {
1980
1981
  }
1981
1982
  })();
1982
1983
  if (isMain) {
1984
+ initTelemetry("etherscan");
1985
+ process.on("beforeExit", () => shutdownTelemetry());
1983
1986
  cli.serve();
1984
1987
  }
1985
1988
  export {
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@
4
4
  import { readFileSync, 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 Cli8 } from "incur";
8
9
 
9
10
  // src/commands/account.ts
@@ -1980,6 +1981,8 @@ var isMain = (() => {
1980
1981
  }
1981
1982
  })();
1982
1983
  if (isMain) {
1984
+ initTelemetry("etherscan");
1985
+ process.on("beforeExit", () => shutdownTelemetry());
1983
1986
  cli.serve();
1984
1987
  }
1985
1988
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectratools/etherscan-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.5",
4
4
  "description": "Etherscan 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.0"
22
+ "@spectratools/cli-shared": "0.4.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "typescript": "5.7.3",