Comparing version 0.2.1 to 0.2.2
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Writable } from 'stream'; | ||
export interface CnysaOptions { | ||
@@ -10,3 +8,2 @@ width: number; | ||
colors: Array<string>; | ||
progressStream: Writable | string; | ||
} | ||
@@ -13,0 +10,0 @@ export declare class Cnysa { |
11
index.js
@@ -6,8 +6,2 @@ "use strict"; | ||
const leftPad = require("left-pad"); | ||
const stream_1 = require("stream"); | ||
class DevNull extends stream_1.Writable { | ||
_write(chunk, encoding, callback) { | ||
setImmediate(callback); | ||
} | ||
} | ||
const isRemovableLine = (str) => { | ||
@@ -145,3 +139,3 @@ while (str = str.trim()) { | ||
for (const event of this.events) { | ||
if (!this.ignoreUnhighlighted || this.resources[event.uid].color) { | ||
if (event.uid === 1 || !this.ignoreUnhighlighted || this.resources[event.uid].color) { | ||
paddedEvents.push(event); | ||
@@ -257,5 +251,4 @@ for (let i = 0; i < this.padding; i++) { | ||
padding: 1, | ||
colors: ['bgMagenta', 'bgYellow', 'bgCyan'], | ||
progressStream: new DevNull() | ||
colors: ['bgMagenta', 'bgYellow', 'bgCyan'] | ||
}; | ||
exports.Cnysa = Cnysa; |
{ | ||
"name": "cnysa", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "A tool for understanding async-hooks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14129
291