├── .babelrc.js
├── .github
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ └── feature_request.md
├── .gitignore
├── .prettierrc
├── LICENSE
├── README.md
├── examples
├── counter-nedux-vs-redux
│ ├── .gitignore
│ ├── README.md
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ │ ├── favicon.ico
│ │ ├── index.html
│ │ ├── logo192.png
│ │ ├── logo512.png
│ │ ├── manifest.json
│ │ └── robots.txt
│ ├── src
│ │ ├── index.css
│ │ ├── index.tsx
│ │ ├── nedux.tsx
│ │ ├── react-app-env.d.ts
│ │ └── redux.tsx
│ └── tsconfig.json
├── logger-middleware
│ ├── index.ts
│ ├── package-lock.json
│ ├── package.json
│ └── tsconfig.json
└── todos
│ ├── .gitignore
│ ├── README.md
│ ├── package-lock.json
│ ├── package.json
│ ├── public
│ ├── favicon.ico
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
│ ├── src
│ ├── components
│ │ ├── AddTodo.tsx
│ │ ├── App.tsx
│ │ ├── FilterLink.tsx
│ │ ├── Footer.tsx
│ │ ├── Link.tsx
│ │ ├── Todo.tsx
│ │ └── TodoList.tsx
│ ├── controler.ts
│ ├── index.tsx
│ ├── store.ts
│ └── types.ts
│ └── tsconfig.json
├── package-lock.json
├── package.json
├── rollup.config.js
├── src
├── index.ts
└── store.ts
└── tsconfig.json
/.babelrc.js:
--------------------------------------------------------------------------------
1 | const {
2 | NODE_ENV
3 | } = process.env
4 |
5 | module.exports = {
6 | presets: [
7 | '@babel/typescript',
8 | [
9 | '@babel/env',
10 | {
11 | targets: {
12 | browsers: ['ie >= 11']
13 | },
14 | exclude: ['transform-async-to-generator', 'transform-regenerator'],
15 | modules: false,
16 | loose: true
17 | }
18 | ]
19 | ],
20 | plugins: [
21 | // don't use `loose` mode here - need to copy symbols when spreading
22 | '@babel/proposal-object-rest-spread',
23 | NODE_ENV === 'test' && '@babel/transform-modules-commonjs'
24 | ].filter(Boolean)
25 | }
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Describe the bug**
11 | A clear and concise description of what the bug is.
12 |
13 | **To Reproduce**
14 | Steps to reproduce the behavior:
15 | 1. Go to '...'
16 | 2. Click on '....'
17 | 3. Scroll down to '....'
18 | 4. See error
19 |
20 | **Expected behavior**
21 | A clear and concise description of what you expected to happen.
22 |
23 | **Screenshots**
24 | If applicable, add screenshots to help explain your problem.
25 |
26 | **Desktop (please complete the following information):**
27 | - OS: [e.g. iOS]
28 | - Browser [e.g. chrome, safari]
29 | - Version [e.g. 22]
30 |
31 | **Smartphone (please complete the following information):**
32 | - Device: [e.g. iPhone6]
33 | - OS: [e.g. iOS8.1]
34 | - Browser [e.g. stock browser, safari]
35 | - Version [e.g. 22]
36 |
37 | **Additional context**
38 | Add any other context about the problem here.
39 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | **Is your feature request related to a problem? Please describe.**
11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12 |
13 | **Describe the solution you'd like**
14 | A clear and concise description of what you want to happen.
15 |
16 | **Describe alternatives you've considered**
17 | A clear and concise description of any alternative solutions or features you've considered.
18 |
19 | **Additional context**
20 | Add any other context or screenshots about the feature request here.
21 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
3 | coverage
4 |
5 | dist
6 | lib
7 | es
8 | types
9 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "singleQuote": true,
3 | "trailingComma": "all"
4 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Lucas Marandat
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Nedux - The `n`ext r`edux`
2 |
3 |  [](https://www.npmjs.com/package/nedux) [](https://www.npmjs.com/package/nedux)
4 |
5 | > Why do you waste your time by creating actions/reducers/containers/sagas/... ? \
6 | > **Just create a store and that's it !**
7 |
8 | ## 📦 Installation
9 |
10 | ```bash
11 | npm install nedux --save
12 | ```
13 |
14 | ## 🧲 Use `Nedux` with ...
15 |
16 | | library | provider |
17 | | :-----: | :-----------------------------------------------------: |
18 | | React | [react-nedux](https://github.com/lucasmrdt/react-nedux) |
19 | | VueJS | `todo` |
20 | | Angular | `todo` |
21 |
22 | ## 😍 Examples
23 |
24 | | Name | Source | Codesandbox |
25 | | :------------------: | :---------------------------------------: | :----------------------------------------------------------------------------------------------------------------: |
26 | | ✅ Todo List | [here](./examples/todos) | [here](https://codesandbox.io/s/nedux-todos-nm8j0?fontsize=14&hidenavigation=1&theme=dark) |
27 | | 🔎 Logger Middleware | [here](./examples/logger-middleware) | [here](https://codesandbox.io/s/eloquent-black-hbmut?fontsize=14&hidenavigation=1&theme=dark) |
28 | | 🎛 Counter | [here](./examples/counter-nedux-vs-redux) | [here](https://codesandbox.io/s/counter-nedux-vs-redux-n34b2?fontsize=14&hidenavigation=1&theme=dark&view=preview) |
29 |
30 | ## 💻 Basic Example
31 |
32 | ### Use it with Typescript ♥️
33 |
34 | ```typescript
35 | import { createStore } from 'nedux';
36 |
37 | interface Todo {
38 | id: number;
39 | text: string;
40 | completed: boolean;
41 | }
42 |
43 | enum Filter {
44 | ShowAll = 'ShowAll',
45 | ShowCompleted = 'ShowCompleted',
46 | ShowActive = 'ShowActive',
47 | }
48 |
49 | // Create the store
50 | const todoStore = createStore({
51 | todos: [] as Todo[],
52 | filter: Filter.ShowAll,
53 | });
54 |
55 | // You can subscribe to field update.
56 | todoStore.subscribe('filter', newFilter => {
57 | console.log(`filter has changed with ${newFilter}`);
58 | });
59 |
60 | // You can get a value.
61 | todoStore.get('filter');
62 | // └> 'ShowAll'
63 |
64 | // You can override a value.
65 | todoStore.set('filter', Filter.ShowCompleted);
66 |
67 | // Or extends value by the previous one.
68 | todoStore.set('todos', todos => [
69 | ...todos,
70 | { id: 1, text: 'test', completed: false },
71 | ]);
72 |
73 | // And that's it !
74 | ```
75 |
76 | ### Or simply with Javascript
77 |
78 | ```javascript
79 | import { createStore } from 'nedux';
80 |
81 | const todoStore = createStore({
82 | todos: [],
83 | filter: 'ShowAll',
84 | });
85 |
86 | todoStore.subscribe('filter', newFilter => {
87 | console.log(`filter has changed with ${newFilter}`);
88 | });
89 |
90 | todoStore.get('filter');
91 |
92 | todoStore.set('filter', 'ShowCompleted');
93 | todoStore.set('todos', todos => [
94 | ...todos,
95 | { id: 1, text: 'test', completed: false },
96 | ]);
97 | ```
98 |
99 | ## 📜 Documentation
100 |
101 | ### `Import`
102 |
103 | ```javascript
104 | // ES6
105 | import { createStore } from 'nedux';
106 |
107 | // ES5
108 | var createStore = require('nedux').createStore;
109 | ```
110 |
111 | ### `createStore(initialState, [middlewares])`
112 |
113 | Creates a Nedux store with the shape of the `initialState`.
114 |
115 | | argument | required | type | description |
116 | | :-----------: | :------: | :--------------------------: | :-------------------------------------------------------------------------------------------------- |
117 | | `initalState` | ✅ | `object` | The intial state of your store. |
118 | | `middlewares` | ❌ | [Middleware](#middlewares)[] | Middlewares are used to enhance your store see the [middleware section](#middlewares) to know more. |
119 |
120 | ### `store`
121 |
122 | The `store` object created by `createStore` it'll allow you to interact with your store.
123 |
124 |
125 | store.get(key)
126 |
127 |
128 | | argument | required | type | description |
129 | | :------: | :------: | :------: | :---------------------------------------- |
130 | | `key` | ✅ | `string` | The key of the store that you want to get |
131 |
132 |
133 |
134 |
135 | store.set(key, value)
136 |
137 |
138 | | argument | required | type | description |
139 | | :------: | :------: | :-------------------------------------------: | :--------------------------------------------- |
140 | | `key` | ✅ | `string` | The key of the store that you want to override |
141 | | `value` | ✅ | `any`
or
`(prevValue: any) => any` | The new value of the key |
142 |
143 |
144 |
145 |
146 | store.subscribe(key, observer)
147 |
148 |
149 | | argument | required | type | description |
150 | | :--------: | :------: | :-----------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------- |
151 | | `key` | ✅ | `string` | The key of the store that you'll subscribe to changes. (give a value of `''` will subscribe to all keys changes) |
152 | | `observer` | ✅ | [observer](http://reactivex.io/rxjs/class/es6/MiscJSDoc.js~ObserverDoc.html)
or
`(value: any) => any` | An rxjs observer or a simple callback which will be fired when the store has been updated for the given key |
153 |
154 |
155 |
156 |
157 |
158 | ## ⚓️ Middlewares
159 |
160 | Middleware is the suggested way to extend Nedux with custom functionality. The _created store_ is provided to each middleware. It's easy to `subscribe`/`get`/`set` value to the store inside your middleware. The key feature of middleware is that it is composable. Multiple middleware can be combined together, where each middleware requires no knowledge of what comes before or after it in the chain.
161 |
162 | | Middleware | Description |
163 | | :------------------------------------------------------------: | :-----------------------------------: |
164 | | [🔒 nedux-persist](https://github.com/lucasmrdt/nedux-persist) | Allow you to persist your nedux store |
165 |
166 | ### Basic Logger Middleware
167 |
168 | ```javascript
169 | import { createStore } from 'nedux';
170 |
171 | const loggerMiddleware = store =>
172 | // we subscribe to all modifications
173 | store.subscribe('', value => console.log(value));
174 |
175 | const store = createStore(
176 | {
177 | a: 0,
178 | b: 'b',
179 | },
180 | [loggerMiddleware],
181 | );
182 |
183 | store.set('b', 'a');
184 | store.set('a', 1);
185 | store.set('a', a => a * 2);
186 | store.set('b', 'not b');
187 | ```
188 |
189 | ## 🏗 Advised Structure
190 |
191 | > It usually a good idea to keep the store as small as possible. You can manage your application by structure it as services. Each service will have its own store _(if it's needed)_
192 |
193 | ```bash
194 | my-service
195 | ├── components # Your components.
196 | │ ├── AddTodo.tsx
197 | │ ├── App.tsx
198 | │ ├── FilterLink.tsx
199 | │ ├── Footer.tsx
200 | │ ├── Link.tsx
201 | │ ├── Todo.tsx
202 | │ └── TodoList.tsx
203 | ├── controler.ts # Where you wrap your business logic (link between api/store/ui)
204 | ├── index.tsx # Where you export elements to other services.
205 | ├── store.ts # Where the store is created with the initial state.
206 | └── types.ts # Where you put your service types.
207 | ```
208 |
209 | ## 🚀 Why choose `Nedux` over `Redux` ?
210 |
211 | - [x] No more actions
212 | - [x] No more dispatch
213 | - [x] No more reducers
214 | - [x] No more provider
215 | - [x] Fully functionnal usage
216 | - [x] Easiest to understand
217 | - [x] No "magical" effect _(all is traceable)_
218 | - [x] No need to use external tools to debug _(again all is traceable)_
219 | - [x] Easiest to learn
220 | - [x] Fully typed _(if you're coding in typescript you will ♥️ it !)_
221 | - [x] Less code to write
222 | - [x] Faster and lighter _(no [react context](https://reactjs.org/docs/context.html), no [HOC](https://reactjs.org/docs/higher-order-components.html))_
223 |
224 | > **You just write less to do the same.**
225 |
226 | ### 🥊 [Redux todos](https://github.com/reduxjs/redux/tree/master/examples/todos) VS [Nedux todos](./examples/todos) _(same code)_
227 |
228 | > Feel free to inspect the structure of both of them ([Redux](https://github.com/reduxjs/redux/tree/master/examples/todos) and [Nedux](./examples/todos)) and how Nedux is implemented.
229 |
230 | | | Redux | Nedux | Diff _(less is better)_ |
231 | | :-------------------: | :--------: | :-------: | :---------------------: |
232 | | number of files | `13` | `11` | `-15.4%` |
233 | | number of lines | `224` | `174` | `-22.3%` |
234 | | number of characters | `4343` | `3298` | `-24.0%` |
235 | | time for first render | `~10.5 ms` | `~8.5 ms` | `-23.5%` |
236 | | add todo | `~0.8 ms` | `~0.6 ms` | `-33.3%` |
237 |
238 | ### 🥊 [Redux Counter](./examples/counter) VS [Nedux Counter](./examples/counter) _(same code)_
239 |
240 | > Again feel free to test it yourself [here](https://codesandbox.io/s/counter-nedux-vs-redux-n34b2?fontsize=14&hidenavigation=1&theme=dark&view=preview).
241 |
242 | | Render time | Redux | Nedux | Diff _(less is better)_ |
243 | | :---------------: | :------: | :------: | :---------------------: |
244 | | with _9999_ items | `0.743s` | `0.481s` | `-35.3%` |
245 |
246 | ### 🏗 Structure
247 |
248 | ```bash
249 | # Redux Todos
250 | ├── actions
251 | │ └── index.js
252 | ├── components
253 | │ ├── App.js
254 | │ ├── Footer.js
255 | │ ├── Link.js
256 | │ ├── Todo.js
257 | │ └── TodoList.js
258 | ├── containers
259 | │ ├── AddTodo.js
260 | │ ├── FilterLink.js
261 | │ └── VisibleTodoList.js
262 | ├── index.js
263 | └── reducers
264 | ├── index.js
265 | ├── todos.js
266 | └── visibilityFilter.js
267 | ```
268 |
269 | ```bash
270 | # Nedux Todos
271 | ├── components
272 | │ ├── AddTodo.tsx
273 | │ ├── App.tsx
274 | │ ├── FilterLink.tsx
275 | │ ├── Footer.tsx
276 | │ ├── Link.tsx
277 | │ ├── Todo.tsx
278 | │ └── TodoList.tsx
279 | ├── controler.ts
280 | ├── index.tsx
281 | ├── store.ts
282 | └── types.ts
283 | ```
284 |
285 | ### 🧩 Scripts used
286 |
287 | ```bash
288 | # Compute number of files
289 | find $SRC_FOLDER -type f | wc -l
290 |
291 | # Compute number of lines
292 | find $SRC_FOLDER -type f -exec cat {} \; | grep -v -e '^$' | grep -v -e '^//' | wc -l
293 |
294 | # Compute number of characters
295 | find $SRC_FOLDER -type f -exec cat {} \; | grep -v -e '^$' | grep -v -e '^//' | tr -d '[:space:] ' | wc -c
296 | ```
297 |
298 | ### 🔎 Profiling method
299 |
300 | Profiling is made with [React Profiling](https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html) following this configuration :
301 |
302 | | | |
303 | | :--------------------: | :-----------------------------: |
304 | | **Navigator** | Chrome _78.0.3904.108 (64-bit)_ |
305 | | **Profiling Software** | React Developer Tools _4.2.1_ |
306 | | **OS** | MacOS Catalina _10.15.1_ |
307 | | **Model** | MacBook Pro (15-inch, 2018) |
308 | | **Processor** | 2.2 GHz 6-Core Intel Core i7 |
309 | | **Memory** | 16 GB 2400 MHz DDR4 |
310 | | **Graphic** | Intel UHD Graphics 630 1536 MB |
311 |
312 | ## 📋 Todos
313 |
314 | - [x] Add sandbox for each examples
315 | - [ ] Add tests
316 | - [ ] Be more accurate on performance comparison
317 | - [ ] Add more examples
318 | - [ ] Type cleaning
319 | - [ ] Add CI
320 | - [ ] Add VueJS connector
321 | - [ ] Add Angular connector
322 |
323 | ## 🙋🏼 Contributions
324 |
325 | All [Pull Requests](https://github.com/lucasmrdt/nedux/compare?expand=1), [Issues](https://github.com/lucasmrdt/nedux/issues) and [Discussions](https://github.com/lucasmrdt/nedux/issues) are welcomed !
326 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/README.md:
--------------------------------------------------------------------------------
1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2 |
3 | ## Available Scripts
4 |
5 | In the project directory, you can run:
6 |
7 | ### `npm start`
8 |
9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11 |
12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console.
14 |
15 | ### `npm test`
16 |
17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19 |
20 | ### `npm run build`
21 |
22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance.
24 |
25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed!
27 |
28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29 |
30 | ### `npm run eject`
31 |
32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33 |
34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35 |
36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37 |
38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39 |
40 | ## Learn More
41 |
42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43 |
44 | To learn React, check out the [React documentation](https://reactjs.org/).
45 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "todos",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "nedux": "file:../..",
7 | "react": "^16.12.0",
8 | "react-dom": "^16.12.0",
9 | "react-nedux": ">=1.0.4",
10 | "react-redux": "^7.1.3",
11 | "react-scripts": "3.3.0",
12 | "scheduler": "^0.18.0",
13 | "typescript": "^3.7.3"
14 | },
15 | "devDependencies": {
16 | "@testing-library/jest-dom": "^4.2.4",
17 | "@testing-library/react": "^9.3.2",
18 | "@testing-library/user-event": "^7.1.2",
19 | "@types/jest": "^24.0.23",
20 | "@types/node": "^12.12.14",
21 | "@types/react": "^16.9.15",
22 | "@types/react-dom": "^16.9.4",
23 | "@types/react-redux": "^7.1.5"
24 | },
25 | "scripts": {
26 | "start": "react-scripts start",
27 | "build": "react-scripts build",
28 | "test": "react-scripts test",
29 | "eject": "react-scripts eject"
30 | },
31 | "eslintConfig": {
32 | "extends": "react-app"
33 | },
34 | "browserslist": {
35 | "production": [
36 | ">0.2%",
37 | "not dead",
38 | "not op_mini all"
39 | ],
40 | "development": [
41 | "last 1 chrome version",
42 | "last 1 firefox version",
43 | "last 1 safari version"
44 | ]
45 | }
46 | }
47 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lucasmrdt/nedux/17ef1bee32b7717befde97479edc081050dcf6ab/examples/counter-nedux-vs-redux/public/favicon.ico
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lucasmrdt/nedux/17ef1bee32b7717befde97479edc081050dcf6ab/examples/counter-nedux-vs-redux/public/logo192.png
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lucasmrdt/nedux/17ef1bee32b7717befde97479edc081050dcf6ab/examples/counter-nedux-vs-redux/public/logo512.png
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/src/index.css:
--------------------------------------------------------------------------------
1 | .container {
2 | display: flex;
3 | }
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/src/index.tsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from 'react';
2 | import { render } from 'react-dom';
3 | import Redux from './redux';
4 | import Nedux from './nedux';
5 |
6 | import './index.css';
7 |
8 | const App = () => {
9 | const [nb, setNb] = useState(100);
10 |
11 | return (
12 |
13 |
setNb(parseInt(e.currentTarget.value))}
19 | />
20 |
21 |
22 |
23 |
24 |
25 | );
26 | };
27 |
28 | render(, document.getElementById('root'));
29 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/src/nedux.tsx:
--------------------------------------------------------------------------------
1 | import React, { useCallback } from 'react';
2 | import { createStore } from 'nedux';
3 | import { createStoreHook } from 'react-nedux';
4 |
5 | type Store = {
6 | counter: number;
7 | };
8 |
9 | const store = createStore({
10 | counter: 0,
11 | });
12 |
13 | const useStore = createStoreHook(store);
14 |
15 | let timer = 0;
16 |
17 | const NeduxCounter = () => {
18 | const [counter, setCounter] = useStore('counter');
19 |
20 | const increment = useCallback(() => {
21 | timer = Date.now();
22 | setCounter(prev => prev + 1);
23 | }, [setCounter]);
24 | const decrement = useCallback(() => {
25 | timer = Date.now();
26 | setCounter(prev => prev - 1);
27 | }, [setCounter]);
28 |
29 | return (
30 |
31 | you've clicked {counter} times
32 |
33 |
34 | {timer && render time {(Date.now() - timer) / 1000}s
}
35 |
36 | );
37 | };
38 |
39 | type Props = {
40 | nb: number;
41 | };
42 |
43 | const Nedux = ({ nb }: Props) => (
44 |
45 |
nedux counter
46 | {[...Array(nb)].map((_, i) => (
47 |
48 | ))}
49 |
50 | );
51 |
52 | export default Nedux;
53 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/src/redux.tsx:
--------------------------------------------------------------------------------
1 | import React, { useCallback } from 'react';
2 | import { createStore, Action, Dispatch } from 'redux';
3 | import { connect, Provider } from 'react-redux';
4 |
5 | enum ActionType {
6 | INCREMENT,
7 | DECREMENT,
8 | }
9 |
10 | const increment: Action = { type: ActionType.INCREMENT };
11 | const decrement: Action = { type: ActionType.DECREMENT };
12 |
13 | type State = {
14 | counter: number;
15 | };
16 |
17 | const reducer = (state: State = { counter: 0 }, action: any): State => {
18 | switch (action.type as ActionType) {
19 | case ActionType.INCREMENT:
20 | return { ...state, counter: state.counter + 1 };
21 | case ActionType.DECREMENT:
22 | return { ...state, counter: state.counter - 1 };
23 | default:
24 | return state;
25 | }
26 | };
27 |
28 | export const store = createStore(reducer);
29 |
30 | type StateProps = {
31 | counter: number;
32 | };
33 |
34 | type DispatchProps = {
35 | increment: () => void;
36 | decrement: () => void;
37 | };
38 |
39 | let timer = 0;
40 |
41 | const ReduxCounter = ({
42 | increment,
43 | decrement,
44 | counter,
45 | }: StateProps & DispatchProps) => {
46 | const onIncrement = useCallback(() => {
47 | timer = Date.now();
48 | increment();
49 | }, [increment]);
50 |
51 | const onDecrement = useCallback(() => {
52 | timer = Date.now();
53 | decrement();
54 | }, [decrement]);
55 |
56 | return (
57 |
58 | you've clicked {counter} times
59 |
60 |
61 | {timer && render time {(Date.now() - timer) / 1000}s
}
62 |
63 | );
64 | };
65 |
66 | const mapStateToProps = (state: State): StateProps => ({
67 | counter: state.counter,
68 | });
69 |
70 | const mapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({
71 | decrement: () => dispatch(decrement),
72 | increment: () => dispatch(increment),
73 | });
74 |
75 | const ConnectedCounter = connect(
76 | mapStateToProps,
77 | mapDispatchToProps,
78 | )(ReduxCounter);
79 |
80 | type Props = {
81 | nb: number;
82 | };
83 |
84 | const Redux = ({ nb }: Props) => (
85 |
86 |
87 |
redux counter
88 | {[...Array(nb)].map((_, i) => (
89 |
90 | ))}
91 |
92 |
93 | );
94 |
95 | export default Redux;
96 |
--------------------------------------------------------------------------------
/examples/counter-nedux-vs-redux/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": [
5 | "dom",
6 | "dom.iterable",
7 | "esnext"
8 | ],
9 | "allowJs": true,
10 | "skipLibCheck": true,
11 | "esModuleInterop": true,
12 | "allowSyntheticDefaultImports": true,
13 | "strict": true,
14 | "forceConsistentCasingInFileNames": true,
15 | "module": "esnext",
16 | "moduleResolution": "node",
17 | "resolveJsonModule": true,
18 | "isolatedModules": true,
19 | "noEmit": true,
20 | "jsx": "react",
21 | },
22 | "include": [
23 | "src"
24 | ]
25 | }
--------------------------------------------------------------------------------
/examples/logger-middleware/index.ts:
--------------------------------------------------------------------------------
1 | import { createStore, Middleware } from 'nedux';
2 |
3 | const createLoggerMiddleware = (
4 | keys: K[],
5 | ): Middleware => store => {
6 | keys.forEach(key =>
7 | store.subscribe(key as any, {
8 | next: newValue =>
9 | console.log(`value of ${key} has changed by ${newValue}`),
10 | }),
11 | );
12 | };
13 |
14 | const store = createStore(
15 | {
16 | a: 0,
17 | b: 'b',
18 | },
19 | [createLoggerMiddleware(['a'])],
20 | );
21 |
22 | store.set('b', 'a');
23 | store.set('a', 1);
24 | store.set('a', a => a * 2);
25 | store.set('b', 'not b');
26 |
--------------------------------------------------------------------------------
/examples/logger-middleware/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "middleware",
3 | "version": "1.0.0",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "nedux": {
8 | "version": "file:../..",
9 | "requires": {
10 | "rxjs": "^6.5.3"
11 | },
12 | "dependencies": {
13 | "@types/prop-types": {
14 | "version": "15.7.3",
15 | "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz",
16 | "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw=="
17 | },
18 | "@types/react": {
19 | "version": "16.9.15",
20 | "resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.15.tgz",
21 | "integrity": "sha512-WsmM1b6xQn1tG3X2Hx4F3bZwc2E82pJXt5OPs2YJgg71IzvUoKOSSSYOvLXYCg1ttipM+UuA4Lj3sfvqjVxyZw==",
22 | "requires": {
23 | "@types/prop-types": "*",
24 | "csstype": "^2.2.0"
25 | }
26 | },
27 | "ansi-escapes": {
28 | "version": "3.2.0",
29 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz",
30 | "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ=="
31 | },
32 | "ansi-regex": {
33 | "version": "3.0.0",
34 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz",
35 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg="
36 | },
37 | "ansi-styles": {
38 | "version": "3.2.1",
39 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
40 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
41 | "requires": {
42 | "color-convert": "^1.9.0"
43 | }
44 | },
45 | "balanced-match": {
46 | "version": "1.0.0",
47 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
48 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c="
49 | },
50 | "block-stream": {
51 | "version": "0.0.9",
52 | "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
53 | "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
54 | "requires": {
55 | "inherits": "~2.0.0"
56 | }
57 | },
58 | "brace-expansion": {
59 | "version": "1.1.11",
60 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
61 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
62 | "requires": {
63 | "balanced-match": "^1.0.0",
64 | "concat-map": "0.0.1"
65 | }
66 | },
67 | "buffer-from": {
68 | "version": "0.1.2",
69 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-0.1.2.tgz",
70 | "integrity": "sha512-RiWIenusJsmI2KcvqQABB83tLxCByE3upSP8QU3rJDMVFGPWLvPQJt/O1Su9moRWeH7d+Q2HYb68f6+v+tw2vg=="
71 | },
72 | "builtins": {
73 | "version": "1.0.3",
74 | "resolved": "https://registry.npmjs.org/builtins/-/builtins-1.0.3.tgz",
75 | "integrity": "sha1-y5T662HIaWRR2zZTThQi+U8K7og="
76 | },
77 | "chalk": {
78 | "version": "2.4.2",
79 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
80 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
81 | "requires": {
82 | "ansi-styles": "^3.2.1",
83 | "escape-string-regexp": "^1.0.5",
84 | "supports-color": "^5.3.0"
85 | }
86 | },
87 | "chardet": {
88 | "version": "0.7.0",
89 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
90 | "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="
91 | },
92 | "cli-cursor": {
93 | "version": "2.1.0",
94 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz",
95 | "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=",
96 | "requires": {
97 | "restore-cursor": "^2.0.0"
98 | }
99 | },
100 | "cli-width": {
101 | "version": "2.2.0",
102 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz",
103 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk="
104 | },
105 | "color-convert": {
106 | "version": "1.9.3",
107 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
108 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
109 | "requires": {
110 | "color-name": "1.1.3"
111 | }
112 | },
113 | "color-name": {
114 | "version": "1.1.3",
115 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
116 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
117 | },
118 | "commander": {
119 | "version": "2.20.0",
120 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
121 | "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ=="
122 | },
123 | "concat-map": {
124 | "version": "0.0.1",
125 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
126 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
127 | },
128 | "core-util-is": {
129 | "version": "1.0.2",
130 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
131 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
132 | },
133 | "create-react-app": {
134 | "version": "3.3.0",
135 | "resolved": "https://registry.npmjs.org/create-react-app/-/create-react-app-3.3.0.tgz",
136 | "integrity": "sha512-yheXb68YkLCHD+INCHB4f8/3hyet4psVpSyieiPHemIbGbbYl085n22vECIRcjoF043qyP70Cg4WWBiSIx1mWw==",
137 | "requires": {
138 | "chalk": "2.4.2",
139 | "commander": "2.20.0",
140 | "cross-spawn": "6.0.5",
141 | "envinfo": "7.5.0",
142 | "fs-extra": "7.0.1",
143 | "hyperquest": "2.1.3",
144 | "inquirer": "6.5.0",
145 | "semver": "6.3.0",
146 | "tar-pack": "3.4.1",
147 | "tmp": "0.0.33",
148 | "validate-npm-package-name": "3.0.0"
149 | }
150 | },
151 | "cross-spawn": {
152 | "version": "6.0.5",
153 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
154 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
155 | "requires": {
156 | "nice-try": "^1.0.4",
157 | "path-key": "^2.0.1",
158 | "semver": "^5.5.0",
159 | "shebang-command": "^1.2.0",
160 | "which": "^1.2.9"
161 | },
162 | "dependencies": {
163 | "semver": {
164 | "version": "5.7.1",
165 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
166 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
167 | }
168 | }
169 | },
170 | "csstype": {
171 | "version": "2.6.7",
172 | "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.7.tgz",
173 | "integrity": "sha512-9Mcn9sFbGBAdmimWb2gLVDtFJzeKtDGIr76TUqmjZrw9LFXBMSU70lcs+C0/7fyCd6iBDqmksUcCOUIkisPHsQ=="
174 | },
175 | "debug": {
176 | "version": "2.6.9",
177 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
178 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
179 | "requires": {
180 | "ms": "2.0.0"
181 | }
182 | },
183 | "duplexer2": {
184 | "version": "0.0.2",
185 | "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz",
186 | "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=",
187 | "requires": {
188 | "readable-stream": "~1.1.9"
189 | }
190 | },
191 | "envinfo": {
192 | "version": "7.5.0",
193 | "resolved": "https://registry.npmjs.org/envinfo/-/envinfo-7.5.0.tgz",
194 | "integrity": "sha512-jDgnJaF/Btomk+m3PZDTTCb5XIIIX3zYItnCRfF73zVgvinLoRomuhi75Y4su0PtQxWz4v66XnLLckyvyJTOIQ=="
195 | },
196 | "escape-string-regexp": {
197 | "version": "1.0.5",
198 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
199 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
200 | },
201 | "external-editor": {
202 | "version": "3.1.0",
203 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz",
204 | "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==",
205 | "requires": {
206 | "chardet": "^0.7.0",
207 | "iconv-lite": "^0.4.24",
208 | "tmp": "^0.0.33"
209 | }
210 | },
211 | "figures": {
212 | "version": "2.0.0",
213 | "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz",
214 | "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=",
215 | "requires": {
216 | "escape-string-regexp": "^1.0.5"
217 | }
218 | },
219 | "fs-extra": {
220 | "version": "7.0.1",
221 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",
222 | "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
223 | "requires": {
224 | "graceful-fs": "^4.1.2",
225 | "jsonfile": "^4.0.0",
226 | "universalify": "^0.1.0"
227 | }
228 | },
229 | "fs.realpath": {
230 | "version": "1.0.0",
231 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
232 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8="
233 | },
234 | "fstream": {
235 | "version": "1.0.12",
236 | "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz",
237 | "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==",
238 | "requires": {
239 | "graceful-fs": "^4.1.2",
240 | "inherits": "~2.0.0",
241 | "mkdirp": ">=0.5 0",
242 | "rimraf": "2"
243 | }
244 | },
245 | "fstream-ignore": {
246 | "version": "1.0.5",
247 | "resolved": "https://registry.npmjs.org/fstream-ignore/-/fstream-ignore-1.0.5.tgz",
248 | "integrity": "sha1-nDHa40dnAY/h0kmyTa2mfQktoQU=",
249 | "requires": {
250 | "fstream": "^1.0.0",
251 | "inherits": "2",
252 | "minimatch": "^3.0.0"
253 | }
254 | },
255 | "glob": {
256 | "version": "7.1.6",
257 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
258 | "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
259 | "requires": {
260 | "fs.realpath": "^1.0.0",
261 | "inflight": "^1.0.4",
262 | "inherits": "2",
263 | "minimatch": "^3.0.4",
264 | "once": "^1.3.0",
265 | "path-is-absolute": "^1.0.0"
266 | }
267 | },
268 | "graceful-fs": {
269 | "version": "4.2.3",
270 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
271 | "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ=="
272 | },
273 | "has-flag": {
274 | "version": "3.0.0",
275 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
276 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0="
277 | },
278 | "hyperquest": {
279 | "version": "2.1.3",
280 | "resolved": "https://registry.npmjs.org/hyperquest/-/hyperquest-2.1.3.tgz",
281 | "integrity": "sha512-fUuDOrB47PqNK/BAMOS13v41UoaqIxqSLHX6CAbOD7OfT+/GCWO1/vPLfTNutOeXrv1ikuaZ3yux+33Z9vh+rw==",
282 | "requires": {
283 | "buffer-from": "^0.1.1",
284 | "duplexer2": "~0.0.2",
285 | "through2": "~0.6.3"
286 | }
287 | },
288 | "iconv-lite": {
289 | "version": "0.4.24",
290 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
291 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
292 | "requires": {
293 | "safer-buffer": ">= 2.1.2 < 3"
294 | }
295 | },
296 | "inflight": {
297 | "version": "1.0.6",
298 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
299 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
300 | "requires": {
301 | "once": "^1.3.0",
302 | "wrappy": "1"
303 | }
304 | },
305 | "inherits": {
306 | "version": "2.0.4",
307 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
308 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
309 | },
310 | "inquirer": {
311 | "version": "6.5.0",
312 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.0.tgz",
313 | "integrity": "sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA==",
314 | "requires": {
315 | "ansi-escapes": "^3.2.0",
316 | "chalk": "^2.4.2",
317 | "cli-cursor": "^2.1.0",
318 | "cli-width": "^2.0.0",
319 | "external-editor": "^3.0.3",
320 | "figures": "^2.0.0",
321 | "lodash": "^4.17.12",
322 | "mute-stream": "0.0.7",
323 | "run-async": "^2.2.0",
324 | "rxjs": "^6.4.0",
325 | "string-width": "^2.1.0",
326 | "strip-ansi": "^5.1.0",
327 | "through": "^2.3.6"
328 | }
329 | },
330 | "is-fullwidth-code-point": {
331 | "version": "2.0.0",
332 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
333 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8="
334 | },
335 | "is-promise": {
336 | "version": "2.1.0",
337 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz",
338 | "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o="
339 | },
340 | "isarray": {
341 | "version": "0.0.1",
342 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
343 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8="
344 | },
345 | "isexe": {
346 | "version": "2.0.0",
347 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
348 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA="
349 | },
350 | "jsonfile": {
351 | "version": "4.0.0",
352 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
353 | "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
354 | "requires": {
355 | "graceful-fs": "^4.1.6"
356 | }
357 | },
358 | "lodash": {
359 | "version": "4.17.15",
360 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
361 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A=="
362 | },
363 | "mimic-fn": {
364 | "version": "1.2.0",
365 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
366 | "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ=="
367 | },
368 | "minimatch": {
369 | "version": "3.0.4",
370 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
371 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
372 | "requires": {
373 | "brace-expansion": "^1.1.7"
374 | }
375 | },
376 | "minimist": {
377 | "version": "0.0.8",
378 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
379 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0="
380 | },
381 | "mkdirp": {
382 | "version": "0.5.1",
383 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
384 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
385 | "requires": {
386 | "minimist": "0.0.8"
387 | }
388 | },
389 | "ms": {
390 | "version": "2.0.0",
391 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
392 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
393 | },
394 | "mute-stream": {
395 | "version": "0.0.7",
396 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz",
397 | "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s="
398 | },
399 | "nice-try": {
400 | "version": "1.0.5",
401 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
402 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="
403 | },
404 | "once": {
405 | "version": "1.4.0",
406 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
407 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
408 | "requires": {
409 | "wrappy": "1"
410 | }
411 | },
412 | "onetime": {
413 | "version": "2.0.1",
414 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz",
415 | "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=",
416 | "requires": {
417 | "mimic-fn": "^1.0.0"
418 | }
419 | },
420 | "os-tmpdir": {
421 | "version": "1.0.2",
422 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
423 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
424 | },
425 | "path-is-absolute": {
426 | "version": "1.0.1",
427 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
428 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18="
429 | },
430 | "path-key": {
431 | "version": "2.0.1",
432 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
433 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A="
434 | },
435 | "process-nextick-args": {
436 | "version": "2.0.1",
437 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
438 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="
439 | },
440 | "readable-stream": {
441 | "version": "1.1.14",
442 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
443 | "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
444 | "requires": {
445 | "core-util-is": "~1.0.0",
446 | "inherits": "~2.0.1",
447 | "isarray": "0.0.1",
448 | "string_decoder": "~0.10.x"
449 | }
450 | },
451 | "restore-cursor": {
452 | "version": "2.0.0",
453 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz",
454 | "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=",
455 | "requires": {
456 | "onetime": "^2.0.0",
457 | "signal-exit": "^3.0.2"
458 | }
459 | },
460 | "rimraf": {
461 | "version": "2.7.1",
462 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
463 | "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
464 | "requires": {
465 | "glob": "^7.1.3"
466 | }
467 | },
468 | "run-async": {
469 | "version": "2.3.0",
470 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz",
471 | "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=",
472 | "requires": {
473 | "is-promise": "^2.1.0"
474 | }
475 | },
476 | "rxjs": {
477 | "version": "6.5.3",
478 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.3.tgz",
479 | "integrity": "sha512-wuYsAYYFdWTAnAaPoKGNhfpWwKZbJW+HgAJ+mImp+Epl7BG8oNWBCTyRM8gba9k4lk8BgWdoYm21Mo/RYhhbgA==",
480 | "requires": {
481 | "tslib": "^1.9.0"
482 | }
483 | },
484 | "safe-buffer": {
485 | "version": "5.1.2",
486 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
487 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
488 | },
489 | "safer-buffer": {
490 | "version": "2.1.2",
491 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
492 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
493 | },
494 | "semver": {
495 | "version": "6.3.0",
496 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
497 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="
498 | },
499 | "shebang-command": {
500 | "version": "1.2.0",
501 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
502 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
503 | "requires": {
504 | "shebang-regex": "^1.0.0"
505 | }
506 | },
507 | "shebang-regex": {
508 | "version": "1.0.0",
509 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
510 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM="
511 | },
512 | "signal-exit": {
513 | "version": "3.0.2",
514 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
515 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0="
516 | },
517 | "string-width": {
518 | "version": "2.1.1",
519 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
520 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
521 | "requires": {
522 | "is-fullwidth-code-point": "^2.0.0",
523 | "strip-ansi": "^4.0.0"
524 | },
525 | "dependencies": {
526 | "strip-ansi": {
527 | "version": "4.0.0",
528 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
529 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
530 | "requires": {
531 | "ansi-regex": "^3.0.0"
532 | }
533 | }
534 | }
535 | },
536 | "string_decoder": {
537 | "version": "0.10.31",
538 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
539 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
540 | },
541 | "strip-ansi": {
542 | "version": "5.2.0",
543 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
544 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
545 | "requires": {
546 | "ansi-regex": "^4.1.0"
547 | },
548 | "dependencies": {
549 | "ansi-regex": {
550 | "version": "4.1.0",
551 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
552 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg=="
553 | }
554 | }
555 | },
556 | "supports-color": {
557 | "version": "5.5.0",
558 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
559 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
560 | "requires": {
561 | "has-flag": "^3.0.0"
562 | }
563 | },
564 | "tar": {
565 | "version": "2.2.2",
566 | "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.2.tgz",
567 | "integrity": "sha512-FCEhQ/4rE1zYv9rYXJw/msRqsnmlje5jHP6huWeBZ704jUTy02c5AZyWujpMR1ax6mVw9NyJMfuK2CMDWVIfgA==",
568 | "requires": {
569 | "block-stream": "*",
570 | "fstream": "^1.0.12",
571 | "inherits": "2"
572 | }
573 | },
574 | "tar-pack": {
575 | "version": "3.4.1",
576 | "resolved": "https://registry.npmjs.org/tar-pack/-/tar-pack-3.4.1.tgz",
577 | "integrity": "sha512-PPRybI9+jM5tjtCbN2cxmmRU7YmqT3Zv/UDy48tAh2XRkLa9bAORtSWLkVc13+GJF+cdTh1yEnHEk3cpTaL5Kg==",
578 | "requires": {
579 | "debug": "^2.2.0",
580 | "fstream": "^1.0.10",
581 | "fstream-ignore": "^1.0.5",
582 | "once": "^1.3.3",
583 | "readable-stream": "^2.1.4",
584 | "rimraf": "^2.5.1",
585 | "tar": "^2.2.1",
586 | "uid-number": "^0.0.6"
587 | },
588 | "dependencies": {
589 | "isarray": {
590 | "version": "1.0.0",
591 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
592 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE="
593 | },
594 | "readable-stream": {
595 | "version": "2.3.6",
596 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
597 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
598 | "requires": {
599 | "core-util-is": "~1.0.0",
600 | "inherits": "~2.0.3",
601 | "isarray": "~1.0.0",
602 | "process-nextick-args": "~2.0.0",
603 | "safe-buffer": "~5.1.1",
604 | "string_decoder": "~1.1.1",
605 | "util-deprecate": "~1.0.1"
606 | }
607 | },
608 | "string_decoder": {
609 | "version": "1.1.1",
610 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
611 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
612 | "requires": {
613 | "safe-buffer": "~5.1.0"
614 | }
615 | }
616 | }
617 | },
618 | "through": {
619 | "version": "2.3.8",
620 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
621 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="
622 | },
623 | "through2": {
624 | "version": "0.6.5",
625 | "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz",
626 | "integrity": "sha1-QaucZ7KdVyCQcUEOHXp6lozTrUg=",
627 | "requires": {
628 | "readable-stream": ">=1.0.33-1 <1.1.0-0",
629 | "xtend": ">=4.0.0 <4.1.0-0"
630 | },
631 | "dependencies": {
632 | "readable-stream": {
633 | "version": "1.0.34",
634 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
635 | "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
636 | "requires": {
637 | "core-util-is": "~1.0.0",
638 | "inherits": "~2.0.1",
639 | "isarray": "0.0.1",
640 | "string_decoder": "~0.10.x"
641 | }
642 | }
643 | }
644 | },
645 | "tmp": {
646 | "version": "0.0.33",
647 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
648 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
649 | "requires": {
650 | "os-tmpdir": "~1.0.2"
651 | }
652 | },
653 | "tslib": {
654 | "version": "1.10.0",
655 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
656 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ=="
657 | },
658 | "typescript": {
659 | "version": "3.7.3",
660 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz",
661 | "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw=="
662 | },
663 | "uid-number": {
664 | "version": "0.0.6",
665 | "resolved": "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz",
666 | "integrity": "sha1-DqEOgDXo61uOREnwbaHHMGY7qoE="
667 | },
668 | "universalify": {
669 | "version": "0.1.2",
670 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
671 | "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg=="
672 | },
673 | "util-deprecate": {
674 | "version": "1.0.2",
675 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
676 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
677 | },
678 | "validate-npm-package-name": {
679 | "version": "3.0.0",
680 | "resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-3.0.0.tgz",
681 | "integrity": "sha1-X6kS2B630MdK/BQN5zF/DKffQ34=",
682 | "requires": {
683 | "builtins": "^1.0.3"
684 | }
685 | },
686 | "which": {
687 | "version": "1.3.1",
688 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
689 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
690 | "requires": {
691 | "isexe": "^2.0.0"
692 | }
693 | },
694 | "wrappy": {
695 | "version": "1.0.2",
696 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
697 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
698 | },
699 | "xtend": {
700 | "version": "4.0.2",
701 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
702 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="
703 | }
704 | }
705 | },
706 | "typescript": {
707 | "version": "3.7.3",
708 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz",
709 | "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw==",
710 | "dev": true
711 | }
712 | }
713 | }
714 |
--------------------------------------------------------------------------------
/examples/logger-middleware/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "middleware",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "start": "tsc && node dist/index.js"
9 | },
10 | "keywords": [],
11 | "author": "",
12 | "license": "ISC",
13 | "dependencies": {
14 | "nedux": "file:../.."
15 | },
16 | "devDependencies": {
17 | "typescript": "^3.7.3"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/examples/logger-middleware/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | /* Basic Options */
4 | // "incremental": true, /* Enable incremental compilation */
5 | // "target": "ES5",
6 | /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
7 | "module": "UMD",
8 | /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
9 | "lib": ["es2015", "es2016", "DOM"],
10 | // "allowJs": true, /* Allow javascript files to be compiled. */
11 | // "checkJs": true, /* Report errors in .js files. */
12 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
13 | // "declaration": true, /* Generates corresponding '.d.ts' file. */
14 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15 | // "sourceMap": true, /* Generates corresponding '.map' file. */
16 | // "outFile": "./", /* Concatenate and emit output to single file. */
17 | "outDir": "./dist",
18 | /* Redirect output structure to the directory. */
19 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
20 | // "composite": true, /* Enable project compilation */
21 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
22 | // "removeComments": true, /* Do not emit comments to output. */
23 | // "noEmit": true, /* Do not emit outputs. */
24 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */
25 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
26 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
27 |
28 | /* Strict Type-Checking Options */
29 | "strict": true,
30 | /* Enable all strict type-checking options. */
31 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
32 | // "strictNullChecks": true, /* Enable strict null checks. */
33 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */
34 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
35 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
36 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
37 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
38 |
39 | /* Additional Checks */
40 | // "noUnusedLocals": true, /* Report errors on unused locals. */
41 | // "noUnusedParameters": true, /* Report errors on unused parameters. */
42 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
43 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
44 |
45 | /* Module Resolution Options */
46 | "moduleResolution": "node",
47 | /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
48 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
49 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
50 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
51 | // "typeRoots": [], /* List of folders to include type definitions from. */
52 | // "types": [], /* Type declaration files to be included in compilation. */
53 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
54 | "esModuleInterop": true,
55 | /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
56 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
57 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
58 |
59 | /* Source Map Options */
60 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
61 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
62 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
63 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
64 |
65 | /* Experimental Options */
66 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
67 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
68 |
69 | /* Advanced Options */
70 | "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
71 | }
72 | }
--------------------------------------------------------------------------------
/examples/todos/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/examples/todos/README.md:
--------------------------------------------------------------------------------
1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2 |
3 | ## Available Scripts
4 |
5 | In the project directory, you can run:
6 |
7 | ### `npm start`
8 |
9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11 |
12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console.
14 |
15 | ### `npm test`
16 |
17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19 |
20 | ### `npm run build`
21 |
22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance.
24 |
25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed!
27 |
28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29 |
30 | ### `npm run eject`
31 |
32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33 |
34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35 |
36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37 |
38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39 |
40 | ## Learn More
41 |
42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43 |
44 | To learn React, check out the [React documentation](https://reactjs.org/).
45 |
--------------------------------------------------------------------------------
/examples/todos/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "todos",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "nedux": "file:../..",
7 | "react": "^16.12.0",
8 | "react-dom": "^16.12.0",
9 | "react-nedux": "^1.0.4",
10 | "react-scripts": "3.3.0",
11 | "scheduler": "^0.18.0",
12 | "typescript": "^3.7.3"
13 | },
14 | "devDependencies": {
15 | "@testing-library/jest-dom": "^4.2.4",
16 | "@testing-library/react": "^9.3.2",
17 | "@testing-library/user-event": "^7.1.2",
18 | "@types/jest": "^24.0.23",
19 | "@types/node": "^12.12.14",
20 | "@types/react": "^16.9.15",
21 | "@types/react-dom": "^16.9.4"
22 | },
23 | "scripts": {
24 | "start": "react-scripts start",
25 | "build": "react-scripts build",
26 | "test": "react-scripts test",
27 | "eject": "react-scripts eject"
28 | },
29 | "eslintConfig": {
30 | "extends": "react-app"
31 | },
32 | "browserslist": {
33 | "production": [
34 | ">0.2%",
35 | "not dead",
36 | "not op_mini all"
37 | ],
38 | "development": [
39 | "last 1 chrome version",
40 | "last 1 firefox version",
41 | "last 1 safari version"
42 | ]
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/examples/todos/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lucasmrdt/nedux/17ef1bee32b7717befde97479edc081050dcf6ab/examples/todos/public/favicon.ico
--------------------------------------------------------------------------------
/examples/todos/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 |
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/examples/todos/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lucasmrdt/nedux/17ef1bee32b7717befde97479edc081050dcf6ab/examples/todos/public/logo192.png
--------------------------------------------------------------------------------
/examples/todos/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/lucasmrdt/nedux/17ef1bee32b7717befde97479edc081050dcf6ab/examples/todos/public/logo512.png
--------------------------------------------------------------------------------
/examples/todos/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/examples/todos/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 |
--------------------------------------------------------------------------------
/examples/todos/src/components/AddTodo.tsx:
--------------------------------------------------------------------------------
1 | // @from https://github.com/reduxjs/redux/blob/master/examples/todos/src/containers/AddTodo.js
2 |
3 | import React from 'react';
4 | import { addTodo } from '../controler';
5 |
6 | const AddTodo = () => {
7 | let input: HTMLInputElement;
8 |
9 | return (
10 |
11 |
24 |
25 | );
26 | };
27 |
28 | export default AddTodo;
29 |
--------------------------------------------------------------------------------
/examples/todos/src/components/App.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import Footer from './Footer';
3 | import AddTodo from './AddTodo';
4 | import TodoList from './TodoList';
5 |
6 | const App = () => (
7 |
12 | );
13 |
14 | export default App;
15 |
--------------------------------------------------------------------------------
/examples/todos/src/components/FilterLink.tsx:
--------------------------------------------------------------------------------
1 | // @from https://github.com/reduxjs/redux/blob/master/examples/todos/src/containers/FilterLink.js
2 |
3 | import React from 'react';
4 | import { useTodo } from '../store';
5 | import Link from './Link';
6 |
7 | import { Filter } from '../types';
8 |
9 | type Props = {
10 | filter: Filter;
11 | children: any;
12 | };
13 |
14 | const FilterLink: React.FC = ({ filter, children }) => {
15 | const [activeFilter, setFilter] = useTodo('filter');
16 |
17 | return (
18 | setFilter(filter)}>
19 | {children}
20 |
21 | );
22 | };
23 |
24 | export default FilterLink;
25 |
--------------------------------------------------------------------------------
/examples/todos/src/components/Footer.tsx:
--------------------------------------------------------------------------------
1 | // @from https://github.com/reduxjs/redux/blob/master/examples/todos/src/components/Footer.js
2 |
3 | import React from 'react';
4 | import FilterLink from './FilterLink';
5 |
6 | import { Filter } from '../types';
7 |
8 | const Footer = () => (
9 |
10 | Show:
11 | All
12 | Active
13 | Completed
14 |
15 | );
16 |
17 | export default Footer;
18 |
--------------------------------------------------------------------------------
/examples/todos/src/components/Link.tsx:
--------------------------------------------------------------------------------
1 | // @from https://github.com/reduxjs/redux/blob/master/examples/todos/src/components/Link.js
2 |
3 | import React from 'react';
4 |
5 | type Props = {
6 | active: boolean;
7 | onClick: () => any;
8 | };
9 |
10 | const Link: React.FC = ({ active, children, onClick }) => (
11 |
20 | );
21 |
22 | export default Link;
23 |
--------------------------------------------------------------------------------
/examples/todos/src/components/Todo.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | type Props = {
4 | onClick: () => any;
5 | completed: boolean;
6 | text: string;
7 | };
8 |
9 | const Todo: React.FC = ({ onClick, completed, text }) => (
10 |
16 | {text}
17 |
18 | );
19 |
20 | export default Todo;
21 |
--------------------------------------------------------------------------------
/examples/todos/src/components/TodoList.tsx:
--------------------------------------------------------------------------------
1 | // @from https://github.com/reduxjs/redux/blob/master/examples/todos/src/containers/VisibleTodoList.js
2 |
3 | import React from 'react';
4 | import Todo from './Todo';
5 | import { toggleTodo } from '../controler';
6 | import { useTodo } from '../store';
7 |
8 | import { ITodo, Filter } from '../types';
9 |
10 | const getVisibleTodos = (todos: ITodo[], filter: Filter) => {
11 | switch (filter) {
12 | case Filter.ShowAll:
13 | return todos;
14 | case Filter.ShowCompleted:
15 | return todos.filter(t => t.completed);
16 | case Filter.ShowActive:
17 | return todos.filter(t => !t.completed);
18 | default:
19 | throw new Error('Unknown filter: ' + filter);
20 | }
21 | };
22 |
23 | const TodoList = () => {
24 | const [todos] = useTodo('todos');
25 | const [filter] = useTodo('filter');
26 | const visibleTodos = getVisibleTodos(todos, filter);
27 |
28 | return (
29 |
30 | {visibleTodos.map(todo => (
31 | toggleTodo(todo.id)} />
32 | ))}
33 |
34 | );
35 | };
36 |
37 | export default TodoList;
38 |
--------------------------------------------------------------------------------
/examples/todos/src/controler.ts:
--------------------------------------------------------------------------------
1 | import { todoStore } from './store';
2 |
3 | import { Filter } from './types';
4 |
5 | let id = 0;
6 |
7 | export const addTodo = (text: string) => {
8 | todoStore.set('todos', todos => [
9 | ...todos,
10 | { completed: false, id: id++, text },
11 | ]);
12 | };
13 |
14 | export const toggleTodo = (id: number) => {
15 | todoStore.set('todos', todos =>
16 | todos.map(todo => ({
17 | ...todo,
18 | completed: todo.id === id ? !todo.completed : todo.completed,
19 | })),
20 | );
21 | };
22 |
23 | export const setFilter = (filter: Filter) => {
24 | todoStore.set('filter', filter);
25 | };
26 |
--------------------------------------------------------------------------------
/examples/todos/src/index.tsx:
--------------------------------------------------------------------------------
1 | // @from https://github.com/reduxjs/redux/blob/master/examples/todos/src/index.js
2 |
3 | import React from 'react';
4 | import { render } from 'react-dom';
5 | import App from './components/App';
6 |
7 | render(, document.getElementById('root'));
8 |
--------------------------------------------------------------------------------
/examples/todos/src/store.ts:
--------------------------------------------------------------------------------
1 | import { createStore } from 'nedux';
2 | import { createStoreHook } from 'react-nedux';
3 | import { ITodo, Filter } from './types';
4 |
5 | export const todoStore = createStore({
6 | todos: [] as ITodo[],
7 | filter: Filter.ShowAll,
8 | });
9 |
10 | export const useTodo = createStoreHook(todoStore);
11 |
--------------------------------------------------------------------------------
/examples/todos/src/types.ts:
--------------------------------------------------------------------------------
1 | export interface ITodo {
2 | id: number;
3 | text: string;
4 | completed: boolean;
5 | }
6 |
7 | export enum Filter {
8 | ShowAll,
9 | ShowCompleted,
10 | ShowActive,
11 | }
12 |
--------------------------------------------------------------------------------
/examples/todos/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": [
5 | "dom",
6 | "dom.iterable",
7 | "esnext"
8 | ],
9 | "allowJs": true,
10 | "skipLibCheck": true,
11 | "esModuleInterop": true,
12 | "allowSyntheticDefaultImports": true,
13 | "strict": true,
14 | "forceConsistentCasingInFileNames": true,
15 | "module": "esnext",
16 | "moduleResolution": "node",
17 | "resolveJsonModule": true,
18 | "isolatedModules": true,
19 | "noEmit": true,
20 | "jsx": "react",
21 | },
22 | "include": [
23 | "src"
24 | ]
25 | }
--------------------------------------------------------------------------------
/package-lock.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nedux",
3 | "version": "1.0.23",
4 | "lockfileVersion": 1,
5 | "requires": true,
6 | "dependencies": {
7 | "@babel/code-frame": {
8 | "version": "7.5.5",
9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz",
10 | "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==",
11 | "dev": true,
12 | "requires": {
13 | "@babel/highlight": "^7.0.0"
14 | }
15 | },
16 | "@babel/core": {
17 | "version": "7.7.4",
18 | "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.7.4.tgz",
19 | "integrity": "sha512-+bYbx56j4nYBmpsWtnPUsKW3NdnYxbqyfrP2w9wILBuHzdfIKz9prieZK0DFPyIzkjYVUe4QkusGL07r5pXznQ==",
20 | "dev": true,
21 | "requires": {
22 | "@babel/code-frame": "^7.5.5",
23 | "@babel/generator": "^7.7.4",
24 | "@babel/helpers": "^7.7.4",
25 | "@babel/parser": "^7.7.4",
26 | "@babel/template": "^7.7.4",
27 | "@babel/traverse": "^7.7.4",
28 | "@babel/types": "^7.7.4",
29 | "convert-source-map": "^1.7.0",
30 | "debug": "^4.1.0",
31 | "json5": "^2.1.0",
32 | "lodash": "^4.17.13",
33 | "resolve": "^1.3.2",
34 | "semver": "^5.4.1",
35 | "source-map": "^0.5.0"
36 | },
37 | "dependencies": {
38 | "semver": {
39 | "version": "5.7.1",
40 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
41 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
42 | "dev": true
43 | },
44 | "source-map": {
45 | "version": "0.5.7",
46 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
47 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
48 | "dev": true
49 | }
50 | }
51 | },
52 | "@babel/generator": {
53 | "version": "7.7.4",
54 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.7.4.tgz",
55 | "integrity": "sha512-m5qo2WgdOJeyYngKImbkyQrnUN1mPceaG5BV+G0E3gWsa4l/jCSryWJdM2x8OuGAOyh+3d5pVYfZWCiNFtynxg==",
56 | "dev": true,
57 | "requires": {
58 | "@babel/types": "^7.7.4",
59 | "jsesc": "^2.5.1",
60 | "lodash": "^4.17.13",
61 | "source-map": "^0.5.0"
62 | },
63 | "dependencies": {
64 | "source-map": {
65 | "version": "0.5.7",
66 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",
67 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",
68 | "dev": true
69 | }
70 | }
71 | },
72 | "@babel/helper-annotate-as-pure": {
73 | "version": "7.7.4",
74 | "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.7.4.tgz",
75 | "integrity": "sha512-2BQmQgECKzYKFPpiycoF9tlb5HA4lrVyAmLLVK177EcQAqjVLciUb2/R+n1boQ9y5ENV3uz2ZqiNw7QMBBw1Og==",
76 | "dev": true,
77 | "requires": {
78 | "@babel/types": "^7.7.4"
79 | }
80 | },
81 | "@babel/helper-builder-binary-assignment-operator-visitor": {
82 | "version": "7.7.4",
83 | "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.7.4.tgz",
84 | "integrity": "sha512-Biq/d/WtvfftWZ9Uf39hbPBYDUo986m5Bb4zhkeYDGUllF43D+nUe5M6Vuo6/8JDK/0YX/uBdeoQpyaNhNugZQ==",
85 | "dev": true,
86 | "requires": {
87 | "@babel/helper-explode-assignable-expression": "^7.7.4",
88 | "@babel/types": "^7.7.4"
89 | }
90 | },
91 | "@babel/helper-call-delegate": {
92 | "version": "7.7.4",
93 | "resolved": "https://registry.npmjs.org/@babel/helper-call-delegate/-/helper-call-delegate-7.7.4.tgz",
94 | "integrity": "sha512-8JH9/B7J7tCYJ2PpWVpw9JhPuEVHztagNVuQAFBVFYluRMlpG7F1CgKEgGeL6KFqcsIa92ZYVj6DSc0XwmN1ZA==",
95 | "dev": true,
96 | "requires": {
97 | "@babel/helper-hoist-variables": "^7.7.4",
98 | "@babel/traverse": "^7.7.4",
99 | "@babel/types": "^7.7.4"
100 | }
101 | },
102 | "@babel/helper-create-class-features-plugin": {
103 | "version": "7.7.4",
104 | "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.7.4.tgz",
105 | "integrity": "sha512-l+OnKACG4uiDHQ/aJT8dwpR+LhCJALxL0mJ6nzjB25e5IPwqV1VOsY7ah6UB1DG+VOXAIMtuC54rFJGiHkxjgA==",
106 | "dev": true,
107 | "requires": {
108 | "@babel/helper-function-name": "^7.7.4",
109 | "@babel/helper-member-expression-to-functions": "^7.7.4",
110 | "@babel/helper-optimise-call-expression": "^7.7.4",
111 | "@babel/helper-plugin-utils": "^7.0.0",
112 | "@babel/helper-replace-supers": "^7.7.4",
113 | "@babel/helper-split-export-declaration": "^7.7.4"
114 | }
115 | },
116 | "@babel/helper-create-regexp-features-plugin": {
117 | "version": "7.7.4",
118 | "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.7.4.tgz",
119 | "integrity": "sha512-Mt+jBKaxL0zfOIWrfQpnfYCN7/rS6GKx6CCCfuoqVVd+17R8zNDlzVYmIi9qyb2wOk002NsmSTDymkIygDUH7A==",
120 | "dev": true,
121 | "requires": {
122 | "@babel/helper-regex": "^7.4.4",
123 | "regexpu-core": "^4.6.0"
124 | }
125 | },
126 | "@babel/helper-define-map": {
127 | "version": "7.7.4",
128 | "resolved": "https://registry.npmjs.org/@babel/helper-define-map/-/helper-define-map-7.7.4.tgz",
129 | "integrity": "sha512-v5LorqOa0nVQUvAUTUF3KPastvUt/HzByXNamKQ6RdJRTV7j8rLL+WB5C/MzzWAwOomxDhYFb1wLLxHqox86lg==",
130 | "dev": true,
131 | "requires": {
132 | "@babel/helper-function-name": "^7.7.4",
133 | "@babel/types": "^7.7.4",
134 | "lodash": "^4.17.13"
135 | }
136 | },
137 | "@babel/helper-explode-assignable-expression": {
138 | "version": "7.7.4",
139 | "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.7.4.tgz",
140 | "integrity": "sha512-2/SicuFrNSXsZNBxe5UGdLr+HZg+raWBLE9vC98bdYOKX/U6PY0mdGlYUJdtTDPSU0Lw0PNbKKDpwYHJLn2jLg==",
141 | "dev": true,
142 | "requires": {
143 | "@babel/traverse": "^7.7.4",
144 | "@babel/types": "^7.7.4"
145 | }
146 | },
147 | "@babel/helper-function-name": {
148 | "version": "7.7.4",
149 | "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.7.4.tgz",
150 | "integrity": "sha512-AnkGIdiBhEuiwdoMnKm7jfPfqItZhgRaZfMg1XX3bS25INOnLPjPG1Ppnajh8eqgt5kPJnfqrRHqFqmjKDZLzQ==",
151 | "dev": true,
152 | "requires": {
153 | "@babel/helper-get-function-arity": "^7.7.4",
154 | "@babel/template": "^7.7.4",
155 | "@babel/types": "^7.7.4"
156 | }
157 | },
158 | "@babel/helper-get-function-arity": {
159 | "version": "7.7.4",
160 | "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.7.4.tgz",
161 | "integrity": "sha512-QTGKEdCkjgzgfJ3bAyRwF4yyT3pg+vDgan8DSivq1eS0gwi+KGKE5x8kRcbeFTb/673mkO5SN1IZfmCfA5o+EA==",
162 | "dev": true,
163 | "requires": {
164 | "@babel/types": "^7.7.4"
165 | }
166 | },
167 | "@babel/helper-hoist-variables": {
168 | "version": "7.7.4",
169 | "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.7.4.tgz",
170 | "integrity": "sha512-wQC4xyvc1Jo/FnLirL6CEgPgPCa8M74tOdjWpRhQYapz5JC7u3NYU1zCVoVAGCE3EaIP9T1A3iW0WLJ+reZlpQ==",
171 | "dev": true,
172 | "requires": {
173 | "@babel/types": "^7.7.4"
174 | }
175 | },
176 | "@babel/helper-member-expression-to-functions": {
177 | "version": "7.7.4",
178 | "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.7.4.tgz",
179 | "integrity": "sha512-9KcA1X2E3OjXl/ykfMMInBK+uVdfIVakVe7W7Lg3wfXUNyS3Q1HWLFRwZIjhqiCGbslummPDnmb7vIekS0C1vw==",
180 | "dev": true,
181 | "requires": {
182 | "@babel/types": "^7.7.4"
183 | }
184 | },
185 | "@babel/helper-module-imports": {
186 | "version": "7.7.4",
187 | "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.4.tgz",
188 | "integrity": "sha512-dGcrX6K9l8258WFjyDLJwuVKxR4XZfU0/vTUgOQYWEnRD8mgr+p4d6fCUMq/ys0h4CCt/S5JhbvtyErjWouAUQ==",
189 | "dev": true,
190 | "requires": {
191 | "@babel/types": "^7.7.4"
192 | }
193 | },
194 | "@babel/helper-module-transforms": {
195 | "version": "7.7.4",
196 | "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.7.4.tgz",
197 | "integrity": "sha512-ehGBu4mXrhs0FxAqN8tWkzF8GSIGAiEumu4ONZ/hD9M88uHcD+Yu2ttKfOCgwzoesJOJrtQh7trI5YPbRtMmnA==",
198 | "dev": true,
199 | "requires": {
200 | "@babel/helper-module-imports": "^7.7.4",
201 | "@babel/helper-simple-access": "^7.7.4",
202 | "@babel/helper-split-export-declaration": "^7.7.4",
203 | "@babel/template": "^7.7.4",
204 | "@babel/types": "^7.7.4",
205 | "lodash": "^4.17.13"
206 | }
207 | },
208 | "@babel/helper-optimise-call-expression": {
209 | "version": "7.7.4",
210 | "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.7.4.tgz",
211 | "integrity": "sha512-VB7gWZ2fDkSuqW6b1AKXkJWO5NyNI3bFL/kK79/30moK57blr6NbH8xcl2XcKCwOmJosftWunZqfO84IGq3ZZg==",
212 | "dev": true,
213 | "requires": {
214 | "@babel/types": "^7.7.4"
215 | }
216 | },
217 | "@babel/helper-plugin-utils": {
218 | "version": "7.0.0",
219 | "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.0.0.tgz",
220 | "integrity": "sha512-CYAOUCARwExnEixLdB6sDm2dIJ/YgEAKDM1MOeMeZu9Ld/bDgVo8aiWrXwcY7OBh+1Ea2uUcVRcxKk0GJvW7QA==",
221 | "dev": true
222 | },
223 | "@babel/helper-regex": {
224 | "version": "7.5.5",
225 | "resolved": "https://registry.npmjs.org/@babel/helper-regex/-/helper-regex-7.5.5.tgz",
226 | "integrity": "sha512-CkCYQLkfkiugbRDO8eZn6lRuR8kzZoGXCg3149iTk5se7g6qykSpy3+hELSwquhu+TgHn8nkLiBwHvNX8Hofcw==",
227 | "dev": true,
228 | "requires": {
229 | "lodash": "^4.17.13"
230 | }
231 | },
232 | "@babel/helper-remap-async-to-generator": {
233 | "version": "7.7.4",
234 | "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.7.4.tgz",
235 | "integrity": "sha512-Sk4xmtVdM9sA/jCI80f+KS+Md+ZHIpjuqmYPk1M7F/upHou5e4ReYmExAiu6PVe65BhJPZA2CY9x9k4BqE5klw==",
236 | "dev": true,
237 | "requires": {
238 | "@babel/helper-annotate-as-pure": "^7.7.4",
239 | "@babel/helper-wrap-function": "^7.7.4",
240 | "@babel/template": "^7.7.4",
241 | "@babel/traverse": "^7.7.4",
242 | "@babel/types": "^7.7.4"
243 | }
244 | },
245 | "@babel/helper-replace-supers": {
246 | "version": "7.7.4",
247 | "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.7.4.tgz",
248 | "integrity": "sha512-pP0tfgg9hsZWo5ZboYGuBn/bbYT/hdLPVSS4NMmiRJdwWhP0IznPwN9AE1JwyGsjSPLC364I0Qh5p+EPkGPNpg==",
249 | "dev": true,
250 | "requires": {
251 | "@babel/helper-member-expression-to-functions": "^7.7.4",
252 | "@babel/helper-optimise-call-expression": "^7.7.4",
253 | "@babel/traverse": "^7.7.4",
254 | "@babel/types": "^7.7.4"
255 | }
256 | },
257 | "@babel/helper-simple-access": {
258 | "version": "7.7.4",
259 | "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.7.4.tgz",
260 | "integrity": "sha512-zK7THeEXfan7UlWsG2A6CI/L9jVnI5+xxKZOdej39Y0YtDYKx9raHk5F2EtK9K8DHRTihYwg20ADt9S36GR78A==",
261 | "dev": true,
262 | "requires": {
263 | "@babel/template": "^7.7.4",
264 | "@babel/types": "^7.7.4"
265 | }
266 | },
267 | "@babel/helper-split-export-declaration": {
268 | "version": "7.7.4",
269 | "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.7.4.tgz",
270 | "integrity": "sha512-guAg1SXFcVr04Guk9eq0S4/rWS++sbmyqosJzVs8+1fH5NI+ZcmkaSkc7dmtAFbHFva6yRJnjW3yAcGxjueDug==",
271 | "dev": true,
272 | "requires": {
273 | "@babel/types": "^7.7.4"
274 | }
275 | },
276 | "@babel/helper-wrap-function": {
277 | "version": "7.7.4",
278 | "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.7.4.tgz",
279 | "integrity": "sha512-VsfzZt6wmsocOaVU0OokwrIytHND55yvyT4BPB9AIIgwr8+x7617hetdJTsuGwygN5RC6mxA9EJztTjuwm2ofg==",
280 | "dev": true,
281 | "requires": {
282 | "@babel/helper-function-name": "^7.7.4",
283 | "@babel/template": "^7.7.4",
284 | "@babel/traverse": "^7.7.4",
285 | "@babel/types": "^7.7.4"
286 | }
287 | },
288 | "@babel/helpers": {
289 | "version": "7.7.4",
290 | "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.7.4.tgz",
291 | "integrity": "sha512-ak5NGZGJ6LV85Q1Zc9gn2n+ayXOizryhjSUBTdu5ih1tlVCJeuQENzc4ItyCVhINVXvIT/ZQ4mheGIsfBkpskg==",
292 | "dev": true,
293 | "requires": {
294 | "@babel/template": "^7.7.4",
295 | "@babel/traverse": "^7.7.4",
296 | "@babel/types": "^7.7.4"
297 | }
298 | },
299 | "@babel/highlight": {
300 | "version": "7.5.0",
301 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz",
302 | "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==",
303 | "dev": true,
304 | "requires": {
305 | "chalk": "^2.0.0",
306 | "esutils": "^2.0.2",
307 | "js-tokens": "^4.0.0"
308 | }
309 | },
310 | "@babel/parser": {
311 | "version": "7.7.4",
312 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.7.4.tgz",
313 | "integrity": "sha512-jIwvLO0zCL+O/LmEJQjWA75MQTWwx3c3u2JOTDK5D3/9egrWRRA0/0hk9XXywYnXZVVpzrBYeIQTmhwUaePI9g==",
314 | "dev": true
315 | },
316 | "@babel/plugin-proposal-async-generator-functions": {
317 | "version": "7.7.4",
318 | "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.7.4.tgz",
319 | "integrity": "sha512-1ypyZvGRXriY/QP668+s8sFr2mqinhkRDMPSQLNghCQE+GAkFtp+wkHVvg2+Hdki8gwP+NFzJBJ/N1BfzCCDEw==",
320 | "dev": true,
321 | "requires": {
322 | "@babel/helper-plugin-utils": "^7.0.0",
323 | "@babel/helper-remap-async-to-generator": "^7.7.4",
324 | "@babel/plugin-syntax-async-generators": "^7.7.4"
325 | }
326 | },
327 | "@babel/plugin-proposal-dynamic-import": {
328 | "version": "7.7.4",
329 | "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.7.4.tgz",
330 | "integrity": "sha512-StH+nGAdO6qDB1l8sZ5UBV8AC3F2VW2I8Vfld73TMKyptMU9DY5YsJAS8U81+vEtxcH3Y/La0wG0btDrhpnhjQ==",
331 | "dev": true,
332 | "requires": {
333 | "@babel/helper-plugin-utils": "^7.0.0",
334 | "@babel/plugin-syntax-dynamic-import": "^7.7.4"
335 | }
336 | },
337 | "@babel/plugin-proposal-json-strings": {
338 | "version": "7.7.4",
339 | "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.7.4.tgz",
340 | "integrity": "sha512-wQvt3akcBTfLU/wYoqm/ws7YOAQKu8EVJEvHip/mzkNtjaclQoCCIqKXFP5/eyfnfbQCDV3OLRIK3mIVyXuZlw==",
341 | "dev": true,
342 | "requires": {
343 | "@babel/helper-plugin-utils": "^7.0.0",
344 | "@babel/plugin-syntax-json-strings": "^7.7.4"
345 | }
346 | },
347 | "@babel/plugin-proposal-object-rest-spread": {
348 | "version": "7.7.4",
349 | "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.7.4.tgz",
350 | "integrity": "sha512-rnpnZR3/iWKmiQyJ3LKJpSwLDcX/nSXhdLk4Aq/tXOApIvyu7qoabrige0ylsAJffaUC51WiBu209Q0U+86OWQ==",
351 | "dev": true,
352 | "requires": {
353 | "@babel/helper-plugin-utils": "^7.0.0",
354 | "@babel/plugin-syntax-object-rest-spread": "^7.7.4"
355 | }
356 | },
357 | "@babel/plugin-proposal-optional-catch-binding": {
358 | "version": "7.7.4",
359 | "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.7.4.tgz",
360 | "integrity": "sha512-DyM7U2bnsQerCQ+sejcTNZh8KQEUuC3ufzdnVnSiUv/qoGJp2Z3hanKL18KDhsBT5Wj6a7CMT5mdyCNJsEaA9w==",
361 | "dev": true,
362 | "requires": {
363 | "@babel/helper-plugin-utils": "^7.0.0",
364 | "@babel/plugin-syntax-optional-catch-binding": "^7.7.4"
365 | }
366 | },
367 | "@babel/plugin-proposal-unicode-property-regex": {
368 | "version": "7.7.4",
369 | "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.7.4.tgz",
370 | "integrity": "sha512-cHgqHgYvffluZk85dJ02vloErm3Y6xtH+2noOBOJ2kXOJH3aVCDnj5eR/lVNlTnYu4hndAPJD3rTFjW3qee0PA==",
371 | "dev": true,
372 | "requires": {
373 | "@babel/helper-create-regexp-features-plugin": "^7.7.4",
374 | "@babel/helper-plugin-utils": "^7.0.0"
375 | }
376 | },
377 | "@babel/plugin-syntax-async-generators": {
378 | "version": "7.7.4",
379 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.7.4.tgz",
380 | "integrity": "sha512-Li4+EjSpBgxcsmeEF8IFcfV/+yJGxHXDirDkEoyFjumuwbmfCVHUt0HuowD/iGM7OhIRyXJH9YXxqiH6N815+g==",
381 | "dev": true,
382 | "requires": {
383 | "@babel/helper-plugin-utils": "^7.0.0"
384 | }
385 | },
386 | "@babel/plugin-syntax-dynamic-import": {
387 | "version": "7.7.4",
388 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.7.4.tgz",
389 | "integrity": "sha512-jHQW0vbRGvwQNgyVxwDh4yuXu4bH1f5/EICJLAhl1SblLs2CDhrsmCk+v5XLdE9wxtAFRyxx+P//Iw+a5L/tTg==",
390 | "dev": true,
391 | "requires": {
392 | "@babel/helper-plugin-utils": "^7.0.0"
393 | }
394 | },
395 | "@babel/plugin-syntax-json-strings": {
396 | "version": "7.7.4",
397 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.7.4.tgz",
398 | "integrity": "sha512-QpGupahTQW1mHRXddMG5srgpHWqRLwJnJZKXTigB9RPFCCGbDGCgBeM/iC82ICXp414WeYx/tD54w7M2qRqTMg==",
399 | "dev": true,
400 | "requires": {
401 | "@babel/helper-plugin-utils": "^7.0.0"
402 | }
403 | },
404 | "@babel/plugin-syntax-object-rest-spread": {
405 | "version": "7.7.4",
406 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.7.4.tgz",
407 | "integrity": "sha512-mObR+r+KZq0XhRVS2BrBKBpr5jqrqzlPvS9C9vuOf5ilSwzloAl7RPWLrgKdWS6IreaVrjHxTjtyqFiOisaCwg==",
408 | "dev": true,
409 | "requires": {
410 | "@babel/helper-plugin-utils": "^7.0.0"
411 | }
412 | },
413 | "@babel/plugin-syntax-optional-catch-binding": {
414 | "version": "7.7.4",
415 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.7.4.tgz",
416 | "integrity": "sha512-4ZSuzWgFxqHRE31Glu+fEr/MirNZOMYmD/0BhBWyLyOOQz/gTAl7QmWm2hX1QxEIXsr2vkdlwxIzTyiYRC4xcQ==",
417 | "dev": true,
418 | "requires": {
419 | "@babel/helper-plugin-utils": "^7.0.0"
420 | }
421 | },
422 | "@babel/plugin-syntax-top-level-await": {
423 | "version": "7.7.4",
424 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.7.4.tgz",
425 | "integrity": "sha512-wdsOw0MvkL1UIgiQ/IFr3ETcfv1xb8RMM0H9wbiDyLaJFyiDg5oZvDLCXosIXmFeIlweML5iOBXAkqddkYNizg==",
426 | "dev": true,
427 | "requires": {
428 | "@babel/helper-plugin-utils": "^7.0.0"
429 | }
430 | },
431 | "@babel/plugin-syntax-typescript": {
432 | "version": "7.7.4",
433 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.7.4.tgz",
434 | "integrity": "sha512-77blgY18Hud4NM1ggTA8xVT/dBENQf17OpiToSa2jSmEY3fWXD2jwrdVlO4kq5yzUTeF15WSQ6b4fByNvJcjpQ==",
435 | "dev": true,
436 | "requires": {
437 | "@babel/helper-plugin-utils": "^7.0.0"
438 | }
439 | },
440 | "@babel/plugin-transform-arrow-functions": {
441 | "version": "7.7.4",
442 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.7.4.tgz",
443 | "integrity": "sha512-zUXy3e8jBNPiffmqkHRNDdZM2r8DWhCB7HhcoyZjiK1TxYEluLHAvQuYnTT+ARqRpabWqy/NHkO6e3MsYB5YfA==",
444 | "dev": true,
445 | "requires": {
446 | "@babel/helper-plugin-utils": "^7.0.0"
447 | }
448 | },
449 | "@babel/plugin-transform-async-to-generator": {
450 | "version": "7.7.4",
451 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.7.4.tgz",
452 | "integrity": "sha512-zpUTZphp5nHokuy8yLlyafxCJ0rSlFoSHypTUWgpdwoDXWQcseaect7cJ8Ppk6nunOM6+5rPMkod4OYKPR5MUg==",
453 | "dev": true,
454 | "requires": {
455 | "@babel/helper-module-imports": "^7.7.4",
456 | "@babel/helper-plugin-utils": "^7.0.0",
457 | "@babel/helper-remap-async-to-generator": "^7.7.4"
458 | }
459 | },
460 | "@babel/plugin-transform-block-scoped-functions": {
461 | "version": "7.7.4",
462 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.7.4.tgz",
463 | "integrity": "sha512-kqtQzwtKcpPclHYjLK//3lH8OFsCDuDJBaFhVwf8kqdnF6MN4l618UDlcA7TfRs3FayrHj+svYnSX8MC9zmUyQ==",
464 | "dev": true,
465 | "requires": {
466 | "@babel/helper-plugin-utils": "^7.0.0"
467 | }
468 | },
469 | "@babel/plugin-transform-block-scoping": {
470 | "version": "7.7.4",
471 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.7.4.tgz",
472 | "integrity": "sha512-2VBe9u0G+fDt9B5OV5DQH4KBf5DoiNkwFKOz0TCvBWvdAN2rOykCTkrL+jTLxfCAm76l9Qo5OqL7HBOx2dWggg==",
473 | "dev": true,
474 | "requires": {
475 | "@babel/helper-plugin-utils": "^7.0.0",
476 | "lodash": "^4.17.13"
477 | }
478 | },
479 | "@babel/plugin-transform-classes": {
480 | "version": "7.7.4",
481 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.7.4.tgz",
482 | "integrity": "sha512-sK1mjWat7K+buWRuImEzjNf68qrKcrddtpQo3swi9j7dUcG6y6R6+Di039QN2bD1dykeswlagupEmpOatFHHUg==",
483 | "dev": true,
484 | "requires": {
485 | "@babel/helper-annotate-as-pure": "^7.7.4",
486 | "@babel/helper-define-map": "^7.7.4",
487 | "@babel/helper-function-name": "^7.7.4",
488 | "@babel/helper-optimise-call-expression": "^7.7.4",
489 | "@babel/helper-plugin-utils": "^7.0.0",
490 | "@babel/helper-replace-supers": "^7.7.4",
491 | "@babel/helper-split-export-declaration": "^7.7.4",
492 | "globals": "^11.1.0"
493 | }
494 | },
495 | "@babel/plugin-transform-computed-properties": {
496 | "version": "7.7.4",
497 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.7.4.tgz",
498 | "integrity": "sha512-bSNsOsZnlpLLyQew35rl4Fma3yKWqK3ImWMSC/Nc+6nGjC9s5NFWAer1YQ899/6s9HxO2zQC1WoFNfkOqRkqRQ==",
499 | "dev": true,
500 | "requires": {
501 | "@babel/helper-plugin-utils": "^7.0.0"
502 | }
503 | },
504 | "@babel/plugin-transform-destructuring": {
505 | "version": "7.7.4",
506 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.7.4.tgz",
507 | "integrity": "sha512-4jFMXI1Cu2aXbcXXl8Lr6YubCn6Oc7k9lLsu8v61TZh+1jny2BWmdtvY9zSUlLdGUvcy9DMAWyZEOqjsbeg/wA==",
508 | "dev": true,
509 | "requires": {
510 | "@babel/helper-plugin-utils": "^7.0.0"
511 | }
512 | },
513 | "@babel/plugin-transform-dotall-regex": {
514 | "version": "7.7.4",
515 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.7.4.tgz",
516 | "integrity": "sha512-mk0cH1zyMa/XHeb6LOTXTbG7uIJ8Rrjlzu91pUx/KS3JpcgaTDwMS8kM+ar8SLOvlL2Lofi4CGBAjCo3a2x+lw==",
517 | "dev": true,
518 | "requires": {
519 | "@babel/helper-create-regexp-features-plugin": "^7.7.4",
520 | "@babel/helper-plugin-utils": "^7.0.0"
521 | }
522 | },
523 | "@babel/plugin-transform-duplicate-keys": {
524 | "version": "7.7.4",
525 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.7.4.tgz",
526 | "integrity": "sha512-g1y4/G6xGWMD85Tlft5XedGaZBCIVN+/P0bs6eabmcPP9egFleMAo65OOjlhcz1njpwagyY3t0nsQC9oTFegJA==",
527 | "dev": true,
528 | "requires": {
529 | "@babel/helper-plugin-utils": "^7.0.0"
530 | }
531 | },
532 | "@babel/plugin-transform-exponentiation-operator": {
533 | "version": "7.7.4",
534 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.7.4.tgz",
535 | "integrity": "sha512-MCqiLfCKm6KEA1dglf6Uqq1ElDIZwFuzz1WH5mTf8k2uQSxEJMbOIEh7IZv7uichr7PMfi5YVSrr1vz+ipp7AQ==",
536 | "dev": true,
537 | "requires": {
538 | "@babel/helper-builder-binary-assignment-operator-visitor": "^7.7.4",
539 | "@babel/helper-plugin-utils": "^7.0.0"
540 | }
541 | },
542 | "@babel/plugin-transform-for-of": {
543 | "version": "7.7.4",
544 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.7.4.tgz",
545 | "integrity": "sha512-zZ1fD1B8keYtEcKF+M1TROfeHTKnijcVQm0yO/Yu1f7qoDoxEIc/+GX6Go430Bg84eM/xwPFp0+h4EbZg7epAA==",
546 | "dev": true,
547 | "requires": {
548 | "@babel/helper-plugin-utils": "^7.0.0"
549 | }
550 | },
551 | "@babel/plugin-transform-function-name": {
552 | "version": "7.7.4",
553 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.7.4.tgz",
554 | "integrity": "sha512-E/x09TvjHNhsULs2IusN+aJNRV5zKwxu1cpirZyRPw+FyyIKEHPXTsadj48bVpc1R5Qq1B5ZkzumuFLytnbT6g==",
555 | "dev": true,
556 | "requires": {
557 | "@babel/helper-function-name": "^7.7.4",
558 | "@babel/helper-plugin-utils": "^7.0.0"
559 | }
560 | },
561 | "@babel/plugin-transform-literals": {
562 | "version": "7.7.4",
563 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.7.4.tgz",
564 | "integrity": "sha512-X2MSV7LfJFm4aZfxd0yLVFrEXAgPqYoDG53Br/tCKiKYfX0MjVjQeWPIhPHHsCqzwQANq+FLN786fF5rgLS+gw==",
565 | "dev": true,
566 | "requires": {
567 | "@babel/helper-plugin-utils": "^7.0.0"
568 | }
569 | },
570 | "@babel/plugin-transform-member-expression-literals": {
571 | "version": "7.7.4",
572 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.7.4.tgz",
573 | "integrity": "sha512-9VMwMO7i69LHTesL0RdGy93JU6a+qOPuvB4F4d0kR0zyVjJRVJRaoaGjhtki6SzQUu8yen/vxPKN6CWnCUw6bA==",
574 | "dev": true,
575 | "requires": {
576 | "@babel/helper-plugin-utils": "^7.0.0"
577 | }
578 | },
579 | "@babel/plugin-transform-modules-amd": {
580 | "version": "7.7.4",
581 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.7.4.tgz",
582 | "integrity": "sha512-/542/5LNA18YDtg1F+QHvvUSlxdvjZoD/aldQwkq+E3WCkbEjNSN9zdrOXaSlfg3IfGi22ijzecklF/A7kVZFQ==",
583 | "dev": true,
584 | "requires": {
585 | "@babel/helper-module-transforms": "^7.7.4",
586 | "@babel/helper-plugin-utils": "^7.0.0",
587 | "babel-plugin-dynamic-import-node": "^2.3.0"
588 | }
589 | },
590 | "@babel/plugin-transform-modules-commonjs": {
591 | "version": "7.7.4",
592 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.7.4.tgz",
593 | "integrity": "sha512-k8iVS7Jhc367IcNF53KCwIXtKAH7czev866ThsTgy8CwlXjnKZna2VHwChglzLleYrcHz1eQEIJlGRQxB53nqA==",
594 | "dev": true,
595 | "requires": {
596 | "@babel/helper-module-transforms": "^7.7.4",
597 | "@babel/helper-plugin-utils": "^7.0.0",
598 | "@babel/helper-simple-access": "^7.7.4",
599 | "babel-plugin-dynamic-import-node": "^2.3.0"
600 | }
601 | },
602 | "@babel/plugin-transform-modules-systemjs": {
603 | "version": "7.7.4",
604 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.7.4.tgz",
605 | "integrity": "sha512-y2c96hmcsUi6LrMqvmNDPBBiGCiQu0aYqpHatVVu6kD4mFEXKjyNxd/drc18XXAf9dv7UXjrZwBVmTTGaGP8iw==",
606 | "dev": true,
607 | "requires": {
608 | "@babel/helper-hoist-variables": "^7.7.4",
609 | "@babel/helper-plugin-utils": "^7.0.0",
610 | "babel-plugin-dynamic-import-node": "^2.3.0"
611 | }
612 | },
613 | "@babel/plugin-transform-modules-umd": {
614 | "version": "7.7.4",
615 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.7.4.tgz",
616 | "integrity": "sha512-u2B8TIi0qZI4j8q4C51ktfO7E3cQ0qnaXFI1/OXITordD40tt17g/sXqgNNCcMTcBFKrUPcGDx+TBJuZxLx7tw==",
617 | "dev": true,
618 | "requires": {
619 | "@babel/helper-module-transforms": "^7.7.4",
620 | "@babel/helper-plugin-utils": "^7.0.0"
621 | }
622 | },
623 | "@babel/plugin-transform-named-capturing-groups-regex": {
624 | "version": "7.7.4",
625 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.7.4.tgz",
626 | "integrity": "sha512-jBUkiqLKvUWpv9GLSuHUFYdmHg0ujC1JEYoZUfeOOfNydZXp1sXObgyPatpcwjWgsdBGsagWW0cdJpX/DO2jMw==",
627 | "dev": true,
628 | "requires": {
629 | "@babel/helper-create-regexp-features-plugin": "^7.7.4"
630 | }
631 | },
632 | "@babel/plugin-transform-new-target": {
633 | "version": "7.7.4",
634 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.7.4.tgz",
635 | "integrity": "sha512-CnPRiNtOG1vRodnsyGX37bHQleHE14B9dnnlgSeEs3ek3fHN1A1SScglTCg1sfbe7sRQ2BUcpgpTpWSfMKz3gg==",
636 | "dev": true,
637 | "requires": {
638 | "@babel/helper-plugin-utils": "^7.0.0"
639 | }
640 | },
641 | "@babel/plugin-transform-object-super": {
642 | "version": "7.7.4",
643 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.7.4.tgz",
644 | "integrity": "sha512-ho+dAEhC2aRnff2JCA0SAK7V2R62zJd/7dmtoe7MHcso4C2mS+vZjn1Pb1pCVZvJs1mgsvv5+7sT+m3Bysb6eg==",
645 | "dev": true,
646 | "requires": {
647 | "@babel/helper-plugin-utils": "^7.0.0",
648 | "@babel/helper-replace-supers": "^7.7.4"
649 | }
650 | },
651 | "@babel/plugin-transform-parameters": {
652 | "version": "7.7.4",
653 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.7.4.tgz",
654 | "integrity": "sha512-VJwhVePWPa0DqE9vcfptaJSzNDKrWU/4FbYCjZERtmqEs05g3UMXnYMZoXja7JAJ7Y7sPZipwm/pGApZt7wHlw==",
655 | "dev": true,
656 | "requires": {
657 | "@babel/helper-call-delegate": "^7.7.4",
658 | "@babel/helper-get-function-arity": "^7.7.4",
659 | "@babel/helper-plugin-utils": "^7.0.0"
660 | }
661 | },
662 | "@babel/plugin-transform-property-literals": {
663 | "version": "7.7.4",
664 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.7.4.tgz",
665 | "integrity": "sha512-MatJhlC4iHsIskWYyawl53KuHrt+kALSADLQQ/HkhTjX954fkxIEh4q5slL4oRAnsm/eDoZ4q0CIZpcqBuxhJQ==",
666 | "dev": true,
667 | "requires": {
668 | "@babel/helper-plugin-utils": "^7.0.0"
669 | }
670 | },
671 | "@babel/plugin-transform-regenerator": {
672 | "version": "7.7.4",
673 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.7.4.tgz",
674 | "integrity": "sha512-e7MWl5UJvmPEwFJTwkBlPmqixCtr9yAASBqff4ggXTNicZiwbF8Eefzm6NVgfiBp7JdAGItecnctKTgH44q2Jw==",
675 | "dev": true,
676 | "requires": {
677 | "regenerator-transform": "^0.14.0"
678 | }
679 | },
680 | "@babel/plugin-transform-reserved-words": {
681 | "version": "7.7.4",
682 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.7.4.tgz",
683 | "integrity": "sha512-OrPiUB5s5XvkCO1lS7D8ZtHcswIC57j62acAnJZKqGGnHP+TIc/ljQSrgdX/QyOTdEK5COAhuc820Hi1q2UgLQ==",
684 | "dev": true,
685 | "requires": {
686 | "@babel/helper-plugin-utils": "^7.0.0"
687 | }
688 | },
689 | "@babel/plugin-transform-shorthand-properties": {
690 | "version": "7.7.4",
691 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.7.4.tgz",
692 | "integrity": "sha512-q+suddWRfIcnyG5YiDP58sT65AJDZSUhXQDZE3r04AuqD6d/XLaQPPXSBzP2zGerkgBivqtQm9XKGLuHqBID6Q==",
693 | "dev": true,
694 | "requires": {
695 | "@babel/helper-plugin-utils": "^7.0.0"
696 | }
697 | },
698 | "@babel/plugin-transform-spread": {
699 | "version": "7.7.4",
700 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.7.4.tgz",
701 | "integrity": "sha512-8OSs0FLe5/80cndziPlg4R0K6HcWSM0zyNhHhLsmw/Nc5MaA49cAsnoJ/t/YZf8qkG7fD+UjTRaApVDB526d7Q==",
702 | "dev": true,
703 | "requires": {
704 | "@babel/helper-plugin-utils": "^7.0.0"
705 | }
706 | },
707 | "@babel/plugin-transform-sticky-regex": {
708 | "version": "7.7.4",
709 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.7.4.tgz",
710 | "integrity": "sha512-Ls2NASyL6qtVe1H1hXts9yuEeONV2TJZmplLONkMPUG158CtmnrzW5Q5teibM5UVOFjG0D3IC5mzXR6pPpUY7A==",
711 | "dev": true,
712 | "requires": {
713 | "@babel/helper-plugin-utils": "^7.0.0",
714 | "@babel/helper-regex": "^7.0.0"
715 | }
716 | },
717 | "@babel/plugin-transform-template-literals": {
718 | "version": "7.7.4",
719 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.7.4.tgz",
720 | "integrity": "sha512-sA+KxLwF3QwGj5abMHkHgshp9+rRz+oY9uoRil4CyLtgEuE/88dpkeWgNk5qKVsJE9iSfly3nvHapdRiIS2wnQ==",
721 | "dev": true,
722 | "requires": {
723 | "@babel/helper-annotate-as-pure": "^7.7.4",
724 | "@babel/helper-plugin-utils": "^7.0.0"
725 | }
726 | },
727 | "@babel/plugin-transform-typeof-symbol": {
728 | "version": "7.7.4",
729 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.7.4.tgz",
730 | "integrity": "sha512-KQPUQ/7mqe2m0B8VecdyaW5XcQYaePyl9R7IsKd+irzj6jvbhoGnRE+M0aNkyAzI07VfUQ9266L5xMARitV3wg==",
731 | "dev": true,
732 | "requires": {
733 | "@babel/helper-plugin-utils": "^7.0.0"
734 | }
735 | },
736 | "@babel/plugin-transform-typescript": {
737 | "version": "7.7.4",
738 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.7.4.tgz",
739 | "integrity": "sha512-X8e3tcPEKnwwPVG+vP/vSqEShkwODOEeyQGod82qrIuidwIrfnsGn11qPM1jBLF4MqguTXXYzm58d0dY+/wdpg==",
740 | "dev": true,
741 | "requires": {
742 | "@babel/helper-create-class-features-plugin": "^7.7.4",
743 | "@babel/helper-plugin-utils": "^7.0.0",
744 | "@babel/plugin-syntax-typescript": "^7.7.4"
745 | }
746 | },
747 | "@babel/plugin-transform-unicode-regex": {
748 | "version": "7.7.4",
749 | "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.7.4.tgz",
750 | "integrity": "sha512-N77UUIV+WCvE+5yHw+oks3m18/umd7y392Zv7mYTpFqHtkpcc+QUz+gLJNTWVlWROIWeLqY0f3OjZxV5TcXnRw==",
751 | "dev": true,
752 | "requires": {
753 | "@babel/helper-create-regexp-features-plugin": "^7.7.4",
754 | "@babel/helper-plugin-utils": "^7.0.0"
755 | }
756 | },
757 | "@babel/preset-env": {
758 | "version": "7.7.4",
759 | "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.7.4.tgz",
760 | "integrity": "sha512-Dg+ciGJjwvC1NIe/DGblMbcGq1HOtKbw8RLl4nIjlfcILKEOkWT/vRqPpumswABEBVudii6dnVwrBtzD7ibm4g==",
761 | "dev": true,
762 | "requires": {
763 | "@babel/helper-module-imports": "^7.7.4",
764 | "@babel/helper-plugin-utils": "^7.0.0",
765 | "@babel/plugin-proposal-async-generator-functions": "^7.7.4",
766 | "@babel/plugin-proposal-dynamic-import": "^7.7.4",
767 | "@babel/plugin-proposal-json-strings": "^7.7.4",
768 | "@babel/plugin-proposal-object-rest-spread": "^7.7.4",
769 | "@babel/plugin-proposal-optional-catch-binding": "^7.7.4",
770 | "@babel/plugin-proposal-unicode-property-regex": "^7.7.4",
771 | "@babel/plugin-syntax-async-generators": "^7.7.4",
772 | "@babel/plugin-syntax-dynamic-import": "^7.7.4",
773 | "@babel/plugin-syntax-json-strings": "^7.7.4",
774 | "@babel/plugin-syntax-object-rest-spread": "^7.7.4",
775 | "@babel/plugin-syntax-optional-catch-binding": "^7.7.4",
776 | "@babel/plugin-syntax-top-level-await": "^7.7.4",
777 | "@babel/plugin-transform-arrow-functions": "^7.7.4",
778 | "@babel/plugin-transform-async-to-generator": "^7.7.4",
779 | "@babel/plugin-transform-block-scoped-functions": "^7.7.4",
780 | "@babel/plugin-transform-block-scoping": "^7.7.4",
781 | "@babel/plugin-transform-classes": "^7.7.4",
782 | "@babel/plugin-transform-computed-properties": "^7.7.4",
783 | "@babel/plugin-transform-destructuring": "^7.7.4",
784 | "@babel/plugin-transform-dotall-regex": "^7.7.4",
785 | "@babel/plugin-transform-duplicate-keys": "^7.7.4",
786 | "@babel/plugin-transform-exponentiation-operator": "^7.7.4",
787 | "@babel/plugin-transform-for-of": "^7.7.4",
788 | "@babel/plugin-transform-function-name": "^7.7.4",
789 | "@babel/plugin-transform-literals": "^7.7.4",
790 | "@babel/plugin-transform-member-expression-literals": "^7.7.4",
791 | "@babel/plugin-transform-modules-amd": "^7.7.4",
792 | "@babel/plugin-transform-modules-commonjs": "^7.7.4",
793 | "@babel/plugin-transform-modules-systemjs": "^7.7.4",
794 | "@babel/plugin-transform-modules-umd": "^7.7.4",
795 | "@babel/plugin-transform-named-capturing-groups-regex": "^7.7.4",
796 | "@babel/plugin-transform-new-target": "^7.7.4",
797 | "@babel/plugin-transform-object-super": "^7.7.4",
798 | "@babel/plugin-transform-parameters": "^7.7.4",
799 | "@babel/plugin-transform-property-literals": "^7.7.4",
800 | "@babel/plugin-transform-regenerator": "^7.7.4",
801 | "@babel/plugin-transform-reserved-words": "^7.7.4",
802 | "@babel/plugin-transform-shorthand-properties": "^7.7.4",
803 | "@babel/plugin-transform-spread": "^7.7.4",
804 | "@babel/plugin-transform-sticky-regex": "^7.7.4",
805 | "@babel/plugin-transform-template-literals": "^7.7.4",
806 | "@babel/plugin-transform-typeof-symbol": "^7.7.4",
807 | "@babel/plugin-transform-unicode-regex": "^7.7.4",
808 | "@babel/types": "^7.7.4",
809 | "browserslist": "^4.6.0",
810 | "core-js-compat": "^3.1.1",
811 | "invariant": "^2.2.2",
812 | "js-levenshtein": "^1.1.3",
813 | "semver": "^5.5.0"
814 | },
815 | "dependencies": {
816 | "semver": {
817 | "version": "5.7.1",
818 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
819 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
820 | "dev": true
821 | }
822 | }
823 | },
824 | "@babel/preset-typescript": {
825 | "version": "7.7.4",
826 | "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.7.4.tgz",
827 | "integrity": "sha512-rqrjxfdiHPsnuPur0jKrIIGQCIgoTWMTjlbWE69G4QJ6TIOVnnRnIJhUxNTL/VwDmEAVX08Tq3B1nirer5341w==",
828 | "dev": true,
829 | "requires": {
830 | "@babel/helper-plugin-utils": "^7.0.0",
831 | "@babel/plugin-transform-typescript": "^7.7.4"
832 | }
833 | },
834 | "@babel/template": {
835 | "version": "7.7.4",
836 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.7.4.tgz",
837 | "integrity": "sha512-qUzihgVPguAzXCK7WXw8pqs6cEwi54s3E+HrejlkuWO6ivMKx9hZl3Y2fSXp9i5HgyWmj7RKP+ulaYnKM4yYxw==",
838 | "dev": true,
839 | "requires": {
840 | "@babel/code-frame": "^7.0.0",
841 | "@babel/parser": "^7.7.4",
842 | "@babel/types": "^7.7.4"
843 | }
844 | },
845 | "@babel/traverse": {
846 | "version": "7.7.4",
847 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.7.4.tgz",
848 | "integrity": "sha512-P1L58hQyupn8+ezVA2z5KBm4/Zr4lCC8dwKCMYzsa5jFMDMQAzaBNy9W5VjB+KAmBjb40U7a/H6ao+Xo+9saIw==",
849 | "dev": true,
850 | "requires": {
851 | "@babel/code-frame": "^7.5.5",
852 | "@babel/generator": "^7.7.4",
853 | "@babel/helper-function-name": "^7.7.4",
854 | "@babel/helper-split-export-declaration": "^7.7.4",
855 | "@babel/parser": "^7.7.4",
856 | "@babel/types": "^7.7.4",
857 | "debug": "^4.1.0",
858 | "globals": "^11.1.0",
859 | "lodash": "^4.17.13"
860 | }
861 | },
862 | "@babel/types": {
863 | "version": "7.7.4",
864 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz",
865 | "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==",
866 | "dev": true,
867 | "requires": {
868 | "esutils": "^2.0.2",
869 | "lodash": "^4.17.13",
870 | "to-fast-properties": "^2.0.0"
871 | }
872 | },
873 | "@rollup/plugin-node-resolve": {
874 | "version": "6.0.0",
875 | "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-6.0.0.tgz",
876 | "integrity": "sha512-GqWz1CfXOsqpeVMcoM315+O7zMxpRsmhWyhJoxLFHVSp9S64/u02i7len/FnbTNbmgYs+sZyilasijH8UiuboQ==",
877 | "dev": true,
878 | "requires": {
879 | "@rollup/pluginutils": "^3.0.0",
880 | "@types/resolve": "0.0.8",
881 | "builtin-modules": "^3.1.0",
882 | "is-module": "^1.0.0",
883 | "resolve": "^1.11.1"
884 | }
885 | },
886 | "@rollup/plugin-replace": {
887 | "version": "2.2.1",
888 | "resolved": "https://registry.npmjs.org/@rollup/plugin-replace/-/plugin-replace-2.2.1.tgz",
889 | "integrity": "sha512-dgq5ijT8fK18KTb1inenZ61ivTayV7pvbz2+ivT+VN20BOgJVM1fqoBETqGHKgFVm/J9BhR82mQyAtxfpPv1lQ==",
890 | "dev": true,
891 | "requires": {
892 | "magic-string": "^0.25.2",
893 | "rollup-pluginutils": "^2.6.0"
894 | }
895 | },
896 | "@rollup/pluginutils": {
897 | "version": "3.0.0",
898 | "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.0.0.tgz",
899 | "integrity": "sha512-qBbGQQaUUiId/lBU9VMeYlVLOoRNvz1fV8HWY5tiGDpI2gdPZHbmOfCjzSdXPhdq3XOfyWvXEBlIPbnM3+9ogQ==",
900 | "dev": true,
901 | "requires": {
902 | "estree-walker": "^0.6.1"
903 | }
904 | },
905 | "@types/estree": {
906 | "version": "0.0.40",
907 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.40.tgz",
908 | "integrity": "sha512-p3KZgMto/JyxosKGmnLDJ/dG5wf+qTRMUjHJcspC2oQKa4jP7mz+tv0ND56lLBu3ojHlhzY33Ol+khLyNmilkA==",
909 | "dev": true
910 | },
911 | "@types/node": {
912 | "version": "12.12.14",
913 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.14.tgz",
914 | "integrity": "sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==",
915 | "dev": true
916 | },
917 | "@types/resolve": {
918 | "version": "0.0.8",
919 | "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-0.0.8.tgz",
920 | "integrity": "sha512-auApPaJf3NPfe18hSoJkp8EbZzer2ISk7o8mCC3M9he/a04+gbMF97NkpD2S8riMGvm4BMRI59/SZQSaLTKpsQ==",
921 | "dev": true,
922 | "requires": {
923 | "@types/node": "*"
924 | }
925 | },
926 | "acorn": {
927 | "version": "7.1.1",
928 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz",
929 | "integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==",
930 | "dev": true
931 | },
932 | "ansi-styles": {
933 | "version": "3.2.1",
934 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
935 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
936 | "dev": true,
937 | "requires": {
938 | "color-convert": "^1.9.0"
939 | }
940 | },
941 | "babel-plugin-dynamic-import-node": {
942 | "version": "2.3.0",
943 | "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-2.3.0.tgz",
944 | "integrity": "sha512-o6qFkpeQEBxcqt0XYlWzAVxNCSCZdUgcR8IRlhD/8DylxjjO4foPcvTW0GGKa/cVt3rvxZ7o5ippJ+/0nvLhlQ==",
945 | "dev": true,
946 | "requires": {
947 | "object.assign": "^4.1.0"
948 | }
949 | },
950 | "browserslist": {
951 | "version": "4.8.2",
952 | "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.8.2.tgz",
953 | "integrity": "sha512-+M4oeaTplPm/f1pXDw84YohEv7B1i/2Aisei8s4s6k3QsoSHa7i5sz8u/cGQkkatCPxMASKxPualR4wwYgVboA==",
954 | "dev": true,
955 | "requires": {
956 | "caniuse-lite": "^1.0.30001015",
957 | "electron-to-chromium": "^1.3.322",
958 | "node-releases": "^1.1.42"
959 | }
960 | },
961 | "buffer-from": {
962 | "version": "1.1.1",
963 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
964 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
965 | "dev": true
966 | },
967 | "builtin-modules": {
968 | "version": "3.1.0",
969 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.1.0.tgz",
970 | "integrity": "sha512-k0KL0aWZuBt2lrxrcASWDfwOLMnodeQjodT/1SxEQAXsHANgo6ZC/VEaSEHCXt7aSTZ4/4H5LKa+tBXmW7Vtvw==",
971 | "dev": true
972 | },
973 | "caniuse-lite": {
974 | "version": "1.0.30001015",
975 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001015.tgz",
976 | "integrity": "sha512-/xL2AbW/XWHNu1gnIrO8UitBGoFthcsDgU9VLK1/dpsoxbaD5LscHozKze05R6WLsBvLhqv78dAPozMFQBYLbQ==",
977 | "dev": true
978 | },
979 | "chalk": {
980 | "version": "2.4.2",
981 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
982 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
983 | "dev": true,
984 | "requires": {
985 | "ansi-styles": "^3.2.1",
986 | "escape-string-regexp": "^1.0.5",
987 | "supports-color": "^5.3.0"
988 | }
989 | },
990 | "color-convert": {
991 | "version": "1.9.3",
992 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
993 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
994 | "dev": true,
995 | "requires": {
996 | "color-name": "1.1.3"
997 | }
998 | },
999 | "color-name": {
1000 | "version": "1.1.3",
1001 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
1002 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
1003 | "dev": true
1004 | },
1005 | "commander": {
1006 | "version": "2.20.3",
1007 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
1008 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
1009 | "dev": true
1010 | },
1011 | "commondir": {
1012 | "version": "1.0.1",
1013 | "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz",
1014 | "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=",
1015 | "dev": true
1016 | },
1017 | "convert-source-map": {
1018 | "version": "1.7.0",
1019 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz",
1020 | "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==",
1021 | "dev": true,
1022 | "requires": {
1023 | "safe-buffer": "~5.1.1"
1024 | }
1025 | },
1026 | "core-js-compat": {
1027 | "version": "3.4.7",
1028 | "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.4.7.tgz",
1029 | "integrity": "sha512-57+mgz/P/xsGdjwQYkwtBZR3LuISaxD1dEwVDtbk8xJMqAmwqaxLOvnNT7kdJ7jYE/NjNptyzXi+IQFMi/2fCw==",
1030 | "dev": true,
1031 | "requires": {
1032 | "browserslist": "^4.8.0",
1033 | "semver": "^6.3.0"
1034 | }
1035 | },
1036 | "debug": {
1037 | "version": "4.1.1",
1038 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
1039 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
1040 | "dev": true,
1041 | "requires": {
1042 | "ms": "^2.1.1"
1043 | }
1044 | },
1045 | "define-properties": {
1046 | "version": "1.1.3",
1047 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",
1048 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",
1049 | "dev": true,
1050 | "requires": {
1051 | "object-keys": "^1.0.12"
1052 | }
1053 | },
1054 | "electron-to-chromium": {
1055 | "version": "1.3.322",
1056 | "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz",
1057 | "integrity": "sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA==",
1058 | "dev": true
1059 | },
1060 | "escape-string-regexp": {
1061 | "version": "1.0.5",
1062 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
1063 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
1064 | "dev": true
1065 | },
1066 | "estree-walker": {
1067 | "version": "0.6.1",
1068 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz",
1069 | "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==",
1070 | "dev": true
1071 | },
1072 | "esutils": {
1073 | "version": "2.0.3",
1074 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
1075 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
1076 | "dev": true
1077 | },
1078 | "find-cache-dir": {
1079 | "version": "3.1.0",
1080 | "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.1.0.tgz",
1081 | "integrity": "sha512-zw+EFiNBNPgI2NTrKkDd1xd7q0cs6wr/iWnr/oUkI0yF9K9GqQ+riIt4aiyFaaqpaWbxPrJXHI+QvmNUQbX+0Q==",
1082 | "dev": true,
1083 | "requires": {
1084 | "commondir": "^1.0.1",
1085 | "make-dir": "^3.0.0",
1086 | "pkg-dir": "^4.1.0"
1087 | }
1088 | },
1089 | "find-up": {
1090 | "version": "4.1.0",
1091 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
1092 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
1093 | "dev": true,
1094 | "requires": {
1095 | "locate-path": "^5.0.0",
1096 | "path-exists": "^4.0.0"
1097 | }
1098 | },
1099 | "fs-extra": {
1100 | "version": "8.1.0",
1101 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz",
1102 | "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==",
1103 | "dev": true,
1104 | "requires": {
1105 | "graceful-fs": "^4.2.0",
1106 | "jsonfile": "^4.0.0",
1107 | "universalify": "^0.1.0"
1108 | }
1109 | },
1110 | "function-bind": {
1111 | "version": "1.1.1",
1112 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
1113 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
1114 | "dev": true
1115 | },
1116 | "globals": {
1117 | "version": "11.12.0",
1118 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
1119 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
1120 | "dev": true
1121 | },
1122 | "graceful-fs": {
1123 | "version": "4.2.3",
1124 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
1125 | "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
1126 | "dev": true
1127 | },
1128 | "has-flag": {
1129 | "version": "3.0.0",
1130 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
1131 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
1132 | "dev": true
1133 | },
1134 | "has-symbols": {
1135 | "version": "1.0.1",
1136 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
1137 | "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",
1138 | "dev": true
1139 | },
1140 | "invariant": {
1141 | "version": "2.2.4",
1142 | "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz",
1143 | "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==",
1144 | "dev": true,
1145 | "requires": {
1146 | "loose-envify": "^1.0.0"
1147 | }
1148 | },
1149 | "is-module": {
1150 | "version": "1.0.0",
1151 | "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz",
1152 | "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=",
1153 | "dev": true
1154 | },
1155 | "jest-worker": {
1156 | "version": "24.9.0",
1157 | "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-24.9.0.tgz",
1158 | "integrity": "sha512-51PE4haMSXcHohnSMdM42anbvZANYTqMrr52tVKPqqsPJMzoP6FYYDVqahX/HrAoKEKz3uUPzSvKs9A3qR4iVw==",
1159 | "dev": true,
1160 | "requires": {
1161 | "merge-stream": "^2.0.0",
1162 | "supports-color": "^6.1.0"
1163 | },
1164 | "dependencies": {
1165 | "supports-color": {
1166 | "version": "6.1.0",
1167 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.1.0.tgz",
1168 | "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==",
1169 | "dev": true,
1170 | "requires": {
1171 | "has-flag": "^3.0.0"
1172 | }
1173 | }
1174 | }
1175 | },
1176 | "js-levenshtein": {
1177 | "version": "1.1.6",
1178 | "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz",
1179 | "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==",
1180 | "dev": true
1181 | },
1182 | "js-tokens": {
1183 | "version": "4.0.0",
1184 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
1185 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
1186 | "dev": true
1187 | },
1188 | "jsesc": {
1189 | "version": "2.5.2",
1190 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz",
1191 | "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==",
1192 | "dev": true
1193 | },
1194 | "json5": {
1195 | "version": "2.1.1",
1196 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.1.tgz",
1197 | "integrity": "sha512-l+3HXD0GEI3huGq1njuqtzYK8OYJyXMkOLtQ53pjWh89tvWS2h6l+1zMkYWqlb57+SiQodKZyvMEFb2X+KrFhQ==",
1198 | "dev": true,
1199 | "requires": {
1200 | "minimist": "^1.2.0"
1201 | }
1202 | },
1203 | "jsonfile": {
1204 | "version": "4.0.0",
1205 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
1206 | "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=",
1207 | "dev": true,
1208 | "requires": {
1209 | "graceful-fs": "^4.1.6"
1210 | }
1211 | },
1212 | "locate-path": {
1213 | "version": "5.0.0",
1214 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
1215 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
1216 | "dev": true,
1217 | "requires": {
1218 | "p-locate": "^4.1.0"
1219 | }
1220 | },
1221 | "lodash": {
1222 | "version": "4.17.15",
1223 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
1224 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
1225 | "dev": true
1226 | },
1227 | "loose-envify": {
1228 | "version": "1.4.0",
1229 | "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",
1230 | "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",
1231 | "dev": true,
1232 | "requires": {
1233 | "js-tokens": "^3.0.0 || ^4.0.0"
1234 | }
1235 | },
1236 | "magic-string": {
1237 | "version": "0.25.4",
1238 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.4.tgz",
1239 | "integrity": "sha512-oycWO9nEVAP2RVPbIoDoA4Y7LFIJ3xRYov93gAyJhZkET1tNuB0u7uWkZS2LpBWTJUWnmau/To8ECWRC+jKNfw==",
1240 | "dev": true,
1241 | "requires": {
1242 | "sourcemap-codec": "^1.4.4"
1243 | }
1244 | },
1245 | "make-dir": {
1246 | "version": "3.0.0",
1247 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.0.0.tgz",
1248 | "integrity": "sha512-grNJDhb8b1Jm1qeqW5R/O63wUo4UXo2v2HMic6YT9i/HBlF93S8jkMgH7yugvY9ABDShH4VZMn8I+U8+fCNegw==",
1249 | "dev": true,
1250 | "requires": {
1251 | "semver": "^6.0.0"
1252 | }
1253 | },
1254 | "merge-stream": {
1255 | "version": "2.0.0",
1256 | "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",
1257 | "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",
1258 | "dev": true
1259 | },
1260 | "minimist": {
1261 | "version": "1.2.0",
1262 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
1263 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
1264 | "dev": true
1265 | },
1266 | "ms": {
1267 | "version": "2.1.2",
1268 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
1269 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
1270 | "dev": true
1271 | },
1272 | "node-releases": {
1273 | "version": "1.1.42",
1274 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.42.tgz",
1275 | "integrity": "sha512-OQ/ESmUqGawI2PRX+XIRao44qWYBBfN54ImQYdWVTQqUckuejOg76ysSqDBK8NG3zwySRVnX36JwDQ6x+9GxzA==",
1276 | "dev": true,
1277 | "requires": {
1278 | "semver": "^6.3.0"
1279 | }
1280 | },
1281 | "object-keys": {
1282 | "version": "1.1.1",
1283 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
1284 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",
1285 | "dev": true
1286 | },
1287 | "object.assign": {
1288 | "version": "4.1.0",
1289 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz",
1290 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==",
1291 | "dev": true,
1292 | "requires": {
1293 | "define-properties": "^1.1.2",
1294 | "function-bind": "^1.1.1",
1295 | "has-symbols": "^1.0.0",
1296 | "object-keys": "^1.0.11"
1297 | }
1298 | },
1299 | "p-limit": {
1300 | "version": "2.2.1",
1301 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz",
1302 | "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==",
1303 | "dev": true,
1304 | "requires": {
1305 | "p-try": "^2.0.0"
1306 | }
1307 | },
1308 | "p-locate": {
1309 | "version": "4.1.0",
1310 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
1311 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
1312 | "dev": true,
1313 | "requires": {
1314 | "p-limit": "^2.2.0"
1315 | }
1316 | },
1317 | "p-try": {
1318 | "version": "2.2.0",
1319 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
1320 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
1321 | "dev": true
1322 | },
1323 | "path-exists": {
1324 | "version": "4.0.0",
1325 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
1326 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
1327 | "dev": true
1328 | },
1329 | "path-parse": {
1330 | "version": "1.0.6",
1331 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
1332 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
1333 | "dev": true
1334 | },
1335 | "pkg-dir": {
1336 | "version": "4.2.0",
1337 | "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",
1338 | "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",
1339 | "dev": true,
1340 | "requires": {
1341 | "find-up": "^4.0.0"
1342 | }
1343 | },
1344 | "private": {
1345 | "version": "0.1.8",
1346 | "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz",
1347 | "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==",
1348 | "dev": true
1349 | },
1350 | "regenerate": {
1351 | "version": "1.4.0",
1352 | "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz",
1353 | "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==",
1354 | "dev": true
1355 | },
1356 | "regenerate-unicode-properties": {
1357 | "version": "8.1.0",
1358 | "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-8.1.0.tgz",
1359 | "integrity": "sha512-LGZzkgtLY79GeXLm8Dp0BVLdQlWICzBnJz/ipWUgo59qBaZ+BHtq51P2q1uVZlppMuUAT37SDk39qUbjTWB7bA==",
1360 | "dev": true,
1361 | "requires": {
1362 | "regenerate": "^1.4.0"
1363 | }
1364 | },
1365 | "regenerator-transform": {
1366 | "version": "0.14.1",
1367 | "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.14.1.tgz",
1368 | "integrity": "sha512-flVuee02C3FKRISbxhXl9mGzdbWUVHubl1SMaknjxkFB1/iqpJhArQUvRxOOPEc/9tAiX0BaQ28FJH10E4isSQ==",
1369 | "dev": true,
1370 | "requires": {
1371 | "private": "^0.1.6"
1372 | }
1373 | },
1374 | "regexpu-core": {
1375 | "version": "4.6.0",
1376 | "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-4.6.0.tgz",
1377 | "integrity": "sha512-YlVaefl8P5BnFYOITTNzDvan1ulLOiXJzCNZxduTIosN17b87h3bvG9yHMoHaRuo88H4mQ06Aodj5VtYGGGiTg==",
1378 | "dev": true,
1379 | "requires": {
1380 | "regenerate": "^1.4.0",
1381 | "regenerate-unicode-properties": "^8.1.0",
1382 | "regjsgen": "^0.5.0",
1383 | "regjsparser": "^0.6.0",
1384 | "unicode-match-property-ecmascript": "^1.0.4",
1385 | "unicode-match-property-value-ecmascript": "^1.1.0"
1386 | }
1387 | },
1388 | "regjsgen": {
1389 | "version": "0.5.1",
1390 | "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.5.1.tgz",
1391 | "integrity": "sha512-5qxzGZjDs9w4tzT3TPhCJqWdCc3RLYwy9J2NB0nm5Lz+S273lvWcpjaTGHsT1dc6Hhfq41uSEOw8wBmxrKOuyg==",
1392 | "dev": true
1393 | },
1394 | "regjsparser": {
1395 | "version": "0.6.0",
1396 | "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.6.0.tgz",
1397 | "integrity": "sha512-RQ7YyokLiQBomUJuUG8iGVvkgOLxwyZM8k6d3q5SAXpg4r5TZJZigKFvC6PpD+qQ98bCDC5YelPeA3EucDoNeQ==",
1398 | "dev": true,
1399 | "requires": {
1400 | "jsesc": "~0.5.0"
1401 | },
1402 | "dependencies": {
1403 | "jsesc": {
1404 | "version": "0.5.0",
1405 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz",
1406 | "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=",
1407 | "dev": true
1408 | }
1409 | }
1410 | },
1411 | "resolve": {
1412 | "version": "1.13.1",
1413 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz",
1414 | "integrity": "sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==",
1415 | "dev": true,
1416 | "requires": {
1417 | "path-parse": "^1.0.6"
1418 | }
1419 | },
1420 | "rollup": {
1421 | "version": "1.27.8",
1422 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.27.8.tgz",
1423 | "integrity": "sha512-EVoEV5rAWl+5clnGznt1KY8PeVkzVQh/R0d2s3gHEkN7gfoyC4JmvIVuCtPbYE8NM5Ep/g+nAmvKXBjzaqTsHA==",
1424 | "dev": true,
1425 | "requires": {
1426 | "@types/estree": "*",
1427 | "@types/node": "*",
1428 | "acorn": "^7.1.0"
1429 | }
1430 | },
1431 | "rollup-plugin-babel": {
1432 | "version": "4.3.3",
1433 | "resolved": "https://registry.npmjs.org/rollup-plugin-babel/-/rollup-plugin-babel-4.3.3.tgz",
1434 | "integrity": "sha512-tKzWOCmIJD/6aKNz0H1GMM+lW1q9KyFubbWzGiOG540zxPPifnEAHTZwjo0g991Y+DyOZcLqBgqOdqazYE5fkw==",
1435 | "dev": true,
1436 | "requires": {
1437 | "@babel/helper-module-imports": "^7.0.0",
1438 | "rollup-pluginutils": "^2.8.1"
1439 | }
1440 | },
1441 | "rollup-plugin-terser": {
1442 | "version": "5.1.2",
1443 | "resolved": "https://registry.npmjs.org/rollup-plugin-terser/-/rollup-plugin-terser-5.1.2.tgz",
1444 | "integrity": "sha512-sWKBCOS+vUkRtHtEiJPAf+WnBqk/C402fBD9AVHxSIXMqjsY7MnYWKYEUqGixtr0c8+1DjzUEPlNgOYQPVrS1g==",
1445 | "dev": true,
1446 | "requires": {
1447 | "@babel/code-frame": "^7.0.0",
1448 | "jest-worker": "^24.6.0",
1449 | "rollup-pluginutils": "^2.8.1",
1450 | "serialize-javascript": "^1.7.0",
1451 | "terser": "^4.1.0"
1452 | },
1453 | "dependencies": {
1454 | "serialize-javascript": {
1455 | "version": "1.9.1",
1456 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-1.9.1.tgz",
1457 | "integrity": "sha512-0Vb/54WJ6k5v8sSWN09S0ora+Hnr+cX40r9F170nT+mSkaxltoE/7R3OrIdBSUv1OoiobH1QoWQbCnAO+e8J1A==",
1458 | "dev": true
1459 | }
1460 | }
1461 | },
1462 | "rollup-plugin-typescript2": {
1463 | "version": "0.25.3",
1464 | "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.25.3.tgz",
1465 | "integrity": "sha512-ADkSaidKBovJmf5VBnZBZe+WzaZwofuvYdzGAKTN/J4hN7QJCFYAq7IrH9caxlru6T5qhX41PNFS1S4HqhsGQg==",
1466 | "dev": true,
1467 | "requires": {
1468 | "find-cache-dir": "^3.0.0",
1469 | "fs-extra": "8.1.0",
1470 | "resolve": "1.12.0",
1471 | "rollup-pluginutils": "2.8.1",
1472 | "tslib": "1.10.0"
1473 | },
1474 | "dependencies": {
1475 | "resolve": {
1476 | "version": "1.12.0",
1477 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz",
1478 | "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==",
1479 | "dev": true,
1480 | "requires": {
1481 | "path-parse": "^1.0.6"
1482 | }
1483 | },
1484 | "rollup-pluginutils": {
1485 | "version": "2.8.1",
1486 | "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.1.tgz",
1487 | "integrity": "sha512-J5oAoysWar6GuZo0s+3bZ6sVZAC0pfqKz68De7ZgDi5z63jOVZn1uJL/+z1jeKHNbGII8kAyHF5q8LnxSX5lQg==",
1488 | "dev": true,
1489 | "requires": {
1490 | "estree-walker": "^0.6.1"
1491 | }
1492 | }
1493 | }
1494 | },
1495 | "rollup-pluginutils": {
1496 | "version": "2.8.2",
1497 | "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz",
1498 | "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==",
1499 | "dev": true,
1500 | "requires": {
1501 | "estree-walker": "^0.6.1"
1502 | }
1503 | },
1504 | "rxjs": {
1505 | "version": "6.5.3",
1506 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.5.3.tgz",
1507 | "integrity": "sha512-wuYsAYYFdWTAnAaPoKGNhfpWwKZbJW+HgAJ+mImp+Epl7BG8oNWBCTyRM8gba9k4lk8BgWdoYm21Mo/RYhhbgA==",
1508 | "requires": {
1509 | "tslib": "^1.9.0"
1510 | }
1511 | },
1512 | "safe-buffer": {
1513 | "version": "5.1.2",
1514 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
1515 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
1516 | "dev": true
1517 | },
1518 | "semver": {
1519 | "version": "6.3.0",
1520 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
1521 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
1522 | "dev": true
1523 | },
1524 | "serialize-javascript": {
1525 | "version": "2.1.1",
1526 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-2.1.1.tgz",
1527 | "integrity": "sha512-MPLPRpD4FNqWq9tTIjYG5LesFouDhdyH0EPY3gVK4DRD5+g4aDqdNSzLIwceulo3Yj+PL1bPh6laE5+H6LTcrQ==",
1528 | "dev": true
1529 | },
1530 | "source-map": {
1531 | "version": "0.6.1",
1532 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
1533 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
1534 | "dev": true
1535 | },
1536 | "source-map-support": {
1537 | "version": "0.5.16",
1538 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.16.tgz",
1539 | "integrity": "sha512-efyLRJDr68D9hBBNIPWFjhpFzURh+KJykQwvMyW5UiZzYwoF6l4YMMDIJJEyFWxWCqfyxLzz6tSfUFR+kXXsVQ==",
1540 | "dev": true,
1541 | "requires": {
1542 | "buffer-from": "^1.0.0",
1543 | "source-map": "^0.6.0"
1544 | }
1545 | },
1546 | "sourcemap-codec": {
1547 | "version": "1.4.6",
1548 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.6.tgz",
1549 | "integrity": "sha512-1ZooVLYFxC448piVLBbtOxFcXwnymH9oUF8nRd3CuYDVvkRBxRl6pB4Mtas5a4drtL+E8LDgFkQNcgIw6tc8Hg==",
1550 | "dev": true
1551 | },
1552 | "supports-color": {
1553 | "version": "5.5.0",
1554 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
1555 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
1556 | "dev": true,
1557 | "requires": {
1558 | "has-flag": "^3.0.0"
1559 | }
1560 | },
1561 | "terser": {
1562 | "version": "4.4.2",
1563 | "resolved": "https://registry.npmjs.org/terser/-/terser-4.4.2.tgz",
1564 | "integrity": "sha512-Uufrsvhj9O1ikwgITGsZ5EZS6qPokUOkCegS7fYOdGTv+OA90vndUbU6PEjr5ePqHfNUbGyMO7xyIZv2MhsALQ==",
1565 | "dev": true,
1566 | "requires": {
1567 | "commander": "^2.20.0",
1568 | "source-map": "~0.6.1",
1569 | "source-map-support": "~0.5.12"
1570 | }
1571 | },
1572 | "to-fast-properties": {
1573 | "version": "2.0.0",
1574 | "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
1575 | "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=",
1576 | "dev": true
1577 | },
1578 | "tslib": {
1579 | "version": "1.10.0",
1580 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz",
1581 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ=="
1582 | },
1583 | "typescript": {
1584 | "version": "3.7.3",
1585 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz",
1586 | "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw==",
1587 | "dev": true
1588 | },
1589 | "unicode-canonical-property-names-ecmascript": {
1590 | "version": "1.0.4",
1591 | "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-1.0.4.tgz",
1592 | "integrity": "sha512-jDrNnXWHd4oHiTZnx/ZG7gtUTVp+gCcTTKr8L0HjlwphROEW3+Him+IpvC+xcJEFegapiMZyZe02CyuOnRmbnQ==",
1593 | "dev": true
1594 | },
1595 | "unicode-match-property-ecmascript": {
1596 | "version": "1.0.4",
1597 | "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-1.0.4.tgz",
1598 | "integrity": "sha512-L4Qoh15vTfntsn4P1zqnHulG0LdXgjSO035fEpdtp6YxXhMT51Q6vgM5lYdG/5X3MjS+k/Y9Xw4SFCY9IkR0rg==",
1599 | "dev": true,
1600 | "requires": {
1601 | "unicode-canonical-property-names-ecmascript": "^1.0.4",
1602 | "unicode-property-aliases-ecmascript": "^1.0.4"
1603 | }
1604 | },
1605 | "unicode-match-property-value-ecmascript": {
1606 | "version": "1.1.0",
1607 | "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-1.1.0.tgz",
1608 | "integrity": "sha512-hDTHvaBk3RmFzvSl0UVrUmC3PuW9wKVnpoUDYH0JDkSIovzw+J5viQmeYHxVSBptubnr7PbH2e0fnpDRQnQl5g==",
1609 | "dev": true
1610 | },
1611 | "unicode-property-aliases-ecmascript": {
1612 | "version": "1.0.5",
1613 | "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-1.0.5.tgz",
1614 | "integrity": "sha512-L5RAqCfXqAwR3RriF8pM0lU0w4Ryf/GgzONwi6KnL1taJQa7x1TCxdJnILX59WIGOwR57IVxn7Nej0fz1Ny6fw==",
1615 | "dev": true
1616 | },
1617 | "universalify": {
1618 | "version": "0.1.2",
1619 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
1620 | "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
1621 | "dev": true
1622 | }
1623 | }
1624 | }
1625 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "nedux",
3 | "version": "1.0.23",
4 | "description": "the next redux state management",
5 | "main": "lib/nedux.js",
6 | "unpkg": "dist/nedux.js",
7 | "module": "es/nedux.js",
8 | "types": "types/index.d.ts",
9 | "bugs": "https://github.com/lucasmrdt/nedux/issues",
10 | "files": [
11 | "dist",
12 | "lib",
13 | "es",
14 | "src",
15 | "types"
16 | ],
17 | "repository": {
18 | "url": "https://github.com/lucasmrdt/nedux"
19 | },
20 | "authors": [
21 | "Lucas Marandat (https://github.com/lucasmrdt)"
22 | ],
23 | "scripts": {
24 | "test": "echo \"Error: no test specified\" && exit 1",
25 | "check-types": "tsc --noEmit",
26 | "build": "rollup -c",
27 | "prepublish": "npm run check-types && npm run build"
28 | },
29 | "keywords": [
30 | "nedux",
31 | "typescript",
32 | "next-redux",
33 | "store",
34 | "state-management",
35 | "functional",
36 | "state"
37 | ],
38 | "author": "lucasmrdt",
39 | "license": "ISC",
40 | "npmName": "nedux",
41 | "npmFileMap": [
42 | {
43 | "basePath": "/dist/",
44 | "files": [
45 | "*.js"
46 | ]
47 | }
48 | ],
49 | "devDependencies": {
50 | "@babel/core": "^7.7.4",
51 | "@babel/plugin-proposal-object-rest-spread": "^7.7.4",
52 | "@babel/preset-env": "^7.7.4",
53 | "@babel/preset-typescript": "^7.7.4",
54 | "@rollup/plugin-node-resolve": "^6.0.0",
55 | "@rollup/plugin-replace": "^2.2.1",
56 | "rollup": "^1.27.8",
57 | "rollup-plugin-babel": "^4.3.3",
58 | "rollup-plugin-terser": "^5.1.2",
59 | "rollup-plugin-typescript2": "^0.25.3",
60 | "serialize-javascript": ">=2.1.1",
61 | "typescript": "^3.7.3"
62 | },
63 | "dependencies": {
64 | "rxjs": "^6.5.3"
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/rollup.config.js:
--------------------------------------------------------------------------------
1 | import nodeResolve from '@rollup/plugin-node-resolve'
2 | import babel from 'rollup-plugin-babel'
3 | import replace from '@rollup/plugin-replace'
4 | import typescript from 'rollup-plugin-typescript2'
5 | import {
6 | terser
7 | } from 'rollup-plugin-terser'
8 |
9 | import pkg from './package.json'
10 |
11 | const extensions = ['.ts']
12 | const noDeclarationFiles = {
13 | compilerOptions: {
14 | declaration: false
15 | }
16 | }
17 |
18 | const makeExternalPredicate = externalArr => {
19 | if (externalArr.length === 0) {
20 | return () => false
21 | }
22 | const pattern = new RegExp(`^(${externalArr.join('|')})($|/)`)
23 | return id => pattern.test(id)
24 | }
25 |
26 | export default [
27 | // CommonJS
28 | {
29 | input: 'src/index.ts',
30 | output: {
31 | file: 'lib/nedux.js',
32 | format: 'cjs',
33 | indent: false
34 | },
35 | external: makeExternalPredicate([
36 | ...Object.keys(pkg.dependencies || {}),
37 | ...Object.keys(pkg.peerDependencies || {})
38 | ]),
39 | plugins: [
40 | nodeResolve({
41 | extensions
42 | }),
43 | typescript({
44 | useTsconfigDeclarationDir: true
45 | }),
46 | babel({
47 | extensions,
48 | runtimeHelpers: true
49 | })
50 | ]
51 | },
52 |
53 | // ES
54 | {
55 | input: 'src/index.ts',
56 | output: {
57 | file: 'es/nedux.js',
58 | format: 'es',
59 | indent: false
60 | },
61 | external: makeExternalPredicate([
62 | ...Object.keys(pkg.dependencies || {}),
63 | ...Object.keys(pkg.peerDependencies || {})
64 | ]),
65 | plugins: [
66 | nodeResolve({
67 | extensions
68 | }),
69 | typescript({
70 | tsconfigOverride: noDeclarationFiles
71 | }),
72 | babel({
73 | extensions,
74 | runtimeHelpers: true
75 | })
76 | ]
77 | },
78 |
79 | // ES for Browsers
80 | {
81 | input: 'src/index.ts',
82 | output: {
83 | file: 'es/nedux.mjs',
84 | format: 'es',
85 | indent: false
86 | },
87 | plugins: [
88 | nodeResolve({
89 | extensions
90 | }),
91 | replace({
92 | 'process.env.NODE_ENV': JSON.stringify('production')
93 | }),
94 | typescript({
95 | tsconfigOverride: noDeclarationFiles
96 | }),
97 | babel({
98 | extensions,
99 | exclude: 'node_modules/**'
100 | }),
101 | terser({
102 | compress: {
103 | pure_getters: true,
104 | unsafe: true,
105 | unsafe_comps: true,
106 | warnings: false
107 | }
108 | })
109 | ]
110 | },
111 |
112 | // UMD Development
113 | {
114 | input: 'src/index.ts',
115 | output: {
116 | file: 'dist/nedux.js',
117 | format: 'umd',
118 | name: 'Nedux',
119 | indent: false
120 | },
121 | plugins: [
122 | nodeResolve({
123 | extensions
124 | }),
125 | typescript({
126 | tsconfigOverride: noDeclarationFiles
127 | }),
128 | babel({
129 | extensions,
130 | exclude: 'node_modules/**'
131 | }),
132 | replace({
133 | 'process.env.NODE_ENV': JSON.stringify('development')
134 | })
135 | ]
136 | },
137 |
138 | // UMD Production
139 | {
140 | input: 'src/index.ts',
141 | output: {
142 | file: 'dist/nedux.min.js',
143 | format: 'umd',
144 | name: 'Nedux',
145 | indent: false
146 | },
147 | plugins: [
148 | nodeResolve({
149 | extensions
150 | }),
151 | typescript({
152 | tsconfigOverride: noDeclarationFiles
153 | }),
154 | babel({
155 | extensions,
156 | exclude: 'node_modules/**'
157 | }),
158 | replace({
159 | 'process.env.NODE_ENV': JSON.stringify('production')
160 | }),
161 | terser({
162 | compress: {
163 | pure_getters: true,
164 | unsafe: true,
165 | unsafe_comps: true,
166 | warnings: false
167 | }
168 | })
169 | ]
170 | }
171 | ]
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from './store';
2 |
--------------------------------------------------------------------------------
/src/store.ts:
--------------------------------------------------------------------------------
1 | import { BehaviorSubject, NextObserver, Subscription } from 'rxjs';
2 |
3 | type DefaultState = { [key: string]: any };
4 |
5 | type SubscriptionOptions = { withInitialValue?: boolean };
6 |
7 | export interface Store<
8 | T extends DefaultState = DefaultState,
9 | K extends keyof T = keyof T
10 | > {
11 | get: (key: Key) => Value;
12 | set: (
13 | key: Key,
14 | value: Value | ((prevValue: Value) => Value),
15 | ) => void;
16 | subscribe: (
17 | key: Key | '',
18 | observer: NextObserver | ((value: Value, key: Key) => any),
19 | options?: SubscriptionOptions,
20 | ) => Subscription | Subscription[];
21 | }
22 |
23 | export interface Middleware {
24 | (store: Store): void;
25 | }
26 |
27 | export const createStore = <
28 | T extends DefaultState,
29 | K extends keyof T = keyof T,
30 | U extends K = K
31 | >(
32 | initState: T,
33 | middleware: Middleware[] = [],
34 | ): Store => {
35 | type Subjects = { [KK in keyof T]: BehaviorSubject };
36 |
37 | // Map each `initState` entries to a BehaviorSubject
38 | const subjects: Subjects = Object.keys(initState).reduce(
39 | (acc, key: string) => {
40 | const defaultValue = initState[key];
41 | const subject = new BehaviorSubject(defaultValue);
42 | return { ...acc, [key]: subject };
43 | },
44 | {} as Subjects,
45 | );
46 |
47 | /**
48 | * Get the stored value at the key
49 | * @param key target key
50 | */
51 | const get = (key: Key): Value => {
52 | return subjects[key].getValue();
53 | };
54 |
55 | /**
56 | * Set a new value of the property `key` of the store
57 | * @param key target key
58 | * @param value new value
59 | */
60 | const set = (
61 | key: Key,
62 | value: Value | ((prevValue: Value) => Value),
63 | ) => {
64 | subjects[key].next(
65 | typeof value === 'function' ? (value as Function)(get(key)) : value,
66 | );
67 | };
68 |
69 | // @todo conditional typing return
70 | /**
71 | * Subscribe to a key of the store
72 | * @param key target key you want to subscribe
73 | * @param observer observer that will be called each time the value of key has changed
74 | */
75 | const subscribe = (
76 | key: Key | '',
77 | observer: NextObserver | ((value: Value, key: Key) => any),
78 | { withInitialValue = false }: SubscriptionOptions = {},
79 | ) => {
80 | let hasBeenInitialized = false;
81 |
82 | const validObserverFactory = (k: Key): NextObserver =>
83 | typeof observer === 'function'
84 | ? { next: value => observer(value, k) }
85 | : observer;
86 |
87 | const wrappedObserverFactory = (k: Key): NextObserver => {
88 | const validObserver = validObserverFactory(k);
89 | return {
90 | ...validObserver,
91 | next: withInitialValue
92 | ? validObserver.next
93 | : (nextValue: Value) => {
94 | if (hasBeenInitialized) {
95 | validObserver.next && validObserver.next(nextValue);
96 | } else {
97 | hasBeenInitialized = true;
98 | }
99 | },
100 | };
101 | };
102 |
103 | return key === ''
104 | ? Object.keys(subjects).map(key =>
105 | subjects[key].subscribe(wrappedObserverFactory(key as Key)),
106 | )
107 | : subjects[key].subscribe(wrappedObserverFactory(key));
108 | };
109 |
110 | // Create the store
111 | const store = { get, set, subscribe };
112 |
113 | // Initialize all middleware
114 | middleware.forEach(factory => factory(store));
115 |
116 | return store;
117 | };
118 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | /* Basic Options */
4 | "target": "ESNext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ ,
5 | "module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ ,
6 | "lib": [
7 | "dom",
8 | "es2017"
9 | ] /* Specify library files to be included in the compilation. */ ,
10 | // "allowJs": true /* Allow javascript files to be compiled. */,
11 | // "checkJs": true, /* Report errors in .js files. */
12 | "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ ,
13 | "declaration": true /* Generates corresponding '.d.ts' file. */ ,
14 | // "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */,
15 | "declarationDir": "./types" /* Output directory for generated declaration files. */ ,
16 | // "emitDeclarationOnly": true /* Only emit ‘.d.ts’ declaration files. */,
17 | "sourceMap": true /* Generates corresponding '.map' file. */ ,
18 | // "outFile": "./", /* Concatenate and emit output to single file. */
19 | "outDir": "./dist" /* Redirect output structure to the directory. */ ,
20 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
21 | // "composite": true, /* Enable project compilation */
22 | "removeComments": false /* Do not emit comments to output. */ ,
23 | // "noEmit": true /* Do not emit outputs. */,
24 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */
25 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
26 | // "isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */,
27 |
28 | /* Strict Type-Checking Options */
29 | "strict": true /* Enable all strict type-checking options. */ ,
30 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
31 | // "strictNullChecks": true, /* Enable strict null checks. */
32 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */
33 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
34 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
35 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
36 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
37 |
38 | /* Additional Checks */
39 | "noUnusedLocals": true /* Report errors on unused locals. */ ,
40 | "noUnusedParameters": true /* Report errors on unused parameters. */ ,
41 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
42 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
43 |
44 | /* Module Resolution Options */
45 | "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ ,
46 | "baseUrl": "./" /* Base directory to resolve non-absolute module names. */ ,
47 | // "paths": {
48 | // "*": ["*", "types/*"]
49 | // } /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */,
50 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
51 | // "typeRoots": [], /* List of folders to include type definitions from. */
52 | // "types": [], /* Type declaration files to be included in compilation. */
53 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
54 | "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ ,
55 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
56 |
57 | /* Source Map Options */
58 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
59 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
61 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
62 |
63 | /* Experimental Options */
64 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
65 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
66 | "skipLibCheck": true /* This trusts that typings files (@types) are accurate and don't need to be checked by the compiler. This speeds build times. */
67 | },
68 | "include": ["./src/**/*"]
69 | }
--------------------------------------------------------------------------------