@best/console-stream
Advanced tools
Comparing version
@@ -34,3 +34,3 @@ "use strict"; | ||
function printDisplayName(displayPath, overflow) { | ||
const dirname = overflow ? trim_path_1.default(path_1.default.dirname(displayPath), overflow) : path_1.default.dirname(displayPath); | ||
const dirname = overflow ? (0, trim_path_1.default)(path_1.default.dirname(displayPath), overflow) : path_1.default.dirname(displayPath); | ||
const basename = path_1.default.basename(displayPath); | ||
@@ -51,3 +51,3 @@ return chalk_1.default.dim(dirname + path_1.default.sep) + chalk_1.default.bold(basename); | ||
this._state = this.initState(buildConfig); | ||
this._proxiedStream = proxy_stream_1.proxyStream(stream, this.isInteractive); | ||
this._proxiedStream = (0, proxy_stream_1.proxyStream)(stream, this.isInteractive); | ||
} | ||
@@ -68,3 +68,3 @@ initState(buildConfig) { | ||
let buffer = this._streamBuffer; | ||
const lines = count_eod_1.default(buffer); | ||
const lines = (0, count_eod_1.default)(buffer); | ||
if (lines) { | ||
@@ -71,0 +71,0 @@ buffer = '\r\x1B[K\r\x1B[1A'.repeat(lines); |
@@ -35,3 +35,3 @@ "use strict"; | ||
if (this.isInteractive) { | ||
utils_1.clearLine(this.stdout); | ||
(0, utils_1.clearLine)(this.stdout); | ||
} | ||
@@ -41,3 +41,3 @@ } | ||
if (this.isInteractive) { | ||
utils_1.clearLine(this.stdout); | ||
(0, utils_1.clearLine)(this.stdout); | ||
this.stdout.write('\r\x1B[K\r\x1B[1A'.repeat(this._linesBuffer)); | ||
@@ -44,0 +44,0 @@ this.reset(); |
@@ -39,3 +39,3 @@ "use strict"; | ||
function printDisplayName(displayPath, overflow) { | ||
const dirname = overflow ? trim_path_1.default(path_1.default.dirname(displayPath), overflow) : path_1.default.dirname(displayPath); | ||
const dirname = overflow ? (0, trim_path_1.default)(path_1.default.dirname(displayPath), overflow) : path_1.default.dirname(displayPath); | ||
const basename = path_1.default.basename(displayPath); | ||
@@ -94,3 +94,3 @@ return chalk_1.default.dim(dirname + path_1.default.sep) + chalk_1.default.bold(basename); | ||
this._state = this.initState(buildConfig); | ||
this._proxyStream = proxy_stream_1.proxyStream(stream, this.isInteractive); | ||
this._proxyStream = (0, proxy_stream_1.proxyStream)(stream, this.isInteractive); | ||
} | ||
@@ -111,3 +111,3 @@ initState(buildConfigs) { | ||
let buffer = this._streamBuffer; | ||
const lines = count_eod_1.default(buffer); | ||
const lines = (0, count_eod_1.default)(buffer); | ||
if (lines) { | ||
@@ -114,0 +114,0 @@ buffer = '\r\x1B[K\r\x1B[1A'.repeat(lines); |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "8.1.3", | ||
"version": "9.0.0", | ||
"description": "Best stdout stream wrapper", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@best/utils": "8.1.3", | ||
"@best/utils": "9.0.0", | ||
"chalk": "~2.4.2" | ||
@@ -20,0 +20,0 @@ }, |
22042
0.18%+ Added
+ Added
- Removed
- Removed
Updated