├── .editorconfig
├── .gitignore
├── .npmignore
├── .travis.yml
├── README.md
├── alm.json
├── package-lock.json
├── package.json
├── src
├── curves
│ ├── ease.ts
│ ├── easeIn.ts
│ ├── easeInBack.ts
│ ├── easeInBounce.ts
│ ├── easeInCirc.ts
│ ├── easeInCubic.ts
│ ├── easeInElastic.ts
│ ├── easeInExpo.ts
│ ├── easeInOut.ts
│ ├── easeInOutBack.ts
│ ├── easeInOutBounce.ts
│ ├── easeInOutCirc.ts
│ ├── easeInOutCubic.ts
│ ├── easeInOutElastic.ts
│ ├── easeInOutExpo.ts
│ ├── easeInOutQuad.ts
│ ├── easeInOutQuart.ts
│ ├── easeInOutQuint.ts
│ ├── easeInOutSine.ts
│ ├── easeInQuad.ts
│ ├── easeInQuart.ts
│ ├── easeInQuint.ts
│ ├── easeInSine.ts
│ ├── easeOut.ts
│ ├── easeOutBack.ts
│ ├── easeOutBounce.ts
│ ├── easeOutCirc.ts
│ ├── easeOutCubic.ts
│ ├── easeOutElastic.ts
│ ├── easeOutExpo.ts
│ ├── easeOutQuad.ts
│ ├── easeOutQuart.ts
│ ├── easeOutQuint.ts
│ ├── easeOutSine.ts
│ ├── index.ts
│ ├── linear.ts
│ ├── stepEnd.ts
│ └── stepStart.ts
├── internal
│ ├── constants.ts
│ ├── cssEasings.ts
│ ├── cssFunction.ts
│ ├── cubicBezier.ts
│ ├── index.ts
│ ├── math.ts
│ └── steps.ts
├── main.ts
└── types.ts
├── tests
├── assertions.ts
├── curves
│ ├── ease.ts
│ ├── easeIn.ts
│ ├── easeInBack.ts
│ ├── easeInBounce.ts
│ ├── easeInCirc.ts
│ ├── easeInCubic.ts
│ ├── easeInElastic.ts
│ ├── easeInExpo.ts
│ ├── easeInOut.ts
│ ├── easeInOutBack.ts
│ ├── easeInOutBounce.ts
│ ├── easeInOutCirc.ts
│ ├── easeInOutCubic.ts
│ ├── easeInOutElastic.ts
│ ├── easeInOutExpo.ts
│ ├── easeInOutQuad.ts
│ ├── easeInOutQuart.ts
│ ├── easeInOutQuint.ts
│ ├── easeInOutSine.ts
│ ├── easeInQuad.ts
│ ├── easeInQuart.ts
│ ├── easeInQuint.ts
│ ├── easeInSine.ts
│ ├── easeOut.ts
│ ├── easeOutBack.ts
│ ├── easeOutBounce.ts
│ ├── easeOutCirc.ts
│ ├── easeOutCubic.ts
│ ├── easeOutElastic.ts
│ ├── easeOutExpo.ts
│ ├── easeOutQuad.ts
│ ├── easeOutQuart.ts
│ ├── easeOutQuint.ts
│ ├── easeOutSine.ts
│ ├── linear.ts
│ ├── stepEnd.ts
│ └── stepStart.ts
└── internal
│ └── cssFunction.ts
├── tsconfig.es2015.json
├── tsconfig.json
├── tsconfig.node.json
└── tslint.json
/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.{js,jsx,ts,tsx}]
2 | indent_style = space
3 | indent_size = 2
4 | trim_trailing_whitespace = true
5 | insert_final_newline = true
6 |
7 | [*.md]
8 | trim_trailing_whitespace = true
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .alm
2 | .vscode
3 | .idea
4 | .vs
5 | npm-debug.log*
6 | /node_modules
7 | /dist
8 | /lib
9 | /lib.es2015
10 | /types
11 | /config
12 | /src/**/*.js
13 | /src/**/*.map
14 | /test/**/*.js
15 | /test/**/*.map
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | src
3 | tests
4 | .alm
5 | .vscode
6 | .editorconfig
7 | .gitignore
8 | rollup.common.js
9 | tsconfig.json
10 | tslint.json
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - '6'
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Just Curves
2 |
3 | *Just Curves is a math library for animation and tweening!*
4 |
5 | [](https://badge.fury.io/js/just-curves)
6 | [](https://travis-ci.org/just-animate/just-curves)
7 | [](https://www.npmjs.com/package/just-curves)
8 |
9 | ## Why use Just Curves?
10 |
11 | - Common easing curves like easeIn, easeOut, easeInQuint for JS and CSS
12 | - Custom eases using cubicBezier(), steps(), and cssFunction()
13 | - Use CSS easing functions from existing code
14 | - Small download size: __< 5k minified__ with no dependencies
15 | - Works with [Just Animate](https://github.com/just-animate/just-animate), [TweenRex](https://github.com/tweenrex/tweenrex), [nm8](https://github.com/davidkpiano/nm8), [Popmotion](https://github.com/Popmotion/popmotion), [AnimeJS](https://github.com/juliangarnier/anime), [MoJS](https://github.com/legomushroom/mojs), and other animation engines that accept easings in form of ```(offset: number) => number```
16 |
17 | > Power this project up with 🌟s, [^ star it please](https://github.com/just-animate/just-curves/stargazers).
18 |
19 | ## Getting Started
20 |
21 | ### Setup from CDN
22 | Include this script
23 | ```html
24 |
25 | ```
26 |
27 | ### Setup for bundling
28 |
29 | ```bash
30 | npm install just-curves --save
31 | ```
32 |
33 | ## Curve creators
34 |
35 | ### CSS Function
36 | Creates a curve from a css easing function
37 |
38 | **Browser**
39 | ```ts
40 | const linear = just.curves.cssFunction('linear');
41 | const ease = just.curves.cssFunction('cubic-bezier(0.25, 0.1, 0.25 0.1)');
42 | ```
43 |
44 | **Bundled**
45 | ```ts
46 | import { cssFunction } from 'just-curves';
47 |
48 | const linear = cssFunction('linear');
49 | const ease = cssFunction('cubic-bezier(0.25, 0.1, 0.25 0.1)');
50 | ```
51 |
52 | ### Cubic Bezier
53 | Creates a cubic-bezier curve using 4 numbers
54 |
55 | > Follows [cubic-bezier](https://drafts.csswg.org/css-timing/#cubic-bezier-timing-functions) CSS spec
56 |
57 | **Browser**
58 | ```ts
59 | const ease = just.curves.cubicBezier(.25, .1, .25, 1);
60 | ```
61 |
62 | **Bundled**
63 | ```ts
64 | import { cubicBezier } from 'just-curves';
65 |
66 | const ease = cubicBezier(.25, .1, .25, 1);
67 | ```
68 |
69 | ### Steps
70 | Creates a curve that advances in steps
71 |
72 | > Follows [step](https://drafts.csswg.org/css-timing/#step-timing-functions) CSS timing spec
73 |
74 | **Browser**
75 | ```ts
76 | const stepStart = just.curves.steps(1, 'start');
77 | const stepEnd = just.curves.steps(1, 'end');
78 | ```
79 |
80 | **Bundled**
81 | ```ts
82 | import { steps } from 'just-curves';
83 |
84 | const stepStart = steps(1, 'start');
85 | const stepEnd = steps(1, 'end');
86 | ```
87 |
88 | ## Curves made for JavaScript
89 |
90 | **Browser**
91 | ```ts
92 | just.curves./* curve name here */
93 | ```
94 |
95 | **Bundled**
96 | ```ts
97 | import { /* curve name here */ } from 'just-curves';
98 | ```
99 | The chart below shows all of the easings ready for use in JavaScript as is except for `linear`.
100 |
101 |
102 | Type | In | Out | In-Out
103 | --- | --- | --- | ---
104 | `back` | easeInBack | easeOutBack | easeInOutBack
105 | `bounce` | easeInBounce | easeOutBounce | easeInOutBounce
106 | `circ` | easeInCirc | easeOutCirc | easeInOutCirc
107 | `cubic` | easeInCubic | easeOutCubic | easeInOutCubic
108 | `elastic` | easeInElastic | easeOutElastic | easeInOutElastic
109 | `expo` | easeInExpo | easeOutExpo | easeInOutExpo
110 | `quad` | easeInQuad | easeOutQuad | easeInOutQuad
111 | `quart` | easeInQuart | easeOutQuart | easeInOutQuart
112 | `quint` | easeInQuint | easeOutQuint | easeInOutQuint
113 | `sine` | easeInSine | easeOutSine | easeInOutSine
114 | `step` | stepStart | stepEnd |
115 |
116 |
117 | ## Curves made for in CSS
118 |
119 | **Browser**
120 | ```ts
121 | const curve = just.curves.css./* curve name here */;
122 | ```
123 |
124 | **Bundled**
125 | ```ts
126 | import { css } from 'just-curves';
127 |
128 | const curve = css./* curve name here */;
129 | ```
130 |
131 | The chart below shows all of the easings ready for use in CSS as is except for `linear`.
132 |
133 | Type | In | Out | In-Out
134 | --- | --- | --- | ---
135 | `back` | easeInBack | easeOutBack | easeInOutBack
136 | `bounce` | easeInBounce | easeOutBounce | easeInOutBounce
137 | `circ` | easeInCirc | easeOutCirc | easeInOutCirc
138 | `cubic` | easeInCubic | easeOutCubic | easeInOutCubic
139 | `ease` | easeIn | easeOut | easeInOut
140 | `expo` | easeInExpo | easeOutExpo | easeInOutExpo
141 | `quad` | easeInQuad | easeOutQuad | easeInOutQuad
142 | `quart` | easeInQuart | easeOutQuart | easeInOutQuart
143 | `quint` | easeInQuint | easeOutQuint | easeInOutQuint
144 | `sine` | easeInSine | easeOutSine | easeInOutSine
145 | `special` | | | elegantSlowStartEnd
146 | `step` | stepStart | stepEnd |
147 |
148 |
--------------------------------------------------------------------------------
/alm.json:
--------------------------------------------------------------------------------
1 | {
2 | "tests": {
3 | "include": [
4 | "tests/**/*.ts"
5 | ]
6 | }
7 | }
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "just-curves",
3 | "version": "0.2.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@types/mocha": {
8 | "version": "2.2.43",
9 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.43.tgz",
10 | "integrity": "sha512-xNlAmH+lRJdUMXClMTI9Y0pRqIojdxfm7DHsIxoB2iTzu3fnPmSMEN8SsSx0cdwV36d02PWCWaDUoZPDSln+xw==",
11 | "dev": true
12 | },
13 | "@types/node": {
14 | "version": "8.0.29",
15 | "resolved": "https://registry.npmjs.org/@types/node/-/node-8.0.29.tgz",
16 | "integrity": "sha512-C5h3jl321dtwQJJAl6poPm7YmDneEv1cpRMZxJ7vlH03XN6OQix4LxTHBBZBj/aPVhlO2dO5fbfgdxYkn2ArKw==",
17 | "dev": true
18 | },
19 | "ansi-align": {
20 | "version": "2.0.0",
21 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz",
22 | "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=",
23 | "dev": true,
24 | "requires": {
25 | "string-width": "^2.0.0"
26 | }
27 | },
28 | "ansi-colors": {
29 | "version": "3.2.3",
30 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz",
31 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==",
32 | "dev": true
33 | },
34 | "ansi-regex": {
35 | "version": "3.0.0",
36 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
37 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=",
38 | "dev": true
39 | },
40 | "ansi-styles": {
41 | "version": "3.2.0",
42 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
43 | "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
44 | "dev": true,
45 | "requires": {
46 | "color-convert": "^1.9.0"
47 | }
48 | },
49 | "argparse": {
50 | "version": "1.0.10",
51 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
52 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
53 | "dev": true,
54 | "requires": {
55 | "sprintf-js": "~1.0.2"
56 | }
57 | },
58 | "array-find-index": {
59 | "version": "1.0.2",
60 | "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
61 | "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
62 | "dev": true
63 | },
64 | "array-union": {
65 | "version": "1.0.2",
66 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz",
67 | "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=",
68 | "dev": true,
69 | "requires": {
70 | "array-uniq": "^1.0.1"
71 | }
72 | },
73 | "array-uniq": {
74 | "version": "1.0.3",
75 | "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz",
76 | "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=",
77 | "dev": true
78 | },
79 | "arrify": {
80 | "version": "1.0.1",
81 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
82 | "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
83 | "dev": true
84 | },
85 | "babel-code-frame": {
86 | "version": "6.22.0",
87 | "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.22.0.tgz",
88 | "integrity": "sha1-AnYgvuVnqIwyVhV05/0IAdMxGOQ=",
89 | "dev": true,
90 | "requires": {
91 | "chalk": "^1.1.0",
92 | "esutils": "^2.0.2",
93 | "js-tokens": "^3.0.0"
94 | }
95 | },
96 | "balanced-match": {
97 | "version": "1.0.0",
98 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
99 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
100 | "dev": true
101 | },
102 | "boxen": {
103 | "version": "1.2.1",
104 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.2.1.tgz",
105 | "integrity": "sha1-DxHn/jRO25OXl3/BPt5/ZNlWSB0=",
106 | "dev": true,
107 | "requires": {
108 | "ansi-align": "^2.0.0",
109 | "camelcase": "^4.0.0",
110 | "chalk": "^2.0.1",
111 | "cli-boxes": "^1.0.0",
112 | "string-width": "^2.0.0",
113 | "term-size": "^1.2.0",
114 | "widest-line": "^1.0.0"
115 | },
116 | "dependencies": {
117 | "camelcase": {
118 | "version": "4.1.0",
119 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz",
120 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=",
121 | "dev": true
122 | },
123 | "chalk": {
124 | "version": "2.0.1",
125 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.0.1.tgz",
126 | "integrity": "sha512-Mp+FXEI+FrwY/XYV45b2YD3E8i3HwnEAoFcM0qlZzq/RZ9RwWitt2Y/c7cqRAz70U7hfekqx6qNYthuKFO6K0g==",
127 | "dev": true,
128 | "requires": {
129 | "ansi-styles": "^3.1.0",
130 | "escape-string-regexp": "^1.0.5",
131 | "supports-color": "^4.0.0"
132 | }
133 | }
134 | }
135 | },
136 | "brace-expansion": {
137 | "version": "1.1.11",
138 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
139 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
140 | "dev": true,
141 | "requires": {
142 | "balanced-match": "^1.0.0",
143 | "concat-map": "0.0.1"
144 | }
145 | },
146 | "browser-stdout": {
147 | "version": "1.3.1",
148 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz",
149 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==",
150 | "dev": true
151 | },
152 | "builtin-modules": {
153 | "version": "1.1.1",
154 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz",
155 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=",
156 | "dev": true
157 | },
158 | "camelcase": {
159 | "version": "2.1.1",
160 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
161 | "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=",
162 | "dev": true
163 | },
164 | "camelcase-keys": {
165 | "version": "2.1.0",
166 | "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
167 | "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
168 | "dev": true,
169 | "requires": {
170 | "camelcase": "^2.0.0",
171 | "map-obj": "^1.0.0"
172 | }
173 | },
174 | "capture-stack-trace": {
175 | "version": "1.0.0",
176 | "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz",
177 | "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=",
178 | "dev": true
179 | },
180 | "chalk": {
181 | "version": "1.1.3",
182 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
183 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
184 | "dev": true,
185 | "requires": {
186 | "ansi-styles": "^2.2.1",
187 | "escape-string-regexp": "^1.0.2",
188 | "has-ansi": "^2.0.0",
189 | "strip-ansi": "^3.0.0",
190 | "supports-color": "^2.0.0"
191 | },
192 | "dependencies": {
193 | "ansi-regex": {
194 | "version": "2.1.1",
195 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
196 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
197 | "dev": true
198 | },
199 | "ansi-styles": {
200 | "version": "2.2.1",
201 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
202 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=",
203 | "dev": true
204 | },
205 | "strip-ansi": {
206 | "version": "3.0.1",
207 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
208 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
209 | "dev": true,
210 | "requires": {
211 | "ansi-regex": "^2.0.0"
212 | }
213 | },
214 | "supports-color": {
215 | "version": "2.0.0",
216 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
217 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=",
218 | "dev": true
219 | }
220 | }
221 | },
222 | "cli-boxes": {
223 | "version": "1.0.0",
224 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz",
225 | "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=",
226 | "dev": true
227 | },
228 | "cliui": {
229 | "version": "4.1.0",
230 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
231 | "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==",
232 | "dev": true,
233 | "requires": {
234 | "string-width": "^2.1.1",
235 | "strip-ansi": "^4.0.0",
236 | "wrap-ansi": "^2.0.0"
237 | }
238 | },
239 | "code-point-at": {
240 | "version": "1.1.0",
241 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
242 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
243 | "dev": true
244 | },
245 | "color-convert": {
246 | "version": "1.9.0",
247 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.0.tgz",
248 | "integrity": "sha1-Gsz5fdc5uYO/mU1W/sj5WFNkG3o=",
249 | "dev": true,
250 | "requires": {
251 | "color-name": "^1.1.1"
252 | }
253 | },
254 | "color-name": {
255 | "version": "1.1.3",
256 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
257 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
258 | "dev": true
259 | },
260 | "colors": {
261 | "version": "1.1.2",
262 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz",
263 | "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=",
264 | "dev": true
265 | },
266 | "commander": {
267 | "version": "2.9.0",
268 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz",
269 | "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=",
270 | "dev": true,
271 | "requires": {
272 | "graceful-readlink": ">= 1.0.0"
273 | }
274 | },
275 | "concat-map": {
276 | "version": "0.0.1",
277 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
278 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
279 | "dev": true
280 | },
281 | "configstore": {
282 | "version": "3.1.1",
283 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz",
284 | "integrity": "sha512-5oNkD/L++l0O6xGXxb1EWS7SivtjfGQlRyxJsYgE0Z495/L81e2h4/d3r969hoPXuFItzNOKMtsXgYG4c7dYvw==",
285 | "dev": true,
286 | "requires": {
287 | "dot-prop": "^4.1.0",
288 | "graceful-fs": "^4.1.2",
289 | "make-dir": "^1.0.0",
290 | "unique-string": "^1.0.0",
291 | "write-file-atomic": "^2.0.0",
292 | "xdg-basedir": "^3.0.0"
293 | }
294 | },
295 | "create-error-class": {
296 | "version": "3.0.2",
297 | "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz",
298 | "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=",
299 | "dev": true,
300 | "requires": {
301 | "capture-stack-trace": "^1.0.0"
302 | }
303 | },
304 | "cross-spawn": {
305 | "version": "5.1.0",
306 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
307 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
308 | "dev": true,
309 | "requires": {
310 | "lru-cache": "^4.0.1",
311 | "shebang-command": "^1.2.0",
312 | "which": "^1.2.9"
313 | }
314 | },
315 | "crypto-random-string": {
316 | "version": "1.0.0",
317 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz",
318 | "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=",
319 | "dev": true
320 | },
321 | "currently-unhandled": {
322 | "version": "0.4.1",
323 | "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
324 | "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=",
325 | "dev": true,
326 | "requires": {
327 | "array-find-index": "^1.0.1"
328 | }
329 | },
330 | "debug": {
331 | "version": "3.2.6",
332 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz",
333 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==",
334 | "dev": true,
335 | "requires": {
336 | "ms": "^2.1.1"
337 | }
338 | },
339 | "decamelize": {
340 | "version": "1.2.0",
341 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
342 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
343 | "dev": true
344 | },
345 | "deep-extend": {
346 | "version": "0.6.0",
347 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
348 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
349 | "dev": true
350 | },
351 | "define-properties": {
352 | "version": "1.1.3",
353 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
354 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
355 | "dev": true,
356 | "requires": {
357 | "object-keys": "^1.0.12"
358 | }
359 | },
360 | "del": {
361 | "version": "3.0.0",
362 | "resolved": "https://registry.npmjs.org/del/-/del-3.0.0.tgz",
363 | "integrity": "sha1-U+z2mf/LyzljdpGrE7rxYIGXZuU=",
364 | "dev": true,
365 | "requires": {
366 | "globby": "^6.1.0",
367 | "is-path-cwd": "^1.0.0",
368 | "is-path-in-cwd": "^1.0.0",
369 | "p-map": "^1.1.1",
370 | "pify": "^3.0.0",
371 | "rimraf": "^2.2.8"
372 | }
373 | },
374 | "del-cli": {
375 | "version": "1.1.0",
376 | "resolved": "https://registry.npmjs.org/del-cli/-/del-cli-1.1.0.tgz",
377 | "integrity": "sha1-J1V9aaC335ncuqHjSgnmrGWR0sQ=",
378 | "dev": true,
379 | "requires": {
380 | "del": "^3.0.0",
381 | "meow": "^3.6.0",
382 | "update-notifier": "^2.1.0"
383 | }
384 | },
385 | "diff": {
386 | "version": "3.5.0",
387 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz",
388 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==",
389 | "dev": true
390 | },
391 | "dot-prop": {
392 | "version": "4.2.0",
393 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz",
394 | "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==",
395 | "dev": true,
396 | "requires": {
397 | "is-obj": "^1.0.0"
398 | }
399 | },
400 | "duplexer3": {
401 | "version": "0.1.4",
402 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz",
403 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=",
404 | "dev": true
405 | },
406 | "emoji-regex": {
407 | "version": "7.0.3",
408 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
409 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
410 | "dev": true
411 | },
412 | "end-of-stream": {
413 | "version": "1.4.1",
414 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz",
415 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==",
416 | "dev": true,
417 | "requires": {
418 | "once": "^1.4.0"
419 | }
420 | },
421 | "error-ex": {
422 | "version": "1.3.1",
423 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz",
424 | "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=",
425 | "dev": true,
426 | "requires": {
427 | "is-arrayish": "^0.2.1"
428 | }
429 | },
430 | "es-abstract": {
431 | "version": "1.14.0",
432 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.14.0.tgz",
433 | "integrity": "sha512-lri42nNq1tIohUuwFBYEM3wKwcrcJa78jukGDdWsuaNxTtxBFGFkKUQ15nc9J+ipje4mhbQR6JwABb4VvawR3A==",
434 | "dev": true,
435 | "requires": {
436 | "es-to-primitive": "^1.2.0",
437 | "function-bind": "^1.1.1",
438 | "has": "^1.0.3",
439 | "has-symbols": "^1.0.0",
440 | "is-callable": "^1.1.4",
441 | "is-regex": "^1.0.4",
442 | "object-inspect": "^1.6.0",
443 | "object-keys": "^1.1.1",
444 | "string.prototype.trimleft": "^2.0.0",
445 | "string.prototype.trimright": "^2.0.0"
446 | }
447 | },
448 | "es-to-primitive": {
449 | "version": "1.2.0",
450 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz",
451 | "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==",
452 | "dev": true,
453 | "requires": {
454 | "is-callable": "^1.1.4",
455 | "is-date-object": "^1.0.1",
456 | "is-symbol": "^1.0.2"
457 | }
458 | },
459 | "escape-string-regexp": {
460 | "version": "1.0.5",
461 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
462 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
463 | "dev": true
464 | },
465 | "esprima": {
466 | "version": "4.0.1",
467 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
468 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
469 | "dev": true
470 | },
471 | "esutils": {
472 | "version": "2.0.2",
473 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
474 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=",
475 | "dev": true
476 | },
477 | "execa": {
478 | "version": "0.7.0",
479 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
480 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=",
481 | "dev": true,
482 | "requires": {
483 | "cross-spawn": "^5.0.1",
484 | "get-stream": "^3.0.0",
485 | "is-stream": "^1.1.0",
486 | "npm-run-path": "^2.0.0",
487 | "p-finally": "^1.0.0",
488 | "signal-exit": "^3.0.0",
489 | "strip-eof": "^1.0.0"
490 | }
491 | },
492 | "find-up": {
493 | "version": "1.1.2",
494 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
495 | "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
496 | "dev": true,
497 | "requires": {
498 | "path-exists": "^2.0.0",
499 | "pinkie-promise": "^2.0.0"
500 | }
501 | },
502 | "flat": {
503 | "version": "4.1.0",
504 | "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz",
505 | "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==",
506 | "dev": true,
507 | "requires": {
508 | "is-buffer": "~2.0.3"
509 | }
510 | },
511 | "fs.realpath": {
512 | "version": "1.0.0",
513 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
514 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
515 | "dev": true
516 | },
517 | "function-bind": {
518 | "version": "1.1.1",
519 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
520 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
521 | "dev": true
522 | },
523 | "get-caller-file": {
524 | "version": "2.0.5",
525 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
526 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
527 | "dev": true
528 | },
529 | "get-stdin": {
530 | "version": "4.0.1",
531 | "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
532 | "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=",
533 | "dev": true
534 | },
535 | "get-stream": {
536 | "version": "3.0.0",
537 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
538 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=",
539 | "dev": true
540 | },
541 | "glob": {
542 | "version": "7.1.2",
543 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
544 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
545 | "dev": true,
546 | "requires": {
547 | "fs.realpath": "^1.0.0",
548 | "inflight": "^1.0.4",
549 | "inherits": "2",
550 | "minimatch": "^3.0.4",
551 | "once": "^1.3.0",
552 | "path-is-absolute": "^1.0.0"
553 | },
554 | "dependencies": {
555 | "balanced-match": {
556 | "version": "1.0.0",
557 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
558 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
559 | "dev": true
560 | },
561 | "brace-expansion": {
562 | "version": "1.1.8",
563 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
564 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
565 | "dev": true,
566 | "requires": {
567 | "balanced-match": "^1.0.0",
568 | "concat-map": "0.0.1"
569 | }
570 | },
571 | "minimatch": {
572 | "version": "3.0.4",
573 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
574 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
575 | "dev": true,
576 | "requires": {
577 | "brace-expansion": "^1.1.7"
578 | }
579 | }
580 | }
581 | },
582 | "globby": {
583 | "version": "6.1.0",
584 | "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz",
585 | "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=",
586 | "dev": true,
587 | "requires": {
588 | "array-union": "^1.0.1",
589 | "glob": "^7.0.3",
590 | "object-assign": "^4.0.1",
591 | "pify": "^2.0.0",
592 | "pinkie-promise": "^2.0.0"
593 | },
594 | "dependencies": {
595 | "pify": {
596 | "version": "2.3.0",
597 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
598 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
599 | "dev": true
600 | }
601 | }
602 | },
603 | "got": {
604 | "version": "6.7.1",
605 | "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz",
606 | "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=",
607 | "dev": true,
608 | "requires": {
609 | "create-error-class": "^3.0.0",
610 | "duplexer3": "^0.1.4",
611 | "get-stream": "^3.0.0",
612 | "is-redirect": "^1.0.0",
613 | "is-retry-allowed": "^1.0.0",
614 | "is-stream": "^1.0.0",
615 | "lowercase-keys": "^1.0.0",
616 | "safe-buffer": "^5.0.1",
617 | "timed-out": "^4.0.0",
618 | "unzip-response": "^2.0.1",
619 | "url-parse-lax": "^1.0.0"
620 | }
621 | },
622 | "graceful-fs": {
623 | "version": "4.1.11",
624 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
625 | "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
626 | "dev": true
627 | },
628 | "graceful-readlink": {
629 | "version": "1.0.1",
630 | "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz",
631 | "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=",
632 | "dev": true
633 | },
634 | "growl": {
635 | "version": "1.10.5",
636 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz",
637 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==",
638 | "dev": true
639 | },
640 | "has": {
641 | "version": "1.0.3",
642 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
643 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
644 | "dev": true,
645 | "requires": {
646 | "function-bind": "^1.1.1"
647 | }
648 | },
649 | "has-ansi": {
650 | "version": "2.0.0",
651 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz",
652 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=",
653 | "dev": true,
654 | "requires": {
655 | "ansi-regex": "^2.0.0"
656 | },
657 | "dependencies": {
658 | "ansi-regex": {
659 | "version": "2.1.1",
660 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
661 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
662 | "dev": true
663 | }
664 | }
665 | },
666 | "has-flag": {
667 | "version": "2.0.0",
668 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
669 | "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=",
670 | "dev": true
671 | },
672 | "has-symbols": {
673 | "version": "1.0.0",
674 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz",
675 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=",
676 | "dev": true
677 | },
678 | "he": {
679 | "version": "1.2.0",
680 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz",
681 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==",
682 | "dev": true
683 | },
684 | "hosted-git-info": {
685 | "version": "2.5.0",
686 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
687 | "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==",
688 | "dev": true
689 | },
690 | "import-lazy": {
691 | "version": "2.1.0",
692 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz",
693 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=",
694 | "dev": true
695 | },
696 | "imurmurhash": {
697 | "version": "0.1.4",
698 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",
699 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=",
700 | "dev": true
701 | },
702 | "indent-string": {
703 | "version": "2.1.0",
704 | "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
705 | "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=",
706 | "dev": true,
707 | "requires": {
708 | "repeating": "^2.0.0"
709 | }
710 | },
711 | "inflight": {
712 | "version": "1.0.6",
713 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
714 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
715 | "dev": true,
716 | "requires": {
717 | "once": "^1.3.0",
718 | "wrappy": "1"
719 | }
720 | },
721 | "inherits": {
722 | "version": "2.0.3",
723 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
724 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
725 | "dev": true
726 | },
727 | "ini": {
728 | "version": "1.3.5",
729 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
730 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
731 | "dev": true
732 | },
733 | "invert-kv": {
734 | "version": "2.0.0",
735 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz",
736 | "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==",
737 | "dev": true
738 | },
739 | "is-arrayish": {
740 | "version": "0.2.1",
741 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
742 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
743 | "dev": true
744 | },
745 | "is-buffer": {
746 | "version": "2.0.3",
747 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz",
748 | "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==",
749 | "dev": true
750 | },
751 | "is-builtin-module": {
752 | "version": "1.0.0",
753 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz",
754 | "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=",
755 | "dev": true,
756 | "requires": {
757 | "builtin-modules": "^1.0.0"
758 | }
759 | },
760 | "is-callable": {
761 | "version": "1.1.4",
762 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz",
763 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==",
764 | "dev": true
765 | },
766 | "is-date-object": {
767 | "version": "1.0.1",
768 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz",
769 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=",
770 | "dev": true
771 | },
772 | "is-finite": {
773 | "version": "1.0.2",
774 | "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz",
775 | "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=",
776 | "dev": true,
777 | "requires": {
778 | "number-is-nan": "^1.0.0"
779 | }
780 | },
781 | "is-fullwidth-code-point": {
782 | "version": "2.0.0",
783 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
784 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
785 | "dev": true
786 | },
787 | "is-npm": {
788 | "version": "1.0.0",
789 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz",
790 | "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=",
791 | "dev": true
792 | },
793 | "is-obj": {
794 | "version": "1.0.1",
795 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",
796 | "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=",
797 | "dev": true
798 | },
799 | "is-path-cwd": {
800 | "version": "1.0.0",
801 | "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz",
802 | "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=",
803 | "dev": true
804 | },
805 | "is-path-in-cwd": {
806 | "version": "1.0.0",
807 | "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz",
808 | "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=",
809 | "dev": true,
810 | "requires": {
811 | "is-path-inside": "^1.0.0"
812 | }
813 | },
814 | "is-path-inside": {
815 | "version": "1.0.0",
816 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz",
817 | "integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=",
818 | "dev": true,
819 | "requires": {
820 | "path-is-inside": "^1.0.1"
821 | }
822 | },
823 | "is-redirect": {
824 | "version": "1.0.0",
825 | "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz",
826 | "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=",
827 | "dev": true
828 | },
829 | "is-regex": {
830 | "version": "1.0.4",
831 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz",
832 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=",
833 | "dev": true,
834 | "requires": {
835 | "has": "^1.0.1"
836 | }
837 | },
838 | "is-retry-allowed": {
839 | "version": "1.1.0",
840 | "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz",
841 | "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=",
842 | "dev": true
843 | },
844 | "is-stream": {
845 | "version": "1.1.0",
846 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
847 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
848 | "dev": true
849 | },
850 | "is-symbol": {
851 | "version": "1.0.2",
852 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz",
853 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==",
854 | "dev": true,
855 | "requires": {
856 | "has-symbols": "^1.0.0"
857 | }
858 | },
859 | "is-utf8": {
860 | "version": "0.2.1",
861 | "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
862 | "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=",
863 | "dev": true
864 | },
865 | "isexe": {
866 | "version": "2.0.0",
867 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
868 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
869 | "dev": true
870 | },
871 | "js-tokens": {
872 | "version": "3.0.2",
873 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
874 | "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
875 | "dev": true
876 | },
877 | "js-yaml": {
878 | "version": "3.13.1",
879 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz",
880 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==",
881 | "dev": true,
882 | "requires": {
883 | "argparse": "^1.0.7",
884 | "esprima": "^4.0.0"
885 | }
886 | },
887 | "latest-version": {
888 | "version": "3.1.0",
889 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz",
890 | "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=",
891 | "dev": true,
892 | "requires": {
893 | "package-json": "^4.0.0"
894 | }
895 | },
896 | "lcid": {
897 | "version": "2.0.0",
898 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz",
899 | "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==",
900 | "dev": true,
901 | "requires": {
902 | "invert-kv": "^2.0.0"
903 | }
904 | },
905 | "load-json-file": {
906 | "version": "1.1.0",
907 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
908 | "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
909 | "dev": true,
910 | "requires": {
911 | "graceful-fs": "^4.1.2",
912 | "parse-json": "^2.2.0",
913 | "pify": "^2.0.0",
914 | "pinkie-promise": "^2.0.0",
915 | "strip-bom": "^2.0.0"
916 | },
917 | "dependencies": {
918 | "pify": {
919 | "version": "2.3.0",
920 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
921 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
922 | "dev": true
923 | }
924 | }
925 | },
926 | "locate-path": {
927 | "version": "3.0.0",
928 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
929 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
930 | "dev": true,
931 | "requires": {
932 | "p-locate": "^3.0.0",
933 | "path-exists": "^3.0.0"
934 | },
935 | "dependencies": {
936 | "path-exists": {
937 | "version": "3.0.0",
938 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
939 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
940 | "dev": true
941 | }
942 | }
943 | },
944 | "lodash": {
945 | "version": "4.17.15",
946 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
947 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
948 | "dev": true
949 | },
950 | "log-symbols": {
951 | "version": "2.2.0",
952 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz",
953 | "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==",
954 | "dev": true,
955 | "requires": {
956 | "chalk": "^2.0.1"
957 | },
958 | "dependencies": {
959 | "ansi-styles": {
960 | "version": "3.2.1",
961 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
962 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
963 | "dev": true,
964 | "requires": {
965 | "color-convert": "^1.9.0"
966 | }
967 | },
968 | "chalk": {
969 | "version": "2.4.2",
970 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
971 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
972 | "dev": true,
973 | "requires": {
974 | "ansi-styles": "^3.2.1",
975 | "escape-string-regexp": "^1.0.5",
976 | "supports-color": "^5.3.0"
977 | }
978 | },
979 | "has-flag": {
980 | "version": "3.0.0",
981 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
982 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
983 | "dev": true
984 | },
985 | "supports-color": {
986 | "version": "5.5.0",
987 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
988 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
989 | "dev": true,
990 | "requires": {
991 | "has-flag": "^3.0.0"
992 | }
993 | }
994 | }
995 | },
996 | "loud-rejection": {
997 | "version": "1.6.0",
998 | "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
999 | "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=",
1000 | "dev": true,
1001 | "requires": {
1002 | "currently-unhandled": "^0.4.1",
1003 | "signal-exit": "^3.0.0"
1004 | }
1005 | },
1006 | "lowercase-keys": {
1007 | "version": "1.0.0",
1008 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz",
1009 | "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=",
1010 | "dev": true
1011 | },
1012 | "lru-cache": {
1013 | "version": "4.1.1",
1014 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz",
1015 | "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==",
1016 | "dev": true,
1017 | "requires": {
1018 | "pseudomap": "^1.0.2",
1019 | "yallist": "^2.1.2"
1020 | }
1021 | },
1022 | "make-dir": {
1023 | "version": "1.0.0",
1024 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.0.0.tgz",
1025 | "integrity": "sha1-l6ARdR6R3YfPre9Ygy67BJNt6Xg=",
1026 | "dev": true,
1027 | "requires": {
1028 | "pify": "^2.3.0"
1029 | },
1030 | "dependencies": {
1031 | "pify": {
1032 | "version": "2.3.0",
1033 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
1034 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
1035 | "dev": true
1036 | }
1037 | }
1038 | },
1039 | "make-error": {
1040 | "version": "1.3.0",
1041 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.0.tgz",
1042 | "integrity": "sha1-Uq06M5zPEM5itAQLcI/nByRLi5Y=",
1043 | "dev": true
1044 | },
1045 | "map-age-cleaner": {
1046 | "version": "0.1.3",
1047 | "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz",
1048 | "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==",
1049 | "dev": true,
1050 | "requires": {
1051 | "p-defer": "^1.0.0"
1052 | }
1053 | },
1054 | "map-obj": {
1055 | "version": "1.0.1",
1056 | "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
1057 | "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
1058 | "dev": true
1059 | },
1060 | "mem": {
1061 | "version": "4.3.0",
1062 | "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz",
1063 | "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==",
1064 | "dev": true,
1065 | "requires": {
1066 | "map-age-cleaner": "^0.1.1",
1067 | "mimic-fn": "^2.0.0",
1068 | "p-is-promise": "^2.0.0"
1069 | }
1070 | },
1071 | "meow": {
1072 | "version": "3.7.0",
1073 | "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
1074 | "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
1075 | "dev": true,
1076 | "requires": {
1077 | "camelcase-keys": "^2.0.0",
1078 | "decamelize": "^1.1.2",
1079 | "loud-rejection": "^1.0.0",
1080 | "map-obj": "^1.0.1",
1081 | "minimist": "^1.1.3",
1082 | "normalize-package-data": "^2.3.4",
1083 | "object-assign": "^4.0.1",
1084 | "read-pkg-up": "^1.0.1",
1085 | "redent": "^1.0.0",
1086 | "trim-newlines": "^1.0.0"
1087 | }
1088 | },
1089 | "mimic-fn": {
1090 | "version": "2.1.0",
1091 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
1092 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
1093 | "dev": true
1094 | },
1095 | "minimatch": {
1096 | "version": "3.0.4",
1097 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
1098 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
1099 | "dev": true,
1100 | "requires": {
1101 | "brace-expansion": "^1.1.7"
1102 | }
1103 | },
1104 | "minimist": {
1105 | "version": "1.2.0",
1106 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
1107 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
1108 | "dev": true
1109 | },
1110 | "mkdirp": {
1111 | "version": "0.5.1",
1112 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
1113 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
1114 | "dev": true,
1115 | "requires": {
1116 | "minimist": "0.0.8"
1117 | },
1118 | "dependencies": {
1119 | "minimist": {
1120 | "version": "0.0.8",
1121 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
1122 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
1123 | "dev": true
1124 | }
1125 | }
1126 | },
1127 | "mocha": {
1128 | "version": "6.2.0",
1129 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.0.tgz",
1130 | "integrity": "sha512-qwfFgY+7EKAAUAdv7VYMZQknI7YJSGesxHyhn6qD52DV8UcSZs5XwCifcZGMVIE4a5fbmhvbotxC0DLQ0oKohQ==",
1131 | "dev": true,
1132 | "requires": {
1133 | "ansi-colors": "3.2.3",
1134 | "browser-stdout": "1.3.1",
1135 | "debug": "3.2.6",
1136 | "diff": "3.5.0",
1137 | "escape-string-regexp": "1.0.5",
1138 | "find-up": "3.0.0",
1139 | "glob": "7.1.3",
1140 | "growl": "1.10.5",
1141 | "he": "1.2.0",
1142 | "js-yaml": "3.13.1",
1143 | "log-symbols": "2.2.0",
1144 | "minimatch": "3.0.4",
1145 | "mkdirp": "0.5.1",
1146 | "ms": "2.1.1",
1147 | "node-environment-flags": "1.0.5",
1148 | "object.assign": "4.1.0",
1149 | "strip-json-comments": "2.0.1",
1150 | "supports-color": "6.0.0",
1151 | "which": "1.3.1",
1152 | "wide-align": "1.1.3",
1153 | "yargs": "13.2.2",
1154 | "yargs-parser": "13.0.0",
1155 | "yargs-unparser": "1.5.0"
1156 | },
1157 | "dependencies": {
1158 | "find-up": {
1159 | "version": "3.0.0",
1160 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
1161 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
1162 | "dev": true,
1163 | "requires": {
1164 | "locate-path": "^3.0.0"
1165 | }
1166 | },
1167 | "glob": {
1168 | "version": "7.1.3",
1169 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz",
1170 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==",
1171 | "dev": true,
1172 | "requires": {
1173 | "fs.realpath": "^1.0.0",
1174 | "inflight": "^1.0.4",
1175 | "inherits": "2",
1176 | "minimatch": "^3.0.4",
1177 | "once": "^1.3.0",
1178 | "path-is-absolute": "^1.0.0"
1179 | }
1180 | },
1181 | "has-flag": {
1182 | "version": "3.0.0",
1183 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
1184 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
1185 | "dev": true
1186 | },
1187 | "supports-color": {
1188 | "version": "6.0.0",
1189 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz",
1190 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==",
1191 | "dev": true,
1192 | "requires": {
1193 | "has-flag": "^3.0.0"
1194 | }
1195 | },
1196 | "which": {
1197 | "version": "1.3.1",
1198 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
1199 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
1200 | "dev": true,
1201 | "requires": {
1202 | "isexe": "^2.0.0"
1203 | }
1204 | }
1205 | }
1206 | },
1207 | "ms": {
1208 | "version": "2.1.1",
1209 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz",
1210 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==",
1211 | "dev": true
1212 | },
1213 | "nice-try": {
1214 | "version": "1.0.5",
1215 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
1216 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==",
1217 | "dev": true
1218 | },
1219 | "node-environment-flags": {
1220 | "version": "1.0.5",
1221 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz",
1222 | "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==",
1223 | "dev": true,
1224 | "requires": {
1225 | "object.getownpropertydescriptors": "^2.0.3",
1226 | "semver": "^5.7.0"
1227 | },
1228 | "dependencies": {
1229 | "semver": {
1230 | "version": "5.7.1",
1231 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
1232 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
1233 | "dev": true
1234 | }
1235 | }
1236 | },
1237 | "normalize-package-data": {
1238 | "version": "2.4.0",
1239 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
1240 | "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==",
1241 | "dev": true,
1242 | "requires": {
1243 | "hosted-git-info": "^2.1.4",
1244 | "is-builtin-module": "^1.0.0",
1245 | "semver": "2 || 3 || 4 || 5",
1246 | "validate-npm-package-license": "^3.0.1"
1247 | }
1248 | },
1249 | "npm-run-path": {
1250 | "version": "2.0.2",
1251 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
1252 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
1253 | "dev": true,
1254 | "requires": {
1255 | "path-key": "^2.0.0"
1256 | }
1257 | },
1258 | "number-is-nan": {
1259 | "version": "1.0.1",
1260 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
1261 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
1262 | "dev": true
1263 | },
1264 | "object-assign": {
1265 | "version": "4.1.1",
1266 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1267 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
1268 | "dev": true
1269 | },
1270 | "object-inspect": {
1271 | "version": "1.6.0",
1272 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.6.0.tgz",
1273 | "integrity": "sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ==",
1274 | "dev": true
1275 | },
1276 | "object-keys": {
1277 | "version": "1.1.1",
1278 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
1279 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
1280 | "dev": true
1281 | },
1282 | "object.assign": {
1283 | "version": "4.1.0",
1284 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz",
1285 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==",
1286 | "dev": true,
1287 | "requires": {
1288 | "define-properties": "^1.1.2",
1289 | "function-bind": "^1.1.1",
1290 | "has-symbols": "^1.0.0",
1291 | "object-keys": "^1.0.11"
1292 | }
1293 | },
1294 | "object.getownpropertydescriptors": {
1295 | "version": "2.0.3",
1296 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz",
1297 | "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=",
1298 | "dev": true,
1299 | "requires": {
1300 | "define-properties": "^1.1.2",
1301 | "es-abstract": "^1.5.1"
1302 | }
1303 | },
1304 | "once": {
1305 | "version": "1.4.0",
1306 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
1307 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
1308 | "dev": true,
1309 | "requires": {
1310 | "wrappy": "1"
1311 | }
1312 | },
1313 | "os-locale": {
1314 | "version": "3.1.0",
1315 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz",
1316 | "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==",
1317 | "dev": true,
1318 | "requires": {
1319 | "execa": "^1.0.0",
1320 | "lcid": "^2.0.0",
1321 | "mem": "^4.0.0"
1322 | },
1323 | "dependencies": {
1324 | "cross-spawn": {
1325 | "version": "6.0.5",
1326 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
1327 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
1328 | "dev": true,
1329 | "requires": {
1330 | "nice-try": "^1.0.4",
1331 | "path-key": "^2.0.1",
1332 | "semver": "^5.5.0",
1333 | "shebang-command": "^1.2.0",
1334 | "which": "^1.2.9"
1335 | }
1336 | },
1337 | "execa": {
1338 | "version": "1.0.0",
1339 | "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz",
1340 | "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==",
1341 | "dev": true,
1342 | "requires": {
1343 | "cross-spawn": "^6.0.0",
1344 | "get-stream": "^4.0.0",
1345 | "is-stream": "^1.1.0",
1346 | "npm-run-path": "^2.0.0",
1347 | "p-finally": "^1.0.0",
1348 | "signal-exit": "^3.0.0",
1349 | "strip-eof": "^1.0.0"
1350 | }
1351 | },
1352 | "get-stream": {
1353 | "version": "4.1.0",
1354 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz",
1355 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==",
1356 | "dev": true,
1357 | "requires": {
1358 | "pump": "^3.0.0"
1359 | }
1360 | },
1361 | "semver": {
1362 | "version": "5.7.1",
1363 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
1364 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
1365 | "dev": true
1366 | }
1367 | }
1368 | },
1369 | "p-defer": {
1370 | "version": "1.0.0",
1371 | "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz",
1372 | "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=",
1373 | "dev": true
1374 | },
1375 | "p-finally": {
1376 | "version": "1.0.0",
1377 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
1378 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
1379 | "dev": true
1380 | },
1381 | "p-is-promise": {
1382 | "version": "2.1.0",
1383 | "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz",
1384 | "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==",
1385 | "dev": true
1386 | },
1387 | "p-limit": {
1388 | "version": "2.2.1",
1389 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz",
1390 | "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==",
1391 | "dev": true,
1392 | "requires": {
1393 | "p-try": "^2.0.0"
1394 | }
1395 | },
1396 | "p-locate": {
1397 | "version": "3.0.0",
1398 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
1399 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
1400 | "dev": true,
1401 | "requires": {
1402 | "p-limit": "^2.0.0"
1403 | }
1404 | },
1405 | "p-map": {
1406 | "version": "1.1.1",
1407 | "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.1.1.tgz",
1408 | "integrity": "sha1-BfXkrpegaDcbwqXMhr+9vBnErno=",
1409 | "dev": true
1410 | },
1411 | "p-try": {
1412 | "version": "2.2.0",
1413 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
1414 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
1415 | "dev": true
1416 | },
1417 | "package-json": {
1418 | "version": "4.0.1",
1419 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz",
1420 | "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=",
1421 | "dev": true,
1422 | "requires": {
1423 | "got": "^6.7.1",
1424 | "registry-auth-token": "^3.0.1",
1425 | "registry-url": "^3.0.3",
1426 | "semver": "^5.1.0"
1427 | },
1428 | "dependencies": {
1429 | "registry-auth-token": {
1430 | "version": "3.3.1",
1431 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.1.tgz",
1432 | "integrity": "sha1-+w0yie4Nmtosu1KvXf5mywcNMAY=",
1433 | "dev": true,
1434 | "requires": {
1435 | "rc": "^1.1.6",
1436 | "safe-buffer": "^5.0.1"
1437 | }
1438 | }
1439 | }
1440 | },
1441 | "parse-json": {
1442 | "version": "2.2.0",
1443 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
1444 | "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
1445 | "dev": true,
1446 | "requires": {
1447 | "error-ex": "^1.2.0"
1448 | }
1449 | },
1450 | "path-exists": {
1451 | "version": "2.1.0",
1452 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
1453 | "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
1454 | "dev": true,
1455 | "requires": {
1456 | "pinkie-promise": "^2.0.0"
1457 | }
1458 | },
1459 | "path-is-absolute": {
1460 | "version": "1.0.1",
1461 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
1462 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
1463 | "dev": true
1464 | },
1465 | "path-is-inside": {
1466 | "version": "1.0.2",
1467 | "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz",
1468 | "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=",
1469 | "dev": true
1470 | },
1471 | "path-key": {
1472 | "version": "2.0.1",
1473 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
1474 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
1475 | "dev": true
1476 | },
1477 | "path-parse": {
1478 | "version": "1.0.5",
1479 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz",
1480 | "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=",
1481 | "dev": true
1482 | },
1483 | "path-type": {
1484 | "version": "1.1.0",
1485 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
1486 | "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
1487 | "dev": true,
1488 | "requires": {
1489 | "graceful-fs": "^4.1.2",
1490 | "pify": "^2.0.0",
1491 | "pinkie-promise": "^2.0.0"
1492 | },
1493 | "dependencies": {
1494 | "pify": {
1495 | "version": "2.3.0",
1496 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
1497 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
1498 | "dev": true
1499 | }
1500 | }
1501 | },
1502 | "pify": {
1503 | "version": "3.0.0",
1504 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
1505 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
1506 | "dev": true
1507 | },
1508 | "pinkie": {
1509 | "version": "2.0.4",
1510 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
1511 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=",
1512 | "dev": true
1513 | },
1514 | "pinkie-promise": {
1515 | "version": "2.0.1",
1516 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
1517 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
1518 | "dev": true,
1519 | "requires": {
1520 | "pinkie": "^2.0.0"
1521 | }
1522 | },
1523 | "prepend-http": {
1524 | "version": "1.0.4",
1525 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz",
1526 | "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=",
1527 | "dev": true
1528 | },
1529 | "pseudomap": {
1530 | "version": "1.0.2",
1531 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
1532 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
1533 | "dev": true
1534 | },
1535 | "pump": {
1536 | "version": "3.0.0",
1537 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
1538 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
1539 | "dev": true,
1540 | "requires": {
1541 | "end-of-stream": "^1.1.0",
1542 | "once": "^1.3.1"
1543 | }
1544 | },
1545 | "rc": {
1546 | "version": "1.2.8",
1547 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
1548 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
1549 | "dev": true,
1550 | "requires": {
1551 | "deep-extend": "^0.6.0",
1552 | "ini": "~1.3.0",
1553 | "minimist": "^1.2.0",
1554 | "strip-json-comments": "~2.0.1"
1555 | }
1556 | },
1557 | "read-pkg": {
1558 | "version": "1.1.0",
1559 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
1560 | "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
1561 | "dev": true,
1562 | "requires": {
1563 | "load-json-file": "^1.0.0",
1564 | "normalize-package-data": "^2.3.2",
1565 | "path-type": "^1.0.0"
1566 | }
1567 | },
1568 | "read-pkg-up": {
1569 | "version": "1.0.1",
1570 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
1571 | "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
1572 | "dev": true,
1573 | "requires": {
1574 | "find-up": "^1.0.0",
1575 | "read-pkg": "^1.0.0"
1576 | }
1577 | },
1578 | "redent": {
1579 | "version": "1.0.0",
1580 | "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
1581 | "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=",
1582 | "dev": true,
1583 | "requires": {
1584 | "indent-string": "^2.1.0",
1585 | "strip-indent": "^1.0.1"
1586 | }
1587 | },
1588 | "registry-url": {
1589 | "version": "3.1.0",
1590 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz",
1591 | "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=",
1592 | "dev": true,
1593 | "requires": {
1594 | "rc": "^1.0.1"
1595 | },
1596 | "dependencies": {
1597 | "rc": {
1598 | "version": "1.2.8",
1599 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
1600 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
1601 | "dev": true,
1602 | "requires": {
1603 | "deep-extend": "^0.6.0",
1604 | "ini": "~1.3.0",
1605 | "minimist": "^1.2.0",
1606 | "strip-json-comments": "~2.0.1"
1607 | }
1608 | }
1609 | }
1610 | },
1611 | "repeating": {
1612 | "version": "2.0.1",
1613 | "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
1614 | "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=",
1615 | "dev": true,
1616 | "requires": {
1617 | "is-finite": "^1.0.0"
1618 | }
1619 | },
1620 | "require-directory": {
1621 | "version": "2.1.1",
1622 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
1623 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
1624 | "dev": true
1625 | },
1626 | "require-main-filename": {
1627 | "version": "2.0.0",
1628 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
1629 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
1630 | "dev": true
1631 | },
1632 | "resolve": {
1633 | "version": "1.4.0",
1634 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz",
1635 | "integrity": "sha512-aW7sVKPufyHqOmyyLzg/J+8606v5nevBgaliIlV7nUpVMsDnoBGV/cbSLNjZAg9q0Cfd/+easKVKQ8vOu8fn1Q==",
1636 | "dev": true,
1637 | "requires": {
1638 | "path-parse": "^1.0.5"
1639 | }
1640 | },
1641 | "rimraf": {
1642 | "version": "2.6.1",
1643 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz",
1644 | "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=",
1645 | "dev": true,
1646 | "requires": {
1647 | "glob": "^7.0.5"
1648 | }
1649 | },
1650 | "rollup": {
1651 | "version": "0.50.0",
1652 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-0.50.0.tgz",
1653 | "integrity": "sha512-7RqCBQ9iwsOBPkjYgoIaeUij606mSkDMExP0NT7QDI3bqkHYQHrQ83uoNIXwPcQm/vP2VbsUz3kiyZZ1qPlLTQ==",
1654 | "dev": true
1655 | },
1656 | "rollup-plugin-typescript": {
1657 | "version": "0.8.1",
1658 | "resolved": "https://registry.npmjs.org/rollup-plugin-typescript/-/rollup-plugin-typescript-0.8.1.tgz",
1659 | "integrity": "sha1-L/fuzCHPa7K0P8J+W2iJUs5xkko=",
1660 | "dev": true,
1661 | "requires": {
1662 | "compare-versions": "2.0.1",
1663 | "object-assign": "^4.0.1",
1664 | "rollup-pluginutils": "^1.3.1",
1665 | "tippex": "^2.1.1",
1666 | "typescript": "^1.8.9"
1667 | },
1668 | "dependencies": {
1669 | "balanced-match": {
1670 | "version": "1.0.0",
1671 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
1672 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
1673 | "dev": true
1674 | },
1675 | "brace-expansion": {
1676 | "version": "1.1.8",
1677 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
1678 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
1679 | "dev": true,
1680 | "requires": {
1681 | "balanced-match": "^1.0.0",
1682 | "concat-map": "0.0.1"
1683 | }
1684 | },
1685 | "compare-versions": {
1686 | "version": "2.0.1",
1687 | "resolved": "https://registry.npmjs.org/compare-versions/-/compare-versions-2.0.1.tgz",
1688 | "integrity": "sha1-Htwfk2h/2XoyXFn1XkWgfbEGrKY=",
1689 | "dev": true
1690 | },
1691 | "concat-map": {
1692 | "version": "0.0.1",
1693 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
1694 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
1695 | "dev": true
1696 | },
1697 | "estree-walker": {
1698 | "version": "0.2.1",
1699 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.2.1.tgz",
1700 | "integrity": "sha1-va/oCVOD2EFNXcLs9MkXO225QS4=",
1701 | "dev": true
1702 | },
1703 | "minimatch": {
1704 | "version": "3.0.4",
1705 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
1706 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
1707 | "dev": true,
1708 | "requires": {
1709 | "brace-expansion": "^1.1.7"
1710 | }
1711 | },
1712 | "object-assign": {
1713 | "version": "4.1.1",
1714 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
1715 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
1716 | "dev": true
1717 | },
1718 | "rollup-pluginutils": {
1719 | "version": "1.5.2",
1720 | "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-1.5.2.tgz",
1721 | "integrity": "sha1-HhVud4+UtyVb+hs9AXi+j1xVJAg=",
1722 | "dev": true,
1723 | "requires": {
1724 | "estree-walker": "^0.2.1",
1725 | "minimatch": "^3.0.2"
1726 | }
1727 | },
1728 | "tippex": {
1729 | "version": "2.3.1",
1730 | "resolved": "https://registry.npmjs.org/tippex/-/tippex-2.3.1.tgz",
1731 | "integrity": "sha1-ov1bcIfXy/sgyYBqbBYQjCwPr9o=",
1732 | "dev": true
1733 | },
1734 | "typescript": {
1735 | "version": "1.8.10",
1736 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-1.8.10.tgz",
1737 | "integrity": "sha1-tHXW4N/wv1DyluXKbvn7tccyDx4=",
1738 | "dev": true
1739 | }
1740 | }
1741 | },
1742 | "safe-buffer": {
1743 | "version": "5.1.1",
1744 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz",
1745 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==",
1746 | "dev": true
1747 | },
1748 | "semver": {
1749 | "version": "5.4.1",
1750 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
1751 | "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==",
1752 | "dev": true
1753 | },
1754 | "semver-diff": {
1755 | "version": "2.1.0",
1756 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz",
1757 | "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=",
1758 | "dev": true,
1759 | "requires": {
1760 | "semver": "^5.0.3"
1761 | }
1762 | },
1763 | "set-blocking": {
1764 | "version": "2.0.0",
1765 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
1766 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
1767 | "dev": true
1768 | },
1769 | "shebang-command": {
1770 | "version": "1.2.0",
1771 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
1772 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
1773 | "dev": true,
1774 | "requires": {
1775 | "shebang-regex": "^1.0.0"
1776 | }
1777 | },
1778 | "shebang-regex": {
1779 | "version": "1.0.0",
1780 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
1781 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
1782 | "dev": true
1783 | },
1784 | "signal-exit": {
1785 | "version": "3.0.2",
1786 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
1787 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
1788 | "dev": true
1789 | },
1790 | "slide": {
1791 | "version": "1.1.6",
1792 | "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz",
1793 | "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=",
1794 | "dev": true
1795 | },
1796 | "source-map": {
1797 | "version": "0.5.6",
1798 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
1799 | "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
1800 | "dev": true
1801 | },
1802 | "source-map-support": {
1803 | "version": "0.4.15",
1804 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.15.tgz",
1805 | "integrity": "sha1-AyAt9lwG0r2MfsI2KhkwVv7407E=",
1806 | "dev": true,
1807 | "requires": {
1808 | "source-map": "^0.5.6"
1809 | }
1810 | },
1811 | "spdx-correct": {
1812 | "version": "1.0.2",
1813 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz",
1814 | "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=",
1815 | "dev": true,
1816 | "requires": {
1817 | "spdx-license-ids": "^1.0.2"
1818 | }
1819 | },
1820 | "spdx-expression-parse": {
1821 | "version": "1.0.4",
1822 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz",
1823 | "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=",
1824 | "dev": true
1825 | },
1826 | "spdx-license-ids": {
1827 | "version": "1.2.2",
1828 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz",
1829 | "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=",
1830 | "dev": true
1831 | },
1832 | "sprintf-js": {
1833 | "version": "1.0.3",
1834 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
1835 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
1836 | "dev": true
1837 | },
1838 | "string-width": {
1839 | "version": "2.1.1",
1840 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
1841 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
1842 | "dev": true,
1843 | "requires": {
1844 | "is-fullwidth-code-point": "^2.0.0",
1845 | "strip-ansi": "^4.0.0"
1846 | }
1847 | },
1848 | "string.prototype.trimleft": {
1849 | "version": "2.0.0",
1850 | "resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.0.0.tgz",
1851 | "integrity": "sha1-aLaqjhYsaoDnbjqKDC50cYbicf8=",
1852 | "dev": true,
1853 | "requires": {
1854 | "define-properties": "^1.1.2",
1855 | "function-bind": "^1.0.2"
1856 | }
1857 | },
1858 | "string.prototype.trimright": {
1859 | "version": "2.0.0",
1860 | "resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.0.0.tgz",
1861 | "integrity": "sha1-q0pW2AKgH75yk+EehPJNyBZGYd0=",
1862 | "dev": true,
1863 | "requires": {
1864 | "define-properties": "^1.1.2",
1865 | "function-bind": "^1.0.2"
1866 | }
1867 | },
1868 | "strip-ansi": {
1869 | "version": "4.0.0",
1870 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
1871 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
1872 | "dev": true,
1873 | "requires": {
1874 | "ansi-regex": "^3.0.0"
1875 | }
1876 | },
1877 | "strip-bom": {
1878 | "version": "2.0.0",
1879 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
1880 | "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
1881 | "dev": true,
1882 | "requires": {
1883 | "is-utf8": "^0.2.0"
1884 | }
1885 | },
1886 | "strip-eof": {
1887 | "version": "1.0.0",
1888 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
1889 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
1890 | "dev": true
1891 | },
1892 | "strip-indent": {
1893 | "version": "1.0.1",
1894 | "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
1895 | "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=",
1896 | "dev": true,
1897 | "requires": {
1898 | "get-stdin": "^4.0.1"
1899 | }
1900 | },
1901 | "strip-json-comments": {
1902 | "version": "2.0.1",
1903 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
1904 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
1905 | "dev": true
1906 | },
1907 | "supports-color": {
1908 | "version": "4.2.1",
1909 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
1910 | "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
1911 | "dev": true,
1912 | "requires": {
1913 | "has-flag": "^2.0.0"
1914 | }
1915 | },
1916 | "term-size": {
1917 | "version": "1.2.0",
1918 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz",
1919 | "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=",
1920 | "dev": true,
1921 | "requires": {
1922 | "execa": "^0.7.0"
1923 | }
1924 | },
1925 | "timed-out": {
1926 | "version": "4.0.1",
1927 | "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz",
1928 | "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=",
1929 | "dev": true
1930 | },
1931 | "trim-newlines": {
1932 | "version": "1.0.0",
1933 | "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
1934 | "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=",
1935 | "dev": true
1936 | },
1937 | "ts-node": {
1938 | "version": "3.3.0",
1939 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-3.3.0.tgz",
1940 | "integrity": "sha1-wTxqMCTjC+EYDdUwOPwgkonUv2k=",
1941 | "dev": true,
1942 | "requires": {
1943 | "arrify": "^1.0.0",
1944 | "chalk": "^2.0.0",
1945 | "diff": "^3.1.0",
1946 | "make-error": "^1.1.1",
1947 | "minimist": "^1.2.0",
1948 | "mkdirp": "^0.5.1",
1949 | "source-map-support": "^0.4.0",
1950 | "tsconfig": "^6.0.0",
1951 | "v8flags": "^3.0.0",
1952 | "yn": "^2.0.0"
1953 | },
1954 | "dependencies": {
1955 | "chalk": {
1956 | "version": "2.0.1",
1957 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.0.1.tgz",
1958 | "integrity": "sha512-Mp+FXEI+FrwY/XYV45b2YD3E8i3HwnEAoFcM0qlZzq/RZ9RwWitt2Y/c7cqRAz70U7hfekqx6qNYthuKFO6K0g==",
1959 | "dev": true,
1960 | "requires": {
1961 | "ansi-styles": "^3.1.0",
1962 | "escape-string-regexp": "^1.0.5",
1963 | "supports-color": "^4.0.0"
1964 | }
1965 | }
1966 | }
1967 | },
1968 | "tsconfig": {
1969 | "version": "6.0.0",
1970 | "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-6.0.0.tgz",
1971 | "integrity": "sha1-aw6DdgA9evGGT434+J3QBZ/80DI=",
1972 | "dev": true,
1973 | "requires": {
1974 | "strip-bom": "^3.0.0",
1975 | "strip-json-comments": "^2.0.0"
1976 | },
1977 | "dependencies": {
1978 | "strip-bom": {
1979 | "version": "3.0.0",
1980 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
1981 | "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
1982 | "dev": true
1983 | }
1984 | }
1985 | },
1986 | "tslib": {
1987 | "version": "1.7.1",
1988 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.7.1.tgz",
1989 | "integrity": "sha1-vIAEFkaRkjp5/oN4u+s9ogF1OOw=",
1990 | "dev": true
1991 | },
1992 | "tslint": {
1993 | "version": "5.7.0",
1994 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.7.0.tgz",
1995 | "integrity": "sha1-wl4NDJL6EgHCvDDoROCOaCtPNVI=",
1996 | "dev": true,
1997 | "requires": {
1998 | "babel-code-frame": "^6.22.0",
1999 | "colors": "^1.1.2",
2000 | "commander": "^2.9.0",
2001 | "diff": "^3.2.0",
2002 | "glob": "^7.1.1",
2003 | "minimatch": "^3.0.4",
2004 | "resolve": "^1.3.2",
2005 | "semver": "^5.3.0",
2006 | "tslib": "^1.7.1",
2007 | "tsutils": "^2.8.1"
2008 | },
2009 | "dependencies": {
2010 | "balanced-match": {
2011 | "version": "1.0.0",
2012 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
2013 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
2014 | "dev": true
2015 | },
2016 | "brace-expansion": {
2017 | "version": "1.1.8",
2018 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz",
2019 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=",
2020 | "dev": true,
2021 | "requires": {
2022 | "balanced-match": "^1.0.0",
2023 | "concat-map": "0.0.1"
2024 | }
2025 | },
2026 | "concat-map": {
2027 | "version": "0.0.1",
2028 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
2029 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
2030 | "dev": true
2031 | },
2032 | "minimatch": {
2033 | "version": "3.0.4",
2034 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
2035 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
2036 | "dev": true,
2037 | "requires": {
2038 | "brace-expansion": "^1.1.7"
2039 | }
2040 | },
2041 | "tsutils": {
2042 | "version": "2.8.2",
2043 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.8.2.tgz",
2044 | "integrity": "sha1-LBSGukMSYIRbCsb5Aq/Z1wio6mo=",
2045 | "dev": true,
2046 | "requires": {
2047 | "tslib": "^1.7.1"
2048 | }
2049 | }
2050 | }
2051 | },
2052 | "typescript": {
2053 | "version": "2.5.2",
2054 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.5.2.tgz",
2055 | "integrity": "sha1-A4qV99m7tCCxvzW6MdTFwd0//jQ=",
2056 | "dev": true
2057 | },
2058 | "uglify-js": {
2059 | "version": "3.1.1",
2060 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.1.1.tgz",
2061 | "integrity": "sha512-f7DpmEgt/RYAKzQzcfahn3JYZHobDwTZCa8oixC7pweVGEIizTX2kTYdNWcdk00xsMJqUhI8RDAa9HXHXGhNxA==",
2062 | "dev": true,
2063 | "requires": {
2064 | "commander": "~2.11.0",
2065 | "source-map": "~0.5.1"
2066 | },
2067 | "dependencies": {
2068 | "commander": {
2069 | "version": "2.11.0",
2070 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz",
2071 | "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==",
2072 | "dev": true
2073 | }
2074 | }
2075 | },
2076 | "unique-string": {
2077 | "version": "1.0.0",
2078 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz",
2079 | "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=",
2080 | "dev": true,
2081 | "requires": {
2082 | "crypto-random-string": "^1.0.0"
2083 | }
2084 | },
2085 | "unzip-response": {
2086 | "version": "2.0.1",
2087 | "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz",
2088 | "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=",
2089 | "dev": true
2090 | },
2091 | "update-notifier": {
2092 | "version": "2.2.0",
2093 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.2.0.tgz",
2094 | "integrity": "sha1-G1g3z5DAc22IYncytmHBOPht5y8=",
2095 | "dev": true,
2096 | "requires": {
2097 | "boxen": "^1.0.0",
2098 | "chalk": "^1.0.0",
2099 | "configstore": "^3.0.0",
2100 | "import-lazy": "^2.1.0",
2101 | "is-npm": "^1.0.0",
2102 | "latest-version": "^3.0.0",
2103 | "semver-diff": "^2.0.0",
2104 | "xdg-basedir": "^3.0.0"
2105 | }
2106 | },
2107 | "url-parse-lax": {
2108 | "version": "1.0.0",
2109 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz",
2110 | "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=",
2111 | "dev": true,
2112 | "requires": {
2113 | "prepend-http": "^1.0.1"
2114 | }
2115 | },
2116 | "user-home": {
2117 | "version": "1.1.1",
2118 | "resolved": "https://registry.npmjs.org/user-home/-/user-home-1.1.1.tgz",
2119 | "integrity": "sha1-K1viOjK2Onyd640PKNSFcko98ZA=",
2120 | "dev": true
2121 | },
2122 | "v8flags": {
2123 | "version": "3.0.0",
2124 | "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.0.0.tgz",
2125 | "integrity": "sha512-AGl+C+4qpeSu2g3JxCD/mGFFOs/vVZ3XREkD3ibQXEqr4Y4zgIrPWW124/IKJFHOIVFIoH8miWrLf0o84HYjwA==",
2126 | "dev": true,
2127 | "requires": {
2128 | "user-home": "^1.1.1"
2129 | }
2130 | },
2131 | "validate-npm-package-license": {
2132 | "version": "3.0.1",
2133 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz",
2134 | "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=",
2135 | "dev": true,
2136 | "requires": {
2137 | "spdx-correct": "~1.0.0",
2138 | "spdx-expression-parse": "~1.0.0"
2139 | }
2140 | },
2141 | "which": {
2142 | "version": "1.2.14",
2143 | "resolved": "https://registry.npmjs.org/which/-/which-1.2.14.tgz",
2144 | "integrity": "sha1-mofEN48D6CfOyvGs31bHNsAcFOU=",
2145 | "dev": true,
2146 | "requires": {
2147 | "isexe": "^2.0.0"
2148 | }
2149 | },
2150 | "which-module": {
2151 | "version": "2.0.0",
2152 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
2153 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
2154 | "dev": true
2155 | },
2156 | "wide-align": {
2157 | "version": "1.1.3",
2158 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz",
2159 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==",
2160 | "dev": true,
2161 | "requires": {
2162 | "string-width": "^1.0.2 || 2"
2163 | }
2164 | },
2165 | "widest-line": {
2166 | "version": "1.0.0",
2167 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-1.0.0.tgz",
2168 | "integrity": "sha1-DAnIXCqUaD0Nfq+O4JfVZL8OEFw=",
2169 | "dev": true,
2170 | "requires": {
2171 | "string-width": "^1.0.1"
2172 | },
2173 | "dependencies": {
2174 | "ansi-regex": {
2175 | "version": "2.1.1",
2176 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
2177 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
2178 | "dev": true
2179 | },
2180 | "is-fullwidth-code-point": {
2181 | "version": "1.0.0",
2182 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
2183 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
2184 | "dev": true,
2185 | "requires": {
2186 | "number-is-nan": "^1.0.0"
2187 | }
2188 | },
2189 | "string-width": {
2190 | "version": "1.0.2",
2191 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
2192 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
2193 | "dev": true,
2194 | "requires": {
2195 | "code-point-at": "^1.0.0",
2196 | "is-fullwidth-code-point": "^1.0.0",
2197 | "strip-ansi": "^3.0.0"
2198 | }
2199 | },
2200 | "strip-ansi": {
2201 | "version": "3.0.1",
2202 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
2203 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
2204 | "dev": true,
2205 | "requires": {
2206 | "ansi-regex": "^2.0.0"
2207 | }
2208 | }
2209 | }
2210 | },
2211 | "wrap-ansi": {
2212 | "version": "2.1.0",
2213 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
2214 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
2215 | "dev": true,
2216 | "requires": {
2217 | "string-width": "^1.0.1",
2218 | "strip-ansi": "^3.0.1"
2219 | },
2220 | "dependencies": {
2221 | "ansi-regex": {
2222 | "version": "2.1.1",
2223 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
2224 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
2225 | "dev": true
2226 | },
2227 | "is-fullwidth-code-point": {
2228 | "version": "1.0.0",
2229 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
2230 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
2231 | "dev": true,
2232 | "requires": {
2233 | "number-is-nan": "^1.0.0"
2234 | }
2235 | },
2236 | "string-width": {
2237 | "version": "1.0.2",
2238 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
2239 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
2240 | "dev": true,
2241 | "requires": {
2242 | "code-point-at": "^1.0.0",
2243 | "is-fullwidth-code-point": "^1.0.0",
2244 | "strip-ansi": "^3.0.0"
2245 | }
2246 | },
2247 | "strip-ansi": {
2248 | "version": "3.0.1",
2249 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
2250 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
2251 | "dev": true,
2252 | "requires": {
2253 | "ansi-regex": "^2.0.0"
2254 | }
2255 | }
2256 | }
2257 | },
2258 | "wrappy": {
2259 | "version": "1.0.2",
2260 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
2261 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
2262 | "dev": true
2263 | },
2264 | "write-file-atomic": {
2265 | "version": "2.1.0",
2266 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.1.0.tgz",
2267 | "integrity": "sha512-0TZ20a+xcIl4u0+Mj5xDH2yOWdmQiXlKf9Hm+TgDXjTMsEYb+gDrmb8e8UNAzMCitX8NBqG4Z/FUQIyzv/R1JQ==",
2268 | "dev": true,
2269 | "requires": {
2270 | "graceful-fs": "^4.1.11",
2271 | "imurmurhash": "^0.1.4",
2272 | "slide": "^1.1.5"
2273 | }
2274 | },
2275 | "xdg-basedir": {
2276 | "version": "3.0.0",
2277 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz",
2278 | "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=",
2279 | "dev": true
2280 | },
2281 | "y18n": {
2282 | "version": "4.0.0",
2283 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
2284 | "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
2285 | "dev": true
2286 | },
2287 | "yallist": {
2288 | "version": "2.1.2",
2289 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
2290 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
2291 | "dev": true
2292 | },
2293 | "yargs": {
2294 | "version": "13.2.2",
2295 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz",
2296 | "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==",
2297 | "dev": true,
2298 | "requires": {
2299 | "cliui": "^4.0.0",
2300 | "find-up": "^3.0.0",
2301 | "get-caller-file": "^2.0.1",
2302 | "os-locale": "^3.1.0",
2303 | "require-directory": "^2.1.1",
2304 | "require-main-filename": "^2.0.0",
2305 | "set-blocking": "^2.0.0",
2306 | "string-width": "^3.0.0",
2307 | "which-module": "^2.0.0",
2308 | "y18n": "^4.0.0",
2309 | "yargs-parser": "^13.0.0"
2310 | },
2311 | "dependencies": {
2312 | "ansi-regex": {
2313 | "version": "4.1.0",
2314 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
2315 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
2316 | "dev": true
2317 | },
2318 | "find-up": {
2319 | "version": "3.0.0",
2320 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
2321 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
2322 | "dev": true,
2323 | "requires": {
2324 | "locate-path": "^3.0.0"
2325 | }
2326 | },
2327 | "string-width": {
2328 | "version": "3.1.0",
2329 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
2330 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
2331 | "dev": true,
2332 | "requires": {
2333 | "emoji-regex": "^7.0.1",
2334 | "is-fullwidth-code-point": "^2.0.0",
2335 | "strip-ansi": "^5.1.0"
2336 | }
2337 | },
2338 | "strip-ansi": {
2339 | "version": "5.2.0",
2340 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
2341 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
2342 | "dev": true,
2343 | "requires": {
2344 | "ansi-regex": "^4.1.0"
2345 | }
2346 | }
2347 | }
2348 | },
2349 | "yargs-parser": {
2350 | "version": "13.0.0",
2351 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz",
2352 | "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==",
2353 | "dev": true,
2354 | "requires": {
2355 | "camelcase": "^5.0.0",
2356 | "decamelize": "^1.2.0"
2357 | },
2358 | "dependencies": {
2359 | "camelcase": {
2360 | "version": "5.3.1",
2361 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
2362 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
2363 | "dev": true
2364 | }
2365 | }
2366 | },
2367 | "yargs-unparser": {
2368 | "version": "1.5.0",
2369 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz",
2370 | "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==",
2371 | "dev": true,
2372 | "requires": {
2373 | "flat": "^4.1.0",
2374 | "lodash": "^4.17.11",
2375 | "yargs": "^12.0.5"
2376 | },
2377 | "dependencies": {
2378 | "camelcase": {
2379 | "version": "5.3.1",
2380 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
2381 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
2382 | "dev": true
2383 | },
2384 | "find-up": {
2385 | "version": "3.0.0",
2386 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
2387 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
2388 | "dev": true,
2389 | "requires": {
2390 | "locate-path": "^3.0.0"
2391 | }
2392 | },
2393 | "get-caller-file": {
2394 | "version": "1.0.3",
2395 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
2396 | "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==",
2397 | "dev": true
2398 | },
2399 | "require-main-filename": {
2400 | "version": "1.0.1",
2401 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
2402 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=",
2403 | "dev": true
2404 | },
2405 | "yargs": {
2406 | "version": "12.0.5",
2407 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz",
2408 | "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==",
2409 | "dev": true,
2410 | "requires": {
2411 | "cliui": "^4.0.0",
2412 | "decamelize": "^1.2.0",
2413 | "find-up": "^3.0.0",
2414 | "get-caller-file": "^1.0.1",
2415 | "os-locale": "^3.0.0",
2416 | "require-directory": "^2.1.1",
2417 | "require-main-filename": "^1.0.1",
2418 | "set-blocking": "^2.0.0",
2419 | "string-width": "^2.0.0",
2420 | "which-module": "^2.0.0",
2421 | "y18n": "^3.2.1 || ^4.0.0",
2422 | "yargs-parser": "^11.1.1"
2423 | }
2424 | },
2425 | "yargs-parser": {
2426 | "version": "11.1.1",
2427 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz",
2428 | "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==",
2429 | "dev": true,
2430 | "requires": {
2431 | "camelcase": "^5.0.0",
2432 | "decamelize": "^1.2.0"
2433 | }
2434 | }
2435 | }
2436 | },
2437 | "yn": {
2438 | "version": "2.0.0",
2439 | "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz",
2440 | "integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=",
2441 | "dev": true
2442 | }
2443 | }
2444 | }
2445 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "author": "Christopher Wallis (http://notoriousb1t.com)",
3 | "bugs": {
4 | "url": "https://github.com/just-animate/just-curves/issues"
5 | },
6 | "description": "A library of reusuable easing functions",
7 | "devDependencies": {
8 | "@types/mocha": "^2.2.43",
9 | "@types/node": "^8.0.29",
10 | "del-cli": "^1.1.0",
11 | "mocha": "^6.2.0",
12 | "rollup": "^0.50.0",
13 | "rollup-plugin-typescript": "^0.8.1",
14 | "ts-node": "^3.3.0",
15 | "tslint": "^5.7.0",
16 | "typescript": "^2.5.2",
17 | "uglify-js": "^3.1.1"
18 | },
19 | "jsnext:main": "./lib.es2015/main.js",
20 | "homepage": "https://github.com/just-animate/just-curves#readme",
21 | "license": "MIT",
22 | "main": "./lib/main.js",
23 | "module": "./lib.es2015/main.js",
24 | "name": "just-curves",
25 | "repository": {
26 | "type": "git",
27 | "url": "https://github.com/just-animate/just-curves"
28 | },
29 | "types": "./types/main",
30 | "typings": "./types/main",
31 | "typeRoots": [
32 | "node_modules/@types"
33 | ],
34 | "scripts": {
35 | "build": "npm run build:node && npm run build:es2015 && npm run build:cdn && npm run compress:cdn",
36 | "build:node": "tsc -p tsconfig.node.json",
37 | "build:es2015": "tsc -p tsconfig.es2015.json",
38 | "build:cdn": "rollup -c ./config/rollup.cdn.js",
39 | "compress:cdn": "uglifyjs --config-file ./config/compress.json -o dist/just-curves.min.js dist/just-curves.js",
40 | "clean": "node_modules/.bin/del-cli -f dist lib lib.es2015",
41 | "postversion": "git push --follow-tags && npm publish",
42 | "preversion": "npm run rebuild",
43 | "rebuild": "npm run clean && npm run build",
44 | "test": "node_modules/.bin/mocha --require ts-node/register --reporter spec ./tests/**/**.ts"
45 | },
46 | "version": "0.2.0"
47 | }
48 |
--------------------------------------------------------------------------------
/src/curves/ease.ts:
--------------------------------------------------------------------------------
1 | import { cubicBezier } from '../internal';
2 |
3 | export const ease = cubicBezier(.25, .1, .25, .1);
4 |
--------------------------------------------------------------------------------
/src/curves/easeIn.ts:
--------------------------------------------------------------------------------
1 | import { cubicBezier } from '../internal';
2 |
3 | export const easeIn = cubicBezier(.42, 0, 1, 1);
4 |
--------------------------------------------------------------------------------
/src/curves/easeInBack.ts:
--------------------------------------------------------------------------------
1 | import { c1, c3 } from '../internal';
2 |
3 | export const easeInBack = (x: number): number => c3 * x * x * x - c1 * x * x;
4 |
--------------------------------------------------------------------------------
/src/curves/easeInBounce.ts:
--------------------------------------------------------------------------------
1 | import { easeOutBounce } from './easeOutBounce';
2 |
3 | export const easeInBounce = (x: number): number => 1 - easeOutBounce(1 - x);
4 |
--------------------------------------------------------------------------------
/src/curves/easeInCirc.ts:
--------------------------------------------------------------------------------
1 | import { sqrt } from '../internal';
2 |
3 | export const easeInCirc = (x: number): number => 1 - sqrt(1 - (x * x));
4 |
--------------------------------------------------------------------------------
/src/curves/easeInCubic.ts:
--------------------------------------------------------------------------------
1 | export const easeInCubic = (x: number): number => x * x * x;
2 |
--------------------------------------------------------------------------------
/src/curves/easeInElastic.ts:
--------------------------------------------------------------------------------
1 | import { pow, sin, tau } from '../internal';
2 |
3 | export const easeInElastic = (n: number): number =>
4 | !n || n === 1 ? n : -1 * sin((n - 1.1) * tau * 2.5) * pow(2, 10 * (n - 1));
5 |
--------------------------------------------------------------------------------
/src/curves/easeInExpo.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeInExpo = (x: number): number => x === 0 ? 0 : pow(2, 10 * x - 10);
4 |
--------------------------------------------------------------------------------
/src/curves/easeInOut.ts:
--------------------------------------------------------------------------------
1 | import { cubicBezier } from '../internal';
2 |
3 | export const easeInOut = cubicBezier(.42, 0, .58, 1);
4 |
--------------------------------------------------------------------------------
/src/curves/easeInOutBack.ts:
--------------------------------------------------------------------------------
1 | import { c2, pow } from '../internal';
2 |
3 | export const easeInOutBack = (x: number): number => x < 0.5
4 | ? (pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2)) / 2
5 | : (pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2;
6 |
--------------------------------------------------------------------------------
/src/curves/easeInOutBounce.ts:
--------------------------------------------------------------------------------
1 | import { easeOutBounce } from './index';
2 |
3 | export const easeInOutBounce = (x: number): number => x < 0.5
4 | ? (1 - easeOutBounce(1 - 2 * x)) / 2
5 | : (1 + easeOutBounce(2 * x - 1)) / 2;
6 |
--------------------------------------------------------------------------------
/src/curves/easeInOutCirc.ts:
--------------------------------------------------------------------------------
1 | import { sqrt, pow } from '../internal';
2 |
3 | export const easeInOutCirc = (x: number): number => x < 0.5
4 | ? (1 - sqrt(1 - pow(2 * x, 2))) / 2
5 | : (sqrt(1 - pow(-2 * x + 2, 2)) + 1) / 2;
6 |
--------------------------------------------------------------------------------
/src/curves/easeInOutCubic.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeInOutCubic = (x: number): number => x < 0.5
4 | ? 4 * x * x * x
5 | : 1 - pow(-2 * x + 2, 3) / 2;
6 |
--------------------------------------------------------------------------------
/src/curves/easeInOutElastic.ts:
--------------------------------------------------------------------------------
1 | import { pow, sin, tau } from '../internal';
2 |
3 | export const easeInOutElastic = (n: number) => {
4 | if (!n || n === 1) {
5 | return n;
6 | }
7 | n *= 2;
8 | if (n < 1) {
9 | return -0.5 * (pow(2, 10 * (n - 1)) * sin((n - 1.1) * tau / .4));
10 | }
11 | return pow(2, -10 * (n - 1)) * sin((n - 1.1) * tau / .4) * .5 + 1;
12 | };
13 |
--------------------------------------------------------------------------------
/src/curves/easeInOutExpo.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeInOutExpo = (x: number): number => x === 0
4 | ? 0 : x === 1
5 | ? 1 : x < 0.5
6 | ? pow(2, 20 * x - 10) / 2
7 | : (2 - pow(2, -20 * x + 10)) / 2;
8 |
--------------------------------------------------------------------------------
/src/curves/easeInOutQuad.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeInOutQuad = (x: number): number => x < 0.5 ?
4 | 2 * x * x :
5 | 1 - pow(-2 * x + 2, 2) / 2;
6 |
--------------------------------------------------------------------------------
/src/curves/easeInOutQuart.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeInOutQuart = (x: number): number => x < 0.5
4 | ? 8 * x * x * x * x
5 | : 1 - pow(-2 * x + 2, 4) / 2;
6 |
--------------------------------------------------------------------------------
/src/curves/easeInOutQuint.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeInOutQuint = (x: number): number => x < 0.5
4 | ? 16 * x * x * x * x * x
5 | : 1 - pow(-2 * x + 2, 5) / 2;
6 |
--------------------------------------------------------------------------------
/src/curves/easeInOutSine.ts:
--------------------------------------------------------------------------------
1 | import { cos, pi } from '../internal';
2 |
3 | export const easeInOutSine = (x: number): number => -(cos(pi * x) - 1) / 2;
4 |
--------------------------------------------------------------------------------
/src/curves/easeInQuad.ts:
--------------------------------------------------------------------------------
1 | export const easeInQuad = (x: number): number => x * x;
2 |
--------------------------------------------------------------------------------
/src/curves/easeInQuart.ts:
--------------------------------------------------------------------------------
1 | export const easeInQuart = (x: number): number => x * x * x * x;
2 |
3 |
--------------------------------------------------------------------------------
/src/curves/easeInQuint.ts:
--------------------------------------------------------------------------------
1 | export const easeInQuint = (x: number): number => x * x * x * x * x;
2 |
--------------------------------------------------------------------------------
/src/curves/easeInSine.ts:
--------------------------------------------------------------------------------
1 | import { cos, pi } from '../internal';
2 |
3 | export const easeInSine = (x: number): number => 1 - cos(x * pi / 2);
4 |
--------------------------------------------------------------------------------
/src/curves/easeOut.ts:
--------------------------------------------------------------------------------
1 | import { cubicBezier } from '../internal';
2 |
3 | export const easeOut = cubicBezier(0, 0, .58, 1);
4 |
--------------------------------------------------------------------------------
/src/curves/easeOutBack.ts:
--------------------------------------------------------------------------------
1 | import { c1, c3, pow } from '../internal';
2 |
3 | export const easeOutBack = (x: number): number => 1 + c3 * pow(x - 1, 3) + c1 * pow(x - 1, 2);
4 |
--------------------------------------------------------------------------------
/src/curves/easeOutBounce.ts:
--------------------------------------------------------------------------------
1 | export const easeOutBounce = (x: number): number => {
2 | const n1 = 7.5625;
3 | const d1 = 2.75;
4 | return x < 1 / d1
5 | ? n1 * x * x
6 | : x < 2 / d1
7 | ? n1 * (x -= (1.5 / d1)) * x + .75
8 | : x < 2.5 / d1
9 | ? n1 * (x -= (2.25 / d1)) * x + .9375
10 | : n1 * (x -= (2.625 / d1)) * x + .984375;
11 | };
12 |
--------------------------------------------------------------------------------
/src/curves/easeOutCirc.ts:
--------------------------------------------------------------------------------
1 | import { sqrt } from '../internal';
2 |
3 | export const easeOutCirc = (x: number): number => sqrt(1 - ((x - 1) * (x - 1)));
4 |
--------------------------------------------------------------------------------
/src/curves/easeOutCubic.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeOutCubic = (x: number): number => 1 - pow(1 - x, 3);
4 |
--------------------------------------------------------------------------------
/src/curves/easeOutElastic.ts:
--------------------------------------------------------------------------------
1 | import { pow, tau, sin } from '../internal';
2 |
3 |
4 | export const easeOutElastic = (n: number): number => {
5 | if (!n || n === 1) {
6 | return n;
7 | }
8 | let s, a = 0.1, p = 0.4;
9 |
10 | if (!a || a < 1) {
11 | a = 1; s = p / 4;
12 | } else {
13 | s = p * Math.asin(1 / a) / tau;
14 | }
15 | return (a * pow(2, - 10 * n) * sin((n - s) * (tau) / p) + 1);
16 | };
17 |
--------------------------------------------------------------------------------
/src/curves/easeOutExpo.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeOutExpo = (x: number): number => x === 1 ? 1 : 1 - pow(2, -10 * x);
4 |
--------------------------------------------------------------------------------
/src/curves/easeOutQuad.ts:
--------------------------------------------------------------------------------
1 | export const easeOutQuad = (x: number): number => 1 - (1 - x) * (1 - x);
2 |
--------------------------------------------------------------------------------
/src/curves/easeOutQuart.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeOutQuart = (x: number): number => 1 - pow(1 - x, 4);
4 |
--------------------------------------------------------------------------------
/src/curves/easeOutQuint.ts:
--------------------------------------------------------------------------------
1 | import { pow } from '../internal';
2 |
3 | export const easeOutQuint = (x: number): number => 1 - pow(1 - x, 5);
4 |
--------------------------------------------------------------------------------
/src/curves/easeOutSine.ts:
--------------------------------------------------------------------------------
1 | import { sin, pi } from '../internal';
2 |
3 | export const easeOutSine = (x: number): number => sin(x * pi / 2);
4 |
--------------------------------------------------------------------------------
/src/curves/index.ts:
--------------------------------------------------------------------------------
1 | export * from './ease';
2 | export * from './easeIn';
3 | export * from './easeInBack';
4 | export * from './easeInBounce';
5 | export * from './easeInCirc';
6 | export * from './easeInCubic';
7 | export * from './easeInElastic';
8 | export * from './easeInExpo';
9 | export * from './easeInOut';
10 | export * from './easeInOutBack';
11 | export * from './easeInOutBounce';
12 | export * from './easeInOutCirc';
13 | export * from './easeInOutCubic';
14 | export * from './easeInOutElastic';
15 | export * from './easeInOutExpo';
16 | export * from './easeInOutQuad';
17 | export * from './easeInOutQuart';
18 | export * from './easeInOutQuint';
19 | export * from './easeInOutSine';
20 | export * from './easeInQuad';
21 | export * from './easeInQuart';
22 | export * from './easeInQuint';
23 | export * from './easeInSine';
24 | export * from './easeOut';
25 | export * from './easeOutBack';
26 | export * from './easeOutBounce';
27 | export * from './easeOutCirc';
28 | export * from './easeOutCubic';
29 | export * from './easeOutElastic';
30 | export * from './easeOutExpo';
31 | export * from './easeOutQuad';
32 | export * from './easeOutQuart';
33 | export * from './easeOutQuint';
34 | export * from './easeOutSine';
35 | export * from './linear';
36 | export * from './stepEnd';
37 | export * from './stepStart';
38 |
--------------------------------------------------------------------------------
/src/curves/linear.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * Animations change at a constant speed
3 | */
4 | export const linear = (x: number): number => x;
5 |
--------------------------------------------------------------------------------
/src/curves/stepEnd.ts:
--------------------------------------------------------------------------------
1 | import { steps } from '../internal';
2 |
3 | export const stepEnd = steps(1, 0);
4 |
--------------------------------------------------------------------------------
/src/curves/stepStart.ts:
--------------------------------------------------------------------------------
1 | import { steps } from '../internal';
2 |
3 | export const stepStart = steps(1, 1);
4 |
--------------------------------------------------------------------------------
/src/internal/constants.ts:
--------------------------------------------------------------------------------
1 | export const pi = Math.PI;
2 | export const tau = 2 * pi;
3 | export const epsilon = 0.0001;
4 | export const c1 = 1.70158;
5 | export const c2 = c1 * 1.525;
6 | export const c3 = c1 + 1;
7 | export const c4 = tau / 3;
8 | export const c5 = tau / 4.5;
9 |
--------------------------------------------------------------------------------
/src/internal/cssEasings.ts:
--------------------------------------------------------------------------------
1 | const c = `cubic-bezier`;
2 | const s = `steps`;
3 |
4 | export const ease = c + `(.25,.1,.25,1)`;
5 | export const easeIn = c + `(.42,0,1,1)`;
6 | export const easeInBack = c + `(.6,-.28,.735,.045)`;
7 | export const easeInCirc = c + `(.6,.04,.98,.335)`;
8 | export const easeInCubic = c + `(.55,.055,.675,.19)`;
9 | export const easeInExpo = c + `(.95,.05,.795,.035)`;
10 | export const easeInOut = c + `(.42,0,.58,1)`;
11 | export const easeInOutBack = c + `(.68,-.55,.265,1.55)`;
12 | export const easeInOutCirc = c + `(.785,.135,.15,.86)`;
13 | export const easeInOutCubic = c + `(.645,.045,.355,1)`;
14 | export const easeInOutExpo = c + `(1,0,0,1)`;
15 | export const easeInOutQuad = c + `(.455,.03,.515,.955)`;
16 | export const easeInOutQuart = c + `(.77,0,.175,1)`;
17 | export const easeInOutQuint = c + `(.86,0,.07,1)`;
18 | export const easeInOutSine = c + `(.445,.05,.55,.95)`;
19 | export const easeInQuad = c + `(.55,.085,.68,.53)`;
20 | export const easeInQuart = c + `(.895,.03,.685,.22)`;
21 | export const easeInQuint = c + `(.755,.05,.855,.06)`;
22 | export const easeInSine = c + `(.47,0,.745,.715)`;
23 | export const easeOut = c + `(0,0,.58,1)`;
24 | export const easeOutBack = c + `(.175,.885,.32,1.275)`;
25 | export const easeOutCirc = c + `(.075,.82,.165,1)`;
26 | export const easeOutCubic = c + `(.215,.61,.355,1)`;
27 | export const easeOutExpo = c + `(.19,1,.22,1)`;
28 | export const easeOutQuad = c + `(.25,.46,.45,.94)`;
29 | export const easeOutQuart = c + `(.165,.84,.44,1)`;
30 | export const easeOutQuint = c + `(.23,1,.32,1)`;
31 | export const easeOutSine = c + `(.39,.575,.565,1)`;
32 | export const elegantSlowStartEnd = c + `(.175,.885,.32,1.275)`;
33 | export const linear = c + `(0,0,1,1)`;
34 | export const stepEnd = s + `(1,0)`;
35 | export const stepStart = s + `(1,1)`;
36 |
--------------------------------------------------------------------------------
/src/internal/cssFunction.ts:
--------------------------------------------------------------------------------
1 | import { Curve } from '../types';
2 | import { ease, easeIn, easeOut, easeInOut, stepStart, stepEnd, linear } from './cssEasings';
3 | import { steps } from './steps';
4 | import { cubicBezier } from './cubicBezier';
5 |
6 | const camelCaseRegex = /([a-z])[- ]([a-z])/ig;
7 | const cssFunctionRegex = /^([a-z-]+)\(([^\)]+)\)$/i;
8 | const cssEasings = { ease, easeIn, easeOut, easeInOut, stepStart, stepEnd, linear };
9 |
10 | const camelCaseMatcher = (match: string, p1: string, p2: string) => p1 + p2.toUpperCase();
11 |
12 | const toCamelCase = (value: string | undefined): string => typeof value === 'string'
13 | ? (value as string).replace(camelCaseRegex, camelCaseMatcher) : '';
14 |
15 | const find = (nameOrCssFunction: string) => {
16 | // search for a compatible known easing
17 | const easingName = toCamelCase(nameOrCssFunction);
18 | const easing = cssEasings[easingName] || nameOrCssFunction;
19 | const matches = cssFunctionRegex.exec(easing);
20 | if (!matches) {
21 | throw new Error('css parse error');
22 | }
23 | return [matches[1]].concat(matches[2].split(','));
24 | };
25 |
26 | export const cssFunction = (easingString: string): Curve => {
27 | const p = find(easingString);
28 | const fnName = p[0];
29 | if (fnName === 'steps') {
30 | return steps(+p[1], p[2] as (number | 'start' | 'end'));
31 | }
32 | if (fnName === 'cubic-bezier') {
33 | return cubicBezier(+p[1], +p[2], +p[3], +p[4]);
34 | }
35 | throw new Error('css parse error');
36 | };
37 |
--------------------------------------------------------------------------------
/src/internal/cubicBezier.ts:
--------------------------------------------------------------------------------
1 | import { abs, epsilon } from './index';
2 | import { Curve } from '../types';
3 |
4 | const bezier = (n1: number, n2: number, t: number) =>
5 | 3 * n1 * (1 - t) * (1 - t) * t + 3 * n2 * (1 - t) * t * t + t * t * t;
6 |
7 | export const cubicBezier = (p0: number, p1: number, p2: number, p3: number): Curve => {
8 | if (p0 < 0 || p0 > 1 || p2 < 0 || p2 > 1) {
9 | return (x: number) => x;
10 | }
11 |
12 | return (x: number): number => {
13 | if (x === 0 || x === 1) {
14 | return x;
15 | }
16 |
17 | let start = 0;
18 | let end = 1;
19 | let limit = 19;
20 |
21 | do {
22 | const mid = (start + end) * .5;
23 | const xEst = bezier(p0, p2, mid);
24 |
25 | if (abs(x - xEst) < epsilon) {
26 | return bezier(p1, p3, mid);
27 | }
28 | if (xEst < x) {
29 | start = mid;
30 | } else {
31 | end = mid;
32 | }
33 | } while (--limit);
34 |
35 | // limit is reached
36 | return x;
37 | };
38 | };
39 |
--------------------------------------------------------------------------------
/src/internal/index.ts:
--------------------------------------------------------------------------------
1 | export * from './constants';
2 | export * from './cssEasings';
3 | export * from './cssFunction';
4 | export * from './cubicBezier';
5 | export * from './math';
6 | export * from './steps';
7 |
--------------------------------------------------------------------------------
/src/internal/math.ts:
--------------------------------------------------------------------------------
1 | export const abs = Math.abs;
2 | export const asin = Math.asin;
3 | export const floor = Math.floor;
4 | export const cos = Math.cos;
5 | export const pow = Math.pow;
6 | export const sin = Math.sin;
7 | export const sqrt = Math.sqrt;
8 |
--------------------------------------------------------------------------------
/src/internal/steps.ts:
--------------------------------------------------------------------------------
1 | import { Curve } from '../types';
2 |
3 | export const steps = (count: number, pos?: number | 'end' | 'start'): Curve => {
4 | const q = count / 1;
5 | const p: number = pos === 'end'
6 | ? 0 : pos === 'start'
7 | ? 1 : pos || 0;
8 | return (x: number): number => x >= 1 ? 1 : (p * q + x) - (p * q + x) % q;
9 | };
10 |
--------------------------------------------------------------------------------
/src/main.ts:
--------------------------------------------------------------------------------
1 | export { cssFunction, cubicBezier, steps } from './internal';
2 | export * from './curves';
3 |
4 | import * as css from './internal/cssEasings';
5 | export { css };
6 |
--------------------------------------------------------------------------------
/src/types.ts:
--------------------------------------------------------------------------------
1 | export type Curve = (x: number) => number;
2 |
--------------------------------------------------------------------------------
/tests/assertions.ts:
--------------------------------------------------------------------------------
1 | ///
2 | ///
3 | import * as assert from 'assert';
4 |
5 | export const almostEqual = (a: number, b: number, precision: number): void => {
6 | assert(Math.abs(a - b) < precision, `expected ${a} to almost equal ${b}`);
7 | };
8 |
--------------------------------------------------------------------------------
/tests/curves/ease.ts:
--------------------------------------------------------------------------------
1 | import { ease } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 |
5 | describe('ease()', () => {
6 | it('ease(0) is about 0', () => {
7 | almostEqual(ease(0), 0, .0001);
8 | });
9 | it('ease(.250000) is about .141187', () => {
10 | almostEqual(ease(.250000), .141187, .0001);
11 | });
12 | it('ease(.333333) is about .221164', () => {
13 | almostEqual(ease(.333333), .221164, .0001);
14 | });
15 | it('ease(.500000) is about .405419', () => {
16 | almostEqual(ease(.500000), .405419, .0001);
17 | });
18 | it('ease(.666667) is about .601111', () => {
19 | almostEqual(ease(.666667), .601111, .0001);
20 | });
21 | it('ease(.750000) is about .700398', () => {
22 | almostEqual(ease(.750000), .700398, .0001);
23 | });
24 | it('ease(1) is about 1', () => {
25 | almostEqual(ease(1), 1, .0001);
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/tests/curves/easeIn.ts:
--------------------------------------------------------------------------------
1 | import { almostEqual } from '../assertions';
2 | import { easeIn } from '../../src/curves';
3 |
4 | describe('easeIn()', () => {
5 | it('easeIn(0) is about 0', () => {
6 | almostEqual(easeIn(0), 0, .0001);
7 | });
8 | it('easeIn(.250000) is about .093460', () => {
9 | almostEqual(easeIn(.250000), .093460, .0001);
10 | });
11 | it('easeIn(.333333) is about .156164', () => {
12 | almostEqual(easeIn(.333333), .156164, .0001);
13 | });
14 | it('easeIn(.500000) is about .315355', () => {
15 | almostEqual(easeIn(.500000), .315355, .0001);
16 | });
17 | it('easeIn(.666667) is about .511649', () => {
18 | almostEqual(easeIn(.666667), .511649, .0001);
19 | });
20 | it('easeIn(.750000) is about .621854', () => {
21 | almostEqual(easeIn(.750000), .621854, .0001);
22 | });
23 | it('easeIn(1) is about 1', () => {
24 | almostEqual(easeIn(1), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInBack.ts:
--------------------------------------------------------------------------------
1 | import { easeInBack } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInBack()', () => {
5 | it('easeInBack(.000000) is about 0', () => {
6 | almostEqual(easeInBack(.000000), 0, .0001);
7 | });
8 | it('easeInBack(.250000) is about -.06413656250000001', () => {
9 | almostEqual(easeInBack(.250000), -.06413656250000001, .0001);
10 | });
11 | it('easeInBack(.333333) is about -.08900592592592595', () => {
12 | almostEqual(easeInBack(.333333), -.08900592592592595, .0001);
13 | });
14 | it('easeInBack(.500000) is about -.08769750000000004', () => {
15 | almostEqual(easeInBack(.500000), -.08769750000000004, .0001);
16 | });
17 | it('easeInBack(.666667) is about .044210370370370254', () => {
18 | almostEqual(easeInBack(.666667), .044210370370370254, .0001);
19 | });
20 | it('easeInBack(.750000) is about .1825903124999999', () => {
21 | almostEqual(easeInBack(.750000), .1825903124999999, .0001);
22 | });
23 | it('easeInBack(1.000000) is about .9999999999999998', () => {
24 | almostEqual(easeInBack(1.000000), .9999999999999998, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInBounce.ts:
--------------------------------------------------------------------------------
1 | import { easeInBounce } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInBounce()', () => {
5 | it('easeInBounce(.000000) is about 0', () => {
6 | almostEqual(easeInBounce(.000000), 0, .0001);
7 | });
8 | it('easeInBounce(.250000) is about .02734375', () => {
9 | almostEqual(easeInBounce(.250000), .02734375, .0001);
10 | });
11 | it('easeInBounce(.333333) is about .13888888888888873', () => {
12 | almostEqual(easeInBounce(.333333), .13888888888888873, .0001);
13 | });
14 | it('easeInBounce(.500000) is about .234375', () => {
15 | almostEqual(easeInBounce(.500000), .234375, .0001);
16 | });
17 | it('easeInBounce(.666667) is about .1597222222222221', () => {
18 | almostEqual(easeInBounce(.666667), .1597222222222221, .0001);
19 | });
20 | it('easeInBounce(.750000) is about .52734375', () => {
21 | almostEqual(easeInBounce(.750000), .52734375, .0001);
22 | });
23 | it('easeInBounce(1.000000) is about 1', () => {
24 | almostEqual(easeInBounce(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInCirc.ts:
--------------------------------------------------------------------------------
1 | import { easeInCirc } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInCirc()', () => {
5 | it('easeInCirc(.000000) is about 0', () => {
6 | almostEqual(easeInCirc(.000000), 0, .0001);
7 | });
8 | it('easeInCirc(.250000) is about .031754163448145745', () => {
9 | almostEqual(easeInCirc(.250000), .031754163448145745, .0001);
10 | });
11 | it('easeInCirc(.333333) is about .057190958417936644', () => {
12 | almostEqual(easeInCirc(.333333), .057190958417936644, .0001);
13 | });
14 | it('easeInCirc(.500000) is about .1339745962155614', () => {
15 | almostEqual(easeInCirc(.500000), .1339745962155614, .0001);
16 | });
17 | it('easeInCirc(.666667) is about .2546440075000701', () => {
18 | almostEqual(easeInCirc(.666667), .2546440075000701, .0001);
19 | });
20 | it('easeInCirc(.750000) is about .3385621722338523', () => {
21 | almostEqual(easeInCirc(.750000), .3385621722338523, .0001);
22 | });
23 | it('easeInCirc(1.000000) is about 1', () => {
24 | almostEqual(easeInCirc(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInCubic.ts:
--------------------------------------------------------------------------------
1 | import { easeInCubic } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInCubic()', () => {
5 | it('easeInCubic(.000000) is about 0', () => {
6 | almostEqual(easeInCubic(.000000), 0, .0001);
7 | });
8 | it('easeInCubic(.250000) is about .015625', () => {
9 | almostEqual(easeInCubic(.250000), .015625, .0001);
10 | });
11 | it('easeInCubic(.333333) is about .037037037037037035', () => {
12 | almostEqual(easeInCubic(.333333), .037037037037037035, .0001);
13 | });
14 | it('easeInCubic(.500000) is about .125', () => {
15 | almostEqual(easeInCubic(.500000), .125, .0001);
16 | });
17 | it('easeInCubic(.666667) is about .2962962962962963', () => {
18 | almostEqual(easeInCubic(.666667), .2962962962962963, .0001);
19 | });
20 | it('easeInCubic(.750000) is about .421875', () => {
21 | almostEqual(easeInCubic(.750000), .421875, .0001);
22 | });
23 | it('easeInCubic(1.000000) is about 1', () => {
24 | almostEqual(easeInCubic(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInElastic.ts:
--------------------------------------------------------------------------------
1 | import { easeInElastic } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInElastic()', () => {
5 | it('easeInElastic(.000000) is about 0', () => {
6 | almostEqual(easeInElastic(.000000), 0, .0001);
7 | });
8 | it('easeInElastic(.250000) is about .0039062499999999952', () => {
9 | almostEqual(easeInElastic(.250000), .0039062499999999952, .0001);
10 | });
11 | it('easeInElastic(.333333) is about -.004921566601151843', () => {
12 | almostEqual(easeInElastic(.333333), -.004921566601151843, .0001);
13 | });
14 | it('easeInElastic(.500000) is about 1.1481063742006436e-17', () => {
15 | almostEqual(easeInElastic(.500000), 1.1481063742006436e-17, .0001);
16 | });
17 | it('easeInElastic(.666667) is about .049606282874006216', () => {
18 | almostEqual(easeInElastic(.666667), .049606282874006216, .0001);
19 | });
20 | it('easeInElastic(.750000) is about -.12500000000000003', () => {
21 | almostEqual(easeInElastic(.750000), -.12500000000000003, .0001);
22 | });
23 | it('easeInElastic(1.000000) is about 1', () => {
24 | almostEqual(easeInElastic(1.000000), 1, .0001);
25 | });
26 | });
27 |
28 |
--------------------------------------------------------------------------------
/tests/curves/easeInExpo.ts:
--------------------------------------------------------------------------------
1 | import { easeInExpo } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInExpo()', () => {
5 | it('easeInExpo(.000000) is about 0', () => {
6 | almostEqual(easeInExpo(.000000), 0, .0001);
7 | });
8 | it('easeInExpo(.250000) is about .005524271728019903', () => {
9 | almostEqual(easeInExpo(.250000), .005524271728019903, .0001);
10 | });
11 | it('easeInExpo(.333333) is about .009843133202303692', () => {
12 | almostEqual(easeInExpo(.333333), .009843133202303692, .0001);
13 | });
14 | it('easeInExpo(.500000) is about .03125', () => {
15 | almostEqual(easeInExpo(.500000), .03125, .0001);
16 | });
17 | it('easeInExpo(.666667) is about .09921256574801245', () => {
18 | almostEqual(easeInExpo(.666667), .09921256574801245, .0001);
19 | });
20 | it('easeInExpo(.750000) is about .1767766952966369', () => {
21 | almostEqual(easeInExpo(.750000), .1767766952966369, .0001);
22 | });
23 | it('easeInExpo(1.000000) is about 1', () => {
24 | almostEqual(easeInExpo(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOut.ts:
--------------------------------------------------------------------------------
1 | import { easeInOut } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOut()', () => {
5 | it('easeInOut(0) is about 0', () => {
6 | almostEqual(easeInOut(0), 0, .0001);
7 | });
8 | it('easeInOut(.250000) is about .129164', () => {
9 | almostEqual(easeInOut(.250000), .129164, .0001);
10 | });
11 | it('easeInOut(.333333) is about .231776', () => {
12 | almostEqual(easeInOut(.333333), .231776, .0001);
13 | });
14 | it('easeInOut(.500000) is about .500000', () => {
15 | almostEqual(easeInOut(.500000), .500000, .0001);
16 | });
17 | it('easeInOut(.666667) is about .768224', () => {
18 | almostEqual(easeInOut(.666667), .768224, .0001);
19 | });
20 | it('easeInOut(.750000) is about .870836', () => {
21 | almostEqual(easeInOut(.750000), .870836, .0001);
22 | });
23 | it('easeInOut(1) is about 1', () => {
24 | almostEqual(easeInOut(1), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutBack.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutBack } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutBack()', () => {
5 |
6 | it('easeInOutBack(.000000) is about 0', () => {
7 | almostEqual(easeInOutBack(.000000), 0, .0001);
8 | });
9 | it('easeInOutBack(.250000) is about -.09968184375', () => {
10 | almostEqual(easeInOutBack(.250000), -.09968184375, .0001);
11 | });
12 | it('easeInOutBack(.333333) is about -.0440673703703704', () => {
13 | almostEqual(easeInOutBack(.333333), -.0440673703703704, .0001);
14 | });
15 | it('easeInOutBack(.500000) is about .5', () => {
16 | almostEqual(easeInOutBack(.500000), .5, .0001);
17 | });
18 | it('easeInOutBack(.666667) is about 1.0440673703703702', () => {
19 | almostEqual(easeInOutBack(.666667), 1.0440673703703702, .0001);
20 | });
21 | it('easeInOutBack(.750000) is about 1.09968184375', () => {
22 | almostEqual(easeInOutBack(.750000), 1.09968184375, .0001);
23 | });
24 | it('easeInOutBack(1.000000) is about 1', () => {
25 | almostEqual(easeInOutBack(1.000000), 1, .0001);
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutBounce.ts:
--------------------------------------------------------------------------------
1 | import { almostEqual } from '../assertions';
2 | import { easeInOutBounce } from '../../src/curves';
3 |
4 | describe('easeInOutBounce()', () => {
5 | it('easeInOutBounce(.000000) is about 0', () => {
6 | almostEqual(easeInOutBounce(.000000), 0, .0001);
7 | });
8 | it('easeInOutBounce(.250000) is about .1171875', () => {
9 | almostEqual(easeInOutBounce(.250000), .1171875, .0001);
10 | });
11 | it('easeInOutBounce(.333333) is about .07986111111111105', () => {
12 | almostEqual(easeInOutBounce(.333333), .07986111111111105, .0001);
13 | });
14 | it('easeInOutBounce(.500000) is about .5', () => {
15 | almostEqual(easeInOutBounce(.500000), .5, .0001);
16 | });
17 | it('easeInOutBounce(.666667) is about .9201388888888886', () => {
18 | almostEqual(easeInOutBounce(.666667), .9201388888888886, .0001);
19 | });
20 | it('easeInOutBounce(.750000) is about .8828125', () => {
21 | almostEqual(easeInOutBounce(.750000), .8828125, .0001);
22 | });
23 | it('easeInOutBounce(1.000000) is about 1', () => {
24 | almostEqual(easeInOutBounce(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutCirc.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutCirc } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutCirc()', () => {
5 | it('easeInOutCirc(.000000) is about 0', () => {
6 | almostEqual(easeInOutCirc(.000000), 0, .0001);
7 | });
8 | it('easeInOutCirc(.250000) is about .0669872981077807', () => {
9 | almostEqual(easeInOutCirc(.250000), .0669872981077807, .0001);
10 | });
11 | it('easeInOutCirc(.333333) is about .12732200375003505', () => {
12 | almostEqual(easeInOutCirc(.333333), .12732200375003505, .0001);
13 | });
14 | it('easeInOutCirc(.500000) is about .5', () => {
15 | almostEqual(easeInOutCirc(.500000), .5, .0001);
16 | });
17 | it('easeInOutCirc(.666667) is about .8726779962499649', () => {
18 | almostEqual(easeInOutCirc(.666667), .8726779962499649, .0001);
19 | });
20 | it('easeInOutCirc(.750000) is about .9330127018922193', () => {
21 | almostEqual(easeInOutCirc(.750000), .9330127018922193, .0001);
22 | });
23 | it('easeInOutCirc(1.000000) is about 1', () => {
24 | almostEqual(easeInOutCirc(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutCubic.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutCubic } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutCubic()', () => {
5 |
6 | it('easeInOutCubic(.000000) is about 0', () => {
7 | almostEqual(easeInOutCubic(.000000), 0, .0001);
8 | });
9 | it('easeInOutCubic(.250000) is about .0625', () => {
10 | almostEqual(easeInOutCubic(.250000), .0625, .0001);
11 | });
12 | it('easeInOutCubic(.333333) is about .14814814814814814', () => {
13 | almostEqual(easeInOutCubic(.333333), .14814814814814814, .0001);
14 | });
15 | it('easeInOutCubic(.500000) is about .5', () => {
16 | almostEqual(easeInOutCubic(.500000), .5, .0001);
17 | });
18 | it('easeInOutCubic(.666667) is about .8518518518518519', () => {
19 | almostEqual(easeInOutCubic(.666667), .8518518518518519, .0001);
20 | });
21 | it('easeInOutCubic(.750000) is about .9375', () => {
22 | almostEqual(easeInOutCubic(.750000), .9375, .0001);
23 | });
24 | it('easeInOutCubic(1.000000) is about 1', () => {
25 | almostEqual(easeInOutCubic(1.000000), 1, .0001);
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutElastic.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutElastic } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutElastic()', () => {
5 |
6 | it('easeInOutElastic(.000000) is about 0', () => {
7 | almostEqual(easeInOutElastic(.000000), 0, .0001);
8 | });
9 | it('easeInOutElastic(.250000) is about 5.740531871003218e-18', () => {
10 | almostEqual(easeInOutElastic(.250000), 5.740531871003218e-18, .0001);
11 | });
12 | it('easeInOutElastic(.333333) is about .024803141437003108', () => {
13 | almostEqual(easeInOutElastic(.333333), .024803141437003108, .0001);
14 | });
15 | it('easeInOutElastic(.500000) is about .5', () => {
16 | almostEqual(easeInOutElastic(.500000), .5, .0001);
17 | });
18 | it('easeInOutElastic(.666667) is about .975196858562997', () => {
19 | almostEqual(easeInOutElastic(.666667), .975196858562997, .0001);
20 | });
21 | it('easeInOutElastic(.750000) is about 1', () => {
22 | almostEqual(easeInOutElastic(.750000), 1, .0001);
23 | });
24 | it('easeInOutElastic(1.000000) is about 1', () => {
25 | almostEqual(easeInOutElastic(1.000000), 1, .0001);
26 | });
27 | });
28 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutExpo.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutExpo } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutExpo()', () => {
5 | it('easeInOutExpo(.000000) is about 0', () => {
6 | almostEqual(easeInOutExpo(.000000), 0, .0001);
7 | });
8 | it('easeInOutExpo(.250000) is about .015625', () => {
9 | almostEqual(easeInOutExpo(.250000), .015625, .0001);
10 | });
11 | it('easeInOutExpo(.333333) is about .04960628287400622', () => {
12 | almostEqual(easeInOutExpo(.333333), .04960628287400622, .0001);
13 | });
14 | it('easeInOutExpo(.500000) is about .5', () => {
15 | almostEqual(easeInOutExpo(.500000), .5, .0001);
16 | });
17 | it('easeInOutExpo(.666667) is about .9503937171259937', () => {
18 | almostEqual(easeInOutExpo(.666667), .9503937171259937, .0001);
19 | });
20 | it('easeInOutExpo(.750000) is about .984375', () => {
21 | almostEqual(easeInOutExpo(.750000), .984375, .0001);
22 | });
23 | it('easeInOutExpo(1.000000) is about 1', () => {
24 | almostEqual(easeInOutExpo(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutQuad.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutQuad } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutQuad()', () => {
5 | it('easeInOutQuad(.000000) is about 0', () => {
6 | almostEqual(easeInOutQuad(.000000), 0, .0001);
7 | });
8 | it('easeInOutQuad(.250000) is about .125', () => {
9 | almostEqual(easeInOutQuad(.250000), .125, .0001);
10 | });
11 | it('easeInOutQuad(.333333) is about .2222222222222222', () => {
12 | almostEqual(easeInOutQuad(.333333), .2222222222222222, .0001);
13 | });
14 | it('easeInOutQuad(.500000) is about .5', () => {
15 | almostEqual(easeInOutQuad(.500000), .5, .0001);
16 | });
17 | it('easeInOutQuad(.666667) is about .7777777777777777', () => {
18 | almostEqual(easeInOutQuad(.666667), .7777777777777777, .0001);
19 | });
20 | it('easeInOutQuad(.750000) is about .875', () => {
21 | almostEqual(easeInOutQuad(.750000), .875, .0001);
22 | });
23 | it('easeInOutQuad(1.000000) is about 1', () => {
24 | almostEqual(easeInOutQuad(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutQuart.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutQuart } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutQuart()', () => {
5 | it('easeInOutQuart(.000000) is about 0', () => {
6 | almostEqual(easeInOutQuart(.000000), 0, .0001);
7 | });
8 | it('easeInOutQuart(.250000) is about .03125', () => {
9 | almostEqual(easeInOutQuart(.250000), .03125, .0001);
10 | });
11 | it('easeInOutQuart(.333333) is about .09876543209876543', () => {
12 | almostEqual(easeInOutQuart(.333333), .09876543209876543, .0001);
13 | });
14 | it('easeInOutQuart(.500000) is about .5', () => {
15 | almostEqual(easeInOutQuart(.500000), .5, .0001);
16 | });
17 | it('easeInOutQuart(.666667) is about .9012345679012346', () => {
18 | almostEqual(easeInOutQuart(.666667), .9012345679012346, .0001);
19 | });
20 | it('easeInOutQuart(.750000) is about .96875', () => {
21 | almostEqual(easeInOutQuart(.750000), .96875, .0001);
22 | });
23 | it('easeInOutQuart(1.000000) is about 1', () => {
24 | almostEqual(easeInOutQuart(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutQuint.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutQuint } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutQuint()', () => {
5 | it('easeInOutQuint(.000000) is about 0', () => {
6 | almostEqual(easeInOutQuint(.000000), 0, .0001);
7 | });
8 | it('easeInOutQuint(.250000) is about .015625', () => {
9 | almostEqual(easeInOutQuint(.250000), .015625, .0001);
10 | });
11 | it('easeInOutQuint(.333333) is about .06584362139917695', () => {
12 | almostEqual(easeInOutQuint(.333333), .06584362139917695, .0001);
13 | });
14 | it('easeInOutQuint(.500000) is about .5', () => {
15 | almostEqual(easeInOutQuint(.500000), .5, .0001);
16 | });
17 | it('easeInOutQuint(.666667) is about .934156378600823', () => {
18 | almostEqual(easeInOutQuint(.666667), .934156378600823, .0001);
19 | });
20 | it('easeInOutQuint(.750000) is about .984375', () => {
21 | almostEqual(easeInOutQuint(.750000), .984375, .0001);
22 | });
23 | it('easeInOutQuint(1.000000) is about 1', () => {
24 | almostEqual(easeInOutQuint(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInOutSine.ts:
--------------------------------------------------------------------------------
1 | import { easeInOutSine } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInOutSine()', () => {
5 | it('easeInOutSine(.000000) is about 0', () => {
6 | almostEqual(easeInOutSine(.000000), 0, .0001);
7 | });
8 | it('easeInOutSine(.250000) is about .1464466094067262', () => {
9 | almostEqual(easeInOutSine(.250000), .1464466094067262, .0001);
10 | });
11 | it('easeInOutSine(.333333) is about .24999999999999994', () => {
12 | almostEqual(easeInOutSine(.333333), .24999999999999994, .0001);
13 | });
14 | it('easeInOutSine(.500000) is about .49999999999999994', () => {
15 | almostEqual(easeInOutSine(.500000), .49999999999999994, .0001);
16 | });
17 | it('easeInOutSine(.666667) is about .7499999999999999', () => {
18 | almostEqual(easeInOutSine(.666667), .7499999999999999, .0001);
19 | });
20 | it('easeInOutSine(.750000) is about .8535533905932737', () => {
21 | almostEqual(easeInOutSine(.750000), .8535533905932737, .0001);
22 | });
23 | it('easeInOutSine(1.000000) is about 1', () => {
24 | almostEqual(easeInOutSine(1.000000), 1, .0001);
25 | });
26 | });
27 |
28 |
--------------------------------------------------------------------------------
/tests/curves/easeInQuad.ts:
--------------------------------------------------------------------------------
1 | import { easeInQuad } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInQuad()', () => {
5 | it('easeInQuad(.000000) is about 0', () => {
6 | almostEqual(easeInQuad(.000000), 0, .0001);
7 | });
8 | it('easeInQuad(.250000) is about .0625', () => {
9 | almostEqual(easeInQuad(.250000), .0625, .0001);
10 | });
11 | it('easeInQuad(.333333) is about .1111111111111111', () => {
12 | almostEqual(easeInQuad(.333333), .1111111111111111, .0001);
13 | });
14 | it('easeInQuad(.500000) is about .25', () => {
15 | almostEqual(easeInQuad(.500000), .25, .0001);
16 | });
17 | it('easeInQuad(.666667) is about .4444444444444444', () => {
18 | almostEqual(easeInQuad(.666667), .4444444444444444, .0001);
19 | });
20 | it('easeInQuad(.750000) is about .5625', () => {
21 | almostEqual(easeInQuad(.750000), .5625, .0001);
22 | });
23 | it('easeInQuad(1.000000) is about 1', () => {
24 | almostEqual(easeInQuad(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInQuart.ts:
--------------------------------------------------------------------------------
1 | import { easeInQuart } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInQuart()', () => {
5 | it('easeInQuart(.000000) is about 0', () => {
6 | almostEqual(easeInQuart(.000000), 0, .0001);
7 | });
8 | it('easeInQuart(.250000) is about .00390625', () => {
9 | almostEqual(easeInQuart(.250000), .00390625, .0001);
10 | });
11 | it('easeInQuart(.333333) is about .012345679012345678', () => {
12 | almostEqual(easeInQuart(.333333), .012345679012345678, .0001);
13 | });
14 | it('easeInQuart(.500000) is about .0625', () => {
15 | almostEqual(easeInQuart(.500000), .0625, .0001);
16 | });
17 | it('easeInQuart(.666667) is about .19753086419753085', () => {
18 | almostEqual(easeInQuart(.666667), .19753086419753085, .0001);
19 | });
20 | it('easeInQuart(.750000) is about .31640625', () => {
21 | almostEqual(easeInQuart(.750000), .31640625, .0001);
22 | });
23 | it('easeInQuart(1.000000) is about 1', () => {
24 | almostEqual(easeInQuart(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInQuint.ts:
--------------------------------------------------------------------------------
1 | import { easeInQuint } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInQuint()', () => {
5 | it('easeInQuint(.000000) is about 0', () => {
6 | almostEqual(easeInQuint(.000000), 0, .0001);
7 | });
8 | it('easeInQuint(.250000) is about .0009765625', () => {
9 | almostEqual(easeInQuint(.250000), .0009765625, .0001);
10 | });
11 | it('easeInQuint(.333333) is about .004115226337448559', () => {
12 | almostEqual(easeInQuint(.333333), .004115226337448559, .0001);
13 | });
14 | it('easeInQuint(.500000) is about .03125', () => {
15 | almostEqual(easeInQuint(.500000), .03125, .0001);
16 | });
17 | it('easeInQuint(.666667) is about .1316872427983539', () => {
18 | almostEqual(easeInQuint(.666667), .1316872427983539, .0001);
19 | });
20 | it('easeInQuint(.750000) is about .2373046875', () => {
21 | almostEqual(easeInQuint(.750000), .2373046875, .0001);
22 | });
23 | it('easeInQuint(1.000000) is about 1', () => {
24 | almostEqual(easeInQuint(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeInSine.ts:
--------------------------------------------------------------------------------
1 | import { easeInSine } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeInSine()', () => {
5 | it('easeInSine(.000000) is about 0', () => {
6 | almostEqual(easeInSine(.000000), 0, .0001);
7 | });
8 | it('easeInSine(.250000) is about .07612046748871326', () => {
9 | almostEqual(easeInSine(.250000), .07612046748871326, .0001);
10 | });
11 | it('easeInSine(.333333) is about .1339745962155613', () => {
12 | almostEqual(easeInSine(.333333), .1339745962155613, .0001);
13 | });
14 | it('easeInSine(.500000) is about .2928932188134524', () => {
15 | almostEqual(easeInSine(.500000), .2928932188134524, .0001);
16 | });
17 | it('easeInSine(.666667) is about .4999999999999999', () => {
18 | almostEqual(easeInSine(.666667), .4999999999999999, .0001);
19 | });
20 | it('easeInSine(.750000) is about .6173165676349102', () => {
21 | almostEqual(easeInSine(.750000), .6173165676349102, .0001);
22 | });
23 | it('easeInSine(1.000000) is about .9999999999999999', () => {
24 | almostEqual(easeInSine(1.000000), .9999999999999999, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOut.ts:
--------------------------------------------------------------------------------
1 | import { easeOut } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOut()', () => {
5 | it('easeOut(0) is about 0', () => {
6 | almostEqual(easeOut(0), 0, .0001);
7 | });
8 | it('easeOut(.250000) is about .378146', () => {
9 | almostEqual(easeOut(.250000), .378146, .0001);
10 | });
11 | it('easeOut(.333333) is about .488351', () => {
12 | almostEqual(easeOut(.333333), .488351, .0001);
13 | });
14 | it('easeOut(.500000) is about .684645', () => {
15 | almostEqual(easeOut(.500000), .684645, .0001);
16 | });
17 | it('easeOut(.666667) is about .843836', () => {
18 | almostEqual(easeOut(.666667), .843836, .0001);
19 | });
20 | it('easeOut(.750000) is about .906540', () => {
21 | almostEqual(easeOut(.750000), .906540, .0001);
22 | });
23 | it('easeOut(1) is about 1', () => {
24 | almostEqual(easeOut(1), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutBack.ts:
--------------------------------------------------------------------------------
1 | import { easeOutBack } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutBack()', () => {
5 | it('easeOutBack(.000000) is about 2.220446049250313e-16', () => {
6 | almostEqual(easeOutBack(.000000), 2.220446049250313e-16, .0001);
7 | });
8 | it('easeOutBack(.250000) is about .8174096875000001', () => {
9 | almostEqual(easeOutBack(.250000), .8174096875000001, .0001);
10 | });
11 | it('easeOutBack(.333333) is about .9557896296296297', () => {
12 | almostEqual(easeOutBack(.333333), .9557896296296297, .0001);
13 | });
14 | it('easeOutBack(.500000) is about 1.0876975', () => {
15 | almostEqual(easeOutBack(.500000), 1.0876975, .0001);
16 | });
17 | it('easeOutBack(.666667) is about 1.089005925925926', () => {
18 | almostEqual(easeOutBack(.666667), 1.089005925925926, .0001);
19 | });
20 | it('easeOutBack(.750000) is about 1.0641365625', () => {
21 | almostEqual(easeOutBack(.750000), 1.0641365625, .0001);
22 | });
23 | it('easeOutBack(1.000000) is about 1', () => {
24 | almostEqual(easeOutBack(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutBounce.ts:
--------------------------------------------------------------------------------
1 | import { easeOutBounce } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutBounce()', () => {
5 | it('easeOutBounce(.000000) is about 0', () => {
6 | almostEqual(easeOutBounce(.000000), 0, .0001);
7 | });
8 | it('easeOutBounce(.250000) is about .47265625', () => {
9 | almostEqual(easeOutBounce(.250000), .47265625, .0001);
10 | });
11 | it('easeOutBounce(.333333) is about .8402777777777777', () => {
12 | almostEqual(easeOutBounce(.333333), .8402777777777777, .0001);
13 | });
14 | it('easeOutBounce(.500000) is about .765625', () => {
15 | almostEqual(easeOutBounce(.500000), .765625, .0001);
16 | });
17 | it('easeOutBounce(.666667) is about .8611111111111112', () => {
18 | almostEqual(easeOutBounce(.666667), .8611111111111112, .0001);
19 | });
20 | it('easeOutBounce(.750000) is about .97265625', () => {
21 | almostEqual(easeOutBounce(.750000), .97265625, .0001);
22 | });
23 | it('easeOutBounce(1.000000) is about 1', () => {
24 | almostEqual(easeOutBounce(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutCirc.ts:
--------------------------------------------------------------------------------
1 | import { easeOutCirc } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutCirc()', () => {
5 | it('easeOutCirc(.000000) is about 0', () => {
6 | almostEqual(easeOutCirc(.000000), 0, .0001);
7 | });
8 | it('easeOutCirc(.250000) is about .6614378277661477', () => {
9 | almostEqual(easeOutCirc(.250000), .6614378277661477, .0001);
10 | });
11 | it('easeOutCirc(.333333) is about .7453559924999298', () => {
12 | almostEqual(easeOutCirc(.333333), .7453559924999298, .0001);
13 | });
14 | it('easeOutCirc(.500000) is about .8660254037844386', () => {
15 | almostEqual(easeOutCirc(.500000), .8660254037844386, .0001);
16 | });
17 | it('easeOutCirc(.666667) is about .9428090415820634', () => {
18 | almostEqual(easeOutCirc(.666667), .9428090415820634, .0001);
19 | });
20 | it('easeOutCirc(.750000) is about .9682458365518543', () => {
21 | almostEqual(easeOutCirc(.750000), .9682458365518543, .0001);
22 | });
23 | it('easeOutCirc(1.000000) is about 1', () => {
24 | almostEqual(easeOutCirc(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutCubic.ts:
--------------------------------------------------------------------------------
1 | import { easeOutCubic } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutCubic()', () => {
5 | it('easeOutCubic(.000000) is about 0', () => {
6 | almostEqual(easeOutCubic(.000000), 0, .0001);
7 | });
8 | it('easeOutCubic(.250000) is about .578125', () => {
9 | almostEqual(easeOutCubic(.250000), .578125, .0001);
10 | });
11 | it('easeOutCubic(.333333) is about .7037037037037036', () => {
12 | almostEqual(easeOutCubic(.333333), .7037037037037036, .0001);
13 | });
14 | it('easeOutCubic(.500000) is about .875', () => {
15 | almostEqual(easeOutCubic(.500000), .875, .0001);
16 | });
17 | it('easeOutCubic(.666667) is about .9629629629629629', () => {
18 | almostEqual(easeOutCubic(.666667), .9629629629629629, .0001);
19 | });
20 | it('easeOutCubic(.750000) is about .984375', () => {
21 | almostEqual(easeOutCubic(.750000), .984375, .0001);
22 | });
23 | it('easeOutCubic(1.000000) is about 1', () => {
24 | almostEqual(easeOutCubic(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutElastic.ts:
--------------------------------------------------------------------------------
1 | import { easeOutElastic } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutElastic()', () => {
5 | it('easeOutElastic(.000000) is about 0', () => {
6 | almostEqual(easeOutElastic(.000000), 0, .0001);
7 | });
8 | it('easeOutElastic(.250000) is about 1.125', () => {
9 | almostEqual(easeOutElastic(.250000), 1.125, .0001);
10 | });
11 | it('easeOutElastic(.333333) is about .9503937171259939', () => {
12 | almostEqual(easeOutElastic(.333333), .9503937171259939, .0001);
13 | });
14 | it('easeOutElastic(.500000) is about 1', () => {
15 | almostEqual(easeOutElastic(.500000), 1, .0001);
16 | });
17 | it('easeOutElastic(.666667) is about 1.004921566601152', () => {
18 | almostEqual(easeOutElastic(.666667), 1.004921566601152, .0001);
19 | });
20 | it('easeOutElastic(.750000) is about .99609375', () => {
21 | almostEqual(easeOutElastic(.750000), .99609375, .0001);
22 | });
23 | it('easeOutElastic(1.000000) is about 1', () => {
24 | almostEqual(easeOutElastic(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutExpo.ts:
--------------------------------------------------------------------------------
1 | import { easeOutExpo } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutExpo()', () => {
5 | it('easeOutExpo(.000000) is about 0', () => {
6 | almostEqual(easeOutExpo(.000000), 0, .0001);
7 | });
8 | it('easeOutExpo(.250000) is about .8232233047033631', () => {
9 | almostEqual(easeOutExpo(.250000), .8232233047033631, .0001);
10 | });
11 | it('easeOutExpo(.333333) is about .9007874342519875', () => {
12 | almostEqual(easeOutExpo(.333333), .9007874342519875, .0001);
13 | });
14 | it('easeOutExpo(.500000) is about .96875', () => {
15 | almostEqual(easeOutExpo(.500000), .96875, .0001);
16 | });
17 | it('easeOutExpo(.666667) is about .9901568667976963', () => {
18 | almostEqual(easeOutExpo(.666667), .9901568667976963, .0001);
19 | });
20 | it('easeOutExpo(.750000) is about .99447572827198', () => {
21 | almostEqual(easeOutExpo(.750000), .99447572827198, .0001);
22 | });
23 | it('easeOutExpo(1.000000) is about 1', () => {
24 | almostEqual(easeOutExpo(1.000000), 1, .0001);
25 | });
26 | });
27 |
28 |
--------------------------------------------------------------------------------
/tests/curves/easeOutQuad.ts:
--------------------------------------------------------------------------------
1 | import { easeOutQuad } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutQuad()', () => {
5 | it('easeOutQuad(.000000) is about 0', () => {
6 | almostEqual(easeOutQuad(.000000), 0, .0001);
7 | });
8 | it('easeOutQuad(.250000) is about .4375', () => {
9 | almostEqual(easeOutQuad(.250000), .4375, .0001);
10 | });
11 | it('easeOutQuad(.333333) is about .5555555555555556', () => {
12 | almostEqual(easeOutQuad(.333333), .5555555555555556, .0001);
13 | });
14 | it('easeOutQuad(.500000) is about .75', () => {
15 | almostEqual(easeOutQuad(.500000), .75, .0001);
16 | });
17 | it('easeOutQuad(.666667) is about .888888888888889', () => {
18 | almostEqual(easeOutQuad(.666667), .888888888888889, .0001);
19 | });
20 | it('easeOutQuad(.750000) is about .9375', () => {
21 | almostEqual(easeOutQuad(.750000), .9375, .0001);
22 | });
23 | it('easeOutQuad(1.000000) is about 1', () => {
24 | almostEqual(easeOutQuad(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutQuart.ts:
--------------------------------------------------------------------------------
1 | import { easeOutQuart } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutQuart()', () => {
5 | it('easeOutQuart(.000000) is about 0', () => {
6 | almostEqual(easeOutQuart(.000000), 0, .0001);
7 | });
8 | it('easeOutQuart(.250000) is about .68359375', () => {
9 | almostEqual(easeOutQuart(.250000), .68359375, .0001);
10 | });
11 | it('easeOutQuart(.333333) is about .802469135802469', () => {
12 | almostEqual(easeOutQuart(.333333), .802469135802469, .0001);
13 | });
14 | it('easeOutQuart(.500000) is about .9375', () => {
15 | almostEqual(easeOutQuart(.500000), .9375, .0001);
16 | });
17 | it('easeOutQuart(.666667) is about .9876543209876543', () => {
18 | almostEqual(easeOutQuart(.666667), .9876543209876543, .0001);
19 | });
20 | it('easeOutQuart(.750000) is about .99609375', () => {
21 | almostEqual(easeOutQuart(.750000), .99609375, .0001);
22 | });
23 | it('easeOutQuart(1.000000) is about 1', () => {
24 | almostEqual(easeOutQuart(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutQuint.ts:
--------------------------------------------------------------------------------
1 | import { easeOutQuint } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutQuint()', () => {
5 | it('easeOutQuint(.000000) is about 0', () => {
6 | almostEqual(easeOutQuint(.000000), 0, .0001);
7 | });
8 | it('easeOutQuint(.250000) is about .7626953125', () => {
9 | almostEqual(easeOutQuint(.250000), .7626953125, .0001);
10 | });
11 | it('easeOutQuint(.333333) is about .868312757201646', () => {
12 | almostEqual(easeOutQuint(.333333), .868312757201646, .0001);
13 | });
14 | it('easeOutQuint(.500000) is about .96875', () => {
15 | almostEqual(easeOutQuint(.500000), .96875, .0001);
16 | });
17 | it('easeOutQuint(.666667) is about .9958847736625515', () => {
18 | almostEqual(easeOutQuint(.666667), .9958847736625515, .0001);
19 | });
20 | it('easeOutQuint(.750000) is about .9990234375', () => {
21 | almostEqual(easeOutQuint(.750000), .9990234375, .0001);
22 | });
23 | it('easeOutQuint(1.000000) is about 1', () => {
24 | almostEqual(easeOutQuint(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/easeOutSine.ts:
--------------------------------------------------------------------------------
1 | import { easeOutSine } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('easeOutSine()', () => {
5 | it('easeOutSine(.000000) is about 0', () => {
6 | almostEqual(easeOutSine(.000000), 0, .0001);
7 | });
8 | it('easeOutSine(.250000) is about .3826834323650898', () => {
9 | almostEqual(easeOutSine(.250000), .3826834323650898, .0001);
10 | });
11 | it('easeOutSine(.333333) is about .49999999999999994', () => {
12 | almostEqual(easeOutSine(.333333), .49999999999999994, .0001);
13 | });
14 | it('easeOutSine(.500000) is about .7071067811865475', () => {
15 | almostEqual(easeOutSine(.500000), .7071067811865475, .0001);
16 | });
17 | it('easeOutSine(.666667) is about .8660254037844386', () => {
18 | almostEqual(easeOutSine(.666667), .8660254037844386, .0001);
19 | });
20 | it('easeOutSine(.750000) is about .9238795325112867', () => {
21 | almostEqual(easeOutSine(.750000), .9238795325112867, .0001);
22 | });
23 | it('easeOutSine(1.000000) is about 1', () => {
24 | almostEqual(easeOutSine(1.000000), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/linear.ts:
--------------------------------------------------------------------------------
1 | import { linear } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('linear()', () => {
5 | it('linear(.000000) is about 0', () => {
6 | almostEqual(linear(0), 0, .0001);
7 | });
8 | it('linear(.250000) is about .25', () => {
9 | almostEqual(linear(.25), .25, .0001);
10 | });
11 | it('linear(.333333) is about .3333333333333333', () => {
12 | almostEqual(linear(.3333), .3333, .0001);
13 | });
14 | it('linear(.500000) is about .5', () => {
15 | almostEqual(linear(.5), .5, .0001);
16 | });
17 | it('linear(.666667) is about .6666666666666666', () => {
18 | almostEqual(linear(.666667), .666667, .0001);
19 | });
20 | it('linear(.750000) is about .75', () => {
21 | almostEqual(linear(.75), .75, .0001);
22 | });
23 | it('linear(1.000000) is about 1', () => {
24 | almostEqual(linear(1), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/stepEnd.ts:
--------------------------------------------------------------------------------
1 | import { almostEqual } from '../assertions';
2 | import { stepEnd } from '../../src/curves';
3 |
4 | describe('stepEnd()', () => {
5 | it('stepEnd(0) is about 0', () => {
6 | almostEqual(stepEnd(0), 0, .0001);
7 | });
8 | it('stepEnd(.250000) is about 0', () => {
9 | almostEqual(stepEnd(.250000), 0, .0001);
10 | });
11 | it('stepEnd(.333333) is about 0', () => {
12 | almostEqual(stepEnd(.333333), 0, .0001);
13 | });
14 | it('stepEnd(.500000) is about 0', () => {
15 | almostEqual(stepEnd(.500000), 0, .0001);
16 | });
17 | it('stepEnd(.666667) is about 0', () => {
18 | almostEqual(stepEnd(.666667), 0, .0001);
19 | });
20 | it('stepEnd(.750000) is about 0', () => {
21 | almostEqual(stepEnd(.750000), 0, .0001);
22 | });
23 | it('stepEnd(1) is about 1', () => {
24 | almostEqual(stepEnd(1), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/curves/stepStart.ts:
--------------------------------------------------------------------------------
1 | import { stepStart } from '../../src/curves';
2 | import { almostEqual } from '../assertions';
3 |
4 | describe('stepStart()', () => {
5 | it('stepStart(0) is about 1', () => {
6 | almostEqual(stepStart(0), 1, .0001);
7 | });
8 | it('stepStart(.250000) is about 1', () => {
9 | almostEqual(stepStart(.250000), 1, .0001);
10 | });
11 | it('stepStart(.333333) is about 1', () => {
12 | almostEqual(stepStart(.333333), 1, .0001);
13 | });
14 | it('stepStart(.500000) is about 1', () => {
15 | almostEqual(stepStart(.500000), 1, .0001);
16 | });
17 | it('stepStart(.666667) is about 1', () => {
18 | almostEqual(stepStart(.666667), 1, .0001);
19 | });
20 | it('stepStart(.750000) is about 1', () => {
21 | almostEqual(stepStart(.750000), 1, .0001);
22 | });
23 | it('stepStart(1) is about 1', () => {
24 | almostEqual(stepStart(1), 1, .0001);
25 | });
26 | });
27 |
--------------------------------------------------------------------------------
/tests/internal/cssFunction.ts:
--------------------------------------------------------------------------------
1 | import { cssFunction } from '../../src/internal';
2 | import * as assert from 'assert';
3 |
4 | describe('cssFunction', () => {
5 | describe('steps(1, start)', () => {
6 | it('0 is 1', () => {
7 | const stepStart = cssFunction('steps(1,start)');
8 | assert.equal(stepStart(0), 1);
9 | });
10 | it('.5 is 1', () => {
11 | const stepStart = cssFunction('steps(1,start)');
12 | assert.equal(stepStart(.5), 1);
13 | });
14 | it('1 is 1', () => {
15 | const stepStart = cssFunction('steps(1,start)');
16 | assert.equal(stepStart(1), 1);
17 | });
18 | });
19 |
20 | describe('steps(1, end)', () => {
21 | it('0 is 0', () => {
22 | const stepEnd = cssFunction('steps(1,end)');
23 | assert.equal(stepEnd(0), 0);
24 | });
25 | it('.5 is 0', () => {
26 | const stepEnd = cssFunction('steps(1,end)');
27 | assert.equal(stepEnd(.5), 0);
28 | });
29 | it('1 is 1', () => {
30 | const stepEnd = cssFunction('steps(1,end)');
31 | assert.equal(stepEnd(1), 1);
32 | });
33 | });
34 | });
35 |
--------------------------------------------------------------------------------
/tsconfig.es2015.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowUnreachableCode": false,
4 | "allowUnusedLabels": false,
5 | "declaration": false,
6 | "forceConsistentCasingInFileNames": true,
7 | "inlineSourceMap": false,
8 | "module": "es2015",
9 | "moduleResolution": "node",
10 | "newLine": "LF",
11 | "noFallthroughCasesInSwitch": true,
12 | "noImplicitAny": true,
13 | "noImplicitReturns": true,
14 | "noImplicitUseStrict": true,
15 | "noUnusedLocals": true,
16 | "preserveConstEnums": false,
17 | "removeComments": false,
18 | "rootDir": "src",
19 | "sourceMap": false,
20 | "strictNullChecks": true,
21 | "suppressImplicitAnyIndexErrors": true,
22 | "target": "es5",
23 | "outDir": "lib.es2015"
24 | },
25 | "exclude": [
26 | "dist",
27 | "lib",
28 | "lib.es2015",
29 | "tests",
30 | "node_modules",
31 | "types"
32 | ]
33 | }
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowUnreachableCode": false,
4 | "allowUnusedLabels": false,
5 | "declaration": false,
6 | "forceConsistentCasingInFileNames": true,
7 | "inlineSourceMap": false,
8 | "module": "commonjs",
9 | "newLine": "LF",
10 | "noEmit": true,
11 | "noFallthroughCasesInSwitch": true,
12 | "noImplicitAny": true,
13 | "noImplicitReturns": true,
14 | "noImplicitUseStrict": true,
15 | "noUnusedLocals": true,
16 | "preserveConstEnums": false,
17 | "removeComments": false,
18 | "sourceMap": false,
19 | "strictNullChecks": true,
20 | "suppressImplicitAnyIndexErrors": true,
21 | "target": "es5"
22 | },
23 | "exclude": [
24 | "dist",
25 | "lib",
26 | "lib.es2015",
27 | "node_modules",
28 | "types"
29 | ]
30 | }
--------------------------------------------------------------------------------
/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "allowUnreachableCode": false,
4 | "allowUnusedLabels": false,
5 | "declaration": true,
6 | "declarationDir": "types",
7 | "forceConsistentCasingInFileNames": true,
8 | "inlineSourceMap": false,
9 | "module": "commonjs",
10 | "moduleResolution": "node",
11 | "newLine": "LF",
12 | "noFallthroughCasesInSwitch": true,
13 | "noImplicitAny": true,
14 | "noImplicitReturns": true,
15 | "noImplicitUseStrict": true,
16 | "noUnusedLocals": true,
17 | "preserveConstEnums": false,
18 | "removeComments": false,
19 | "rootDir": "src",
20 | "sourceMap": false,
21 | "strictNullChecks": true,
22 | "suppressImplicitAnyIndexErrors": true,
23 | "target": "es5",
24 | "outDir": "lib"
25 | },
26 | "exclude": [
27 | "dist",
28 | "lib",
29 | "lib.es2015",
30 | "tests",
31 | "node_modules",
32 | "types"
33 | ]
34 | }
--------------------------------------------------------------------------------
/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "align": [
4 | true,
5 | "parameters",
6 | "arguments",
7 | "statements"
8 | ],
9 | "ban": false,
10 | "class-name": true,
11 | "comment-format": [
12 | true,
13 | "check-space",
14 | "check-lowercase"
15 | ],
16 | "curly": true,
17 | "eofline": true,
18 | "forin": false,
19 | "indent": [
20 | true,
21 | "spaces"
22 | ],
23 | "interface-name": [
24 | true,
25 | "always-prefix"
26 | ],
27 | "jsdoc-format": true,
28 | "label-position": true,
29 | "label-undefined": true,
30 | "max-line-length": [
31 | true,
32 | 200
33 | ],
34 | "member-access": true,
35 | "member-ordering": [
36 | true,
37 | "public-before-private",
38 | "static-before-instance",
39 | "variables-before-functions"
40 | ],
41 | "no-any": false,
42 | "no-arg": true,
43 | "no-bitwise": false,
44 | "no-conditional-assignment": true,
45 | "no-consecutive-blank-lines": false,
46 | "no-console": [
47 | true,
48 | "debug",
49 | "info",
50 | "time",
51 | "timeEnd",
52 | "trace"
53 | ],
54 | "no-construct": true,
55 | "no-constructor-vars": true,
56 | "no-debugger": true,
57 | "no-duplicate-key": true,
58 | "no-duplicate-variable": true,
59 | "no-empty": true,
60 | "no-eval": true,
61 | "no-inferrable-types": false,
62 | "no-internal-module": false,
63 | "no-null-keyword": true,
64 | "no-require-imports": false,
65 | "no-shadowed-variable": true,
66 | "no-string-literal": false,
67 | "no-switch-case-fall-through": true,
68 | "no-trailing-whitespace": false,
69 | "no-unreachable": true,
70 | "no-unused-expression": true,
71 | "no-unused-variable": true,
72 | "no-use-before-declare": true,
73 | "no-var-keyword": true,
74 | "no-var-requires": false,
75 | "object-literal-sort-keys": false,
76 | "one-line": [
77 | true,
78 | "check-open-brace",
79 | "check-catch",
80 | "check-else",
81 | "check-finally",
82 | "check-whitespace"
83 | ],
84 | "quotemark": [
85 | true,
86 | "single",
87 | "avoid-escape"
88 | ],
89 | "radix": true,
90 | "semicolon": [
91 | true,
92 | "always"
93 | ],
94 | "switch-default": true,
95 | "trailing-comma": [
96 | true,
97 | {
98 | "multiline": "never",
99 | "singleline": "never"
100 | }
101 | ],
102 | "triple-equals": [
103 | true,
104 | "allow-null-check"
105 | ],
106 | "typedef": [
107 | true,
108 | "call-signature",
109 | "parameter",
110 | "arrow-parameter",
111 | "property-declaration",
112 | "member-variable-declaration"
113 | ],
114 | "typedef-whitespace": [
115 | true,
116 | {
117 | "call-signature": "nospace",
118 | "index-signature": "nospace",
119 | "parameter": "nospace",
120 | "property-declaration": "nospace",
121 | "variable-declaration": "nospace"
122 | },
123 | {
124 | "call-signature": "space",
125 | "index-signature": "space",
126 | "parameter": "space",
127 | "property-declaration": "space",
128 | "variable-declaration": "space"
129 | }
130 | ],
131 | "use-strict": [
132 | true,
133 | "check-module"
134 | ],
135 | "variable-name": [
136 | true,
137 | "check-format",
138 | "allow-leading-underscore",
139 | "ban-keywords"
140 | ],
141 | "whitespace": [
142 | true,
143 | "check-branch",
144 | "check-decl",
145 | "check-operator",
146 | "check-separator",
147 | "check-type"
148 | ]
149 | }
150 | }
--------------------------------------------------------------------------------