oo-ascii-tree
Advanced tools
Comparing version 1.14.1 to 1.15.0
@@ -21,3 +21,3 @@ /// <reference types="node" /> | ||
*/ | ||
printTree(output?: NodeJS.WritableStream): void; | ||
printTree(output?: Printer): void; | ||
/** | ||
@@ -56,1 +56,2 @@ * Returns a string representation of the tree. | ||
} | ||
export declare type Printer = Pick<NodeJS.WritableStream, 'write'>; |
@@ -147,2 +147,2 @@ "use strict"; | ||
exports.AsciiTree = AsciiTree; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNjaWktdHJlZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFzY2lpLXRyZWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7O0dBRUc7QUFDSCxNQUFhLFNBQVM7SUFRcEI7Ozs7T0FJRztJQUNILFlBQW1DLElBQWEsRUFBRSxHQUFHLFFBQXFCO1FBQXZDLFNBQUksR0FBSixJQUFJLENBQVM7UUFQL0IsY0FBUyxHQUFHLElBQUksS0FBSyxFQUFhLENBQUM7UUFRbEQsS0FBSyxNQUFNLEtBQUssSUFBSSxRQUFRLEVBQUU7WUFDNUIsSUFBSSxDQUFDLEdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQztTQUNqQjtJQUNILENBQUM7SUFFRDs7T0FFRztJQUNJLFNBQVMsQ0FBQyxTQUFnQyxPQUFPLENBQUMsTUFBTTtRQUM3RCxJQUFJLGVBQWUsR0FBRyxFQUFFLENBQUM7UUFFekIsS0FBSyxNQUFNLE1BQU0sSUFBSSxJQUFJLENBQUMsU0FBUyxFQUFFO1lBQ25DLHNEQUFzRDtZQUN0RCxzQ0FBc0M7WUFDdEMsSUFBSSxNQUFNLENBQUMsS0FBSyxJQUFJLENBQUMsRUFBRTtnQkFDckIsU0FBUzthQUNWO1lBRUQsSUFBSSxNQUFNLENBQUMsSUFBSSxFQUFFO2dCQUNmLGVBQWUsSUFBSSxJQUF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nMpIHtcbiAgICAgIC8vIC0xIHJlcHJlc2VudHMgYSBcImhpZGRlblwiIHJvb3QsIGFuZCBzbyBpdCdzIGNoaWxkcmVuXG4gICAgICAvLyB3aWxsIGFsbCBhcHBlYXIgYXMgcm9vdHMgKGxldmVsIDApLlxuICAgICAgaWYgKHBhcmVudC5sZXZlbCA8PSAwKSB7XG4gICAgICAgIGNvbnRpbnVlO1xuICAgICAgfVxuXG4gICAgICBpZiAocGFyZW50Lmxhc3QpIHtcbiAgICAgICAgYW5jZXN0b3JzUHJlZml4ICs9ICcgICc7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBhbmNlc3RvcnNQcmVmaXggKz0gJyDilIInO1xuICAgICAgfVxuICAgIH1cblxuICAgIGxldCBteVByZWZpeCA9ICcnO1xuICAgIGxldCBtdWx0aWxpbmVQcmVmaXggPSAnJztcbiAgICBpZiAodGhpcy5sZXZlbCA+IDApIHtcbiAgICAgIGlmICh0aGlzLmxhc3QpIHtcbiAgICAgICAgaWYgKCF0aGlzLmVtcHR5KSB7XG4gICAgICAgICAgbXlQcmVmaXggKz0gJyDilJTilIDilKwgJztcbiAgICAgICAgICBtdWx0aWxpbmVQcmVmaXggKz0gJyDilJTilIDilKwgJztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBteVByZWZpeCArPSAnIOKUlOKUgOKUgCAnO1xuICAgICAgICAgIG11bHRpbGluZVByZWZpeCA9ICcgICAgICc7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGlmICghdGhpcy5lbXB0eSkge1xuICAgICAgICAgIG15UHJlZml4ICs9ICcg4pSc4pSA4pSsICc7XG4gICAgICAgICAgbXVsdGlsaW5lUHJlZml4ICs9ICcg4pSCIOKUgiAnO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG15UHJlZml4ICs9ICcg4pSc4pSA4pSAICc7XG4gICAgICAgICAgbXVsdGlsaW5lUHJlZml4ICs9ICcg4pSCICAgJztcbiA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ICAgIH0gZWxzZSB7XG4gICAgICAgICAgbXlQcmVmaXggKz0gJyDilJTilIDilIAgJztcbiAgICAgICAgICBtdWx0aWxpbmVQcmVmaXggPSAnICAgICAnO1xuICAgICAgICB9XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBpZiAoIXRoaXMuZW1wdHkpIHtcbiAgICAgICAgICBteVByZWZpeCArPSAnIOKUnOKUgOKUrCAnO1xuICAgICAgICAgIG11bHRpbGluZVByZWZpeCArPSAnIOKUgiDilIIgJztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBteVByZWZpeCArPSAnIOKUnOKUgOKUgCAnO1xuICAgICAgICAgIG11bHRpbGluZVByZWZpeCArPSAnIOKUgiAgICc7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBpZiAodGhpcy50ZXh0KSB7XG4gICAgICBvdXRwdXQud3JpdGUoYW5jZXN0b3JzUHJlZml4KTtcbiAgICAgIG91dHB1dC53cml0ZShteVByZWZpeCk7XG4gICAgICBjb25zdCBsaW5lcyA9IHRoaXMudGV4dC5zcGxpdCgnXFxuJyk7XG4gICAgICBvdXRwdXQud3JpdGUobGluZXNbMF0pO1xuICAgICAgb3V0cHV0LndyaXRlKCdcXG4nKTtcblxuICAgICAgZm9yIChjb25zdCBsaW5lIG9mIGxpbmVzLnNwbGljZSgxKSkge1xuICAgICAgICBvdXRwdXQud3JpdGUoYW5jZXN0b3JzUHJlZml4KTtcbiAgICAgICAgb3V0cHV0LndyaXRlKG11bHRpbGluZVByZWZpeCk7XG4gICAgICAgIG91dHB1dC53cml0ZShsaW5lKTtcbiAgICAgICAgb3V0cHV0LndyaXRlKCdcXG4nKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICBmb3IgKGNvbnN0IGNoaWxkIG9mIHRoaXMuX2NoaWxkcmVuKSB7XG4gICAgICBjaGlsZC5wcmludFRyZWUob3V0cHV0KTtcbiAgICB9XG4gIH1cblxuICAvKipcbiAgICogUmV0dXJucyB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gUHJpbnRlciA9IFBpY2s8Tm9kZUpTLldyaXRhYmxlU3RyZWFtLCAnd3JpdGUnPjtcbiJdfQ== |
{ | ||
"name": "oo-ascii-tree", | ||
"version": "1.14.1", | ||
"version": "1.15.0", | ||
"description": "object-oriented ascii tree renderer", | ||
@@ -35,9 +35,9 @@ "license": "Apache-2.0", | ||
"@types/jest": "^26.0.15", | ||
"@types/node": "^10.17.44", | ||
"eslint": "^7.12.1", | ||
"jest": "^26.6.1", | ||
"jsii-build-tools": "^1.14.1", | ||
"prettier": "^2.1.2", | ||
"@types/node": "^10.17.46", | ||
"eslint": "^7.14.0", | ||
"jest": "^26.6.3", | ||
"jsii-build-tools": "^1.15.0", | ||
"prettier": "^2.2.0", | ||
"typescript": "~3.9.7" | ||
} | ||
} |
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
48110
260378
291