data-structure-typed 2.2.6 → 2.2.7
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.
- package/CHANGELOG.md +1 -1
- package/CONTRIBUTING.md +47 -1
- package/README.md +6 -6
- package/dist/cjs/index.cjs +3 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs-legacy/index.cjs +3 -0
- package/dist/cjs-legacy/index.cjs.map +1 -1
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm-legacy/index.mjs +3 -0
- package/dist/esm-legacy/index.mjs.map +1 -1
- package/dist/umd/data-structure-typed.js +3 -0
- package/dist/umd/data-structure-typed.js.map +1 -1
- package/dist/umd/data-structure-typed.min.js +2 -2
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +2 -2
- package/tsup.config.js +2 -2
- package/tsup.leetcode.config.js +1 -1
- package/tsup.node.config.js +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -179,6 +179,7 @@ var IterableEntryBase = class {
|
|
|
179
179
|
* @remarks Time O(n), Space O(n)
|
|
180
180
|
*/
|
|
181
181
|
print() {
|
|
182
|
+
console.log(this.toVisual());
|
|
182
183
|
}
|
|
183
184
|
};
|
|
184
185
|
|
|
@@ -401,6 +402,7 @@ var IterableElementBase = class {
|
|
|
401
402
|
* Time O(n) due to materialization, Space O(n) for the intermediate representation.
|
|
402
403
|
*/
|
|
403
404
|
print() {
|
|
405
|
+
console.log(this.toVisual());
|
|
404
406
|
}
|
|
405
407
|
};
|
|
406
408
|
|
|
@@ -8077,6 +8079,7 @@ var BinaryTree = class extends IterableEntryBase {
|
|
|
8077
8079
|
* @param [startNode=this._root] - The node to start printing from.
|
|
8078
8080
|
*/
|
|
8079
8081
|
print(options, startNode = this._root) {
|
|
8082
|
+
console.log(this.toVisual(startNode, options));
|
|
8080
8083
|
}
|
|
8081
8084
|
/**
|
|
8082
8085
|
* (Protected) Core DFS implementation.
|