├── .gitignore ├── .travis.yml ├── CODEOWNERS ├── CONTRIBUTING ├── CONTRIBUTORS ├── Dockerfile ├── LICENSE ├── README.md ├── dist ├── bundle │ └── clooney.js ├── clooney.d.ts └── clooney.js ├── examples └── index.html ├── karma.conf.js ├── licenseheader.txt ├── package-lock.json ├── package.json ├── renovate.json ├── rollup.config.js ├── src └── clooney.ts ├── tests ├── fixtures │ └── worker.js └── sometests.js └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist/package.json 3 | dist/README.md 4 | *.pem 5 | *.bak 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | 3 | services: 4 | - docker 5 | 6 | script: 7 | - docker build -t clooney . 8 | - docker run --rm -v `pwd`:/usr/src clooney 9 | -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | @surma 2 | -------------------------------------------------------------------------------- /CONTRIBUTING: -------------------------------------------------------------------------------- 1 | Want to contribute? Great! First, read this page (including the small print at the end). 2 | 3 | ### Before you contribute 4 | Before we can use your code, you must sign the 5 | [Google Individual Contributor License Agreement] 6 | (https://cla.developers.google.com/about/google-individual) 7 | (CLA), which you can do online. The CLA is necessary mainly because you own the 8 | copyright to your changes, even after your contribution becomes part of our 9 | codebase, so we need your permission to use and distribute your code. We also 10 | need to be sure of various other things—for instance that you'll tell us if you 11 | know that your code infringes on other people's patents. You don't have to sign 12 | the CLA until after you've submitted your code for review and a member has 13 | approved it, but you must do it before we can put your code into our codebase. 14 | Before you start working on a larger contribution, you should get in touch with 15 | us first through the issue tracker with your idea so that we can help out and 16 | possibly guide you. Coordinating up front makes it much easier to avoid 17 | frustration later on. 18 | 19 | ### Code reviews 20 | All submissions, including submissions by project members, require review. We 21 | use Github pull requests for this purpose. 22 | 23 | ### The small print 24 | Contributions made by corporations are covered by a different agreement than 25 | the one above, the 26 | [Software Grant and Corporate Contributor License Agreement] 27 | (https://cla.developers.google.com/about/google-corporate). 28 | -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # People who have agreed to one of the CLAs and can contribute patches. 2 | # The AUTHORS file lists the copyright holders; this file 3 | # lists people. For example, Google employees are listed here 4 | # but not in AUTHORS, because Google holds the copyright. 5 | # 6 | # https://developers.google.com/open-source/cla/individual 7 | # https://developers.google.com/open-source/cla/corporate 8 | # 9 | # Names should be added to this file as: 10 | # Name 11 | Surma 12 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM selenium/node-chrome:latest@sha256:498f1c5c5c3d2c4fbd05981a187c7df3385cef68caa72002ed3b5a587f4a2577 2 | 3 | USER root 4 | 5 | RUN apt-get update -qqy \ 6 | && rm -rf /var/lib/apt/lists/* /var/cache/apt/* \ 7 | && rm /bin/sh && ln -s /bin/bash /bin/sh \ 8 | && chown seluser /usr/local 9 | 10 | ENV NVM_DIR /usr/local/nvm 11 | RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \ 12 | && source $NVM_DIR/nvm.sh \ 13 | && nvm install v8 14 | 15 | ENV CHROME_BIN /opt/google/chrome/chrome 16 | ENV INSIDE_DOCKER=1 17 | 18 | WORKDIR /usr/src 19 | ENTRYPOINT source $NVM_DIR/nvm.sh && npm i && npm test 20 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright 2018 Google Inc. 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Clooney 2 | Clooney is an actor (ayooo) library for the web. Classes given to Clooney will be instantiated and run in a worker, keeping the main thread responsive. 3 | 4 | > ⚠️ **Caveat:** The class cannot rely on its surrounding scope, since it is executed in an isolated context. This might change once workers support ES6 modules. 5 | 6 | ## Quickstart 7 | An example says more than 1000 words: 8 | 9 | ```html 10 | 11 | 23 | ``` 24 | 25 | I’m collecting more examples of Clooney in action in [this Glitch](https://clooney-examples.glitch.me/). 26 | 27 | ## Browser support 28 | 29 | Clooney uses [Comlink] under the hood, and so inherits its browser compatibility matrix. 30 | 31 | ![Chrome 56+](https://img.shields.io/badge/Chrome-56+-green.svg?style=flat-square) 32 | ![Edge 15+](https://img.shields.io/badge/Edge-15+-green.svg?style=flat-square) 33 | ![Firefox 52+](https://img.shields.io/badge/Firefox-52+-green.svg?style=flat-square) 34 | ![Opera 43+](https://img.shields.io/badge/Opera-43+-green.svg?style=flat-square) 35 | ![Safari 10.1+](https://img.shields.io/badge/Safari-10.1+-green.svg?style=flat-square) 36 | ![Samsung Internet 6.0+](https://img.shields.io/badge/Samsung_Internet-6.0+-green.svg?style=flat-square) 37 | 38 | Browsers without [ES6 Proxy] support can use the [proxy-polyfill]. 39 | 40 | ## Events and Functions 41 | Functions and events are not transferable (i.e. can’t be sent from to a worker), but Clooney has special handling for them: 42 | 43 | ```js 44 | class MyRemoteClass { 45 | onClick(remoteEvent) { 46 | // … react to click … 47 | } 48 | } 49 | 50 | const instance = await Clooney.spawn(MyRemoteClass); 51 | const button = document.querySelector('button'); 52 | button.addEventListener('click', instance.onClick.bind(instance)); 53 | ``` 54 | 55 | The `remoteEvent` object is a mangled version of the original event to make it transferable: 56 | 57 | ```js 58 | const remoteEvent = { 59 | targetId, // = event.target.id 60 | targetClassList, // = [...event.target.classList] 61 | detail, // = event.detail 62 | data // = event.data 63 | }; 64 | ``` 65 | 66 | ## Promises and async methods 67 | Clooney handles promises (and therefore, async methods) automatically: 68 | 69 | ```js 70 | class Actor { 71 | timeoutThing() { 72 | return new Promise(resolve => setTimeout(_ => resolve('ohai'), 1000)); 73 | } 74 | } 75 | 76 | const instance = await strategy.spawn(Actor); 77 | alert(await instance.timeoutThing()); // Will alert() after 1 second 78 | ``` 79 | 80 | ## API 81 | Clooney’s job is to take _actors_ (class definitions) and _spawn_ those actors in _containers_ ([Web Workers][Web Worker]). You can use that instance as if it was a local instance (this is magic provided by [Comlink]). 82 | 83 | ### `Clooney.spawn(class, constructorArgs)` 84 | This call is equivalent to `Clooney.defaultStrategy.spawn(class, constructorArgs)`. Clooney creates an instance of `RoundRobinStrategy` as the default strategy. 85 | 86 | ### Strategies 87 | Strategies decide how many containers are spun up and where a new instance is created. 88 | 89 | ```typescript 90 | export interface Strategy { 91 | /** 92 | * `spawn` instantiates the given actor in an actor container of the strategy’s choice. 93 | * @returns The return type is the type as T, but every method is implicitly async. 94 | */ 95 | spawn(actor: new () => T, constructorArgs: any[], opts: Object): Promise; 96 | /** 97 | * `terminate` calls `terminate()` on all existing containers of the strategy. 98 | */ 99 | terminate(): Promise; 100 | } 101 | ``` 102 | 103 | #### `Clooney.RoundRobinStrategy(opts)` 104 | `RoundRobinStrategy` creates up to n containers and cycles through the containers with every `spawn` call. `RoundRobinStrategy` is the default strategy. 105 | 106 | ### Strategy Options 107 | 108 | - `maxNumContainers`: Maximum number of containers to create (default: 1) 109 | - `newWorkerFunc`: Asynchronous function that creates a new container (default: `new Worker(Clooney.defaultWorkerSrc)`) 110 | 111 | ### `Clooney.asRemoteValue(obj)` 112 | 113 | `asRemoteValue` marks a value. If a marked value is used as an parameter or return value, it will not be transferred but instead proxied. 114 | 115 | ## CDN 116 | If you want to use Clooney from a CDN, you need to work around the same-origin restrictions that workers have: 117 | 118 | ```html 119 | 120 | 129 | ``` 130 | 131 | [Comlink]: https://github.com/GoogleChromeLabs/comlink 132 | [Web Worker]: https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API 133 | [es6 proxy]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy 134 | [proxy-polyfill]: https://github.com/GoogleChrome/proxy-polyfill 135 | 136 | --- 137 | License Apache-2.0 138 | -------------------------------------------------------------------------------- /dist/bundle/clooney.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2018 Google Inc. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | 15 | var Clooney = (function (exports) { 16 | 'use strict'; 17 | 18 | /** 19 | * Copyright 2017 Google Inc. All Rights Reserved. 20 | * Licensed under the Apache License, Version 2.0 (the "License"); 21 | * you may not use this file except in compliance with the License. 22 | * You may obtain a copy of the License at 23 | * http://www.apache.org/licenses/LICENSE-2.0 24 | * Unless required by applicable law or agreed to in writing, software 25 | * distributed under the License is distributed on an "AS IS" BASIS, 26 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 | * See the License for the specific language governing permissions and 28 | * limitations under the License. 29 | */ 30 | const TRANSFERABLE_TYPES = [ArrayBuffer, MessagePort]; 31 | const uid = Math.floor(Math.random() * Number.MAX_SAFE_INTEGER); 32 | const proxyValueSymbol = Symbol("proxyValue"); 33 | const throwSymbol = Symbol("throw"); 34 | const proxyTransferHandler = { 35 | canHandle: (obj) => obj && obj[proxyValueSymbol], 36 | serialize: (obj) => { 37 | const { port1, port2 } = new MessageChannel(); 38 | expose(obj, port1); 39 | return port2; 40 | }, 41 | deserialize: (obj) => { 42 | return proxy(obj); 43 | } 44 | }; 45 | const throwTransferHandler = { 46 | canHandle: (obj) => obj && obj[throwSymbol], 47 | serialize: (obj) => obj.toString() + "\n" + obj.stack, 48 | deserialize: (obj) => { 49 | throw Error(obj); 50 | } 51 | }; 52 | const transferHandlers = new Map([ 53 | ["PROXY", proxyTransferHandler], 54 | ["THROW", throwTransferHandler] 55 | ]); 56 | let pingPongMessageCounter = 0; 57 | function proxy(endpoint, target) { 58 | if (isWindow(endpoint)) 59 | endpoint = windowEndpoint(endpoint); 60 | if (!isEndpoint(endpoint)) 61 | throw Error("endpoint does not have all of addEventListener, removeEventListener and postMessage defined"); 62 | activateEndpoint(endpoint); 63 | return cbProxy(async (irequest) => { 64 | let args = []; 65 | if (irequest.type === "APPLY" || irequest.type === "CONSTRUCT") 66 | args = irequest.argumentsList.map(wrapValue); 67 | const response = await pingPongMessage(endpoint, Object.assign({}, irequest, { argumentsList: args }), transferableProperties(args)); 68 | const result = response.data; 69 | return unwrapValue(result.value); 70 | }, [], target); 71 | } 72 | function proxyValue(obj) { 73 | obj[proxyValueSymbol] = true; 74 | return obj; 75 | } 76 | function expose(rootObj, endpoint) { 77 | if (isWindow(endpoint)) 78 | endpoint = windowEndpoint(endpoint); 79 | if (!isEndpoint(endpoint)) 80 | throw Error("endpoint does not have all of addEventListener, removeEventListener and postMessage defined"); 81 | activateEndpoint(endpoint); 82 | attachMessageHandler(endpoint, async function (event) { 83 | if (!event.data.id || !event.data.callPath) 84 | return; 85 | const irequest = event.data; 86 | let that = await irequest.callPath 87 | .slice(0, -1) 88 | .reduce((obj, propName) => obj[propName], rootObj); 89 | let obj = await irequest.callPath.reduce((obj, propName) => obj[propName], rootObj); 90 | let iresult = obj; 91 | let args = []; 92 | if (irequest.type === "APPLY" || irequest.type === "CONSTRUCT") 93 | args = irequest.argumentsList.map(unwrapValue); 94 | if (irequest.type === "APPLY") { 95 | try { 96 | iresult = await obj.apply(that, args); 97 | } 98 | catch (e) { 99 | iresult = e; 100 | iresult[throwSymbol] = true; 101 | } 102 | } 103 | if (irequest.type === "CONSTRUCT") { 104 | try { 105 | iresult = new obj(...args); // eslint-disable-line new-cap 106 | iresult = proxyValue(iresult); 107 | } 108 | catch (e) { 109 | iresult = e; 110 | iresult[throwSymbol] = true; 111 | } 112 | } 113 | if (irequest.type === "SET") { 114 | obj[irequest.property] = irequest.value; 115 | // FIXME: ES6 Proxy Handler `set` methods are supposed to return a 116 | // boolean. To show good will, we return true asynchronously ¯\_(ツ)_/¯ 117 | iresult = true; 118 | } 119 | iresult = makeInvocationResult(iresult); 120 | iresult.id = irequest.id; 121 | return endpoint.postMessage(iresult, transferableProperties([iresult])); 122 | }); 123 | } 124 | function wrapValue(arg) { 125 | // Is arg itself handled by a TransferHandler? 126 | for (const [key, transferHandler] of transferHandlers) { 127 | if (transferHandler.canHandle(arg)) { 128 | return { 129 | type: key, 130 | value: transferHandler.serialize(arg) 131 | }; 132 | } 133 | } 134 | // If not, traverse the entire object and find handled values. 135 | let wrappedChildren = []; 136 | for (const item of iterateAllProperties(arg)) { 137 | for (const [key, transferHandler] of transferHandlers) { 138 | if (transferHandler.canHandle(item.value)) { 139 | wrappedChildren.push({ 140 | path: item.path, 141 | wrappedValue: { 142 | type: key, 143 | value: transferHandler.serialize(item.value) 144 | } 145 | }); 146 | } 147 | } 148 | } 149 | for (const wrappedChild of wrappedChildren) { 150 | const container = wrappedChild.path 151 | .slice(0, -1) 152 | .reduce((obj, key) => obj[key], arg); 153 | container[wrappedChild.path[wrappedChild.path.length - 1]] = null; 154 | } 155 | return { 156 | type: "RAW", 157 | value: arg, 158 | wrappedChildren 159 | }; 160 | } 161 | function unwrapValue(arg) { 162 | if (transferHandlers.has(arg.type)) { 163 | const transferHandler = transferHandlers.get(arg.type); 164 | return transferHandler.deserialize(arg.value); 165 | } 166 | else if (isRawWrappedValue(arg)) { 167 | for (const wrappedChildValue of arg.wrappedChildren || []) { 168 | if (!transferHandlers.has(wrappedChildValue.wrappedValue.type)) 169 | throw Error(`Unknown value type "${arg.type}" at ${wrappedChildValue.path.join(".")}`); 170 | const transferHandler = transferHandlers.get(wrappedChildValue.wrappedValue.type); 171 | const newValue = transferHandler.deserialize(wrappedChildValue.wrappedValue.value); 172 | replaceValueInObjectAtPath(arg.value, wrappedChildValue.path, newValue); 173 | } 174 | return arg.value; 175 | } 176 | else { 177 | throw Error(`Unknown value type "${arg.type}"`); 178 | } 179 | } 180 | function replaceValueInObjectAtPath(obj, path, newVal) { 181 | const lastKey = path.slice(-1)[0]; 182 | const lastObj = path 183 | .slice(0, -1) 184 | .reduce((obj, key) => obj[key], obj); 185 | lastObj[lastKey] = newVal; 186 | } 187 | function isRawWrappedValue(arg) { 188 | return arg.type === "RAW"; 189 | } 190 | function windowEndpoint(w) { 191 | if (self.constructor.name !== "Window") 192 | throw Error("self is not a window"); 193 | return { 194 | addEventListener: self.addEventListener.bind(self), 195 | removeEventListener: self.removeEventListener.bind(self), 196 | postMessage: (msg, transfer) => w.postMessage(msg, "*", transfer) 197 | }; 198 | } 199 | function isEndpoint(endpoint) { 200 | return ("addEventListener" in endpoint && 201 | "removeEventListener" in endpoint && 202 | "postMessage" in endpoint); 203 | } 204 | function activateEndpoint(endpoint) { 205 | if (isMessagePort(endpoint)) 206 | endpoint.start(); 207 | } 208 | function attachMessageHandler(endpoint, f) { 209 | // Checking all possible types of `endpoint` manually satisfies TypeScript’s 210 | // type checker. Not sure why the inference is failing here. Since it’s 211 | // unnecessary code I’m going to resort to `any` for now. 212 | // if(isWorker(endpoint)) 213 | // endpoint.addEventListener('message', f); 214 | // if(isMessagePort(endpoint)) 215 | // endpoint.addEventListener('message', f); 216 | // if(isOtherWindow(endpoint)) 217 | // endpoint.addEventListener('message', f); 218 | endpoint.addEventListener("message", f); 219 | } 220 | function detachMessageHandler(endpoint, f) { 221 | // Same as above. 222 | endpoint.removeEventListener("message", f); 223 | } 224 | function isMessagePort(endpoint) { 225 | return endpoint.constructor.name === "MessagePort"; 226 | } 227 | function isWindow(endpoint) { 228 | // TODO: This doesn’t work on cross-origin iframes. 229 | // return endpoint.constructor.name === 'Window'; 230 | return ["window", "length", "location", "parent", "opener"].every(prop => prop in endpoint); 231 | } 232 | /** 233 | * `pingPongMessage` sends a `postMessage` and waits for a reply. Replies are 234 | * identified by a unique id that is attached to the payload. 235 | */ 236 | function pingPongMessage(endpoint, msg, transferables) { 237 | const id = `${uid}-${pingPongMessageCounter++}`; 238 | return new Promise(resolve => { 239 | attachMessageHandler(endpoint, function handler(event) { 240 | if (event.data.id !== id) 241 | return; 242 | detachMessageHandler(endpoint, handler); 243 | resolve(event); 244 | }); 245 | // Copy msg and add `id` property 246 | msg = Object.assign({}, msg, { id }); 247 | endpoint.postMessage(msg, transferables); 248 | }); 249 | } 250 | function cbProxy(cb, callPath = [], target = function () { }) { 251 | return new Proxy(target, { 252 | construct(_target, argumentsList, proxy) { 253 | return cb({ 254 | type: "CONSTRUCT", 255 | callPath, 256 | argumentsList 257 | }); 258 | }, 259 | apply(_target, _thisArg, argumentsList) { 260 | // We use `bind` as an indicator to have a remote function bound locally. 261 | // The actual target for `bind()` is currently ignored. 262 | if (callPath[callPath.length - 1] === "bind") 263 | return cbProxy(cb, callPath.slice(0, -1)); 264 | return cb({ 265 | type: "APPLY", 266 | callPath, 267 | argumentsList 268 | }); 269 | }, 270 | get(_target, property, proxy) { 271 | if (property === "then" && callPath.length === 0) { 272 | return { then: () => proxy }; 273 | } 274 | else if (property === "then") { 275 | const r = cb({ 276 | type: "GET", 277 | callPath 278 | }); 279 | return Promise.resolve(r).then.bind(r); 280 | } 281 | else { 282 | return cbProxy(cb, callPath.concat(property), _target[property]); 283 | } 284 | }, 285 | set(_target, property, value, _proxy) { 286 | return cb({ 287 | type: "SET", 288 | callPath, 289 | property, 290 | value 291 | }); 292 | } 293 | }); 294 | } 295 | function isTransferable(thing) { 296 | return TRANSFERABLE_TYPES.some(type => thing instanceof type); 297 | } 298 | function* iterateAllProperties(value, path = [], visited = null) { 299 | if (!value) 300 | return; 301 | if (!visited) 302 | visited = new WeakSet(); 303 | if (visited.has(value)) 304 | return; 305 | if (typeof value === "string") 306 | return; 307 | if (typeof value === "object") 308 | visited.add(value); 309 | if (ArrayBuffer.isView(value)) 310 | return; 311 | yield { value, path }; 312 | const keys = Object.keys(value); 313 | for (const key of keys) 314 | yield* iterateAllProperties(value[key], [...path, key], visited); 315 | } 316 | function transferableProperties(obj) { 317 | const r = []; 318 | for (const prop of iterateAllProperties(obj)) { 319 | if (isTransferable(prop.value)) 320 | r.push(prop.value); 321 | } 322 | return r; 323 | } 324 | function makeInvocationResult(obj) { 325 | for (const [type, transferHandler] of transferHandlers) { 326 | if (transferHandler.canHandle(obj)) { 327 | const value = transferHandler.serialize(obj); 328 | return { 329 | value: { type, value } 330 | }; 331 | } 332 | } 333 | return { 334 | value: { 335 | type: "RAW", 336 | value: obj 337 | } 338 | }; 339 | } 340 | 341 | var comlink = /*#__PURE__*/Object.freeze({ 342 | transferHandlers: transferHandlers, 343 | proxy: proxy, 344 | proxyValue: proxyValue, 345 | expose: expose 346 | }); 347 | 348 | /** 349 | * Copyright 2018 Google Inc. All Rights Reserved. 350 | * Licensed under the Apache License, Version 2.0 (the "License"); 351 | * you may not use this file except in compliance with the License. 352 | * You may obtain a copy of the License at 353 | * http://www.apache.org/licenses/LICENSE-2.0 354 | * Unless required by applicable law or agreed to in writing, software 355 | * distributed under the License is distributed on an "AS IS" BASIS, 356 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 357 | * See the License for the specific language governing permissions and 358 | * limitations under the License. 359 | */ 360 | // Automatically proxy functions 361 | transferHandlers.set("FUNCTION", { 362 | canHandle(obj) { 363 | return obj instanceof Function; 364 | }, 365 | serialize(obj) { 366 | const { port1, port2 } = new MessageChannel(); 367 | expose(obj, port1); 368 | return port2; 369 | }, 370 | deserialize(obj) { 371 | return proxy(obj); 372 | } 373 | }); 374 | // Automatically proxy events 375 | transferHandlers.set("EVENT", { 376 | canHandle(obj) { 377 | return obj instanceof Event; 378 | }, 379 | serialize(obj) { 380 | return { 381 | targetId: obj && obj.target && obj.target.id, 382 | targetClassList: obj && 383 | obj.target && 384 | obj.target.classList && [...obj.target.classList], 385 | detail: obj && obj.detail, 386 | data: obj && obj.data 387 | }; 388 | }, 389 | deserialize(obj) { 390 | return obj; 391 | } 392 | }); 393 | /** 394 | * `asRemoteValue` marks a value. If a marked value is used as an parameter or return value, it will not be transferred but instead proxied. 395 | */ 396 | const asRemoteValue = proxyValue; 397 | /** 398 | * `defaultWorkerSrc` is the path passed to the `new Worker()` call. It’s recommended to not change this variable but instead overload `newWorkerFunc`. 399 | */ 400 | let defaultWorkerSrc = "document" in self 401 | ? document.currentScript && 402 | document.currentScript.src 403 | : ""; 404 | const defaultOpts = { 405 | maxNumContainers: 1, 406 | newWorkerFunc: async () => new Worker(defaultWorkerSrc) 407 | }; 408 | /** 409 | * `RoundRobingStrategy` creates up to n containers and cycles through the containers with every `spawn` call. 410 | */ 411 | class RoundRobinStrategy { 412 | constructor(opts = {}) { 413 | this._nextIndex = 0; 414 | this._options = Object.assign({}, defaultOpts, opts); 415 | this._containers = new Array(this._options.maxNumContainers).fill(null); 416 | } 417 | async _initOrGetContainer(i) { 418 | if (i >= this._containers.length) 419 | throw Error("No worker available"); 420 | if (!this._containers[i]) { 421 | const worker = await this._options.newWorkerFunc(); 422 | const remote = proxy(worker); 423 | this._containers[i] = { 424 | spawn: remote.spawn.bind(spawn), 425 | terminate: worker.terminate.bind(worker) 426 | }; 427 | } 428 | return this._containers[i]; 429 | } 430 | async _getNextContainer(opts) { 431 | const w = await this._initOrGetContainer(this._nextIndex); 432 | this._nextIndex = (this._nextIndex + 1) % this._options.maxNumContainers; 433 | return w; 434 | } 435 | async spawn(actor, constructorArgs = [], opts = {}) { 436 | const container = await this._getNextContainer(opts); 437 | return (await container.spawn(actor.toString(), constructorArgs)); 438 | } 439 | async terminate() { 440 | this._containers.filter(c => c).forEach(container => container.terminate()); 441 | this._containers.length = 0; 442 | } 443 | get terminated() { 444 | return this._containers.length <= 0; 445 | } 446 | } 447 | let defaultStrategy = new RoundRobinStrategy(); 448 | async function spawn(actor, constructorArgs = [], opts = {}) { 449 | return defaultStrategy.spawn(actor, constructorArgs, opts); 450 | } 451 | function makeContainer(endpoint = self) { 452 | expose({ 453 | async spawn(actorCode, constructorArgs) { 454 | const actor = new Function(`return ${actorCode};`)(); 455 | return proxyValue(new actor(...constructorArgs)); // eslint-disable-line new-cap 456 | } 457 | }, endpoint); 458 | } 459 | function isWorker() { 460 | // I’d have to import lib.webworker.d.ts to have access to 461 | // WorkerGlobalScope, but I can’t because it conflicts with lib.dom.d.ts. 462 | const wgs = self["WorkerGlobalScope"]; 463 | return wgs && self instanceof wgs; 464 | } 465 | // TODO: Find a way to opt-out of autostart 466 | if (isWorker()) 467 | makeContainer(); 468 | 469 | exports.Comlink = comlink; 470 | exports.asRemoteValue = asRemoteValue; 471 | exports.defaultWorkerSrc = defaultWorkerSrc; 472 | exports.defaultOpts = defaultOpts; 473 | exports.RoundRobinStrategy = RoundRobinStrategy; 474 | exports.defaultStrategy = defaultStrategy; 475 | exports.spawn = spawn; 476 | exports.makeContainer = makeContainer; 477 | 478 | return exports; 479 | 480 | }({})); 481 | -------------------------------------------------------------------------------- /dist/clooney.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Google Inc. All Rights Reserved. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * Unless required by applicable law or agreed to in writing, software 8 | * distributed under the License is distributed on an "AS IS" BASIS, 9 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing permissions and 11 | * limitations under the License. 12 | */ 13 | import * as Comlink from "comlinkjs"; 14 | import { Endpoint } from "comlinkjs"; 15 | export { Comlink }; 16 | /** 17 | * `asRemoteValue` marks a value. If a marked value is used as an parameter or return value, it will not be transferred but instead proxied. 18 | */ 19 | export declare const asRemoteValue: (x: T) => T; 20 | /** 21 | * `defaultWorkerSrc` is the path passed to the `new Worker()` call. It’s recommended to not change this variable but instead overload `newWorkerFunc`. 22 | */ 23 | export declare let defaultWorkerSrc: string; 24 | export declare type Actor = Function; 25 | export declare type ActorSource = string; 26 | export interface TerminatableEndpoint extends Endpoint { 27 | terminate(): void; 28 | } 29 | /** 30 | * ActorContainer can run actors. This interface is implemented by Web Workers. 31 | */ 32 | export interface ActorContainer { 33 | spawn(actor: ActorSource, opts: Object): Promise; 34 | terminate(): void; 35 | } 36 | export interface Strategy { 37 | /** 38 | * `spawn` instantiates the given actor in an actor container of the strategy’s choice. 39 | * @returns The return type is the type as T, but every method is implicitly async. 40 | */ 41 | spawn(actor: new () => T, args: any[], opts: Object): Promise; 42 | /** 43 | * `terminate` calls `terminate()` on all existing containers of the strategy. 44 | */ 45 | terminate(): Promise; 46 | } 47 | export interface StrategyOptions { 48 | /** 49 | * Maximum number of containers the strategy is allowed to spin up. Default is 1. 50 | */ 51 | maxNumContainers?: number; 52 | /** 53 | * Asynchronous function to create a new worker. Default is a call to `new Worker(defaultWorkerSrc)`. 54 | */ 55 | newWorkerFunc?: () => Promise; 56 | } 57 | export declare const defaultOpts: { 58 | maxNumContainers: number; 59 | newWorkerFunc: () => Promise; 60 | }; 61 | /** 62 | * `RoundRobingStrategy` creates up to n containers and cycles through the containers with every `spawn` call. 63 | */ 64 | export declare class RoundRobinStrategy implements Strategy { 65 | private _containers; 66 | private _nextIndex; 67 | private _options; 68 | constructor(opts?: StrategyOptions); 69 | private _initOrGetContainer; 70 | private _getNextContainer; 71 | spawn(actor: Actor, constructorArgs?: any[], opts?: Object): Promise; 72 | terminate(): Promise; 73 | readonly terminated: boolean; 74 | } 75 | export declare let defaultStrategy: RoundRobinStrategy; 76 | export declare function spawn(actor: Actor, constructorArgs?: any[], opts?: Object): Promise; 77 | export declare function makeContainer(endpoint?: Endpoint | Window): void; 78 | -------------------------------------------------------------------------------- /dist/clooney.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Google Inc. All Rights Reserved. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * Unless required by applicable law or agreed to in writing, software 8 | * distributed under the License is distributed on an "AS IS" BASIS, 9 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing permissions and 11 | * limitations under the License. 12 | */ 13 | import * as Comlink from "comlinkjs"; // eslint-disable-line no-unused-vars 14 | // Automatically proxy functions 15 | Comlink.transferHandlers.set("FUNCTION", { 16 | canHandle(obj) { 17 | return obj instanceof Function; 18 | }, 19 | serialize(obj) { 20 | const { port1, port2 } = new MessageChannel(); 21 | Comlink.expose(obj, port1); 22 | return port2; 23 | }, 24 | deserialize(obj) { 25 | return Comlink.proxy(obj); 26 | } 27 | }); 28 | // Automatically proxy events 29 | Comlink.transferHandlers.set("EVENT", { 30 | canHandle(obj) { 31 | return obj instanceof Event; 32 | }, 33 | serialize(obj) { 34 | return { 35 | targetId: obj && obj.target && obj.target.id, 36 | targetClassList: obj && 37 | obj.target && 38 | obj.target.classList && [...obj.target.classList], 39 | detail: obj && obj.detail, 40 | data: obj && obj.data 41 | }; 42 | }, 43 | deserialize(obj) { 44 | return obj; 45 | } 46 | }); 47 | export { Comlink }; 48 | /** 49 | * `asRemoteValue` marks a value. If a marked value is used as an parameter or return value, it will not be transferred but instead proxied. 50 | */ 51 | export const asRemoteValue = Comlink.proxyValue; 52 | /** 53 | * `defaultWorkerSrc` is the path passed to the `new Worker()` call. It’s recommended to not change this variable but instead overload `newWorkerFunc`. 54 | */ 55 | export let defaultWorkerSrc = "document" in self 56 | ? document.currentScript && 57 | document.currentScript.src 58 | : ""; 59 | export const defaultOpts = { 60 | maxNumContainers: 1, 61 | newWorkerFunc: async () => new Worker(defaultWorkerSrc) 62 | }; 63 | /** 64 | * `RoundRobingStrategy` creates up to n containers and cycles through the containers with every `spawn` call. 65 | */ 66 | export class RoundRobinStrategy { 67 | constructor(opts = {}) { 68 | this._nextIndex = 0; 69 | this._options = Object.assign({}, defaultOpts, opts); 70 | this._containers = new Array(this._options.maxNumContainers).fill(null); 71 | } 72 | async _initOrGetContainer(i) { 73 | if (i >= this._containers.length) 74 | throw Error("No worker available"); 75 | if (!this._containers[i]) { 76 | const worker = await this._options.newWorkerFunc(); 77 | const remote = Comlink.proxy(worker); 78 | this._containers[i] = { 79 | spawn: remote.spawn.bind(spawn), 80 | terminate: worker.terminate.bind(worker) 81 | }; 82 | } 83 | return this._containers[i]; 84 | } 85 | async _getNextContainer(opts) { 86 | const w = await this._initOrGetContainer(this._nextIndex); 87 | this._nextIndex = (this._nextIndex + 1) % this._options.maxNumContainers; 88 | return w; 89 | } 90 | async spawn(actor, constructorArgs = [], opts = {}) { 91 | const container = await this._getNextContainer(opts); 92 | return (await container.spawn(actor.toString(), constructorArgs)); 93 | } 94 | async terminate() { 95 | this._containers.filter(c => c).forEach(container => container.terminate()); 96 | this._containers.length = 0; 97 | } 98 | get terminated() { 99 | return this._containers.length <= 0; 100 | } 101 | } 102 | export let defaultStrategy = new RoundRobinStrategy(); 103 | export async function spawn(actor, constructorArgs = [], opts = {}) { 104 | return defaultStrategy.spawn(actor, constructorArgs, opts); 105 | } 106 | export function makeContainer(endpoint = self) { 107 | Comlink.expose({ 108 | async spawn(actorCode, constructorArgs) { 109 | const actor = new Function(`return ${actorCode};`)(); 110 | return Comlink.proxyValue(new actor(...constructorArgs)); // eslint-disable-line new-cap 111 | } 112 | }, endpoint); 113 | } 114 | function isWorker() { 115 | // I’d have to import lib.webworker.d.ts to have access to 116 | // WorkerGlobalScope, but I can’t because it conflicts with lib.dom.d.ts. 117 | const wgs = self["WorkerGlobalScope"]; 118 | return wgs && self instanceof wgs; 119 | } 120 | // TODO: Find a way to opt-out of autostart 121 | if (isWorker()) 122 | makeContainer(); 123 | -------------------------------------------------------------------------------- /examples/index.html: -------------------------------------------------------------------------------- 1 | 13 | 14 | 27 | -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Google Inc. All Rights Reserved. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * Unless required by applicable law or agreed to in writing, software 8 | * distributed under the License is distributed on an "AS IS" BASIS, 9 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing permissions and 11 | * limitations under the License. 12 | */ 13 | 14 | module.exports = function(config) { 15 | const configuration = { 16 | basePath: '', 17 | frameworks: ['mocha', 'chai'], 18 | files: [ 19 | 'dist/bundle/clooney.js', 20 | 'tests/sometests.js', 21 | { 22 | pattern: 'tests/fixtures/**', 23 | included: false, 24 | }, 25 | { 26 | pattern: 'node_modules/**', 27 | included: false, 28 | }, 29 | { 30 | pattern: 'dist/**', 31 | included: false, 32 | }, 33 | ], 34 | reporters: ['progress'], 35 | port: 9876, 36 | colors: true, 37 | logLevel: config.LOG_INFO, 38 | autoWatch: true, 39 | singleRun: true, 40 | concurrency: Infinity, 41 | browsers: ['ChromeHeadless'], 42 | customLaunchers: { 43 | DockerChrome: { 44 | base: 'ChromeHeadless', 45 | flags: ['--no-sandbox'], 46 | }, 47 | }, 48 | }; 49 | 50 | if (process.env.INSIDE_DOCKER) 51 | configuration.browsers = ['DockerChrome']; 52 | 53 | config.set(configuration); 54 | }; 55 | -------------------------------------------------------------------------------- /licenseheader.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2018 Google Inc. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * http://www.apache.org/licenses/LICENSE-2.0 8 | * Unless required by applicable law or agreed to in writing, software 9 | * distributed under the License is distributed on an "AS IS" BASIS, 10 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | * See the License for the specific language governing permissions and 12 | * limitations under the License. 13 | */ 14 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "clooneyjs", 3 | "version": "0.7.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@types/estree": { 8 | "version": "0.0.39", 9 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", 10 | "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", 11 | "dev": true 12 | }, 13 | "@types/node": { 14 | "version": "12.7.2", 15 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.7.2.tgz", 16 | "integrity": "sha512-dyYO+f6ihZEtNPDcWNR1fkoTDf3zAK3lAABDze3mz6POyIercH0lEUawUFXlG8xaQZmm1yEBON/4TsYv/laDYg==", 17 | "dev": true 18 | }, 19 | "accepts": { 20 | "version": "1.3.7", 21 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 22 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 23 | "dev": true, 24 | "requires": { 25 | "mime-types": "~2.1.24", 26 | "negotiator": "0.6.2" 27 | } 28 | }, 29 | "acorn": { 30 | "version": "7.0.0", 31 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.0.0.tgz", 32 | "integrity": "sha512-PaF/MduxijYYt7unVGRuds1vBC9bFxbNf+VWqhOClfdgy7RlVkQqt610ig1/yxTgsDIfW1cWDel5EBbOy3jdtQ==", 33 | "dev": true 34 | }, 35 | "after": { 36 | "version": "0.8.2", 37 | "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", 38 | "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=", 39 | "dev": true 40 | }, 41 | "ansi-colors": { 42 | "version": "3.2.3", 43 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", 44 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", 45 | "dev": true 46 | }, 47 | "ansi-regex": { 48 | "version": "3.0.0", 49 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 50 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 51 | "dev": true 52 | }, 53 | "ansi-styles": { 54 | "version": "3.2.1", 55 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 56 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 57 | "dev": true, 58 | "requires": { 59 | "color-convert": "^1.9.0" 60 | } 61 | }, 62 | "anymatch": { 63 | "version": "3.0.3", 64 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.0.3.tgz", 65 | "integrity": "sha512-c6IvoeBECQlMVuYUjSwimnhmztImpErfxJzWZhIQinIvQWoGOnB0dLIgifbPHQt5heS6mNlaZG16f06H3C8t1g==", 66 | "dev": true, 67 | "requires": { 68 | "normalize-path": "^3.0.0", 69 | "picomatch": "^2.0.4" 70 | } 71 | }, 72 | "argparse": { 73 | "version": "1.0.10", 74 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 75 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 76 | "dev": true, 77 | "requires": { 78 | "sprintf-js": "~1.0.2" 79 | } 80 | }, 81 | "arraybuffer.slice": { 82 | "version": "0.0.7", 83 | "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.7.tgz", 84 | "integrity": "sha512-wGUIVQXuehL5TCqQun8OW81jGzAWycqzFF8lFp+GOM5BXLYj3bKNsYC4daB7n6XjCqxQA/qgTJ+8ANR3acjrog==", 85 | "dev": true 86 | }, 87 | "assertion-error": { 88 | "version": "1.1.0", 89 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 90 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 91 | "dev": true 92 | }, 93 | "async": { 94 | "version": "2.6.2", 95 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", 96 | "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", 97 | "dev": true, 98 | "requires": { 99 | "lodash": "^4.17.11" 100 | } 101 | }, 102 | "async-limiter": { 103 | "version": "1.0.0", 104 | "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", 105 | "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", 106 | "dev": true 107 | }, 108 | "backo2": { 109 | "version": "1.0.2", 110 | "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", 111 | "integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc=", 112 | "dev": true 113 | }, 114 | "balanced-match": { 115 | "version": "1.0.0", 116 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 117 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 118 | "dev": true 119 | }, 120 | "base64-arraybuffer": { 121 | "version": "0.1.5", 122 | "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", 123 | "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=", 124 | "dev": true 125 | }, 126 | "base64id": { 127 | "version": "1.0.0", 128 | "resolved": "https://registry.npmjs.org/base64id/-/base64id-1.0.0.tgz", 129 | "integrity": "sha1-R2iMuZu2gE8OBtPnY7HDLlfY5rY=", 130 | "dev": true 131 | }, 132 | "better-assert": { 133 | "version": "1.0.2", 134 | "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", 135 | "integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=", 136 | "dev": true, 137 | "requires": { 138 | "callsite": "1.0.0" 139 | } 140 | }, 141 | "binary-extensions": { 142 | "version": "2.0.0", 143 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz", 144 | "integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==", 145 | "dev": true 146 | }, 147 | "blob": { 148 | "version": "0.0.5", 149 | "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.5.tgz", 150 | "integrity": "sha512-gaqbzQPqOoamawKg0LGVd7SzLgXS+JH61oWprSLH+P+abTczqJbhTR8CmJ2u9/bUYNmHTGJx/UEmn6doAvvuig==", 151 | "dev": true 152 | }, 153 | "bluebird": { 154 | "version": "3.5.5", 155 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.5.tgz", 156 | "integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==", 157 | "dev": true 158 | }, 159 | "body-parser": { 160 | "version": "1.19.0", 161 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 162 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 163 | "dev": true, 164 | "requires": { 165 | "bytes": "3.1.0", 166 | "content-type": "~1.0.4", 167 | "debug": "2.6.9", 168 | "depd": "~1.1.2", 169 | "http-errors": "1.7.2", 170 | "iconv-lite": "0.4.24", 171 | "on-finished": "~2.3.0", 172 | "qs": "6.7.0", 173 | "raw-body": "2.4.0", 174 | "type-is": "~1.6.17" 175 | } 176 | }, 177 | "brace-expansion": { 178 | "version": "1.1.11", 179 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 180 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 181 | "dev": true, 182 | "requires": { 183 | "balanced-match": "^1.0.0", 184 | "concat-map": "0.0.1" 185 | } 186 | }, 187 | "braces": { 188 | "version": "3.0.2", 189 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 190 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 191 | "dev": true, 192 | "requires": { 193 | "fill-range": "^7.0.1" 194 | } 195 | }, 196 | "browser-stdout": { 197 | "version": "1.3.1", 198 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 199 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 200 | "dev": true 201 | }, 202 | "buffer-alloc": { 203 | "version": "1.2.0", 204 | "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", 205 | "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", 206 | "dev": true, 207 | "requires": { 208 | "buffer-alloc-unsafe": "^1.1.0", 209 | "buffer-fill": "^1.0.0" 210 | } 211 | }, 212 | "buffer-alloc-unsafe": { 213 | "version": "1.1.0", 214 | "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", 215 | "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==", 216 | "dev": true 217 | }, 218 | "buffer-fill": { 219 | "version": "1.0.0", 220 | "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", 221 | "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=", 222 | "dev": true 223 | }, 224 | "builtin-modules": { 225 | "version": "3.0.0", 226 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.0.0.tgz", 227 | "integrity": "sha512-hMIeU4K2ilbXV6Uv93ZZ0Avg/M91RaKXucQ+4me2Do1txxBDyDZWCBa5bJSLqoNTRpXTLwEzIk1KmloenDDjhg==", 228 | "dev": true 229 | }, 230 | "bytes": { 231 | "version": "3.1.0", 232 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 233 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", 234 | "dev": true 235 | }, 236 | "callsite": { 237 | "version": "1.0.0", 238 | "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", 239 | "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=", 240 | "dev": true 241 | }, 242 | "camelcase": { 243 | "version": "5.3.1", 244 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 245 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 246 | "dev": true 247 | }, 248 | "chai": { 249 | "version": "4.2.0", 250 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", 251 | "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", 252 | "dev": true, 253 | "requires": { 254 | "assertion-error": "^1.1.0", 255 | "check-error": "^1.0.2", 256 | "deep-eql": "^3.0.1", 257 | "get-func-name": "^2.0.0", 258 | "pathval": "^1.1.0", 259 | "type-detect": "^4.0.5" 260 | } 261 | }, 262 | "chalk": { 263 | "version": "2.4.2", 264 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 265 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 266 | "dev": true, 267 | "requires": { 268 | "ansi-styles": "^3.2.1", 269 | "escape-string-regexp": "^1.0.5", 270 | "supports-color": "^5.3.0" 271 | }, 272 | "dependencies": { 273 | "supports-color": { 274 | "version": "5.5.0", 275 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 276 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 277 | "dev": true, 278 | "requires": { 279 | "has-flag": "^3.0.0" 280 | } 281 | } 282 | } 283 | }, 284 | "check-error": { 285 | "version": "1.0.2", 286 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 287 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", 288 | "dev": true 289 | }, 290 | "chokidar": { 291 | "version": "3.0.2", 292 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.0.2.tgz", 293 | "integrity": "sha512-c4PR2egjNjI1um6bamCQ6bUNPDiyofNQruHvKgHQ4gDUP/ITSVSzNsiI5OWtHOsX323i5ha/kk4YmOZ1Ktg7KA==", 294 | "dev": true, 295 | "requires": { 296 | "anymatch": "^3.0.1", 297 | "braces": "^3.0.2", 298 | "fsevents": "^2.0.6", 299 | "glob-parent": "^5.0.0", 300 | "is-binary-path": "^2.1.0", 301 | "is-glob": "^4.0.1", 302 | "normalize-path": "^3.0.0", 303 | "readdirp": "^3.1.1" 304 | } 305 | }, 306 | "cliui": { 307 | "version": "4.1.0", 308 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", 309 | "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", 310 | "dev": true, 311 | "requires": { 312 | "string-width": "^2.1.1", 313 | "strip-ansi": "^4.0.0", 314 | "wrap-ansi": "^2.0.0" 315 | } 316 | }, 317 | "code-point-at": { 318 | "version": "1.1.0", 319 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 320 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", 321 | "dev": true 322 | }, 323 | "color-convert": { 324 | "version": "1.9.3", 325 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 326 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 327 | "dev": true, 328 | "requires": { 329 | "color-name": "1.1.3" 330 | } 331 | }, 332 | "color-name": { 333 | "version": "1.1.3", 334 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 335 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 336 | "dev": true 337 | }, 338 | "colors": { 339 | "version": "1.3.3", 340 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz", 341 | "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==", 342 | "dev": true 343 | }, 344 | "comlinkjs": { 345 | "version": "3.2.0", 346 | "resolved": "https://registry.npmjs.org/comlinkjs/-/comlinkjs-3.2.0.tgz", 347 | "integrity": "sha512-2eawZHTjhK5Y1G6RZtSIqLijedIsULYQxnkC4MOhleUPgLRatMhqlflzWClyWRb6cLrLU6oAxDTT/Bl/fw/H7g==" 348 | }, 349 | "component-bind": { 350 | "version": "1.0.0", 351 | "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", 352 | "integrity": "sha1-AMYIq33Nk4l8AAllGx06jh5zu9E=", 353 | "dev": true 354 | }, 355 | "component-emitter": { 356 | "version": "1.2.1", 357 | "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", 358 | "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", 359 | "dev": true 360 | }, 361 | "component-inherit": { 362 | "version": "0.0.3", 363 | "resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz", 364 | "integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM=", 365 | "dev": true 366 | }, 367 | "concat-map": { 368 | "version": "0.0.1", 369 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 370 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 371 | "dev": true 372 | }, 373 | "connect": { 374 | "version": "3.7.0", 375 | "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", 376 | "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", 377 | "dev": true, 378 | "requires": { 379 | "debug": "2.6.9", 380 | "finalhandler": "1.1.2", 381 | "parseurl": "~1.3.3", 382 | "utils-merge": "1.0.1" 383 | } 384 | }, 385 | "content-type": { 386 | "version": "1.0.4", 387 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 388 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==", 389 | "dev": true 390 | }, 391 | "cookie": { 392 | "version": "0.3.1", 393 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", 394 | "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=", 395 | "dev": true 396 | }, 397 | "core-js": { 398 | "version": "3.1.4", 399 | "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.1.4.tgz", 400 | "integrity": "sha512-YNZN8lt82XIMLnLirj9MhKDFZHalwzzrL9YLt6eb0T5D0EDl4IQ90IGkua8mHbnxNrkj1d8hbdizMc0Qmg1WnQ==", 401 | "dev": true 402 | }, 403 | "cross-spawn": { 404 | "version": "6.0.5", 405 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 406 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 407 | "dev": true, 408 | "requires": { 409 | "nice-try": "^1.0.4", 410 | "path-key": "^2.0.1", 411 | "semver": "^5.5.0", 412 | "shebang-command": "^1.2.0", 413 | "which": "^1.2.9" 414 | } 415 | }, 416 | "custom-event": { 417 | "version": "1.0.1", 418 | "resolved": "https://registry.npmjs.org/custom-event/-/custom-event-1.0.1.tgz", 419 | "integrity": "sha1-XQKkaFCt8bSjF5RqOSj8y1v9BCU=", 420 | "dev": true 421 | }, 422 | "date-format": { 423 | "version": "2.0.0", 424 | "resolved": "https://registry.npmjs.org/date-format/-/date-format-2.0.0.tgz", 425 | "integrity": "sha512-M6UqVvZVgFYqZL1SfHsRGIQSz3ZL+qgbsV5Lp1Vj61LZVYuEwcMXYay7DRDtYs2HQQBK5hQtQ0fD9aEJ89V0LA==", 426 | "dev": true 427 | }, 428 | "debug": { 429 | "version": "2.6.9", 430 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 431 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 432 | "dev": true, 433 | "requires": { 434 | "ms": "2.0.0" 435 | } 436 | }, 437 | "decamelize": { 438 | "version": "1.2.0", 439 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 440 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 441 | "dev": true 442 | }, 443 | "deep-eql": { 444 | "version": "3.0.1", 445 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", 446 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", 447 | "dev": true, 448 | "requires": { 449 | "type-detect": "^4.0.0" 450 | } 451 | }, 452 | "define-properties": { 453 | "version": "1.1.3", 454 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 455 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 456 | "dev": true, 457 | "requires": { 458 | "object-keys": "^1.0.12" 459 | } 460 | }, 461 | "depd": { 462 | "version": "1.1.2", 463 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 464 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", 465 | "dev": true 466 | }, 467 | "di": { 468 | "version": "0.0.1", 469 | "resolved": "https://registry.npmjs.org/di/-/di-0.0.1.tgz", 470 | "integrity": "sha1-gGZJMmzqp8qjMG112YXqJ0i6kTw=", 471 | "dev": true 472 | }, 473 | "diff": { 474 | "version": "3.5.0", 475 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 476 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 477 | "dev": true 478 | }, 479 | "dom-serialize": { 480 | "version": "2.2.1", 481 | "resolved": "https://registry.npmjs.org/dom-serialize/-/dom-serialize-2.2.1.tgz", 482 | "integrity": "sha1-ViromZ9Evl6jB29UGdzVnrQ6yVs=", 483 | "dev": true, 484 | "requires": { 485 | "custom-event": "~1.0.0", 486 | "ent": "~2.2.0", 487 | "extend": "^3.0.0", 488 | "void-elements": "^2.0.0" 489 | } 490 | }, 491 | "ee-first": { 492 | "version": "1.1.1", 493 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 494 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", 495 | "dev": true 496 | }, 497 | "emoji-regex": { 498 | "version": "7.0.3", 499 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 500 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 501 | "dev": true 502 | }, 503 | "encodeurl": { 504 | "version": "1.0.2", 505 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 506 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", 507 | "dev": true 508 | }, 509 | "end-of-stream": { 510 | "version": "1.4.1", 511 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 512 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 513 | "dev": true, 514 | "requires": { 515 | "once": "^1.4.0" 516 | } 517 | }, 518 | "engine.io": { 519 | "version": "3.2.1", 520 | "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.2.1.tgz", 521 | "integrity": "sha512-+VlKzHzMhaU+GsCIg4AoXF1UdDFjHHwMmMKqMJNDNLlUlejz58FCy4LBqB2YVJskHGYl06BatYWKP2TVdVXE5w==", 522 | "dev": true, 523 | "requires": { 524 | "accepts": "~1.3.4", 525 | "base64id": "1.0.0", 526 | "cookie": "0.3.1", 527 | "debug": "~3.1.0", 528 | "engine.io-parser": "~2.1.0", 529 | "ws": "~3.3.1" 530 | }, 531 | "dependencies": { 532 | "debug": { 533 | "version": "3.1.0", 534 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 535 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 536 | "dev": true, 537 | "requires": { 538 | "ms": "2.0.0" 539 | } 540 | } 541 | } 542 | }, 543 | "engine.io-client": { 544 | "version": "3.2.1", 545 | "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.2.1.tgz", 546 | "integrity": "sha512-y5AbkytWeM4jQr7m/koQLc5AxpRKC1hEVUb/s1FUAWEJq5AzJJ4NLvzuKPuxtDi5Mq755WuDvZ6Iv2rXj4PTzw==", 547 | "dev": true, 548 | "requires": { 549 | "component-emitter": "1.2.1", 550 | "component-inherit": "0.0.3", 551 | "debug": "~3.1.0", 552 | "engine.io-parser": "~2.1.1", 553 | "has-cors": "1.1.0", 554 | "indexof": "0.0.1", 555 | "parseqs": "0.0.5", 556 | "parseuri": "0.0.5", 557 | "ws": "~3.3.1", 558 | "xmlhttprequest-ssl": "~1.5.4", 559 | "yeast": "0.1.2" 560 | }, 561 | "dependencies": { 562 | "debug": { 563 | "version": "3.1.0", 564 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 565 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 566 | "dev": true, 567 | "requires": { 568 | "ms": "2.0.0" 569 | } 570 | } 571 | } 572 | }, 573 | "engine.io-parser": { 574 | "version": "2.1.3", 575 | "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.3.tgz", 576 | "integrity": "sha512-6HXPre2O4Houl7c4g7Ic/XzPnHBvaEmN90vtRO9uLmwtRqQmTOw0QMevL1TOfL2Cpu1VzsaTmMotQgMdkzGkVA==", 577 | "dev": true, 578 | "requires": { 579 | "after": "0.8.2", 580 | "arraybuffer.slice": "~0.0.7", 581 | "base64-arraybuffer": "0.1.5", 582 | "blob": "0.0.5", 583 | "has-binary2": "~1.0.2" 584 | } 585 | }, 586 | "ent": { 587 | "version": "2.2.0", 588 | "resolved": "https://registry.npmjs.org/ent/-/ent-2.2.0.tgz", 589 | "integrity": "sha1-6WQhkyWiHQX0RGai9obtbOX13R0=", 590 | "dev": true 591 | }, 592 | "es-abstract": { 593 | "version": "1.13.0", 594 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", 595 | "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", 596 | "dev": true, 597 | "requires": { 598 | "es-to-primitive": "^1.2.0", 599 | "function-bind": "^1.1.1", 600 | "has": "^1.0.3", 601 | "is-callable": "^1.1.4", 602 | "is-regex": "^1.0.4", 603 | "object-keys": "^1.0.12" 604 | } 605 | }, 606 | "es-to-primitive": { 607 | "version": "1.2.0", 608 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", 609 | "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", 610 | "dev": true, 611 | "requires": { 612 | "is-callable": "^1.1.4", 613 | "is-date-object": "^1.0.1", 614 | "is-symbol": "^1.0.2" 615 | } 616 | }, 617 | "escape-html": { 618 | "version": "1.0.3", 619 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 620 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", 621 | "dev": true 622 | }, 623 | "escape-string-regexp": { 624 | "version": "1.0.5", 625 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 626 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 627 | "dev": true 628 | }, 629 | "esprima": { 630 | "version": "4.0.1", 631 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 632 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 633 | "dev": true 634 | }, 635 | "eventemitter3": { 636 | "version": "3.1.2", 637 | "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", 638 | "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==", 639 | "dev": true 640 | }, 641 | "execa": { 642 | "version": "1.0.0", 643 | "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", 644 | "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", 645 | "dev": true, 646 | "requires": { 647 | "cross-spawn": "^6.0.0", 648 | "get-stream": "^4.0.0", 649 | "is-stream": "^1.1.0", 650 | "npm-run-path": "^2.0.0", 651 | "p-finally": "^1.0.0", 652 | "signal-exit": "^3.0.0", 653 | "strip-eof": "^1.0.0" 654 | } 655 | }, 656 | "extend": { 657 | "version": "3.0.2", 658 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 659 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", 660 | "dev": true 661 | }, 662 | "fill-range": { 663 | "version": "7.0.1", 664 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 665 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 666 | "dev": true, 667 | "requires": { 668 | "to-regex-range": "^5.0.1" 669 | } 670 | }, 671 | "finalhandler": { 672 | "version": "1.1.2", 673 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 674 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 675 | "dev": true, 676 | "requires": { 677 | "debug": "2.6.9", 678 | "encodeurl": "~1.0.2", 679 | "escape-html": "~1.0.3", 680 | "on-finished": "~2.3.0", 681 | "parseurl": "~1.3.3", 682 | "statuses": "~1.5.0", 683 | "unpipe": "~1.0.0" 684 | } 685 | }, 686 | "find-up": { 687 | "version": "3.0.0", 688 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 689 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 690 | "dev": true, 691 | "requires": { 692 | "locate-path": "^3.0.0" 693 | } 694 | }, 695 | "flat": { 696 | "version": "4.1.0", 697 | "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", 698 | "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", 699 | "dev": true, 700 | "requires": { 701 | "is-buffer": "~2.0.3" 702 | } 703 | }, 704 | "flatted": { 705 | "version": "2.0.1", 706 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-2.0.1.tgz", 707 | "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", 708 | "dev": true 709 | }, 710 | "follow-redirects": { 711 | "version": "1.7.0", 712 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.7.0.tgz", 713 | "integrity": "sha512-m/pZQy4Gj287eNy94nivy5wchN3Kp+Q5WgUPNy5lJSZ3sgkVKSYV/ZChMAQVIgx1SqfZ2zBZtPA2YlXIWxxJOQ==", 714 | "dev": true, 715 | "requires": { 716 | "debug": "^3.2.6" 717 | }, 718 | "dependencies": { 719 | "debug": { 720 | "version": "3.2.6", 721 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 722 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 723 | "dev": true, 724 | "requires": { 725 | "ms": "^2.1.1" 726 | } 727 | }, 728 | "ms": { 729 | "version": "2.1.2", 730 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 731 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 732 | "dev": true 733 | } 734 | } 735 | }, 736 | "fs-extra": { 737 | "version": "7.0.1", 738 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", 739 | "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", 740 | "dev": true, 741 | "requires": { 742 | "graceful-fs": "^4.1.2", 743 | "jsonfile": "^4.0.0", 744 | "universalify": "^0.1.0" 745 | } 746 | }, 747 | "fs.realpath": { 748 | "version": "1.0.0", 749 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 750 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 751 | "dev": true 752 | }, 753 | "fsevents": { 754 | "version": "2.0.7", 755 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.0.7.tgz", 756 | "integrity": "sha512-a7YT0SV3RB+DjYcppwVDLtn13UQnmg0SWZS7ezZD0UjnLwXmy8Zm21GMVGLaFGimIqcvyMQaOJBrop8MyOp1kQ==", 757 | "dev": true, 758 | "optional": true 759 | }, 760 | "function-bind": { 761 | "version": "1.1.1", 762 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 763 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 764 | "dev": true 765 | }, 766 | "get-caller-file": { 767 | "version": "2.0.5", 768 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 769 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 770 | "dev": true 771 | }, 772 | "get-func-name": { 773 | "version": "2.0.0", 774 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 775 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", 776 | "dev": true 777 | }, 778 | "get-stream": { 779 | "version": "4.1.0", 780 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 781 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 782 | "dev": true, 783 | "requires": { 784 | "pump": "^3.0.0" 785 | } 786 | }, 787 | "glob": { 788 | "version": "7.1.3", 789 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", 790 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", 791 | "dev": true, 792 | "requires": { 793 | "fs.realpath": "^1.0.0", 794 | "inflight": "^1.0.4", 795 | "inherits": "2", 796 | "minimatch": "^3.0.4", 797 | "once": "^1.3.0", 798 | "path-is-absolute": "^1.0.0" 799 | } 800 | }, 801 | "glob-parent": { 802 | "version": "5.0.0", 803 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.0.0.tgz", 804 | "integrity": "sha512-Z2RwiujPRGluePM6j699ktJYxmPpJKCfpGA13jz2hmFZC7gKetzrWvg5KN3+OsIFmydGyZ1AVwERCq1w/ZZwRg==", 805 | "dev": true, 806 | "requires": { 807 | "is-glob": "^4.0.1" 808 | } 809 | }, 810 | "graceful-fs": { 811 | "version": "4.2.0", 812 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.0.tgz", 813 | "integrity": "sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==", 814 | "dev": true 815 | }, 816 | "growl": { 817 | "version": "1.10.5", 818 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 819 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 820 | "dev": true 821 | }, 822 | "has": { 823 | "version": "1.0.3", 824 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 825 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 826 | "dev": true, 827 | "requires": { 828 | "function-bind": "^1.1.1" 829 | } 830 | }, 831 | "has-binary2": { 832 | "version": "1.0.3", 833 | "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.3.tgz", 834 | "integrity": "sha512-G1LWKhDSvhGeAQ8mPVQlqNcOB2sJdwATtZKl2pDKKHfpf/rYj24lkinxf69blJbnsvtqqNU+L3SL50vzZhXOnw==", 835 | "dev": true, 836 | "requires": { 837 | "isarray": "2.0.1" 838 | } 839 | }, 840 | "has-cors": { 841 | "version": "1.1.0", 842 | "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz", 843 | "integrity": "sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk=", 844 | "dev": true 845 | }, 846 | "has-flag": { 847 | "version": "3.0.0", 848 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 849 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 850 | "dev": true 851 | }, 852 | "has-symbols": { 853 | "version": "1.0.0", 854 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", 855 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", 856 | "dev": true 857 | }, 858 | "he": { 859 | "version": "1.2.0", 860 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 861 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 862 | "dev": true 863 | }, 864 | "http-errors": { 865 | "version": "1.7.2", 866 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 867 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 868 | "dev": true, 869 | "requires": { 870 | "depd": "~1.1.2", 871 | "inherits": "2.0.3", 872 | "setprototypeof": "1.1.1", 873 | "statuses": ">= 1.5.0 < 2", 874 | "toidentifier": "1.0.0" 875 | } 876 | }, 877 | "http-proxy": { 878 | "version": "1.17.0", 879 | "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.17.0.tgz", 880 | "integrity": "sha512-Taqn+3nNvYRfJ3bGvKfBSRwy1v6eePlm3oc/aWVxZp57DQr5Eq3xhKJi7Z4hZpS8PC3H4qI+Yly5EmFacGuA/g==", 881 | "dev": true, 882 | "requires": { 883 | "eventemitter3": "^3.0.0", 884 | "follow-redirects": "^1.0.0", 885 | "requires-port": "^1.0.0" 886 | } 887 | }, 888 | "iconv-lite": { 889 | "version": "0.4.24", 890 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 891 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 892 | "dev": true, 893 | "requires": { 894 | "safer-buffer": ">= 2.1.2 < 3" 895 | } 896 | }, 897 | "indexof": { 898 | "version": "0.0.1", 899 | "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", 900 | "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", 901 | "dev": true 902 | }, 903 | "inflight": { 904 | "version": "1.0.6", 905 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 906 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 907 | "dev": true, 908 | "requires": { 909 | "once": "^1.3.0", 910 | "wrappy": "1" 911 | } 912 | }, 913 | "inherits": { 914 | "version": "2.0.3", 915 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 916 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 917 | "dev": true 918 | }, 919 | "invert-kv": { 920 | "version": "2.0.0", 921 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", 922 | "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", 923 | "dev": true 924 | }, 925 | "is-binary-path": { 926 | "version": "2.1.0", 927 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 928 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 929 | "dev": true, 930 | "requires": { 931 | "binary-extensions": "^2.0.0" 932 | } 933 | }, 934 | "is-buffer": { 935 | "version": "2.0.3", 936 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", 937 | "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", 938 | "dev": true 939 | }, 940 | "is-callable": { 941 | "version": "1.1.4", 942 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", 943 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", 944 | "dev": true 945 | }, 946 | "is-date-object": { 947 | "version": "1.0.1", 948 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", 949 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", 950 | "dev": true 951 | }, 952 | "is-extglob": { 953 | "version": "2.1.1", 954 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 955 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 956 | "dev": true 957 | }, 958 | "is-fullwidth-code-point": { 959 | "version": "2.0.0", 960 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 961 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 962 | "dev": true 963 | }, 964 | "is-glob": { 965 | "version": "4.0.1", 966 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 967 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 968 | "dev": true, 969 | "requires": { 970 | "is-extglob": "^2.1.1" 971 | } 972 | }, 973 | "is-module": { 974 | "version": "1.0.0", 975 | "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", 976 | "integrity": "sha1-Mlj7afeMFNW4FdZkM2tM/7ZEFZE=", 977 | "dev": true 978 | }, 979 | "is-number": { 980 | "version": "7.0.0", 981 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 982 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 983 | "dev": true 984 | }, 985 | "is-regex": { 986 | "version": "1.0.4", 987 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", 988 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", 989 | "dev": true, 990 | "requires": { 991 | "has": "^1.0.1" 992 | } 993 | }, 994 | "is-stream": { 995 | "version": "1.1.0", 996 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 997 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 998 | "dev": true 999 | }, 1000 | "is-symbol": { 1001 | "version": "1.0.2", 1002 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", 1003 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", 1004 | "dev": true, 1005 | "requires": { 1006 | "has-symbols": "^1.0.0" 1007 | } 1008 | }, 1009 | "isarray": { 1010 | "version": "2.0.1", 1011 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", 1012 | "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", 1013 | "dev": true 1014 | }, 1015 | "isbinaryfile": { 1016 | "version": "3.0.3", 1017 | "resolved": "https://registry.npmjs.org/isbinaryfile/-/isbinaryfile-3.0.3.tgz", 1018 | "integrity": "sha512-8cJBL5tTd2OS0dM4jz07wQd5g0dCCqIhUxPIGtZfa5L6hWlvV5MHTITy/DBAsF+Oe2LS1X3krBUhNwaGUWpWxw==", 1019 | "dev": true, 1020 | "requires": { 1021 | "buffer-alloc": "^1.2.0" 1022 | } 1023 | }, 1024 | "isexe": { 1025 | "version": "2.0.0", 1026 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1027 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1028 | "dev": true 1029 | }, 1030 | "js-yaml": { 1031 | "version": "3.13.1", 1032 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 1033 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 1034 | "dev": true, 1035 | "requires": { 1036 | "argparse": "^1.0.7", 1037 | "esprima": "^4.0.0" 1038 | } 1039 | }, 1040 | "jsonfile": { 1041 | "version": "4.0.0", 1042 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", 1043 | "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", 1044 | "dev": true, 1045 | "requires": { 1046 | "graceful-fs": "^4.1.6" 1047 | } 1048 | }, 1049 | "karma": { 1050 | "version": "4.2.0", 1051 | "resolved": "https://registry.npmjs.org/karma/-/karma-4.2.0.tgz", 1052 | "integrity": "sha512-fmCuxN1rwJxTdZfOXK5LjlmS4Ana/OvzNMpkyLL/TLE8hmgSkpVpMYQ7RTVa8TNKRVQDZNl5W1oF5cfKfgIMlA==", 1053 | "dev": true, 1054 | "requires": { 1055 | "bluebird": "^3.3.0", 1056 | "body-parser": "^1.16.1", 1057 | "braces": "^3.0.2", 1058 | "chokidar": "^3.0.0", 1059 | "colors": "^1.1.0", 1060 | "connect": "^3.6.0", 1061 | "core-js": "^3.1.3", 1062 | "di": "^0.0.1", 1063 | "dom-serialize": "^2.2.0", 1064 | "flatted": "^2.0.0", 1065 | "glob": "^7.1.1", 1066 | "graceful-fs": "^4.1.2", 1067 | "http-proxy": "^1.13.0", 1068 | "isbinaryfile": "^3.0.0", 1069 | "lodash": "^4.17.11", 1070 | "log4js": "^4.0.0", 1071 | "mime": "^2.3.1", 1072 | "minimatch": "^3.0.2", 1073 | "optimist": "^0.6.1", 1074 | "qjobs": "^1.1.4", 1075 | "range-parser": "^1.2.0", 1076 | "rimraf": "^2.6.0", 1077 | "safe-buffer": "^5.0.1", 1078 | "socket.io": "2.1.1", 1079 | "source-map": "^0.6.1", 1080 | "tmp": "0.0.33", 1081 | "useragent": "2.3.0" 1082 | } 1083 | }, 1084 | "karma-chai": { 1085 | "version": "0.1.0", 1086 | "resolved": "https://registry.npmjs.org/karma-chai/-/karma-chai-0.1.0.tgz", 1087 | "integrity": "sha1-vuWtQEAFF4Ea40u5RfdikJEIt5o=", 1088 | "dev": true 1089 | }, 1090 | "karma-chrome-launcher": { 1091 | "version": "3.1.0", 1092 | "resolved": "https://registry.npmjs.org/karma-chrome-launcher/-/karma-chrome-launcher-3.1.0.tgz", 1093 | "integrity": "sha512-3dPs/n7vgz1rxxtynpzZTvb9y/GIaW8xjAwcIGttLbycqoFtI7yo1NGnQi6oFTherRE+GIhCAHZC4vEqWGhNvg==", 1094 | "dev": true, 1095 | "requires": { 1096 | "which": "^1.2.1" 1097 | } 1098 | }, 1099 | "karma-mocha": { 1100 | "version": "1.3.0", 1101 | "resolved": "https://registry.npmjs.org/karma-mocha/-/karma-mocha-1.3.0.tgz", 1102 | "integrity": "sha1-7qrH/8DiAetjxGdEDStpx883eL8=", 1103 | "dev": true, 1104 | "requires": { 1105 | "minimist": "1.2.0" 1106 | }, 1107 | "dependencies": { 1108 | "minimist": { 1109 | "version": "1.2.0", 1110 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1111 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", 1112 | "dev": true 1113 | } 1114 | } 1115 | }, 1116 | "lcid": { 1117 | "version": "2.0.0", 1118 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", 1119 | "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", 1120 | "dev": true, 1121 | "requires": { 1122 | "invert-kv": "^2.0.0" 1123 | } 1124 | }, 1125 | "locate-path": { 1126 | "version": "3.0.0", 1127 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 1128 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 1129 | "dev": true, 1130 | "requires": { 1131 | "p-locate": "^3.0.0", 1132 | "path-exists": "^3.0.0" 1133 | } 1134 | }, 1135 | "lodash": { 1136 | "version": "4.17.11", 1137 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", 1138 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", 1139 | "dev": true 1140 | }, 1141 | "log-symbols": { 1142 | "version": "2.2.0", 1143 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", 1144 | "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", 1145 | "dev": true, 1146 | "requires": { 1147 | "chalk": "^2.0.1" 1148 | } 1149 | }, 1150 | "log4js": { 1151 | "version": "4.5.1", 1152 | "resolved": "https://registry.npmjs.org/log4js/-/log4js-4.5.1.tgz", 1153 | "integrity": "sha512-EEEgFcE9bLgaYUKuozyFfytQM2wDHtXn4tAN41pkaxpNjAykv11GVdeI4tHtmPWW4Xrgh9R/2d7XYghDVjbKKw==", 1154 | "dev": true, 1155 | "requires": { 1156 | "date-format": "^2.0.0", 1157 | "debug": "^4.1.1", 1158 | "flatted": "^2.0.0", 1159 | "rfdc": "^1.1.4", 1160 | "streamroller": "^1.0.6" 1161 | }, 1162 | "dependencies": { 1163 | "debug": { 1164 | "version": "4.1.1", 1165 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 1166 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 1167 | "dev": true, 1168 | "requires": { 1169 | "ms": "^2.1.1" 1170 | } 1171 | }, 1172 | "ms": { 1173 | "version": "2.1.2", 1174 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1175 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1176 | "dev": true 1177 | } 1178 | } 1179 | }, 1180 | "lru-cache": { 1181 | "version": "4.1.5", 1182 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", 1183 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", 1184 | "dev": true, 1185 | "requires": { 1186 | "pseudomap": "^1.0.2", 1187 | "yallist": "^2.1.2" 1188 | } 1189 | }, 1190 | "map-age-cleaner": { 1191 | "version": "0.1.3", 1192 | "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", 1193 | "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", 1194 | "dev": true, 1195 | "requires": { 1196 | "p-defer": "^1.0.0" 1197 | } 1198 | }, 1199 | "media-typer": { 1200 | "version": "0.3.0", 1201 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1202 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", 1203 | "dev": true 1204 | }, 1205 | "mem": { 1206 | "version": "4.3.0", 1207 | "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", 1208 | "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", 1209 | "dev": true, 1210 | "requires": { 1211 | "map-age-cleaner": "^0.1.1", 1212 | "mimic-fn": "^2.0.0", 1213 | "p-is-promise": "^2.0.0" 1214 | } 1215 | }, 1216 | "mime": { 1217 | "version": "2.4.4", 1218 | "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz", 1219 | "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==", 1220 | "dev": true 1221 | }, 1222 | "mime-db": { 1223 | "version": "1.40.0", 1224 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", 1225 | "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", 1226 | "dev": true 1227 | }, 1228 | "mime-types": { 1229 | "version": "2.1.24", 1230 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", 1231 | "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", 1232 | "dev": true, 1233 | "requires": { 1234 | "mime-db": "1.40.0" 1235 | } 1236 | }, 1237 | "mimic-fn": { 1238 | "version": "2.1.0", 1239 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 1240 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 1241 | "dev": true 1242 | }, 1243 | "minimatch": { 1244 | "version": "3.0.4", 1245 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1246 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1247 | "dev": true, 1248 | "requires": { 1249 | "brace-expansion": "^1.1.7" 1250 | } 1251 | }, 1252 | "minimist": { 1253 | "version": "0.0.8", 1254 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 1255 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 1256 | "dev": true 1257 | }, 1258 | "mkdirp": { 1259 | "version": "0.5.1", 1260 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 1261 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 1262 | "dev": true, 1263 | "requires": { 1264 | "minimist": "0.0.8" 1265 | } 1266 | }, 1267 | "mocha": { 1268 | "version": "6.2.0", 1269 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.0.tgz", 1270 | "integrity": "sha512-qwfFgY+7EKAAUAdv7VYMZQknI7YJSGesxHyhn6qD52DV8UcSZs5XwCifcZGMVIE4a5fbmhvbotxC0DLQ0oKohQ==", 1271 | "dev": true, 1272 | "requires": { 1273 | "ansi-colors": "3.2.3", 1274 | "browser-stdout": "1.3.1", 1275 | "debug": "3.2.6", 1276 | "diff": "3.5.0", 1277 | "escape-string-regexp": "1.0.5", 1278 | "find-up": "3.0.0", 1279 | "glob": "7.1.3", 1280 | "growl": "1.10.5", 1281 | "he": "1.2.0", 1282 | "js-yaml": "3.13.1", 1283 | "log-symbols": "2.2.0", 1284 | "minimatch": "3.0.4", 1285 | "mkdirp": "0.5.1", 1286 | "ms": "2.1.1", 1287 | "node-environment-flags": "1.0.5", 1288 | "object.assign": "4.1.0", 1289 | "strip-json-comments": "2.0.1", 1290 | "supports-color": "6.0.0", 1291 | "which": "1.3.1", 1292 | "wide-align": "1.1.3", 1293 | "yargs": "13.2.2", 1294 | "yargs-parser": "13.0.0", 1295 | "yargs-unparser": "1.5.0" 1296 | }, 1297 | "dependencies": { 1298 | "debug": { 1299 | "version": "3.2.6", 1300 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 1301 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 1302 | "dev": true, 1303 | "requires": { 1304 | "ms": "^2.1.1" 1305 | } 1306 | }, 1307 | "ms": { 1308 | "version": "2.1.1", 1309 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1310 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 1311 | "dev": true 1312 | }, 1313 | "which": { 1314 | "version": "1.3.1", 1315 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1316 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1317 | "dev": true, 1318 | "requires": { 1319 | "isexe": "^2.0.0" 1320 | } 1321 | } 1322 | } 1323 | }, 1324 | "ms": { 1325 | "version": "2.0.0", 1326 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1327 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1328 | "dev": true 1329 | }, 1330 | "negotiator": { 1331 | "version": "0.6.2", 1332 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1333 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", 1334 | "dev": true 1335 | }, 1336 | "nice-try": { 1337 | "version": "1.0.5", 1338 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 1339 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 1340 | "dev": true 1341 | }, 1342 | "node-environment-flags": { 1343 | "version": "1.0.5", 1344 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", 1345 | "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", 1346 | "dev": true, 1347 | "requires": { 1348 | "object.getownpropertydescriptors": "^2.0.3", 1349 | "semver": "^5.7.0" 1350 | } 1351 | }, 1352 | "normalize-path": { 1353 | "version": "3.0.0", 1354 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1355 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1356 | "dev": true 1357 | }, 1358 | "npm-run-path": { 1359 | "version": "2.0.2", 1360 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 1361 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 1362 | "dev": true, 1363 | "requires": { 1364 | "path-key": "^2.0.0" 1365 | } 1366 | }, 1367 | "number-is-nan": { 1368 | "version": "1.0.1", 1369 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1370 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", 1371 | "dev": true 1372 | }, 1373 | "object-component": { 1374 | "version": "0.0.3", 1375 | "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", 1376 | "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=", 1377 | "dev": true 1378 | }, 1379 | "object-keys": { 1380 | "version": "1.1.1", 1381 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 1382 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 1383 | "dev": true 1384 | }, 1385 | "object.assign": { 1386 | "version": "4.1.0", 1387 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 1388 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 1389 | "dev": true, 1390 | "requires": { 1391 | "define-properties": "^1.1.2", 1392 | "function-bind": "^1.1.1", 1393 | "has-symbols": "^1.0.0", 1394 | "object-keys": "^1.0.11" 1395 | } 1396 | }, 1397 | "object.getownpropertydescriptors": { 1398 | "version": "2.0.3", 1399 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", 1400 | "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", 1401 | "dev": true, 1402 | "requires": { 1403 | "define-properties": "^1.1.2", 1404 | "es-abstract": "^1.5.1" 1405 | } 1406 | }, 1407 | "on-finished": { 1408 | "version": "2.3.0", 1409 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1410 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1411 | "dev": true, 1412 | "requires": { 1413 | "ee-first": "1.1.1" 1414 | } 1415 | }, 1416 | "once": { 1417 | "version": "1.4.0", 1418 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1419 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1420 | "dev": true, 1421 | "requires": { 1422 | "wrappy": "1" 1423 | } 1424 | }, 1425 | "optimist": { 1426 | "version": "0.6.1", 1427 | "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", 1428 | "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", 1429 | "dev": true, 1430 | "requires": { 1431 | "minimist": "~0.0.1", 1432 | "wordwrap": "~0.0.2" 1433 | } 1434 | }, 1435 | "os-locale": { 1436 | "version": "3.1.0", 1437 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", 1438 | "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", 1439 | "dev": true, 1440 | "requires": { 1441 | "execa": "^1.0.0", 1442 | "lcid": "^2.0.0", 1443 | "mem": "^4.0.0" 1444 | } 1445 | }, 1446 | "os-tmpdir": { 1447 | "version": "1.0.2", 1448 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1449 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", 1450 | "dev": true 1451 | }, 1452 | "p-defer": { 1453 | "version": "1.0.0", 1454 | "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", 1455 | "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", 1456 | "dev": true 1457 | }, 1458 | "p-finally": { 1459 | "version": "1.0.0", 1460 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 1461 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", 1462 | "dev": true 1463 | }, 1464 | "p-is-promise": { 1465 | "version": "2.1.0", 1466 | "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", 1467 | "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", 1468 | "dev": true 1469 | }, 1470 | "p-limit": { 1471 | "version": "2.2.0", 1472 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", 1473 | "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", 1474 | "dev": true, 1475 | "requires": { 1476 | "p-try": "^2.0.0" 1477 | } 1478 | }, 1479 | "p-locate": { 1480 | "version": "3.0.0", 1481 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 1482 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 1483 | "dev": true, 1484 | "requires": { 1485 | "p-limit": "^2.0.0" 1486 | } 1487 | }, 1488 | "p-try": { 1489 | "version": "2.2.0", 1490 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 1491 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 1492 | "dev": true 1493 | }, 1494 | "parseqs": { 1495 | "version": "0.0.5", 1496 | "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", 1497 | "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", 1498 | "dev": true, 1499 | "requires": { 1500 | "better-assert": "~1.0.0" 1501 | } 1502 | }, 1503 | "parseuri": { 1504 | "version": "0.0.5", 1505 | "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", 1506 | "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", 1507 | "dev": true, 1508 | "requires": { 1509 | "better-assert": "~1.0.0" 1510 | } 1511 | }, 1512 | "parseurl": { 1513 | "version": "1.3.3", 1514 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1515 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1516 | "dev": true 1517 | }, 1518 | "path-exists": { 1519 | "version": "3.0.0", 1520 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 1521 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 1522 | "dev": true 1523 | }, 1524 | "path-is-absolute": { 1525 | "version": "1.0.1", 1526 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1527 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1528 | "dev": true 1529 | }, 1530 | "path-key": { 1531 | "version": "2.0.1", 1532 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1533 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 1534 | "dev": true 1535 | }, 1536 | "path-parse": { 1537 | "version": "1.0.6", 1538 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 1539 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 1540 | "dev": true 1541 | }, 1542 | "pathval": { 1543 | "version": "1.1.0", 1544 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", 1545 | "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", 1546 | "dev": true 1547 | }, 1548 | "picomatch": { 1549 | "version": "2.0.7", 1550 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.0.7.tgz", 1551 | "integrity": "sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA==", 1552 | "dev": true 1553 | }, 1554 | "prettier": { 1555 | "version": "1.18.2", 1556 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.18.2.tgz", 1557 | "integrity": "sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==", 1558 | "dev": true 1559 | }, 1560 | "pseudomap": { 1561 | "version": "1.0.2", 1562 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 1563 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", 1564 | "dev": true 1565 | }, 1566 | "pump": { 1567 | "version": "3.0.0", 1568 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1569 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1570 | "dev": true, 1571 | "requires": { 1572 | "end-of-stream": "^1.1.0", 1573 | "once": "^1.3.1" 1574 | } 1575 | }, 1576 | "qjobs": { 1577 | "version": "1.2.0", 1578 | "resolved": "https://registry.npmjs.org/qjobs/-/qjobs-1.2.0.tgz", 1579 | "integrity": "sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg==", 1580 | "dev": true 1581 | }, 1582 | "qs": { 1583 | "version": "6.7.0", 1584 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1585 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==", 1586 | "dev": true 1587 | }, 1588 | "range-parser": { 1589 | "version": "1.2.1", 1590 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1591 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1592 | "dev": true 1593 | }, 1594 | "raw-body": { 1595 | "version": "2.4.0", 1596 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1597 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1598 | "dev": true, 1599 | "requires": { 1600 | "bytes": "3.1.0", 1601 | "http-errors": "1.7.2", 1602 | "iconv-lite": "0.4.24", 1603 | "unpipe": "1.0.0" 1604 | } 1605 | }, 1606 | "readdirp": { 1607 | "version": "3.1.1", 1608 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.1.1.tgz", 1609 | "integrity": "sha512-XXdSXZrQuvqoETj50+JAitxz1UPdt5dupjT6T5nVB+WvjMv2XKYj+s7hPeAVCXvmJrL36O4YYyWlIC3an2ePiQ==", 1610 | "dev": true, 1611 | "requires": { 1612 | "picomatch": "^2.0.4" 1613 | } 1614 | }, 1615 | "require-directory": { 1616 | "version": "2.1.1", 1617 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1618 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 1619 | "dev": true 1620 | }, 1621 | "require-main-filename": { 1622 | "version": "2.0.0", 1623 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 1624 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", 1625 | "dev": true 1626 | }, 1627 | "requires-port": { 1628 | "version": "1.0.0", 1629 | "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", 1630 | "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=", 1631 | "dev": true 1632 | }, 1633 | "resolve": { 1634 | "version": "1.10.0", 1635 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", 1636 | "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", 1637 | "dev": true, 1638 | "requires": { 1639 | "path-parse": "^1.0.6" 1640 | } 1641 | }, 1642 | "rfdc": { 1643 | "version": "1.1.4", 1644 | "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.1.4.tgz", 1645 | "integrity": "sha512-5C9HXdzK8EAqN7JDif30jqsBzavB7wLpaubisuQIGHWf2gUXSpzy6ArX/+Da8RjFpagWsCn+pIgxTMAmKw9Zug==", 1646 | "dev": true 1647 | }, 1648 | "rimraf": { 1649 | "version": "2.6.3", 1650 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", 1651 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", 1652 | "dev": true, 1653 | "requires": { 1654 | "glob": "^7.1.3" 1655 | } 1656 | }, 1657 | "rollup": { 1658 | "version": "1.20.1", 1659 | "resolved": "https://registry.npmjs.org/rollup/-/rollup-1.20.1.tgz", 1660 | "integrity": "sha512-8DV8eWLq84fbJFRqkjWg8BWX4NTTdHpx9bxjmTl/83z54o6Ygo1OgUDjJGFq/xe5i0kDspnbjzw2V+ZPXD/BrQ==", 1661 | "dev": true, 1662 | "requires": { 1663 | "@types/estree": "0.0.39", 1664 | "@types/node": "^12.7.2", 1665 | "acorn": "^7.0.0" 1666 | } 1667 | }, 1668 | "rollup-plugin-node-resolve": { 1669 | "version": "4.0.1", 1670 | "resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.0.1.tgz", 1671 | "integrity": "sha512-fSS7YDuCe0gYqKsr5OvxMloeZYUSgN43Ypi1WeRZzQcWtHgFayV5tUSPYpxuaioIIWaBXl6NrVk0T2/sKwueLg==", 1672 | "dev": true, 1673 | "requires": { 1674 | "builtin-modules": "^3.0.0", 1675 | "is-module": "^1.0.0", 1676 | "resolve": "^1.10.0" 1677 | } 1678 | }, 1679 | "safe-buffer": { 1680 | "version": "5.2.0", 1681 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz", 1682 | "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==", 1683 | "dev": true 1684 | }, 1685 | "safer-buffer": { 1686 | "version": "2.1.2", 1687 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1688 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1689 | "dev": true 1690 | }, 1691 | "semver": { 1692 | "version": "5.7.0", 1693 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", 1694 | "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", 1695 | "dev": true 1696 | }, 1697 | "set-blocking": { 1698 | "version": "2.0.0", 1699 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 1700 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 1701 | "dev": true 1702 | }, 1703 | "setprototypeof": { 1704 | "version": "1.1.1", 1705 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1706 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", 1707 | "dev": true 1708 | }, 1709 | "shebang-command": { 1710 | "version": "1.2.0", 1711 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1712 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 1713 | "dev": true, 1714 | "requires": { 1715 | "shebang-regex": "^1.0.0" 1716 | } 1717 | }, 1718 | "shebang-regex": { 1719 | "version": "1.0.0", 1720 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1721 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 1722 | "dev": true 1723 | }, 1724 | "signal-exit": { 1725 | "version": "3.0.2", 1726 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 1727 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 1728 | "dev": true 1729 | }, 1730 | "socket.io": { 1731 | "version": "2.1.1", 1732 | "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.1.1.tgz", 1733 | "integrity": "sha512-rORqq9c+7W0DAK3cleWNSyfv/qKXV99hV4tZe+gGLfBECw3XEhBy7x85F3wypA9688LKjtwO9pX9L33/xQI8yA==", 1734 | "dev": true, 1735 | "requires": { 1736 | "debug": "~3.1.0", 1737 | "engine.io": "~3.2.0", 1738 | "has-binary2": "~1.0.2", 1739 | "socket.io-adapter": "~1.1.0", 1740 | "socket.io-client": "2.1.1", 1741 | "socket.io-parser": "~3.2.0" 1742 | }, 1743 | "dependencies": { 1744 | "debug": { 1745 | "version": "3.1.0", 1746 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1747 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1748 | "dev": true, 1749 | "requires": { 1750 | "ms": "2.0.0" 1751 | } 1752 | } 1753 | } 1754 | }, 1755 | "socket.io-adapter": { 1756 | "version": "1.1.1", 1757 | "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", 1758 | "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=", 1759 | "dev": true 1760 | }, 1761 | "socket.io-client": { 1762 | "version": "2.1.1", 1763 | "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.1.1.tgz", 1764 | "integrity": "sha512-jxnFyhAuFxYfjqIgduQlhzqTcOEQSn+OHKVfAxWaNWa7ecP7xSNk2Dx/3UEsDcY7NcFafxvNvKPmmO7HTwTxGQ==", 1765 | "dev": true, 1766 | "requires": { 1767 | "backo2": "1.0.2", 1768 | "base64-arraybuffer": "0.1.5", 1769 | "component-bind": "1.0.0", 1770 | "component-emitter": "1.2.1", 1771 | "debug": "~3.1.0", 1772 | "engine.io-client": "~3.2.0", 1773 | "has-binary2": "~1.0.2", 1774 | "has-cors": "1.1.0", 1775 | "indexof": "0.0.1", 1776 | "object-component": "0.0.3", 1777 | "parseqs": "0.0.5", 1778 | "parseuri": "0.0.5", 1779 | "socket.io-parser": "~3.2.0", 1780 | "to-array": "0.1.4" 1781 | }, 1782 | "dependencies": { 1783 | "debug": { 1784 | "version": "3.1.0", 1785 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1786 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1787 | "dev": true, 1788 | "requires": { 1789 | "ms": "2.0.0" 1790 | } 1791 | } 1792 | } 1793 | }, 1794 | "socket.io-parser": { 1795 | "version": "3.2.0", 1796 | "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.2.0.tgz", 1797 | "integrity": "sha512-FYiBx7rc/KORMJlgsXysflWx/RIvtqZbyGLlHZvjfmPTPeuD/I8MaW7cfFrj5tRltICJdgwflhfZ3NVVbVLFQA==", 1798 | "dev": true, 1799 | "requires": { 1800 | "component-emitter": "1.2.1", 1801 | "debug": "~3.1.0", 1802 | "isarray": "2.0.1" 1803 | }, 1804 | "dependencies": { 1805 | "debug": { 1806 | "version": "3.1.0", 1807 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1808 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1809 | "dev": true, 1810 | "requires": { 1811 | "ms": "2.0.0" 1812 | } 1813 | } 1814 | } 1815 | }, 1816 | "source-map": { 1817 | "version": "0.6.1", 1818 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1819 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1820 | "dev": true 1821 | }, 1822 | "sprintf-js": { 1823 | "version": "1.0.3", 1824 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1825 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1826 | "dev": true 1827 | }, 1828 | "statuses": { 1829 | "version": "1.5.0", 1830 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1831 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", 1832 | "dev": true 1833 | }, 1834 | "streamroller": { 1835 | "version": "1.0.6", 1836 | "resolved": "https://registry.npmjs.org/streamroller/-/streamroller-1.0.6.tgz", 1837 | "integrity": "sha512-3QC47Mhv3/aZNFpDDVO44qQb9gwB9QggMEE0sQmkTAwBVYdBRWISdsywlkfm5II1Q5y/pmrHflti/IgmIzdDBg==", 1838 | "dev": true, 1839 | "requires": { 1840 | "async": "^2.6.2", 1841 | "date-format": "^2.0.0", 1842 | "debug": "^3.2.6", 1843 | "fs-extra": "^7.0.1", 1844 | "lodash": "^4.17.14" 1845 | }, 1846 | "dependencies": { 1847 | "debug": { 1848 | "version": "3.2.6", 1849 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 1850 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 1851 | "dev": true, 1852 | "requires": { 1853 | "ms": "^2.1.1" 1854 | } 1855 | }, 1856 | "lodash": { 1857 | "version": "4.17.14", 1858 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.14.tgz", 1859 | "integrity": "sha512-mmKYbW3GLuJeX+iGP+Y7Gp1AiGHGbXHCOh/jZmrawMmsE7MS4znI3RL2FsjbqOyMayHInjOeykW7PEajUk1/xw==", 1860 | "dev": true 1861 | }, 1862 | "ms": { 1863 | "version": "2.1.2", 1864 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1865 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1866 | "dev": true 1867 | } 1868 | } 1869 | }, 1870 | "string-width": { 1871 | "version": "2.1.1", 1872 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 1873 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 1874 | "dev": true, 1875 | "requires": { 1876 | "is-fullwidth-code-point": "^2.0.0", 1877 | "strip-ansi": "^4.0.0" 1878 | } 1879 | }, 1880 | "strip-ansi": { 1881 | "version": "4.0.0", 1882 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 1883 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1884 | "dev": true, 1885 | "requires": { 1886 | "ansi-regex": "^3.0.0" 1887 | } 1888 | }, 1889 | "strip-eof": { 1890 | "version": "1.0.0", 1891 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 1892 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", 1893 | "dev": true 1894 | }, 1895 | "strip-json-comments": { 1896 | "version": "2.0.1", 1897 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1898 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 1899 | "dev": true 1900 | }, 1901 | "supports-color": { 1902 | "version": "6.0.0", 1903 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", 1904 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", 1905 | "dev": true, 1906 | "requires": { 1907 | "has-flag": "^3.0.0" 1908 | } 1909 | }, 1910 | "tmp": { 1911 | "version": "0.0.33", 1912 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", 1913 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", 1914 | "dev": true, 1915 | "requires": { 1916 | "os-tmpdir": "~1.0.2" 1917 | } 1918 | }, 1919 | "to-array": { 1920 | "version": "0.1.4", 1921 | "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", 1922 | "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA=", 1923 | "dev": true 1924 | }, 1925 | "to-regex-range": { 1926 | "version": "5.0.1", 1927 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1928 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1929 | "dev": true, 1930 | "requires": { 1931 | "is-number": "^7.0.0" 1932 | } 1933 | }, 1934 | "toidentifier": { 1935 | "version": "1.0.0", 1936 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1937 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", 1938 | "dev": true 1939 | }, 1940 | "type-detect": { 1941 | "version": "4.0.8", 1942 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 1943 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 1944 | "dev": true 1945 | }, 1946 | "type-is": { 1947 | "version": "1.6.18", 1948 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1949 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1950 | "dev": true, 1951 | "requires": { 1952 | "media-typer": "0.3.0", 1953 | "mime-types": "~2.1.24" 1954 | } 1955 | }, 1956 | "typescript": { 1957 | "version": "3.5.3", 1958 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz", 1959 | "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==", 1960 | "dev": true 1961 | }, 1962 | "ultron": { 1963 | "version": "1.1.1", 1964 | "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", 1965 | "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", 1966 | "dev": true 1967 | }, 1968 | "universalify": { 1969 | "version": "0.1.2", 1970 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", 1971 | "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", 1972 | "dev": true 1973 | }, 1974 | "unpipe": { 1975 | "version": "1.0.0", 1976 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1977 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", 1978 | "dev": true 1979 | }, 1980 | "useragent": { 1981 | "version": "2.3.0", 1982 | "resolved": "https://registry.npmjs.org/useragent/-/useragent-2.3.0.tgz", 1983 | "integrity": "sha512-4AoH4pxuSvHCjqLO04sU6U/uE65BYza8l/KKBS0b0hnUPWi+cQ2BpeTEwejCSx9SPV5/U03nniDTrWx5NrmKdw==", 1984 | "dev": true, 1985 | "requires": { 1986 | "lru-cache": "4.1.x", 1987 | "tmp": "0.0.x" 1988 | } 1989 | }, 1990 | "utils-merge": { 1991 | "version": "1.0.1", 1992 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1993 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", 1994 | "dev": true 1995 | }, 1996 | "void-elements": { 1997 | "version": "2.0.1", 1998 | "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", 1999 | "integrity": "sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=", 2000 | "dev": true 2001 | }, 2002 | "which": { 2003 | "version": "1.3.0", 2004 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", 2005 | "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", 2006 | "dev": true, 2007 | "requires": { 2008 | "isexe": "^2.0.0" 2009 | } 2010 | }, 2011 | "which-module": { 2012 | "version": "2.0.0", 2013 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 2014 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 2015 | "dev": true 2016 | }, 2017 | "wide-align": { 2018 | "version": "1.1.3", 2019 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 2020 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 2021 | "dev": true, 2022 | "requires": { 2023 | "string-width": "^1.0.2 || 2" 2024 | } 2025 | }, 2026 | "wordwrap": { 2027 | "version": "0.0.3", 2028 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", 2029 | "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", 2030 | "dev": true 2031 | }, 2032 | "wrap-ansi": { 2033 | "version": "2.1.0", 2034 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 2035 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 2036 | "dev": true, 2037 | "requires": { 2038 | "string-width": "^1.0.1", 2039 | "strip-ansi": "^3.0.1" 2040 | }, 2041 | "dependencies": { 2042 | "ansi-regex": { 2043 | "version": "2.1.1", 2044 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 2045 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", 2046 | "dev": true 2047 | }, 2048 | "is-fullwidth-code-point": { 2049 | "version": "1.0.0", 2050 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 2051 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 2052 | "dev": true, 2053 | "requires": { 2054 | "number-is-nan": "^1.0.0" 2055 | } 2056 | }, 2057 | "string-width": { 2058 | "version": "1.0.2", 2059 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 2060 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 2061 | "dev": true, 2062 | "requires": { 2063 | "code-point-at": "^1.0.0", 2064 | "is-fullwidth-code-point": "^1.0.0", 2065 | "strip-ansi": "^3.0.0" 2066 | } 2067 | }, 2068 | "strip-ansi": { 2069 | "version": "3.0.1", 2070 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2071 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 2072 | "dev": true, 2073 | "requires": { 2074 | "ansi-regex": "^2.0.0" 2075 | } 2076 | } 2077 | } 2078 | }, 2079 | "wrappy": { 2080 | "version": "1.0.2", 2081 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2082 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2083 | "dev": true 2084 | }, 2085 | "ws": { 2086 | "version": "3.3.3", 2087 | "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", 2088 | "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", 2089 | "dev": true, 2090 | "requires": { 2091 | "async-limiter": "~1.0.0", 2092 | "safe-buffer": "~5.1.0", 2093 | "ultron": "~1.1.0" 2094 | }, 2095 | "dependencies": { 2096 | "safe-buffer": { 2097 | "version": "5.1.2", 2098 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 2099 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 2100 | "dev": true 2101 | } 2102 | } 2103 | }, 2104 | "xmlhttprequest-ssl": { 2105 | "version": "1.5.5", 2106 | "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.5.tgz", 2107 | "integrity": "sha1-wodrBhaKrcQOV9l+gRkayPQ5iz4=", 2108 | "dev": true 2109 | }, 2110 | "y18n": { 2111 | "version": "4.0.0", 2112 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", 2113 | "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", 2114 | "dev": true 2115 | }, 2116 | "yallist": { 2117 | "version": "2.1.2", 2118 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 2119 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", 2120 | "dev": true 2121 | }, 2122 | "yargs": { 2123 | "version": "13.2.2", 2124 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz", 2125 | "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", 2126 | "dev": true, 2127 | "requires": { 2128 | "cliui": "^4.0.0", 2129 | "find-up": "^3.0.0", 2130 | "get-caller-file": "^2.0.1", 2131 | "os-locale": "^3.1.0", 2132 | "require-directory": "^2.1.1", 2133 | "require-main-filename": "^2.0.0", 2134 | "set-blocking": "^2.0.0", 2135 | "string-width": "^3.0.0", 2136 | "which-module": "^2.0.0", 2137 | "y18n": "^4.0.0", 2138 | "yargs-parser": "^13.0.0" 2139 | }, 2140 | "dependencies": { 2141 | "ansi-regex": { 2142 | "version": "4.1.0", 2143 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 2144 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 2145 | "dev": true 2146 | }, 2147 | "string-width": { 2148 | "version": "3.1.0", 2149 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 2150 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 2151 | "dev": true, 2152 | "requires": { 2153 | "emoji-regex": "^7.0.1", 2154 | "is-fullwidth-code-point": "^2.0.0", 2155 | "strip-ansi": "^5.1.0" 2156 | } 2157 | }, 2158 | "strip-ansi": { 2159 | "version": "5.2.0", 2160 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 2161 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 2162 | "dev": true, 2163 | "requires": { 2164 | "ansi-regex": "^4.1.0" 2165 | } 2166 | } 2167 | } 2168 | }, 2169 | "yargs-parser": { 2170 | "version": "13.0.0", 2171 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", 2172 | "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", 2173 | "dev": true, 2174 | "requires": { 2175 | "camelcase": "^5.0.0", 2176 | "decamelize": "^1.2.0" 2177 | } 2178 | }, 2179 | "yargs-unparser": { 2180 | "version": "1.5.0", 2181 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz", 2182 | "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", 2183 | "dev": true, 2184 | "requires": { 2185 | "flat": "^4.1.0", 2186 | "lodash": "^4.17.11", 2187 | "yargs": "^12.0.5" 2188 | }, 2189 | "dependencies": { 2190 | "get-caller-file": { 2191 | "version": "1.0.3", 2192 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", 2193 | "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", 2194 | "dev": true 2195 | }, 2196 | "require-main-filename": { 2197 | "version": "1.0.1", 2198 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", 2199 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", 2200 | "dev": true 2201 | }, 2202 | "yargs": { 2203 | "version": "12.0.5", 2204 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", 2205 | "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", 2206 | "dev": true, 2207 | "requires": { 2208 | "cliui": "^4.0.0", 2209 | "decamelize": "^1.2.0", 2210 | "find-up": "^3.0.0", 2211 | "get-caller-file": "^1.0.1", 2212 | "os-locale": "^3.0.0", 2213 | "require-directory": "^2.1.1", 2214 | "require-main-filename": "^1.0.1", 2215 | "set-blocking": "^2.0.0", 2216 | "string-width": "^2.0.0", 2217 | "which-module": "^2.0.0", 2218 | "y18n": "^3.2.1 || ^4.0.0", 2219 | "yargs-parser": "^11.1.1" 2220 | } 2221 | }, 2222 | "yargs-parser": { 2223 | "version": "11.1.1", 2224 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", 2225 | "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", 2226 | "dev": true, 2227 | "requires": { 2228 | "camelcase": "^5.0.0", 2229 | "decamelize": "^1.2.0" 2230 | } 2231 | } 2232 | } 2233 | }, 2234 | "yeast": { 2235 | "version": "0.1.2", 2236 | "resolved": "https://registry.npmjs.org/yeast/-/yeast-0.1.2.tgz", 2237 | "integrity": "sha1-AI4G2AlDIMNy28L47XagymyKxBk=", 2238 | "dev": true 2239 | } 2240 | } 2241 | } 2242 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "clooneyjs", 3 | "version": "0.7.0", 4 | "description": "Clooney is an actor library for the web", 5 | "main": "clooney.js", 6 | "module": "clooney.js", 7 | "typings": "clooney.d.ts", 8 | "repository": { 9 | "type": "git", 10 | "url": "https://github.com/GoogleChromeLabs/clooney" 11 | }, 12 | "scripts": { 13 | "test": "npm run linter && npm run build && npm run unittest", 14 | "unittest": "karma start", 15 | "linter": "prettier --write src/*.ts tests/*.js tests/fixtures/*.js", 16 | "watchtest": "karma start --no-single-run --browsers ChromeHeadless", 17 | "version": "sed -i.bak -e 's!clooneyjs@[0-9.]*!clooneyjs@'${npm_package_version}'!' README.md && git add README.md", 18 | "mypublish": "npm run build && npm run test && cp README.md package.json dist && npm publish dist", 19 | "build": "rm -rf dist/* && npm run compile", 20 | "compile": "tsc --outDir dist && rollup -c rollup.config.js" 21 | }, 22 | "keywords": [], 23 | "author": { 24 | "name": "Surma", 25 | "email": "surma@google.com" 26 | }, 27 | "contributors": [ 28 | { 29 | "name": "Surma", 30 | "email": "surma@google.com" 31 | } 32 | ], 33 | "license": "Apache-2.0", 34 | "dependencies": { 35 | "comlinkjs": "3.2.0" 36 | }, 37 | "devDependencies": { 38 | "chai": "4.2.0", 39 | "karma": "4.2.0", 40 | "karma-chai": "0.1.0", 41 | "karma-chrome-launcher": "3.1.0", 42 | "karma-mocha": "1.3.0", 43 | "mocha": "6.2.0", 44 | "prettier": "1.18.2", 45 | "rollup": "1.20.1", 46 | "rollup-plugin-node-resolve": "4.0.1", 47 | "typescript": "3.5.3" 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [":library"] 3 | } 4 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Google Inc. All Rights Reserved. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * Unless required by applicable law or agreed to in writing, software 8 | * distributed under the License is distributed on an "AS IS" BASIS, 9 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing permissions and 11 | * limitations under the License. 12 | */ 13 | 14 | const nodeResolve = require('rollup-plugin-node-resolve'); 15 | 16 | export default { 17 | input: 'dist/clooney.js', 18 | output: { 19 | file: 'dist/bundle/clooney.js', 20 | format: 'iife', 21 | name: 'Clooney', 22 | banner: require('fs').readFileSync('licenseheader.txt').toString('utf-8'), 23 | }, 24 | plugins: [ 25 | nodeResolve() 26 | ], 27 | }; 28 | -------------------------------------------------------------------------------- /src/clooney.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Google Inc. All Rights Reserved. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * Unless required by applicable law or agreed to in writing, software 8 | * distributed under the License is distributed on an "AS IS" BASIS, 9 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing permissions and 11 | * limitations under the License. 12 | */ 13 | import * as Comlink from "comlinkjs"; // eslint-disable-line no-unused-vars 14 | import { Endpoint } from "comlinkjs"; // eslint-disable-line no-unused-vars 15 | 16 | // Automatically proxy functions 17 | Comlink.transferHandlers.set("FUNCTION", { 18 | canHandle(obj: any): Boolean { 19 | return obj instanceof Function; 20 | }, 21 | serialize(obj: any): any { 22 | const { port1, port2 } = new MessageChannel(); 23 | Comlink.expose(obj, port1); 24 | return port2; 25 | }, 26 | deserialize(obj: any): any { 27 | return Comlink.proxy(obj as Endpoint); 28 | } 29 | }); 30 | 31 | // Automatically proxy events 32 | Comlink.transferHandlers.set("EVENT", { 33 | canHandle(obj: any): Boolean { 34 | return obj instanceof Event; 35 | }, 36 | serialize(obj: any): any { 37 | return { 38 | targetId: obj && obj.target && obj.target.id, 39 | targetClassList: obj && 40 | obj.target && 41 | obj.target.classList && [...obj.target.classList], 42 | detail: obj && obj.detail, 43 | data: obj && obj.data 44 | }; 45 | }, 46 | deserialize(obj: any): any { 47 | return obj; 48 | } 49 | }); 50 | 51 | export { Comlink }; 52 | 53 | /** 54 | * `asRemoteValue` marks a value. If a marked value is used as an parameter or return value, it will not be transferred but instead proxied. 55 | */ 56 | export const asRemoteValue: (x: T) => T = Comlink.proxyValue; 57 | 58 | /** 59 | * `defaultWorkerSrc` is the path passed to the `new Worker()` call. It’s recommended to not change this variable but instead overload `newWorkerFunc`. 60 | */ 61 | export let defaultWorkerSrc: string = 62 | "document" in self 63 | ? document.currentScript! && 64 | (document.currentScript as HTMLScriptElement).src 65 | : ""; 66 | 67 | export type Actor = Function; 68 | export type ActorSource = string; 69 | 70 | export interface TerminatableEndpoint extends Endpoint { 71 | terminate(): void; 72 | } 73 | 74 | /** 75 | * ActorContainer can run actors. This interface is implemented by Web Workers. 76 | */ 77 | export interface ActorContainer { 78 | spawn(actor: ActorSource, opts: Object): Promise; 79 | terminate(): void; 80 | } 81 | 82 | export interface Strategy { 83 | /** 84 | * `spawn` instantiates the given actor in an actor container of the strategy’s choice. 85 | * @returns The return type is the type as T, but every method is implicitly async. 86 | */ 87 | spawn(actor: new () => T, args: any[], opts: Object): Promise; 88 | /** 89 | * `terminate` calls `terminate()` on all existing containers of the strategy. 90 | */ 91 | terminate(): Promise; 92 | } 93 | 94 | export interface StrategyOptions { 95 | /** 96 | * Maximum number of containers the strategy is allowed to spin up. Default is 1. 97 | */ 98 | maxNumContainers?: number; 99 | /** 100 | * Asynchronous function to create a new worker. Default is a call to `new Worker(defaultWorkerSrc)`. 101 | */ 102 | newWorkerFunc?: () => Promise; 103 | } 104 | 105 | export const defaultOpts = { 106 | maxNumContainers: 1, 107 | newWorkerFunc: async () => new Worker(defaultWorkerSrc) 108 | }; 109 | 110 | /** 111 | * `RoundRobingStrategy` creates up to n containers and cycles through the containers with every `spawn` call. 112 | */ 113 | export class RoundRobinStrategy implements Strategy { 114 | private _containers: ActorContainer[]; 115 | private _nextIndex: number = 0; 116 | private _options: StrategyOptions; 117 | 118 | constructor(opts: StrategyOptions = {}) { 119 | this._options = { ...defaultOpts, ...opts }; 120 | this._containers = new Array(this._options.maxNumContainers).fill(null); 121 | } 122 | 123 | private async _initOrGetContainer(i: number): Promise { 124 | if (i >= this._containers.length) throw Error("No worker available"); 125 | if (!this._containers[i]) { 126 | const worker = await this._options.newWorkerFunc!(); 127 | const remote = Comlink.proxy(worker) as any; 128 | this._containers[i] = { 129 | spawn: remote.spawn.bind(spawn), 130 | terminate: worker.terminate.bind(worker) 131 | }; 132 | } 133 | return this._containers[i]; 134 | } 135 | 136 | private async _getNextContainer(opts: Object): Promise { 137 | const w = await this._initOrGetContainer(this._nextIndex); 138 | this._nextIndex = (this._nextIndex + 1) % this._options.maxNumContainers!; 139 | return w; 140 | } 141 | 142 | async spawn( 143 | actor: Actor, 144 | constructorArgs: any[] = [], 145 | opts: Object = {} 146 | ): Promise { 147 | const container = await this._getNextContainer(opts); 148 | return (await container.spawn(actor.toString(), constructorArgs)) as T; 149 | } 150 | 151 | async terminate() { 152 | this._containers.filter(c => c).forEach(container => container.terminate()); 153 | this._containers.length = 0; 154 | } 155 | 156 | get terminated() { 157 | return this._containers.length <= 0; 158 | } 159 | } 160 | 161 | export let defaultStrategy = new RoundRobinStrategy(); 162 | export async function spawn( 163 | actor: Actor, 164 | constructorArgs: any[] = [], 165 | opts: Object = {} 166 | ): Promise { 167 | return defaultStrategy.spawn(actor, constructorArgs, opts); 168 | } 169 | 170 | export function makeContainer(endpoint: Endpoint | Window = self): void { 171 | Comlink.expose( 172 | { 173 | async spawn(actorCode: string, constructorArgs: any[]): Promise { 174 | const actor = new Function(`return ${actorCode};`)(); 175 | return Comlink.proxyValue(new actor(...constructorArgs)) as Actor; // eslint-disable-line new-cap 176 | } 177 | }, 178 | endpoint 179 | ); 180 | } 181 | 182 | function isWorker(): boolean { 183 | // I’d have to import lib.webworker.d.ts to have access to 184 | // WorkerGlobalScope, but I can’t because it conflicts with lib.dom.d.ts. 185 | const wgs: any = (self as any)["WorkerGlobalScope"]; 186 | return wgs && self instanceof wgs; 187 | } 188 | 189 | // TODO: Find a way to opt-out of autostart 190 | if (isWorker()) makeContainer(); 191 | -------------------------------------------------------------------------------- /tests/fixtures/worker.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Google Inc. All Rights Reserved. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * Unless required by applicable law or agreed to in writing, software 8 | * distributed under the License is distributed on an "AS IS" BASIS, 9 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing permissions and 11 | * limitations under the License. 12 | */ 13 | 14 | importScripts("/base/node_modules/comlinkjs/umd/comlink.js"); 15 | Comlink.expose( 16 | { 17 | spawn() { 18 | return 42; 19 | } 20 | }, 21 | self 22 | ); 23 | -------------------------------------------------------------------------------- /tests/sometests.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2018 Google Inc. All Rights Reserved. 3 | * Licensed under the Apache License, Version 2.0 (the "License"); 4 | * you may not use this file except in compliance with the License. 5 | * You may obtain a copy of the License at 6 | * http://www.apache.org/licenses/LICENSE-2.0 7 | * Unless required by applicable law or agreed to in writing, software 8 | * distributed under the License is distributed on an "AS IS" BASIS, 9 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 | * See the License for the specific language governing permissions and 11 | * limitations under the License. 12 | */ 13 | 14 | function timeoutPromise(t) { 15 | return new Promise(resolve => setTimeout(_ => resolve("timeout"), t)); 16 | } 17 | 18 | describe("Clooney", function() { 19 | it("exists", async function() { 20 | expect(Clooney).to.exist; 21 | }); 22 | 23 | it("has a default strategy", async function() { 24 | class MyActor { 25 | aNumber() { 26 | return 42; 27 | } 28 | } 29 | 30 | const instance = await Clooney.spawn(MyActor); 31 | expect(await instance.aNumber()).to.equal(42); 32 | }); 33 | 34 | it("respects asRemoteValue", function(done) { 35 | const obj = { 36 | myCallback() { 37 | done(); 38 | } 39 | }; 40 | 41 | class MyActor { 42 | async callTheCallback(obj) { 43 | await obj.myCallback(); 44 | } 45 | } 46 | 47 | Clooney.spawn(MyActor).then(actor => 48 | actor.callTheCallback(Clooney.asRemoteValue(obj)) 49 | ); 50 | }); 51 | 52 | it("proxies functions by default", function(done) { 53 | class MyActor { 54 | async callCallback(cb) { 55 | await cb(); 56 | } 57 | } 58 | 59 | Clooney.spawn(MyActor).then(actor => actor.callCallback(_ => done())); 60 | }); 61 | 62 | it("can handle message event listeners", function() { 63 | const { port1, port2 } = new MessageChannel(); 64 | class MyActor { 65 | constructor() { 66 | this.lastMessage = new Promise(resolve => (this.resolve = resolve)); 67 | } 68 | onMessage(ev) { 69 | this.resolve(ev.data); 70 | } 71 | } 72 | return Clooney.spawn(MyActor).then(async actor => { 73 | port1.addEventListener("message", actor.onMessage.bind(actor)); 74 | port1.start(); 75 | port2.postMessage("message"); 76 | expect(await actor.lastMessage).to.equal("message"); 77 | }); 78 | }); 79 | 80 | it("can handle custom event listeners", function() { 81 | const { port1 } = new MessageChannel(); 82 | class MyActor { 83 | constructor() { 84 | this.lastEvent = new Promise(resolve => (this.resolve = resolve)); 85 | } 86 | onMyEvent(ev) { 87 | this.resolve(ev.detail); 88 | } 89 | } 90 | return Clooney.spawn(MyActor).then(async actor => { 91 | port1.addEventListener("my-event", actor.onMyEvent.bind(actor)); 92 | port1.dispatchEvent( 93 | new CustomEvent("my-event", { detail: { message: "message" } }) 94 | ); 95 | expect((await actor.lastEvent).message).to.equal("message"); 96 | }); 97 | }); 98 | 99 | it("can pass arguments to the constructor of an actor", function() { 100 | class MyActor { 101 | constructor(_number, _string) { 102 | this.number = _number; 103 | this.string = _string; 104 | } 105 | } 106 | 107 | return Clooney.spawn(MyActor, [42, "hai"]).then(async actor => { 108 | expect(await actor.number).to.equal(42); 109 | expect(await actor.string).to.equal("hai"); 110 | }); 111 | }); 112 | 113 | it("can pass objects with functions to the constructor of an actor", function(done) { 114 | class MyActor { 115 | constructor(obj) { 116 | obj.getThing(); 117 | } 118 | } 119 | 120 | const obj = { 121 | getThing() { 122 | done(); 123 | } 124 | }; 125 | 126 | Clooney.spawn(MyActor, [obj]); 127 | }); 128 | 129 | describe("RoundRobinStrategy", function() { 130 | beforeEach(async function() { 131 | this.strategy = new Clooney.RoundRobinStrategy({ 132 | maxNumContainers: 2 133 | }); 134 | }); 135 | 136 | afterEach(async function() { 137 | if (this.strategy && !this.strategy.terminated) { 138 | await this.strategy.terminate(); 139 | } 140 | }); 141 | 142 | it("can load actors", async function() { 143 | class MyActor { 144 | gimme42() { 145 | return 42; 146 | } 147 | } 148 | 149 | const actor = await this.strategy.spawn(MyActor); 150 | expect(await actor.gimme42()).to.equal(42); 151 | }); 152 | 153 | it("can handle blocking actors", async function() { 154 | class BadActor { 155 | block() { 156 | while (true); 157 | } 158 | gimme42() { 159 | return 42; 160 | } 161 | } 162 | 163 | class GoodActor { 164 | gimme42() { 165 | return 42; 166 | } 167 | } 168 | 169 | const badActor = await this.strategy.spawn(BadActor); 170 | const goodActor = await this.strategy.spawn(GoodActor); 171 | badActor.block(); 172 | expect(await goodActor.gimme42()).to.equal(42); 173 | 174 | const blockCheck = Promise.race([ 175 | badActor.gimme42(), 176 | timeoutPromise(100) 177 | ]); 178 | expect(await blockCheck).to.equal("timeout"); 179 | }); 180 | 181 | it("can be terminated", async function() { 182 | class MyActor {} 183 | 184 | const strategy = new Clooney.RoundRobinStrategy(); 185 | const actor1 = await strategy.spawn(MyActor); 186 | const actor2 = await strategy.spawn(MyActor); 187 | await strategy.terminate(); 188 | return strategy 189 | .spawn(MyActor) 190 | .then(_ => Promise.reject()) 191 | .catch(_ => {}); 192 | }); 193 | 194 | it("uses the worker func", function(done) { 195 | async function newWorkerFunc() { 196 | done(); 197 | return new Worker(Clooney.defaultWorkerSrc); 198 | } 199 | class MyActor {} 200 | const strategy = new Clooney.RoundRobinStrategy({ newWorkerFunc }); 201 | strategy.spawn(MyActor); 202 | }); 203 | }); 204 | }); 205 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Basic Options */ 4 | "target": "es2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ 5 | "module": "es2015", /* Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ 6 | "lib": ["es2015", "es2017", "dom"], /* Specify library files to be included in the compilation: */ 7 | // "allowJs": true, /* Allow javascript files to be compiled. */ 8 | // "checkJs": true, /* Report errors in .js files. */ 9 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ 10 | "declaration": true, /* Generates corresponding '.d.ts' file. */ 11 | // "sourceMap": true, /* Generates corresponding '.map' file. */ 12 | // "outFile": "./", /* Concatenate and emit output to single file. */ 13 | // "outDir": "./", /* Redirect output structure to the directory. */ 14 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ 15 | // "removeComments": false, /* Do not emit comments to output. */ 16 | // "noEmit": true, /* Do not emit outputs. */ 17 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */ 18 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ 19 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ 20 | 21 | /* Strict Type-Checking Options */ 22 | "strict": true, /* Enable all strict type-checking options. */ 23 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ 24 | // "strictNullChecks": true, /* Enable strict null checks. */ 25 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ 26 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ 27 | 28 | /* Additional Checks */ 29 | // "noUnusedLocals": true, /* Report errors on unused locals. */ 30 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 31 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 32 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 33 | 34 | /* Module Resolution Options */ 35 | "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ 36 | "baseUrl": ".", /* Base directory to resolve non-absolute module names. */ 37 | // "paths": { 38 | // "comlink": ["../node_modules/comlinkjs/comlink"] 39 | // } 40 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ 41 | // "typeRoots": [], /* List of folders to include type definitions from. */ 42 | // "types": [], /* Type declaration files to be included in compilation. */ 43 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ 44 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ 45 | 46 | /* Source Map Options */ 47 | // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ 48 | // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ 49 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ 50 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ 51 | 52 | /* Experimental Options */ 53 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ 54 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ 55 | } 56 | } 57 | --------------------------------------------------------------------------------