@zeroxyz/cli 0.0.3 → 0.0.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -338,7 +338,9 @@ var searchCommand = (appContext2) => new Command6("search").description("Search
338
338
  resultCount: result.capabilities.length
339
339
  });
340
340
  console.log(formatSearchResults(result.capabilities));
341
- console.error("\n Run `zero get {NUMBER}` to view a capability.\n");
341
+ if (result.capabilities.length > 0) {
342
+ console.error("\n Run `zero get {NUMBER}` to view a capability.\n");
343
+ }
342
344
  } catch (err) {
343
345
  console.error(err instanceof Error ? err.message : "Search failed");
344
346
  process.exitCode = 1;
@@ -460,7 +462,7 @@ import { privateKeyToAccount as privateKeyToAccount2 } from "viem/accounts";
460
462
  // package.json
461
463
  var package_default = {
462
464
  name: "@zeroxyz/cli",
463
- version: "0.0.3",
465
+ version: "0.0.4",
464
466
  type: "module",
465
467
  bin: {
466
468
  zero: "dist/index.js",
@@ -1010,7 +1012,6 @@ var WalletService = class {
1010
1012
  var CLI_VERSION = package_default.version;
1011
1013
  var getServices = (env) => {
1012
1014
  let privateKey = env.ZERO_PRIVATE_KEY ? env.ZERO_PRIVATE_KEY : null;
1013
- const account = privateKey ? privateKeyToAccount2(privateKey) : null;
1014
1015
  const zeroDir = join4(homedir3(), ".zero");
1015
1016
  const configPath = join4(zeroDir, "config.json");
1016
1017
  if (!privateKey) {
@@ -1024,6 +1025,7 @@ var getServices = (env) => {
1024
1025
  } catch {
1025
1026
  }
1026
1027
  }
1028
+ const account = privateKey ? privateKeyToAccount2(privateKey) : null;
1027
1029
  let lowBalanceWarning = 1;
1028
1030
  try {
1029
1031
  if (existsSync5(configPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeroxyz/cli",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "zero": "dist/index.js",