@percy/logger 1.1.1 → 1.1.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.
package/dist/logger.js CHANGED
@@ -195,7 +195,12 @@ export class PercyLogger {
195
195
  stderr
196
196
  } = this.constructor;
197
197
  let progress = stdout.isTTY && this._progress;
198
- if (progress) stdout.cursorTo(0).clearLine();
198
+
199
+ if (progress) {
200
+ stdout.cursorTo(0);
201
+ stdout.clearLine(0);
202
+ }
203
+
199
204
  (level === 'info' ? stdout : stderr).write(message + '\n');
200
205
  if (!((_this$_progress = this._progress) !== null && _this$_progress !== void 0 && _this$_progress.persist)) delete this._progress;else if (progress) stdout.write(progress.message);
201
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/logger",
3
- "version": "1.1.1",
3
+ "version": "1.1.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,5 +31,5 @@
31
31
  "test": "node ../../scripts/test",
32
32
  "test:coverage": "yarn test --coverage"
33
33
  },
34
- "gitHead": "d74af6a294f89fcb23c4ec598bb68a884ce47907"
34
+ "gitHead": "ca09298265b043703b94dd5c37dd9f2489312049"
35
35
  }
package/test/helpers.js CHANGED
@@ -66,8 +66,8 @@ const helpers = {
66
66
  logger.constructor[stdio] = Object.assign(new Writable(), {
67
67
  isTTY: options.isTTY,
68
68
  columns: options.isTTY ? 100 : null,
69
- cursorTo() { return this; },
70
- clearLine() { return this; },
69
+ cursorTo() { return true; },
70
+ clearLine() { return true; },
71
71
  _write(chunk, encoding, callback) {
72
72
  helpers[stdio].push(sanitizeLog(chunk.toString(), options));
73
73
  callback();