trac-msb 0.0.34 → 0.0.36

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/package.json +1 -1
  2. package/src/index.js +3 -3
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trac-msb",
3
3
  "main": "msb.mjs",
4
- "version": "0.0.34",
4
+ "version": "0.0.36",
5
5
  "pear": {
6
6
  "name": "trac-msb",
7
7
  "type": "terminal"
package/src/index.js CHANGED
@@ -295,7 +295,7 @@ export class MainSettlementBus extends ReadyResource {
295
295
  console.log('Exiting...');
296
296
  rl.close();
297
297
  await this.close();
298
- process.exit(0);
298
+ typeof process !== "undefined" ? process.exit(0) : Pear.exit(0);
299
299
  break;
300
300
  default:
301
301
  if (input.startsWith('/add_writer')) {
@@ -310,8 +310,8 @@ export class MainSettlementBus extends ReadyResource {
310
310
 
311
311
  async #getMnemonicInteractiveMode() {
312
312
  const rl = readline.createInterface({
313
- input: process.stdin,
314
- output: process.stdout
313
+ input: new tty.ReadStream(0),
314
+ output: new tty.WriteStream(1)
315
315
  });
316
316
 
317
317
  const question = (query) => {