@offckb/cli 0.3.2 → 0.3.3

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/cmd/debug.js CHANGED
@@ -11,6 +11,7 @@ const ckb_tx_dumper_1 = require("../tools/ckb-tx-dumper");
11
11
  const path_1 = __importDefault(require("path"));
12
12
  const advanced_1 = require("@ckb-ccc/core/advanced");
13
13
  const base_1 = require("../type/base");
14
+ const encoding_1 = require("../util/encoding");
14
15
  function debugTransaction(txHash, network) {
15
16
  const txFile = buildTxFileOptionBy(txHash, network);
16
17
  const opts = buildTransactionDebugOptions(txHash, network);
@@ -85,7 +86,7 @@ function buildTxFileOptionBy(txHash, network) {
85
86
  }
86
87
  (0, ckb_tx_dumper_1.dumpTransaction)({ rpc, txJsonFilePath, outputFilePath });
87
88
  }
88
- const opt = `--tx-file ${outputFilePath}`;
89
+ const opt = `--tx-file ${(0, encoding_1.encodeBinPathForTerminal)(outputFilePath)}`;
89
90
  return opt;
90
91
  }
91
92
  exports.buildTxFileOptionBy = buildTxFileOptionBy;
@@ -144,7 +144,7 @@ function getVersionFromBinary(binPath) {
144
144
  const versionOutput = (0, child_process_1.execSync)(`${(0, encoding_1.encodeBinPathForTerminal)(binPath)} --version`, {
145
145
  encoding: 'utf-8',
146
146
  });
147
- const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+)/);
147
+ const versionMatch = versionOutput.match(/(\d+\.\d+\.\d+(-rc\d+)?)/);
148
148
  if (versionMatch) {
149
149
  return versionMatch[0];
150
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@offckb/cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "ckb development network for your first try",
5
5
  "author": "CKB EcoFund",
6
6
  "license": "MIT",