@calcit/ternary-tree 0.0.21 → 0.0.22

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.
Files changed (2) hide show
  1. package/lib/list.mjs +1 -1
  2. package/package.json +1 -1
package/lib/list.mjs CHANGED
@@ -99,7 +99,7 @@ export function initTernaryTreeListFromRange(xs, from, to) {
99
99
  let x = xs[idx];
100
100
  ys[idx - from] = { kind: TernaryTreeKind.ternaryTreeLeaf, size: 1, value: x };
101
101
  }
102
- return makeTernaryTreeList(xs.length, 0, ys);
102
+ return makeTernaryTreeList(ys.length, 0, ys);
103
103
  }
104
104
  export function initEmptyTernaryTreeList() {
105
105
  return { kind: TernaryTreeKind.ternaryTreeBranch, size: 0, depth: 1, middle: emptyBranch, left: emptyBranch, right: emptyBranch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/ternary-tree",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "main": "./lib/index.mjs",
5
5
  "scripts": {},
6
6
  "devDependencies": {