@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.
Files changed (2) hide show
  1. package/lib/table.js +2 -1
  2. 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(fd = 1) {
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() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oclif/table",
3
3
  "description": "Display table in terminal",
4
- "version": "0.1.19",
4
+ "version": "0.1.21",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/table/issues",
7
7
  "dependencies": {