@x-oasis/prefix-interval-tree 0.2.0 → 0.2.1

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/README.md +6 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,6 +30,12 @@ const intervalTree = new PrefixIntervalTree(10)
30
30
 
31
31
  Total interval tree array length is power of `2`, such as 8, 16, 32; and the input length value means the half size, which means `10` will result in `2^4 = 16` first, then patch on interval tree, it will be total `2 * 16 = 32`.
32
32
 
33
+ ## getHeap
34
+
35
+ ```ts
36
+ getHeap(): number[]
37
+ ```
38
+
33
39
  ## getActualSize
34
40
 
35
41
  Basically, interval tree's size is this._half, they all have default `0` value. when you want to get the actual size which has been set with value, then call this method.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-oasis/prefix-interval-tree",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "prefix interval tree function",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",