oo-ascii-tree
Advanced tools
Comparing version 0.7.13 to 0.7.14
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="0.7.14"></a> | ||
## [0.7.14](https://github.com/awslabs/jsii/compare/v0.7.13...v0.7.14) (2019-02-04) | ||
### Features | ||
* **jsii:** support multiple class declaration sites ([#348](https://github.com/awslabs/jsii/issues/348)) ([4ecf28c](https://github.com/awslabs/jsii/commit/4ecf28c)) | ||
<a name="0.7.13"></a> | ||
@@ -8,0 +19,0 @@ ## [0.7.13](https://github.com/awslabs/jsii/compare/v0.7.12...v0.7.13) (2019-01-03) |
/// <reference types="node" /> | ||
import stream = require('stream'); | ||
/** | ||
@@ -22,3 +21,3 @@ * A tree of nodes that can be ASCII visualized. | ||
*/ | ||
printTree(output?: stream.Writable): void; | ||
printTree(output?: NodeJS.WritableStream): void; | ||
/** | ||
@@ -25,0 +24,0 @@ * Returns a string representation of the tree. |
@@ -146,2 +146,2 @@ "use strict"; | ||
exports.AsciiTree = AsciiTree; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNjaWktdHJlZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImFzY2lpLXRyZWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFFQTs7R0FFRztBQUNILE1BQWEsU0FBUztJQVFwQjs7OztPQUlHO0lBQ0gsWUFBNEIsSUFBYSxFQUFFLEdBQUcsUUFBcUI7UUFBdkMsU0FBSSxHQUFKLElBQUksQ0FBUztRQVB4QixjQUFTLEdBQUcsSUFBSSxLQUFLLEVBQWEsQ0FBQztRQVFsRCxLQUFLLE1BQU0sS0FBSyxJQUFJLFFBQVEsRUFBRTtZQUM1QixJQUFJLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxDQUFDO1NBQ2pCO0lBQ0gsQ0FBQztJQUVEOztPQUVHO0lBQ0ksU0FBUyxDQUFDLFNBQTBCLE9BQU8sQ0FBQyx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ICAgICAgICAgbXVsdGlsaW5lUHJlZml4ID0gJyAgICAgJztcbiAgICAgICAgfVxuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaWYgKCF0aGlzLmVtcHR5KSB7XG4gICAgICAgICAgbXlQcmVmaXggKz0gJyDilJzilIDilKwgJztcbiAgICAgICAgICBtdWx0aWxpbmVQcmVmaXggKz0gJyDilIIg4pSCICc7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgbXlQcmVmaXggKz0gJyDilJzilIDilIAgJztcbiAgICAgICAgICBtdWx0aWxpbmVQcmVmaXggKz0gJyDilIIgICAnO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgfVxuXG4gICAgaWYgKHRoaXMudGV4dCkge1xuICAgICAgb3V0cHV0LndyaXRlKGFuY2VzdG9yc1ByZWZpeCk7XG4gICAgICBvdXRwdXQud3JpdGUobXlQcmVmaXgpO1xuICAgICAgY29uc3QgbGluZXMgPSB0aGlzLnRleHQuc3BsaXQoJ1xcbicpO1xuICAgICAgb3V0cHV0LndyaXRlKGxpbmVzWzBdKTtcbiAgICAgIG91dHB1dC53cml0ZSgnXFxuJyk7XG5cbiAgICAgIGZvciAoY29uc3QgbGluZSBvZiBsaW5lcy5zcGxpY2UoMSkpIHtcbiAgICAgICAgb3V0cHV0LndyaXRlKGFuY2VzdG9yc1ByZWZpeCk7XG4gICAgICAgIG91dHB1dC53cml0ZShtdWx0aWxpbmVQcmVmaXgpO1xuICAgICAgICBvdXRwdXQud3JpdGUobGluZSk7XG4gICAgICAgIG91dHB1dC53cml0ZSgnXFxuJyk7XG4gICAgICB9XG4gICAgfVxuXG4gICAgZm9yIChjb25zdCBjaGlsZCBvZiB0aGlzLl9jaGlsZHJlbikge1xuICAgICAgY2hpbGQucHJpbnRUcmVlKG91dHB1dCk7XG4gICAgfVxuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybnMgYSBzdHJpbmcgcmVwcmVzZW50YXRpb24gb2YgdGhlIHRyZWUuXG4gICAqL1x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3RoIC0gMTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAcmV0dXJucyB0aGUgbm9kZSBsZXZlbCAoMCBpcyB0aGUgcm9vdCBub2RlKVxuICAgKi9cbiAgcHVibGljIGdldCBsZXZlbCgpOiBudW1iZXIge1xuICAgIGlmICghdGhpcy5wYXJlbnQpIHtcbiAgICAgIC8vIGlmIHRoZSByb290IG5vZGUgZG9lcyBub3QgaGF2ZSB0ZXh0LCBpdCB3aWxsIGJlIGNvbnNpZGVyZWQgbGV2ZWwgLTFcbiAgICAgIC8vIHNvIHRoYXQgYWxsIGl0J3MgY2hpbGRyZW4gd2lsbCBiZSByb290cy5cbiAgICAgIHJldHVybiB0aGlzLnRleHQgPyAwIDogLTE7XG4gICAgfVxuXG4gICAgcmV0dXJuIHRoaXMucGFyZW50LmxldmVsICsgMTtcbiAgfVxuXG4gIC8qKlxuICAgKiBAcmV0dXJucyB0cnVlIGlmIHRoaXMgbm9kZSBkb2VzIG5vdCBoYXZlIGFueSBjaGlsZHJlblxuICAgKi9cbiAgcHVibGljIGdldCBlbXB0eSgpIHtcbiAgICByZXR1cm4gdGhpcy5jaGlsZHJlbi5sZW5ndGggPT09IDA7XG4gIH1cblxuICAvKipcbiAgICogQHJldHVybnMgYW4gYXJyYXkgb2YgcGFyZW50IG5vZGVzIChmcm9tIHRoZSByb290IHRvIHRoaXMgbm9kZSwgZXhjbHVzaXZlKVxuICAgKi9cbiAgcHVibGljIGdldCBhbmNlc3RvcnMoKTogQXNjaWlUcmVlW10ge1xuICAgIGlmICghdGhpcy5wYXJlbnQpIHtcbiAgICAgIHJldHVybiBbIF07XG4gICAgfVxuXG4gICAgcmV0dXJuIFsgLi4udGhpcy5wYXJlbnQuYW5jZXN0b3JzLCB0aGlzLnBhcmVudCBdO1xuICB9XG59XG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNjaWktdHJlZS5qcyIsInNvdXJjZVJvb3QiOiIiLC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gICBhbmNlc3RvcnNQcmVmaXggKz0gJyDilIInO1xuICAgICAgfVxuICAgIH1cblxuICAgIGxldCBteVByZWZpeCA9ICcnO1xuICAgIGxldCBtdWx0aWxpbmVQcmVmaXggPSAnJztcbiAgICBpZiAodGhpcy5sZXZlbCA+IDApIHtcbiAgICAgIGlmICh0aGlzLmxhc3QpIHtcbiAgICAgICAgaWYgKCF0aGlzLmVtcHR5KSB7XG4gICAgICAgICAgbXlQcmVmaXggKz0gJyDilJTilIDilKwgJztcbiAgICAgICAgICBtdWx0aWxpbmVQcmVmaXggKz0gJyDilJTilIDilKwgJztcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBteVByZWZpeCArPSAnIOKUlOKUgOKUgCAnO1xuICAgICAgICAgIG11bHRpbGluZVByZWZpeCA9ICcgICAgICc7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIGlmICghdGhpcy5lbXB0eSkge1xuICAgICAgICAgIG15UHJlZml4ICs9ICcg4pSc4pSA4pSsICc7XG4gICAgICAgICAgbXVsdGlsaW5lUHJlZml4ICs9ICcg4pSCIOKUgiAnO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIG15UHJlZml4ICs9ICcg4pSc4pSA4pSAICc7XG4gICAgICAgICAgbXVsdGlsaW5lUHJlZml4ICs9ICcg4pSCICAgJztcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIGlmICh0aGlzLnRleHQpIHtcbiAgICAgIG91dHB1dC53cml0ZShhbmNlc3RvcnNQcmVmaXgpO1xuICAgICAgb3V0cHV0LndyaXRlKG15UHJlZml4KTtcbiAgICAgIGNvbnN0IGxpbmVzID0gdGhpcy50ZXh0LnNwbGl0KCdcXG4nKTtcbiAgICAgIG91dHB1dC53cml0ZShsaW5lc1swXSk7XG4gICAgICBvdXRwdXQud3JpdGUoJ1xcbicpO1xuXG4gICAgICBmb3IgKGNvbnN0IGxpbmUgb2YgbGluZXMuc3BsaWNlKD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qXG4gICAqIEByZXR1cm5zIGFuIGFycmF5IG9mIHBhcmVudCBub2RlcyAoZnJvbSB0aGUgcm9vdCB0byB0aGlzIG5vZGUsIGV4Y2x1c2l2ZSlcbiAgICovXG4gIHB1YmxpYyBnZXQgYW5jZXN0b3JzKCk6IEFzY2lpVHJlZVtdIHtcbiAgICBpZiAoIXRoaXMucGFyZW50KSB7XG4gICAgICByZXR1cm4gWyBdO1xuICAgIH1cblxuICAgIHJldHVybiBbIC4uLnRoaXMucGFyZW50LmFuY2VzdG9ycywgdGhpcy5wYXJlbnQgXTtcbiAgfVxufVxuIl19 |
{ | ||
"name": "oo-ascii-tree", | ||
"version": "0.7.13", | ||
"version": "0.7.14", | ||
"description": "object-oriented ascii tree renderer", | ||
@@ -14,8 +14,8 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@types/jest": "^23.3.10", | ||
"@types/node": "^10.12.12", | ||
"jest": "^23.6.0", | ||
"jsii-build-tools": "^0.7.13", | ||
"@types/jest": "^23.3.13", | ||
"@types/node": "^8.10.37", | ||
"jest": "^24.0.0", | ||
"jsii-build-tools": "^0.7.14", | ||
"ts-jest": "^23.10.5", | ||
"typescript": "^3.2.1" | ||
"typescript": "^3.2.4" | ||
}, | ||
@@ -22,0 +22,0 @@ "author": { |
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
50450
18
315