@yerofey/cryptowallet-cli 1.7.0 → 1.7.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yerofey/cryptowallet-cli",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "type": "module",
5
5
  "homepage": "https://github.com/yerofey/cryptowallet-cli",
6
6
  "author": "Yerofey S. <pm@yerofey.dev> (https://github.com/yerofey)",
package/src/Chain.js CHANGED
@@ -7,7 +7,8 @@ class Chain {
7
7
  }
8
8
 
9
9
  async init() {
10
- const content = await loadJson(`./chains/${this.chain}.json`);
10
+ // eslint-disable-next-line no-undef
11
+ const content = await loadJson(`${process.cwd()}/src/chains/${this.chain}.json`);
11
12
  const data = (() => {
12
13
  if (content.formats !== undefined) {
13
14
  if (this.format != '' && this.format != content.defaultFormat) {
package/src/Method.js CHANGED
@@ -35,7 +35,8 @@ class Method {
35
35
  log(`🔠 All supported blockchains:\n`);
36
36
  let cryptos = {};
37
37
  for (const val of supportedChains) {
38
- const data = await loadJson(`./chains/${val}.json`);
38
+ // eslint-disable-next-line no-undef
39
+ const data = await loadJson(`${process.cwd()}/src/chains/${val}.json`);
39
40
 
40
41
  let title = data.title || '';
41
42
  if (title == '' || val == 'ERC') {