@profullstack/coinpay 0.4.2 → 0.4.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/bin/coinpay.js +2 -2
  2. package/package.json +1 -1
package/bin/coinpay.js CHANGED
@@ -22,7 +22,7 @@ import { homedir } from 'os';
22
22
  import { join } from 'path';
23
23
  import { tmpdir } from 'os';
24
24
 
25
- const VERSION = '0.4.0';
25
+ const VERSION = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8')).version;
26
26
  const CONFIG_FILE = join(homedir(), '.coinpay.json');
27
27
  const DEFAULT_WALLET_FILE = join(homedir(), '.coinpay-wallet.gpg');
28
28
 
@@ -1547,4 +1547,4 @@ async function main() {
1547
1547
  }
1548
1548
  }
1549
1549
 
1550
- main();
1550
+ main().then(() => process.exit(0));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profullstack/coinpay",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "CoinPay SDK & CLI — Accept cryptocurrency payments (BTC, ETH, SOL, POL, BCH, USDC) with wallet and swap support",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",