@everyprotocol/every-cli 0.1.12 → 0.1.13

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/cmds/kind.js CHANGED
@@ -48,9 +48,9 @@ function genRegisterCmd() {
48
48
  args.push(etys, rels);
49
49
  return args;
50
50
  }
51
- async function getCmdAction(cmd) {
52
- const opts = cmd.opts();
53
- const args = getFuncArgs(cmd);
51
+ async function getCmdAction() {
52
+ const opts = this.opts();
53
+ const args = getFuncArgs(this);
54
54
  const { publicClient, walletClient, conf } = await FromOpts.toWriteEthereum(opts);
55
55
  const address = conf.contracts.KindRegistry;
56
56
  const account = walletClient.account;
@@ -109,9 +109,9 @@ function genUpdateCmd() {
109
109
  const abiFunc = abiFuncs.filter((f) => f._metadata.signature == sig)[0];
110
110
  return [args, abiFunc];
111
111
  }
112
- async function getCmdAction(cmd) {
113
- const opts = cmd.opts();
114
- const [args, abiFunc] = getFuncArgs(cmd);
112
+ async function getCmdAction() {
113
+ const opts = this.opts();
114
+ const [args, abiFunc] = getFuncArgs(this);
115
115
  const { publicClient, walletClient, conf } = await FromOpts.toWriteEthereum(opts);
116
116
  const address = conf.contracts.KindRegistry;
117
117
  const account = walletClient.account;
package/dist/index.js CHANGED
@@ -4,6 +4,6 @@ try {
4
4
  await program.parseAsync();
5
5
  }
6
6
  catch (e /* eslint-disable-line */) {
7
- console.error(e);
7
+ console.error(e.message ?? e);
8
8
  process.exitCode = 1;
9
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@everyprotocol/every-cli",
3
3
  "type": "module",
4
- "version": "0.1.12",
4
+ "version": "0.1.13",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/everyprotocol/cli.git"