@oclif/table 0.1.19 → 0.1.21
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/lib/table.js +2 -1
- package/package.json +1 -1
package/lib/table.js
CHANGED
|
@@ -301,7 +301,8 @@ class Stream extends WriteStream {
|
|
|
301
301
|
}
|
|
302
302
|
class Output {
|
|
303
303
|
stream;
|
|
304
|
-
constructor(
|
|
304
|
+
constructor() {
|
|
305
|
+
const fd = process.env.OCLIF_TABLE_FD ? Number(process.env.OCLIF_TABLE_FD) : 0;
|
|
305
306
|
this.stream = process.env.NODE_ENV === 'test' ? process.stdout : new Stream(fd);
|
|
306
307
|
}
|
|
307
308
|
maybePrintLastFrame() {
|