Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@oclif/table

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oclif/table - npm Package Compare versions

Comparing version 0.1.21 to 0.1.22

14

lib/table.js

@@ -288,2 +288,8 @@ /* eslint-disable react/prop-types */

class Stream extends WriteStream {
// Override the rows so that ink doesn't clear the entire terminal when
// unmounting the component and the height of the output is greater than
// the height of the terminal
// https://github.com/vadimdemedes/ink/blob/v5.0.1/src/ink.tsx#L174
// This might be a bad idea but it works.
rows = 10_000;
frames = [];

@@ -306,4 +312,8 @@ lastFrame() {

constructor() {
const fd = process.env.OCLIF_TABLE_FD ? Number(process.env.OCLIF_TABLE_FD) : 0;
this.stream = process.env.NODE_ENV === 'test' ? process.stdout : new Stream(fd);
// Use process.stdout if NODE_ENV is `test` OR if tests are being run by wireit on windows (windows + tests run by wireit
// are problematic for an unknown reason)
this.stream =
(process.platform === 'win32' && process.env.npm_lifecycle_script === 'wireit') || process.env.NODE_ENV === 'test'
? process.stdout
: new Stream(process.env.OCLIF_TABLE_FD ? Number(process.env.OCLIF_TABLE_FD) : process.stdout.fd);
}

@@ -310,0 +320,0 @@ maybePrintLastFrame() {

4

package.json
{
"name": "@oclif/table",
"description": "Display table in terminal",
"version": "0.1.21",
"version": "0.1.22",
"author": "Salesforce",

@@ -22,3 +22,3 @@ "bugs": "https://github.com/oclif/table/issues",

"@oclif/prettier-config": "^0.2.1",
"@oclif/test": "^4.0.9",
"@oclif/test": "^4.1.0",
"@types/chai": "^4.3.16",

@@ -25,0 +25,0 @@ "@types/mocha": "^10.0.9",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc