@live-change/flatten-interval-tree 0.8.26

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 (65) hide show
  1. package/.babelrc +8 -0
  2. package/.travis.yml +14 -0
  3. package/LICENSE +21 -0
  4. package/README.md +172 -0
  5. package/dist/main.cjs.js +799 -0
  6. package/dist/main.esm.js +794 -0
  7. package/dist/main.umd.js +805 -0
  8. package/docs/Interval.html +1609 -0
  9. package/docs/IntervalTree.html +1506 -0
  10. package/docs/classes_interval.js.html +173 -0
  11. package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
  12. package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
  13. package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
  14. package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  15. package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  16. package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  17. package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
  18. package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
  19. package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
  20. package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
  21. package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
  22. package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
  23. package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  24. package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  25. package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  26. package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
  27. package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
  28. package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
  29. package/docs/fonts/OpenSans-Semibold-webfont.eot +0 -0
  30. package/docs/fonts/OpenSans-Semibold-webfont.svg +1830 -0
  31. package/docs/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  32. package/docs/fonts/OpenSans-Semibold-webfont.woff +0 -0
  33. package/docs/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  34. package/docs/fonts/OpenSans-SemiboldItalic-webfont.svg +1830 -0
  35. package/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  36. package/docs/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  37. package/docs/index.html +197 -0
  38. package/docs/index.js.html +624 -0
  39. package/docs/interval.js.html +184 -0
  40. package/docs/intervalTree.js.html +624 -0
  41. package/docs/scripts/linenumber.js +25 -0
  42. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  43. package/docs/scripts/prettify/lang-css.js +2 -0
  44. package/docs/scripts/prettify/prettify.js +28 -0
  45. package/docs/styles/jsdoc-default.css +692 -0
  46. package/docs/styles/prettify-jsdoc.css +111 -0
  47. package/docs/styles/prettify-tomorrow.css +132 -0
  48. package/examples/browser/index.html +49 -0
  49. package/examples/create-react-app/package.json +15 -0
  50. package/examples/create-react-app/public/index.html +11 -0
  51. package/examples/create-react-app/src/App.js +38 -0
  52. package/examples/create-react-app/src/ComposersList.js +15 -0
  53. package/examples/create-react-app/src/index.js +5 -0
  54. package/examples/es6-module/index.html +50 -0
  55. package/examples/nodejs/index.js +23 -0
  56. package/index.d.ts +65 -0
  57. package/index.js +6 -0
  58. package/package.json +52 -0
  59. package/rollup.config.js +21 -0
  60. package/src/classes/interval.js +131 -0
  61. package/src/classes/intervalTree.js +564 -0
  62. package/src/classes/node.js +97 -0
  63. package/src/utils/constants.js +16 -0
  64. package/test/intervalTree.js +232 -0
  65. package/test/node.js +64 -0
@@ -0,0 +1,111 @@
1
+ /* JSDoc prettify.js theme */
2
+
3
+ /* plain text */
4
+ .pln {
5
+ color: #000000;
6
+ font-weight: normal;
7
+ font-style: normal;
8
+ }
9
+
10
+ /* string content */
11
+ .str {
12
+ color: hsl(104, 100%, 24%);
13
+ font-weight: normal;
14
+ font-style: normal;
15
+ }
16
+
17
+ /* a keyword */
18
+ .kwd {
19
+ color: #000000;
20
+ font-weight: bold;
21
+ font-style: normal;
22
+ }
23
+
24
+ /* a comment */
25
+ .com {
26
+ font-weight: normal;
27
+ font-style: italic;
28
+ }
29
+
30
+ /* a type name */
31
+ .typ {
32
+ color: #000000;
33
+ font-weight: normal;
34
+ font-style: normal;
35
+ }
36
+
37
+ /* a literal value */
38
+ .lit {
39
+ color: #006400;
40
+ font-weight: normal;
41
+ font-style: normal;
42
+ }
43
+
44
+ /* punctuation */
45
+ .pun {
46
+ color: #000000;
47
+ font-weight: bold;
48
+ font-style: normal;
49
+ }
50
+
51
+ /* lisp open bracket */
52
+ .opn {
53
+ color: #000000;
54
+ font-weight: bold;
55
+ font-style: normal;
56
+ }
57
+
58
+ /* lisp close bracket */
59
+ .clo {
60
+ color: #000000;
61
+ font-weight: bold;
62
+ font-style: normal;
63
+ }
64
+
65
+ /* a markup tag name */
66
+ .tag {
67
+ color: #006400;
68
+ font-weight: normal;
69
+ font-style: normal;
70
+ }
71
+
72
+ /* a markup attribute name */
73
+ .atn {
74
+ color: #006400;
75
+ font-weight: normal;
76
+ font-style: normal;
77
+ }
78
+
79
+ /* a markup attribute value */
80
+ .atv {
81
+ color: #006400;
82
+ font-weight: normal;
83
+ font-style: normal;
84
+ }
85
+
86
+ /* a declaration */
87
+ .dec {
88
+ color: #000000;
89
+ font-weight: bold;
90
+ font-style: normal;
91
+ }
92
+
93
+ /* a variable name */
94
+ .var {
95
+ color: #000000;
96
+ font-weight: normal;
97
+ font-style: normal;
98
+ }
99
+
100
+ /* a function name */
101
+ .fun {
102
+ color: #000000;
103
+ font-weight: bold;
104
+ font-style: normal;
105
+ }
106
+
107
+ /* Specify class=linenums on a pre to get line numbering */
108
+ ol.linenums {
109
+ margin-top: 0;
110
+ margin-bottom: 0;
111
+ }
@@ -0,0 +1,132 @@
1
+ /* Tomorrow Theme */
2
+ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
3
+ /* Pretty printing styles. Used with prettify.js. */
4
+ /* SPAN elements with the classes below are added by prettyprint. */
5
+ /* plain text */
6
+ .pln {
7
+ color: #4d4d4c; }
8
+
9
+ @media screen {
10
+ /* string content */
11
+ .str {
12
+ color: hsl(104, 100%, 24%); }
13
+
14
+ /* a keyword */
15
+ .kwd {
16
+ color: hsl(240, 100%, 50%); }
17
+
18
+ /* a comment */
19
+ .com {
20
+ color: hsl(0, 0%, 60%); }
21
+
22
+ /* a type name */
23
+ .typ {
24
+ color: hsl(240, 100%, 32%); }
25
+
26
+ /* a literal value */
27
+ .lit {
28
+ color: hsl(240, 100%, 40%); }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #000000; }
33
+
34
+ /* lisp open bracket */
35
+ .opn {
36
+ color: #000000; }
37
+
38
+ /* lisp close bracket */
39
+ .clo {
40
+ color: #000000; }
41
+
42
+ /* a markup tag name */
43
+ .tag {
44
+ color: #c82829; }
45
+
46
+ /* a markup attribute name */
47
+ .atn {
48
+ color: #f5871f; }
49
+
50
+ /* a markup attribute value */
51
+ .atv {
52
+ color: #3e999f; }
53
+
54
+ /* a declaration */
55
+ .dec {
56
+ color: #f5871f; }
57
+
58
+ /* a variable name */
59
+ .var {
60
+ color: #c82829; }
61
+
62
+ /* a function name */
63
+ .fun {
64
+ color: #4271ae; } }
65
+ /* Use higher contrast and text-weight for printable form. */
66
+ @media print, projection {
67
+ .str {
68
+ color: #060; }
69
+
70
+ .kwd {
71
+ color: #006;
72
+ font-weight: bold; }
73
+
74
+ .com {
75
+ color: #600;
76
+ font-style: italic; }
77
+
78
+ .typ {
79
+ color: #404;
80
+ font-weight: bold; }
81
+
82
+ .lit {
83
+ color: #044; }
84
+
85
+ .pun, .opn, .clo {
86
+ color: #440; }
87
+
88
+ .tag {
89
+ color: #006;
90
+ font-weight: bold; }
91
+
92
+ .atn {
93
+ color: #404; }
94
+
95
+ .atv {
96
+ color: #060; } }
97
+ /* Style */
98
+ /*
99
+ pre.prettyprint {
100
+ background: white;
101
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
102
+ font-size: 12px;
103
+ line-height: 1.5;
104
+ border: 1px solid #ccc;
105
+ padding: 10px; }
106
+ */
107
+
108
+ /* Specify class=linenums on a pre to get line numbering */
109
+ ol.linenums {
110
+ margin-top: 0;
111
+ margin-bottom: 0; }
112
+
113
+ /* IE indents via margin-left */
114
+ li.L0,
115
+ li.L1,
116
+ li.L2,
117
+ li.L3,
118
+ li.L4,
119
+ li.L5,
120
+ li.L6,
121
+ li.L7,
122
+ li.L8,
123
+ li.L9 {
124
+ /* */ }
125
+
126
+ /* Alternate shading for lines */
127
+ li.L1,
128
+ li.L3,
129
+ li.L5,
130
+ li.L7,
131
+ li.L9 {
132
+ /* */ }
@@ -0,0 +1,49 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Browser</title>
6
+ <script src='https://unpkg.com/@flatten-js/interval-tree'></script>
7
+ </head>
8
+ <body>
9
+ <div id="main">
10
+ <h2>Great composers</h2>
11
+ <ul id="list" style="list-style: none">
12
+
13
+ </ul>
14
+ <h2>Composers who lived in 17th century</h2>
15
+ <ul id="results" style="list-style: none">
16
+
17
+ </ul>
18
+ </div>
19
+ <script>
20
+ const IntervalTree = window["@flatten-js/interval-tree"].default;
21
+ const composers = [
22
+ {name: "Ludwig van Beethoven", period: [1770,1827]},
23
+ {name: "Johann Sebastian Bach", period: [1685, 1750]},
24
+ {name: "Wolfgang Amadeus Mozart", period: [1756, 1791]},
25
+ {name: "Johannes Brahms", period: [1833, 1897]},
26
+ {name: "Richard Wagner", period: [1813, 1883]},
27
+ {name: "Claude Debussy", period: [1862, 1918]},
28
+ {name: "Pyotr Ilyich Tchaikovsky", period: [1840, 1893]},
29
+ {name: "Frédéric Chopin", period: [1810, 1849]},
30
+ {name: "Joseph Haydn", period: [1732, 1809]},
31
+ {name: "Antonio Vivaldi", period: [1678, 1741]}
32
+ ];
33
+
34
+ const compList = composers.reduce( (html,composer) => html + `<li>${composer.name} (${composer.period[0]} - ${composer.period[1]})</li>`, "" );
35
+ document.getElementById("list").innerHTML = compList;
36
+
37
+ // Composers who lived in 17th century
38
+ const tree = new IntervalTree();
39
+ for (let composer of composers)
40
+ tree.insert(composer.period, composer.name);
41
+
42
+ const searchRes = tree.search( [1600,1700], (name, period) => {return {name : name, period: period.output()}} );
43
+
44
+ const resList = searchRes.reduce( (html, composer) => html + `<li>${composer.name} (${composer.period[0]} - ${composer.period[1]})</li>`, "" );
45
+ document.getElementById("results").innerHTML = resList;
46
+
47
+ </script>
48
+ </body>
49
+ </html>
@@ -0,0 +1,15 @@
1
+ {
2
+ "private": true,
3
+ "name": "flatten-react-app",
4
+ "main": "src/index.js",
5
+ "scripts": {
6
+ "build": "react-scripts build",
7
+ "start": "react-scripts start"
8
+ },
9
+ "devDependencies": {
10
+ "react-scripts": "*"
11
+ },
12
+ "dependencies": {
13
+ "@flatten-js/interval-tree": "*"
14
+ }
15
+ }
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>React App</title>
6
+ </head>
7
+ <body>
8
+ <div id="root">
9
+ </div>
10
+ </body>
11
+ </html>
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import IntervalTree from "@flatten-js/interval-tree";
3
+ import ComposersList from './ComposersList';
4
+
5
+ const composers = [
6
+ {name: "Ludwig van Beethoven", period: [1770, 1827]},
7
+ {name: "Johann Sebastian Bach", period: [1685, 1750]},
8
+ {name: "Wolfgang Amadeus Mozart", period: [1756, 1791]},
9
+ {name: "Johannes Brahms", period: [1833, 1897]},
10
+ {name: "Richard Wagner", period: [1813, 1883]},
11
+ {name: "Claude Debussy", period: [1862, 1918]},
12
+ {name: "Pyotr Ilyich Tchaikovsky", period: [1840, 1893]},
13
+ {name: "Frédéric Chopin", period: [1810, 1849]},
14
+ {name: "Joseph Haydn", period: [1732, 1809]},
15
+ {name: "Antonio Vivaldi", period: [1678, 1741]}
16
+ ];
17
+
18
+ const tree = new IntervalTree();
19
+ for (let composer of composers)
20
+ tree.insert(composer.period, composer.name);
21
+
22
+ const searchRes = tree.search([1600, 1700], (name, period) => {
23
+ return {name: name, period: period.output()}
24
+ });
25
+
26
+ const App = (title, filter) => {
27
+ return (
28
+ <div>
29
+ <h2>Great composers</h2>
30
+ <ComposersList composers={composers}/>
31
+
32
+ <h2>Composers who lived in 17th century</h2>
33
+ <ComposersList composers={searchRes}/>
34
+ </div>
35
+ );
36
+ };
37
+
38
+ export default App;
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+
3
+ const ComposersList = ({composers}) => {
4
+ return (
5
+ <ul style={{listStyle: "none"}}>
6
+ {composers.map( composer =>
7
+ <li key={composer.name}>
8
+ {composer.name} ({composer.period[0]} - {composer.period[1]})
9
+ </li>
10
+ )}
11
+ </ul>
12
+ );
13
+ };
14
+
15
+ export default ComposersList;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import ReactDOM from 'react-dom';
3
+ import App from './App';
4
+
5
+ ReactDOM.render(<App />, document.getElementById('root'));
@@ -0,0 +1,50 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <!-- ALl credits to Turf https://github.com/Turfjs/turf/blob/master/examples/es-modules/index.html -->
6
+ <title>ES Modules</title>
7
+ </head>
8
+ <body>
9
+ <div id="main">
10
+ <h2>Great composers</h2>
11
+ <ul id="list" style="list-style: none">
12
+
13
+ </ul>
14
+ <h2>Composers who lived in 17th century</h2>
15
+ <ul id="results" style="list-style: none">
16
+
17
+ </ul>
18
+ </div>
19
+
20
+ <script type="module">
21
+ import IntervalTree from "https://unpkg.com/@flatten-js/interval-tree?module";
22
+
23
+ const composers = [
24
+ {name: "Ludwig van Beethoven", period: [1770,1827]},
25
+ {name: "Johann Sebastian Bach", period: [1685, 1750]},
26
+ {name: "Wolfgang Amadeus Mozart", period: [1756, 1791]},
27
+ {name: "Johannes Brahms", period: [1833, 1897]},
28
+ {name: "Richard Wagner", period: [1813, 1883]},
29
+ {name: "Claude Debussy", period: [1862, 1918]},
30
+ {name: "Pyotr Ilyich Tchaikovsky", period: [1840, 1893]},
31
+ {name: "Frédéric Chopin", period: [1810, 1849]},
32
+ {name: "Joseph Haydn", period: [1732, 1809]},
33
+ {name: "Antonio Vivaldi", period: [1678, 1741]}
34
+ ];
35
+
36
+ const compList = composers.reduce( (html,composer) => html + `<li>${composer.name} (${composer.period[0]} - ${composer.period[1]})</li>`, "" );
37
+ document.getElementById("list").innerHTML = compList;
38
+
39
+ // Composers who lived in 17th century
40
+ const tree = new IntervalTree();
41
+ for (let composer of composers)
42
+ tree.insert(composer.period, composer.name);
43
+
44
+ const searchRes = tree.search( [1600,1700], (name, period) => {return {name : name, period: period.output()}} );
45
+
46
+ const resList = searchRes.reduce( (html, composer) => html + `<li>${composer.name} (${composer.period[0]} - ${composer.period[1]})</li>`, "" );
47
+ document.getElementById("results").innerHTML = resList;
48
+ </script>
49
+ </body>
50
+ </html>
@@ -0,0 +1,23 @@
1
+ const IntervalTree = require("@flatten-js/interval-tree").default;
2
+
3
+ const composers = [
4
+ {name: "Ludwig van Beethoven", period: [1770,1827]},
5
+ {name: "Johann Sebastian Bach", period: [1685, 1750]},
6
+ {name: "Wolfgang Amadeus Mozart", period: [1756, 1791]},
7
+ {name: "Johannes Brahms", period: [1833, 1897]},
8
+ {name: "Richard Wagner", period: [1813, 1883]},
9
+ {name: "Claude Debussy", period: [1862, 1918]},
10
+ {name: "Pyotr Ilyich Tchaikovsky", period: [1840, 1893]},
11
+ {name: "Frédéric Chopin", period: [1810, 1849]},
12
+ {name: "Joseph Haydn", period: [1732, 1809]},
13
+ {name: "Antonio Vivaldi", period: [1678, 1741]}
14
+ ];
15
+
16
+ // Composers who lived in 17th century
17
+ const tree = new IntervalTree();
18
+ for (let composer of composers)
19
+ tree.insert(composer.period, composer.name);
20
+
21
+ const searchRes = tree.search( [1600,1700], (name, period) => {return {name : name, period: period.output()}} );
22
+
23
+ console.log(searchRes);
package/index.d.ts ADDED
@@ -0,0 +1,65 @@
1
+ // Type definitions for flatten-interval-tree library v1.0.2
2
+ // Project: https://github.com/alexbol99/flatten-js
3
+ // Definitions by: Alex Bol
4
+
5
+ type Comparable = any; // any object that implements operators '<' and '==' and method'max'
6
+ type Value = any;
7
+
8
+ declare class Interval {
9
+ low: Comparable;
10
+ high: Comparable;
11
+
12
+ readonly max: Interval;
13
+
14
+ clone(): Interval;
15
+ less_than(other_interval: Interval) : boolean;
16
+ equal_to(other_interval: Interval) : boolean;
17
+ intersect(other_interval: Interval) : boolean;
18
+ not_intersect(other_interval: Interval) : boolean;
19
+ merge(other_interval: Interval) : Interval;
20
+ output() : [number, number];
21
+
22
+ static comparable_max(arg1: Interval, arg2: Interval) : Interval;
23
+ static comparable_less_than(arg1: Comparable, arg2: Comparable ) : boolean;
24
+ }
25
+
26
+ type Item = {key: Interval, value: Value}
27
+
28
+ declare class Node {
29
+ constructor(key?: Interval | number[], value?: Value )
30
+
31
+ left: Node;
32
+ right: Node;
33
+ parent: Node;
34
+ color: 1 | 0;
35
+ item: Item;
36
+
37
+ isNil() : boolean;
38
+ less_than(other_node: Node) : boolean;
39
+ equal_to(other_node: Node) : boolean;
40
+ intersect(other_node: Node) : boolean;
41
+ copy_data(other_node: Node) : void;
42
+ update_max() : void;
43
+ }
44
+
45
+ declare class IntervalTree {
46
+ constructor()
47
+
48
+ root: Node;
49
+
50
+ readonly size: number;
51
+ readonly keys: Node[];
52
+ readonly values: Value[];
53
+ readonly items: Array<{key:Interval, value:Value}>;
54
+
55
+ isEmpty(): boolean;
56
+ insert(key: Interval | number[], value?: Value) : Node;
57
+ exist(key: Interval | number[], value?: Value): boolean;
58
+ remove(key: Interval | number[], value?: Value) : Node;
59
+ search(interval: Interval | number[], outputMapperFn?: (value: Value, key: Interval) => any) : Array<any>;
60
+ forEach(callbackfn: (key: Interval, value: Value) => void, thisArg?: any ) : void;
61
+ map(callbackFn: (value: Value, key?: Interval) => any, thisArg?: any ): IntervalTree;
62
+ }
63
+
64
+ export default IntervalTree;
65
+
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ export {default as Node} from './src/classes/node';
2
+ export {default as Interval} from './src/classes/interval';
3
+ // export {default as IntervalTree} from './src/classes/intervalTree.js';
4
+ import IntervalTree from './src/classes/intervalTree.js';
5
+ export default IntervalTree;
6
+
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@live-change/flatten-interval-tree",
3
+ "version": "0.8.26",
4
+ "description": "Interval search tree - this is a fork of the original project that support strings as keys.",
5
+ "author": "Michał Łaszczewski <michal@lasczewski.pl>",
6
+ "contributors": [
7
+ {
8
+ "name": "Alex",
9
+ "email": "alexbol99@gmail.com"
10
+ }
11
+ ],
12
+ "license": "MIT",
13
+ "main": "dist/main.cjs.js",
14
+ "umd:main": "dist/main.umd.js",
15
+ "unpkg": "dist/main.umd.js",
16
+ "module": "dist/main.esm.js",
17
+ "types": "index.d.ts",
18
+ "nyc": {
19
+ "require": [
20
+ "@babel/register"
21
+ ],
22
+ "sourceMap": false,
23
+ "instrument": false
24
+ },
25
+ "scripts": {
26
+ "build": "rollup -c rollup.config.js",
27
+ "test": "nyc --reporter=html --reporter=text mocha --exit",
28
+ "generate-docs": "jsdoc -t ./node_modules/minami -d ./docs ./src -r README.md",
29
+ "coverage": "nyc report --reporter=text-lcov | coveralls",
30
+ "publish-npm": "npm publish --access public"
31
+ },
32
+ "keywords": [
33
+ "interval tree",
34
+ "binary search tree"
35
+ ],
36
+ "devDependencies": {
37
+ "@babel/cli": "^7.2.3",
38
+ "@babel/core": "^7.2.2",
39
+ "@babel/node": "^7.2.2",
40
+ "@babel/preset-env": "^7.3.1",
41
+ "@babel/register": "^7.0.0",
42
+ "babel-plugin-istanbul": "^5.1.1",
43
+ "chai": "^3.5.0",
44
+ "coveralls": "^3.0.3",
45
+ "jsdoc": "^3.6.2",
46
+ "minami": "^1.2.3",
47
+ "mocha": "^5.2.0",
48
+ "nyc": "^14.1.1",
49
+ "rollup": "^1.6.0"
50
+ },
51
+ "gitHead": "e62696aa9fa6e5b86312dfb64c97efa300d41147"
52
+ }
@@ -0,0 +1,21 @@
1
+ export default {
2
+ input: 'index.js',
3
+ output: [
4
+ {
5
+ file: 'dist/main.cjs.js',
6
+ format: 'cjs',
7
+ exports: 'named'
8
+ },
9
+ {
10
+ file: 'dist/main.esm.js',
11
+ format: 'esm',
12
+ exports: 'named'
13
+ },
14
+ {
15
+ file: 'dist/main.umd.js',
16
+ format: 'umd',
17
+ exports: 'named',
18
+ name: '@flatten-js/interval-tree'
19
+ }
20
+ ]
21
+ };