@calcit/ternary-tree 0.0.19-a1 → 0.0.20

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 +2 -2
  2. package/package.json +3 -7
package/lib/list.mjs CHANGED
@@ -91,10 +91,10 @@ export function initTernaryTreeList(xs) {
91
91
  }
92
92
  // from a slice of an existed array
93
93
  export function initTernaryTreeListFromRange(xs, from, to) {
94
- let ys = new Array(xs.length);
94
+ let ys = new Array(to - from);
95
95
  for (let idx = from; idx < to; idx++) {
96
96
  let x = xs[idx];
97
- ys[idx] = { kind: TernaryTreeKind.ternaryTreeLeaf, size: 1, value: x };
97
+ ys[idx - from] = { kind: TernaryTreeKind.ternaryTreeLeaf, size: 1, value: x };
98
98
  }
99
99
  return makeTernaryTreeList(xs.length, 0, ys);
100
100
  }
package/package.json CHANGED
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "name": "@calcit/ternary-tree",
3
- "version": "0.0.19-a1",
3
+ "version": "0.0.20",
4
4
  "main": "./lib/index.mjs",
5
- "scripts": {
6
- "bundle": "esbuild src/main.mts --bundle --outfile=lib/bundle.js --platform=node --resolve-extensions=.mjs,.mts,.ts,.js"
7
- },
5
+ "scripts": {},
8
6
  "devDependencies": {
9
- "esbuild": "^0.14.27",
10
7
  "prettier": "^2.6.0",
11
- "typescript": "^4.6.2",
12
- "vite": "^2.8.6"
8
+ "typescript": "^4.6.2"
13
9
  }
14
10
  }