js-dev-tool 1.0.11 → 1.0.12

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/common/index.js CHANGED
@@ -11,6 +11,7 @@
11
11
  // @ts-check
12
12
  const fs = require("fs");
13
13
  const path = require("path");
14
+ const rl = require("readline");
14
15
  /**
15
16
  * @param {string} dest
16
17
  */
@@ -35,10 +36,10 @@ function createLogStreamAndResolvePath(logPath) {
35
36
  */
36
37
  function renderLine(msg, row) {
37
38
  const output = process.stderr || process.stdout;
38
- output.cursorTo(0, row);
39
+ rl.cursorTo(output, 0, row);
39
40
  msg && (
40
41
  output.write(msg),
41
- output.clearLine(1)
42
+ rl.clearLine(output, 1)
42
43
  );
43
44
  }
44
45
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js-dev-tool",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "bin": {
5
5
  "jstool": "tools.js"
6
6
  },
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "1.0.11"
2
+ "version": "1.0.12"
3
3
  }