├── .gitignore ├── .npmignore ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── LICENSE.md ├── Water Rower S4 S5 USB Protocol Iss 1 04.pdf ├── lib └── data │ └── simulationdata ├── package-lock.json ├── package.json ├── readme.md ├── src ├── datapoints.ts ├── index.ts ├── sample-client │ ├── .vscode │ │ ├── launch.json │ │ └── tasks.json │ ├── data │ │ ├── 2014-07-14 30 min moderate │ │ └── simulationdata │ ├── index.ts │ ├── package.json │ └── tsconfig.json ├── test │ └── test.ts ├── types.ts └── types │ └── all-your-base.d.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | ### node ### 2 | # Logs 3 | logs 4 | *.log 5 | npm-debug.log* 6 | 7 | # Runtime data 8 | pids 9 | *.pid 10 | *.seed 11 | 12 | # Directory for instrumented libs generated by jscoverage/JSCover 13 | lib-cov 14 | 15 | # Coverage directory used by tools like istanbul 16 | coverage 17 | 18 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 19 | .grunt 20 | 21 | # node-waf configuration 22 | .lock-wscript 23 | 24 | # Compiled binary addons (http://nodejs.org/api/addons.html) 25 | build/Release 26 | 27 | # Dependency directory 28 | # https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git 29 | node_modules 30 | 31 | # Optional npm cache directory 32 | .npm 33 | 34 | # Optional REPL history 35 | .node_repl_history 36 | 37 | *.js 38 | *.js.map 39 | typings 40 | lib 41 | !lib/data/simulationdata 42 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codefoster/waterrower/8baa992e3f609a293de1eae32d0c066e3d4631d7/.npmignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Launch", 6 | "type": "node", 7 | "request": "launch", 8 | "program": "${workspaceRoot}/sample-client/index.js", 9 | "stopOnEntry": false, 10 | "args": [], 11 | "cwd": "${workspaceRoot}", 12 | "preLaunchTask": null, 13 | "runtimeExecutable": null, 14 | "runtimeArgs": [ 15 | "--nolazy" 16 | ], 17 | "env": { 18 | "NODE_ENV": "development" 19 | }, 20 | "externalConsole": false, 21 | "sourceMaps": false, 22 | "outDir": null 23 | }, 24 | { 25 | "name": "Attach", 26 | "type": "node", 27 | "request": "attach", 28 | "port": 5858, 29 | "address": "localhost", 30 | "restart": false, 31 | "sourceMaps": false, 32 | "outDir": null, 33 | "localRoot": "${workspaceRoot}", 34 | "remoteRoot": null 35 | }, 36 | { 37 | "name": "Attach to Process", 38 | "type": "node", 39 | "request": "attach", 40 | "processId": "${command.PickProcess}", 41 | "port": 5858, 42 | "sourceMaps": false, 43 | "outDir": null 44 | } 45 | ] 46 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | "files.exclude": { 4 | "**/*.js": false, 5 | "**/*.js.map": false 6 | } 7 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the tasks.json format 4 | "version": "0.1.0", 5 | "command": "tsc", 6 | "isShellCommand": true, 7 | "args": ["-w", "-p", "."], 8 | "showOutput": "silent", 9 | "isWatching": true, 10 | "problemMatcher": "$tsc-watch" 11 | } -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /Water Rower S4 S5 USB Protocol Iss 1 04.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codefoster/waterrower/8baa992e3f609a293de1eae32d0c066e3d4631d7/Water Rower S4 S5 USB Protocol Iss 1 04.pdf -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "waterrower", 3 | "version": "0.8.5", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@serialport/binding-abstract": { 8 | "version": "2.0.1", 9 | "resolved": "https://registry.npmjs.org/@serialport/binding-abstract/-/binding-abstract-2.0.1.tgz", 10 | "integrity": "sha512-l4M35BV0ty4x6UoViCKD45XIWE/cSrCA+PbHGByhYu22R9biDbWaI7vjaVYVefYCBRvIez11Kw0JN9tkQMEY+A==", 11 | "requires": { 12 | "debug": "^3.1.0" 13 | } 14 | }, 15 | "@serialport/binding-mock": { 16 | "version": "2.0.1", 17 | "resolved": "https://registry.npmjs.org/@serialport/binding-mock/-/binding-mock-2.0.1.tgz", 18 | "integrity": "sha512-1oCxzljZY2Tj/Ws/Qa2+vEgYYTSMvzxOhyO2nAiDiEQ49oTc1XT5onbNXTeKw+T1+5uHBqol4R9TEgV4+Oi0Mw==", 19 | "requires": { 20 | "@serialport/binding-abstract": "^2.0.1", 21 | "debug": "^3.1.0" 22 | } 23 | }, 24 | "@serialport/bindings": { 25 | "version": "2.0.2", 26 | "resolved": "https://registry.npmjs.org/@serialport/bindings/-/bindings-2.0.2.tgz", 27 | "integrity": "sha512-MrGma+SfOBUQWhjOAsCBjXExI2C5pCAFTQeGE43zpuZikHw1dZQ35kV4hVDPw2mSzsXBR14OuvDonEVrr9vysg==", 28 | "requires": { 29 | "@serialport/binding-abstract": "^2.0.1", 30 | "@serialport/parser-readline": "^2.0.1", 31 | "bindings": "^1.3.0", 32 | "debug": "^3.1.0", 33 | "nan": "^2.9.2", 34 | "prebuild-install": "^5.1.0" 35 | } 36 | }, 37 | "@serialport/parser-byte-length": { 38 | "version": "2.0.1", 39 | "resolved": "https://registry.npmjs.org/@serialport/parser-byte-length/-/parser-byte-length-2.0.1.tgz", 40 | "integrity": "sha512-5eqSWfVSqnPexbwi+pL+DY0/KBMV4zNhxl+vNCZ23FztKwqpfzDVNwHFEIZn+olK5z0Ht6jz4EVo19uum7yE2Q==" 41 | }, 42 | "@serialport/parser-cctalk": { 43 | "version": "2.0.1", 44 | "resolved": "https://registry.npmjs.org/@serialport/parser-cctalk/-/parser-cctalk-2.0.1.tgz", 45 | "integrity": "sha512-gZpM4ViS48xTiHTC+xV54lcBYzhII1250dwBmdX+8ZjKGb8n99S9LreQRisexhcWvXhIT6f45xya6xBk5aHQIw==" 46 | }, 47 | "@serialport/parser-delimiter": { 48 | "version": "2.0.1", 49 | "resolved": "https://registry.npmjs.org/@serialport/parser-delimiter/-/parser-delimiter-2.0.1.tgz", 50 | "integrity": "sha512-y7m6Rn3Y93DnZtS5jhFNbzRFP9E2mVcn6Lu9j6RQmHJeCK/q/6dOKURWRQ4vat+S7QWtYlaEOchF1hEvmoOmLQ==" 51 | }, 52 | "@serialport/parser-readline": { 53 | "version": "2.0.1", 54 | "resolved": "https://registry.npmjs.org/@serialport/parser-readline/-/parser-readline-2.0.1.tgz", 55 | "integrity": "sha512-EOsuBkmYuUrWZ7X2aPvpE1NeLHk3wmLJDrxsfTHbErTajk3AcsZfq28yNQcSPN5v7902VXgMJom94TruWyOTzw==", 56 | "requires": { 57 | "@serialport/parser-delimiter": "^2.0.1" 58 | } 59 | }, 60 | "@serialport/parser-ready": { 61 | "version": "2.0.1", 62 | "resolved": "https://registry.npmjs.org/@serialport/parser-ready/-/parser-ready-2.0.1.tgz", 63 | "integrity": "sha512-Rdsiru1HHmwcENGyJ+bC7x8aKbbki1vOwp/eQ26LCuIq2Hbq61wKHq2lNwvlp48tmWsB8cRbMuYMjh6zU/1zbA==" 64 | }, 65 | "@serialport/parser-regex": { 66 | "version": "2.0.1", 67 | "resolved": "https://registry.npmjs.org/@serialport/parser-regex/-/parser-regex-2.0.1.tgz", 68 | "integrity": "sha512-Dg9BAVrYfJG2IBA4BjWEE3GShZLPW9iT4PJ7fHFPZItw4Ljzwo86rXva18lx5auegE+6w3t9OwG3rIsImqk9sg==" 69 | }, 70 | "@serialport/stream": { 71 | "version": "2.0.1", 72 | "resolved": "https://registry.npmjs.org/@serialport/stream/-/stream-2.0.1.tgz", 73 | "integrity": "sha512-/m+TLQyCWLm4QczjHu1VEjM2LkFhN6f9O3BlMh/AK55I8vOJ9vZycZAVLSFF2ybqB5wFCHfZD2fbbWfyeA28bA==", 74 | "requires": { 75 | "@serialport/binding-mock": "^2.0.1", 76 | "debug": "^3.1.0" 77 | } 78 | }, 79 | "@types/chai": { 80 | "version": "4.0.4", 81 | "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.0.4.tgz", 82 | "integrity": "sha512-cvU0HomQ7/aGDQJZsbtJXqBQ7w4J4TqLB0Z/h8mKrpRjfeZEvTbygkfJEb7fWdmwpIeDeFmIVwAEqS0OYuUv3Q==" 83 | }, 84 | "@types/lodash": { 85 | "version": "4.14.117", 86 | "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.117.tgz", 87 | "integrity": "sha512-xyf2m6tRbz8qQKcxYZa7PA4SllYcay+eh25DN3jmNYY6gSTL7Htc/bttVdkqj2wfJGbeWlQiX8pIyJpKU+tubw==" 88 | }, 89 | "@types/mocha": { 90 | "version": "5.2.5", 91 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.5.tgz", 92 | "integrity": "sha512-lAVp+Kj54ui/vLUFxsJTMtWvZraZxum3w3Nwkble2dNuV5VnPA+Mi2oGX9XYJAaIvZi3tn3cbjS/qcJXRb6Bww==" 93 | }, 94 | "@types/node": { 95 | "version": "10.12.1", 96 | "resolved": "https://registry.npmjs.org/@types/node/-/node-10.12.1.tgz", 97 | "integrity": "sha512-i1sl+WCX2OCHeUi9oi7PiCNUtYFrpWhpcx878vpeq/tlZTKzcFdHePlyFHVbWqeuKN0SRPl/9ZFDSTsfv9h7VQ==" 98 | }, 99 | "@types/serialport": { 100 | "version": "7.0.0", 101 | "resolved": "https://registry.npmjs.org/@types/serialport/-/serialport-7.0.0.tgz", 102 | "integrity": "sha512-2YWFntEKeEKh8lCngxoIaEYV+ov87PZOTKbhXSc6Htt3WAaex0AOZczDXcdHvtS9OBf30ydZcncazUE7+vltcw==", 103 | "requires": { 104 | "@types/node": "*" 105 | } 106 | }, 107 | "all-your-base": { 108 | "version": "0.3.0", 109 | "resolved": "https://registry.npmjs.org/all-your-base/-/all-your-base-0.3.0.tgz", 110 | "integrity": "sha1-61apxC2l0XNeradF6S0FaLaFDTQ=" 111 | }, 112 | "ansi-bgblack": { 113 | "version": "0.1.1", 114 | "resolved": "https://registry.npmjs.org/ansi-bgblack/-/ansi-bgblack-0.1.1.tgz", 115 | "integrity": "sha1-poulAHiHcBtqr74/oNrf36juPKI=", 116 | "requires": { 117 | "ansi-wrap": "0.1.0" 118 | } 119 | }, 120 | "ansi-bgblue": { 121 | "version": "0.1.1", 122 | "resolved": "https://registry.npmjs.org/ansi-bgblue/-/ansi-bgblue-0.1.1.tgz", 123 | "integrity": "sha1-Z73ATtybm1J4lp2hlt6j11yMNhM=", 124 | "requires": { 125 | "ansi-wrap": "0.1.0" 126 | } 127 | }, 128 | "ansi-bgcyan": { 129 | "version": "0.1.1", 130 | "resolved": "https://registry.npmjs.org/ansi-bgcyan/-/ansi-bgcyan-0.1.1.tgz", 131 | "integrity": "sha1-WEiUJWAL3p9VBwaN2Wnr/bUP52g=", 132 | "requires": { 133 | "ansi-wrap": "0.1.0" 134 | } 135 | }, 136 | "ansi-bggreen": { 137 | "version": "0.1.1", 138 | "resolved": "https://registry.npmjs.org/ansi-bggreen/-/ansi-bggreen-0.1.1.tgz", 139 | "integrity": "sha1-TjGRJIUplD9DIelr8THRwTgWr0k=", 140 | "requires": { 141 | "ansi-wrap": "0.1.0" 142 | } 143 | }, 144 | "ansi-bgmagenta": { 145 | "version": "0.1.1", 146 | "resolved": "https://registry.npmjs.org/ansi-bgmagenta/-/ansi-bgmagenta-0.1.1.tgz", 147 | "integrity": "sha1-myhDLAduqpmUGGcqPvvhk5HCx6E=", 148 | "requires": { 149 | "ansi-wrap": "0.1.0" 150 | } 151 | }, 152 | "ansi-bgred": { 153 | "version": "0.1.1", 154 | "resolved": "https://registry.npmjs.org/ansi-bgred/-/ansi-bgred-0.1.1.tgz", 155 | "integrity": "sha1-p2+Sg4OCukMpCmwXeEJPmE1vEEE=", 156 | "requires": { 157 | "ansi-wrap": "0.1.0" 158 | } 159 | }, 160 | "ansi-bgwhite": { 161 | "version": "0.1.1", 162 | "resolved": "https://registry.npmjs.org/ansi-bgwhite/-/ansi-bgwhite-0.1.1.tgz", 163 | "integrity": "sha1-ZQRlE3elim7OzQMxmU5IAljhG6g=", 164 | "requires": { 165 | "ansi-wrap": "0.1.0" 166 | } 167 | }, 168 | "ansi-bgyellow": { 169 | "version": "0.1.1", 170 | "resolved": "https://registry.npmjs.org/ansi-bgyellow/-/ansi-bgyellow-0.1.1.tgz", 171 | "integrity": "sha1-w/4usIzUdmSAKeaHTRWgs49h1E8=", 172 | "requires": { 173 | "ansi-wrap": "0.1.0" 174 | } 175 | }, 176 | "ansi-black": { 177 | "version": "0.1.1", 178 | "resolved": "https://registry.npmjs.org/ansi-black/-/ansi-black-0.1.1.tgz", 179 | "integrity": "sha1-9hheiJNgslRaHsUMC/Bj/EMDJFM=", 180 | "requires": { 181 | "ansi-wrap": "0.1.0" 182 | } 183 | }, 184 | "ansi-blue": { 185 | "version": "0.1.1", 186 | "resolved": "https://registry.npmjs.org/ansi-blue/-/ansi-blue-0.1.1.tgz", 187 | "integrity": "sha1-FbgEmQ6S/JyoxUds6PaZd3wh7b8=", 188 | "requires": { 189 | "ansi-wrap": "0.1.0" 190 | } 191 | }, 192 | "ansi-bold": { 193 | "version": "0.1.1", 194 | "resolved": "https://registry.npmjs.org/ansi-bold/-/ansi-bold-0.1.1.tgz", 195 | "integrity": "sha1-PmOVCvWswq4uZw5vZ96xFdGl9QU=", 196 | "requires": { 197 | "ansi-wrap": "0.1.0" 198 | } 199 | }, 200 | "ansi-colors": { 201 | "version": "0.2.0", 202 | "resolved": "http://registry.npmjs.org/ansi-colors/-/ansi-colors-0.2.0.tgz", 203 | "integrity": "sha1-csMd4qDZoszQysMMyYI+6y9kNLU=", 204 | "requires": { 205 | "ansi-bgblack": "^0.1.1", 206 | "ansi-bgblue": "^0.1.1", 207 | "ansi-bgcyan": "^0.1.1", 208 | "ansi-bggreen": "^0.1.1", 209 | "ansi-bgmagenta": "^0.1.1", 210 | "ansi-bgred": "^0.1.1", 211 | "ansi-bgwhite": "^0.1.1", 212 | "ansi-bgyellow": "^0.1.1", 213 | "ansi-black": "^0.1.1", 214 | "ansi-blue": "^0.1.1", 215 | "ansi-bold": "^0.1.1", 216 | "ansi-cyan": "^0.1.1", 217 | "ansi-dim": "^0.1.1", 218 | "ansi-gray": "^0.1.1", 219 | "ansi-green": "^0.1.1", 220 | "ansi-grey": "^0.1.1", 221 | "ansi-hidden": "^0.1.1", 222 | "ansi-inverse": "^0.1.1", 223 | "ansi-italic": "^0.1.1", 224 | "ansi-magenta": "^0.1.1", 225 | "ansi-red": "^0.1.1", 226 | "ansi-reset": "^0.1.1", 227 | "ansi-strikethrough": "^0.1.1", 228 | "ansi-underline": "^0.1.1", 229 | "ansi-white": "^0.1.1", 230 | "ansi-yellow": "^0.1.1", 231 | "lazy-cache": "^2.0.1" 232 | } 233 | }, 234 | "ansi-cyan": { 235 | "version": "0.1.1", 236 | "resolved": "https://registry.npmjs.org/ansi-cyan/-/ansi-cyan-0.1.1.tgz", 237 | "integrity": "sha1-U4rlKK+JgvKK4w2G8vF0VtJgmHM=", 238 | "requires": { 239 | "ansi-wrap": "0.1.0" 240 | } 241 | }, 242 | "ansi-dim": { 243 | "version": "0.1.1", 244 | "resolved": "https://registry.npmjs.org/ansi-dim/-/ansi-dim-0.1.1.tgz", 245 | "integrity": "sha1-QN5MYDqoCG2Oeoa4/5mNXDbu/Ww=", 246 | "requires": { 247 | "ansi-wrap": "0.1.0" 248 | } 249 | }, 250 | "ansi-gray": { 251 | "version": "0.1.1", 252 | "resolved": "https://registry.npmjs.org/ansi-gray/-/ansi-gray-0.1.1.tgz", 253 | "integrity": "sha1-KWLPVOyXksSFEKPetSRDaGHvclE=", 254 | "requires": { 255 | "ansi-wrap": "0.1.0" 256 | } 257 | }, 258 | "ansi-green": { 259 | "version": "0.1.1", 260 | "resolved": "https://registry.npmjs.org/ansi-green/-/ansi-green-0.1.1.tgz", 261 | "integrity": "sha1-il2al55FjVfEDjNYCzc5C44Q0Pc=", 262 | "requires": { 263 | "ansi-wrap": "0.1.0" 264 | } 265 | }, 266 | "ansi-grey": { 267 | "version": "0.1.1", 268 | "resolved": "https://registry.npmjs.org/ansi-grey/-/ansi-grey-0.1.1.tgz", 269 | "integrity": "sha1-WdmLasK6GfilF5jphT+6eDOaM8E=", 270 | "requires": { 271 | "ansi-wrap": "0.1.0" 272 | } 273 | }, 274 | "ansi-hidden": { 275 | "version": "0.1.1", 276 | "resolved": "https://registry.npmjs.org/ansi-hidden/-/ansi-hidden-0.1.1.tgz", 277 | "integrity": "sha1-7WpMSY0rt8uyidvyqNHcyFZ/rg8=", 278 | "requires": { 279 | "ansi-wrap": "0.1.0" 280 | } 281 | }, 282 | "ansi-inverse": { 283 | "version": "0.1.1", 284 | "resolved": "https://registry.npmjs.org/ansi-inverse/-/ansi-inverse-0.1.1.tgz", 285 | "integrity": "sha1-tq9Fgm/oJr+1KKbHmIV5Q1XM0mk=", 286 | "requires": { 287 | "ansi-wrap": "0.1.0" 288 | } 289 | }, 290 | "ansi-italic": { 291 | "version": "0.1.1", 292 | "resolved": "https://registry.npmjs.org/ansi-italic/-/ansi-italic-0.1.1.tgz", 293 | "integrity": "sha1-EEdDRj9iXBQqA2c5z4XtpoiYbyM=", 294 | "requires": { 295 | "ansi-wrap": "0.1.0" 296 | } 297 | }, 298 | "ansi-magenta": { 299 | "version": "0.1.1", 300 | "resolved": "https://registry.npmjs.org/ansi-magenta/-/ansi-magenta-0.1.1.tgz", 301 | "integrity": "sha1-BjtboW+z8j4c/aKwfAqJ3hHkMK4=", 302 | "requires": { 303 | "ansi-wrap": "0.1.0" 304 | } 305 | }, 306 | "ansi-red": { 307 | "version": "0.1.1", 308 | "resolved": "https://registry.npmjs.org/ansi-red/-/ansi-red-0.1.1.tgz", 309 | "integrity": "sha1-jGOPnRCAgAo1PJwoyKgcpHBdlGw=", 310 | "requires": { 311 | "ansi-wrap": "0.1.0" 312 | } 313 | }, 314 | "ansi-regex": { 315 | "version": "2.1.1", 316 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 317 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 318 | }, 319 | "ansi-reset": { 320 | "version": "0.1.1", 321 | "resolved": "https://registry.npmjs.org/ansi-reset/-/ansi-reset-0.1.1.tgz", 322 | "integrity": "sha1-5+cSksPH3c1NYu9KbHwFmAkRw7c=", 323 | "requires": { 324 | "ansi-wrap": "0.1.0" 325 | } 326 | }, 327 | "ansi-strikethrough": { 328 | "version": "0.1.1", 329 | "resolved": "https://registry.npmjs.org/ansi-strikethrough/-/ansi-strikethrough-0.1.1.tgz", 330 | "integrity": "sha1-2Eh3FAss/wfRyT685pkE9oiF5Wg=", 331 | "requires": { 332 | "ansi-wrap": "0.1.0" 333 | } 334 | }, 335 | "ansi-underline": { 336 | "version": "0.1.1", 337 | "resolved": "https://registry.npmjs.org/ansi-underline/-/ansi-underline-0.1.1.tgz", 338 | "integrity": "sha1-38kg9Ml7WXfqFi34/7mIMIqqcaQ=", 339 | "requires": { 340 | "ansi-wrap": "0.1.0" 341 | } 342 | }, 343 | "ansi-white": { 344 | "version": "0.1.1", 345 | "resolved": "https://registry.npmjs.org/ansi-white/-/ansi-white-0.1.1.tgz", 346 | "integrity": "sha1-nHe3wZPF7pkuYBHTbsTJIbRXiUQ=", 347 | "requires": { 348 | "ansi-wrap": "0.1.0" 349 | } 350 | }, 351 | "ansi-wrap": { 352 | "version": "0.1.0", 353 | "resolved": "https://registry.npmjs.org/ansi-wrap/-/ansi-wrap-0.1.0.tgz", 354 | "integrity": "sha1-qCJQ3bABXponyoLoLqYDu/pF768=" 355 | }, 356 | "ansi-yellow": { 357 | "version": "0.1.1", 358 | "resolved": "https://registry.npmjs.org/ansi-yellow/-/ansi-yellow-0.1.1.tgz", 359 | "integrity": "sha1-y5NW8vRscy8OMZnmEClVp32oPB0=", 360 | "requires": { 361 | "ansi-wrap": "0.1.0" 362 | } 363 | }, 364 | "aproba": { 365 | "version": "1.2.0", 366 | "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", 367 | "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==" 368 | }, 369 | "are-we-there-yet": { 370 | "version": "1.1.5", 371 | "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz", 372 | "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", 373 | "requires": { 374 | "delegates": "^1.0.0", 375 | "readable-stream": "^2.0.6" 376 | } 377 | }, 378 | "arr-flatten": { 379 | "version": "1.1.0", 380 | "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", 381 | "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" 382 | }, 383 | "arr-swap": { 384 | "version": "1.0.1", 385 | "resolved": "https://registry.npmjs.org/arr-swap/-/arr-swap-1.0.1.tgz", 386 | "integrity": "sha1-FHWQ7WX8gVvAf+8Jl8Llgj1kNTQ=", 387 | "requires": { 388 | "is-number": "^3.0.0" 389 | }, 390 | "dependencies": { 391 | "is-number": { 392 | "version": "3.0.0", 393 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", 394 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", 395 | "requires": { 396 | "kind-of": "^3.0.2" 397 | } 398 | } 399 | } 400 | }, 401 | "assertion-error": { 402 | "version": "1.1.0", 403 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", 404 | "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", 405 | "dev": true 406 | }, 407 | "balanced-match": { 408 | "version": "1.0.0", 409 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 410 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 411 | "dev": true 412 | }, 413 | "bindings": { 414 | "version": "1.3.0", 415 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", 416 | "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==" 417 | }, 418 | "bl": { 419 | "version": "1.2.2", 420 | "resolved": "http://registry.npmjs.org/bl/-/bl-1.2.2.tgz", 421 | "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", 422 | "requires": { 423 | "readable-stream": "^2.3.5", 424 | "safe-buffer": "^5.1.1" 425 | } 426 | }, 427 | "brace-expansion": { 428 | "version": "1.1.11", 429 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 430 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 431 | "dev": true, 432 | "requires": { 433 | "balanced-match": "^1.0.0", 434 | "concat-map": "0.0.1" 435 | } 436 | }, 437 | "browser-stdout": { 438 | "version": "1.3.1", 439 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 440 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 441 | "dev": true 442 | }, 443 | "buffer-alloc": { 444 | "version": "1.2.0", 445 | "resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.2.0.tgz", 446 | "integrity": "sha512-CFsHQgjtW1UChdXgbyJGtnm+O/uLQeZdtbDo8mfUgYXCHSM1wgrVxXm6bSyrUuErEb+4sYVGCzASBRot7zyrow==", 447 | "requires": { 448 | "buffer-alloc-unsafe": "^1.1.0", 449 | "buffer-fill": "^1.0.0" 450 | } 451 | }, 452 | "buffer-alloc-unsafe": { 453 | "version": "1.1.0", 454 | "resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-1.1.0.tgz", 455 | "integrity": "sha512-TEM2iMIEQdJ2yjPJoSIsldnleVaAk1oW3DBVUykyOLsEsFmEc9kn+SFFPz+gl54KQNxlDnAwCXosOS9Okx2xAg==" 456 | }, 457 | "buffer-fill": { 458 | "version": "1.0.0", 459 | "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", 460 | "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=" 461 | }, 462 | "chai": { 463 | "version": "4.2.0", 464 | "resolved": "https://registry.npmjs.org/chai/-/chai-4.2.0.tgz", 465 | "integrity": "sha512-XQU3bhBukrOsQCuwZndwGcCVQHyZi53fQ6Ys1Fym7E4olpIqqZZhhoFJoaKVvV17lWQoXYwgWN2nF5crA8J2jw==", 466 | "dev": true, 467 | "requires": { 468 | "assertion-error": "^1.1.0", 469 | "check-error": "^1.0.2", 470 | "deep-eql": "^3.0.1", 471 | "get-func-name": "^2.0.0", 472 | "pathval": "^1.1.0", 473 | "type-detect": "^4.0.5" 474 | } 475 | }, 476 | "check-error": { 477 | "version": "1.0.2", 478 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", 479 | "integrity": "sha1-V00xLt2Iu13YkS6Sht1sCu1KrII=", 480 | "dev": true 481 | }, 482 | "choices-separator": { 483 | "version": "2.0.0", 484 | "resolved": "https://registry.npmjs.org/choices-separator/-/choices-separator-2.0.0.tgz", 485 | "integrity": "sha1-kv0XYxgteQM/XFxR0Lo1LlVnxpY=", 486 | "requires": { 487 | "ansi-dim": "^0.1.1", 488 | "debug": "^2.6.6", 489 | "strip-color": "^0.1.0" 490 | }, 491 | "dependencies": { 492 | "debug": { 493 | "version": "2.6.9", 494 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 495 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 496 | "requires": { 497 | "ms": "2.0.0" 498 | } 499 | }, 500 | "ms": { 501 | "version": "2.0.0", 502 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 503 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 504 | } 505 | } 506 | }, 507 | "chownr": { 508 | "version": "1.1.1", 509 | "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.1.tgz", 510 | "integrity": "sha512-j38EvO5+LHX84jlo6h4UzmOwi0UgW61WRyPtJz4qaadK5eY3BTS5TY/S1Stc3Uk2lIM6TPevAlULiEJwie860g==" 511 | }, 512 | "clone-deep": { 513 | "version": "1.0.0", 514 | "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-1.0.0.tgz", 515 | "integrity": "sha512-hmJRX8x1QOJVV+GUjOBzi6iauhPqc9hIF6xitWRBbiPZOBb6vGo/mDRIK9P74RTKSQK7AE8B0DDWY/vpRrPmQw==", 516 | "requires": { 517 | "for-own": "^1.0.0", 518 | "is-plain-object": "^2.0.4", 519 | "kind-of": "^5.0.0", 520 | "shallow-clone": "^1.0.0" 521 | }, 522 | "dependencies": { 523 | "kind-of": { 524 | "version": "5.1.0", 525 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", 526 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" 527 | } 528 | } 529 | }, 530 | "code-point-at": { 531 | "version": "1.1.0", 532 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 533 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" 534 | }, 535 | "collection-visit": { 536 | "version": "1.0.0", 537 | "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", 538 | "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", 539 | "requires": { 540 | "map-visit": "^1.0.0", 541 | "object-visit": "^1.0.0" 542 | } 543 | }, 544 | "commander": { 545 | "version": "2.19.0", 546 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.19.0.tgz", 547 | "integrity": "sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==" 548 | }, 549 | "component-emitter": { 550 | "version": "1.2.1", 551 | "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", 552 | "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" 553 | }, 554 | "concat-map": { 555 | "version": "0.0.1", 556 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 557 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 558 | "dev": true 559 | }, 560 | "console-control-strings": { 561 | "version": "1.1.0", 562 | "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", 563 | "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=" 564 | }, 565 | "copy-descriptor": { 566 | "version": "0.1.1", 567 | "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", 568 | "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" 569 | }, 570 | "core-util-is": { 571 | "version": "1.0.2", 572 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 573 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 574 | }, 575 | "debug": { 576 | "version": "3.2.6", 577 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 578 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 579 | "requires": { 580 | "ms": "^2.1.1" 581 | } 582 | }, 583 | "decompress-response": { 584 | "version": "3.3.0", 585 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 586 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 587 | "requires": { 588 | "mimic-response": "^1.0.0" 589 | } 590 | }, 591 | "deep-eql": { 592 | "version": "3.0.1", 593 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-3.0.1.tgz", 594 | "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", 595 | "dev": true, 596 | "requires": { 597 | "type-detect": "^4.0.0" 598 | } 599 | }, 600 | "deep-extend": { 601 | "version": "0.6.0", 602 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 603 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" 604 | }, 605 | "define-property": { 606 | "version": "1.0.0", 607 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", 608 | "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", 609 | "requires": { 610 | "is-descriptor": "^1.0.0" 611 | } 612 | }, 613 | "delegates": { 614 | "version": "1.0.0", 615 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", 616 | "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=" 617 | }, 618 | "detect-libc": { 619 | "version": "1.0.3", 620 | "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", 621 | "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=" 622 | }, 623 | "diff": { 624 | "version": "3.5.0", 625 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 626 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 627 | "dev": true 628 | }, 629 | "end-of-stream": { 630 | "version": "1.4.1", 631 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 632 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 633 | "requires": { 634 | "once": "^1.4.0" 635 | } 636 | }, 637 | "error-symbol": { 638 | "version": "0.1.0", 639 | "resolved": "https://registry.npmjs.org/error-symbol/-/error-symbol-0.1.0.tgz", 640 | "integrity": "sha1-Ck2uN9YA0VopukU9jvkg8YRDM/Y=" 641 | }, 642 | "escape-string-regexp": { 643 | "version": "1.0.5", 644 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 645 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 646 | "dev": true 647 | }, 648 | "expand-template": { 649 | "version": "1.1.1", 650 | "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-1.1.1.tgz", 651 | "integrity": "sha512-cebqLtV8KOZfw0UI8TEFWxtczxxC1jvyUvx6H4fyp1K1FN7A4Q+uggVUlOsI1K8AGU0rwOGqP8nCapdrw8CYQg==" 652 | }, 653 | "extend-shallow": { 654 | "version": "2.0.1", 655 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 656 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 657 | "requires": { 658 | "is-extendable": "^0.1.0" 659 | } 660 | }, 661 | "for-in": { 662 | "version": "1.0.2", 663 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", 664 | "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" 665 | }, 666 | "for-own": { 667 | "version": "1.0.0", 668 | "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", 669 | "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", 670 | "requires": { 671 | "for-in": "^1.0.1" 672 | } 673 | }, 674 | "fs-constants": { 675 | "version": "1.0.0", 676 | "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", 677 | "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" 678 | }, 679 | "fs.realpath": { 680 | "version": "1.0.0", 681 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 682 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 683 | "dev": true 684 | }, 685 | "gauge": { 686 | "version": "2.7.4", 687 | "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", 688 | "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", 689 | "requires": { 690 | "aproba": "^1.0.3", 691 | "console-control-strings": "^1.0.0", 692 | "has-unicode": "^2.0.0", 693 | "object-assign": "^4.1.0", 694 | "signal-exit": "^3.0.0", 695 | "string-width": "^1.0.1", 696 | "strip-ansi": "^3.0.1", 697 | "wide-align": "^1.1.0" 698 | } 699 | }, 700 | "get-func-name": { 701 | "version": "2.0.0", 702 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz", 703 | "integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=", 704 | "dev": true 705 | }, 706 | "github-from-package": { 707 | "version": "0.0.0", 708 | "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", 709 | "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=" 710 | }, 711 | "glob": { 712 | "version": "7.1.2", 713 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", 714 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", 715 | "dev": true, 716 | "requires": { 717 | "fs.realpath": "^1.0.0", 718 | "inflight": "^1.0.4", 719 | "inherits": "2", 720 | "minimatch": "^3.0.4", 721 | "once": "^1.3.0", 722 | "path-is-absolute": "^1.0.0" 723 | } 724 | }, 725 | "growl": { 726 | "version": "1.10.5", 727 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 728 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 729 | "dev": true 730 | }, 731 | "has-flag": { 732 | "version": "3.0.0", 733 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 734 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 735 | "dev": true 736 | }, 737 | "has-unicode": { 738 | "version": "2.0.1", 739 | "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", 740 | "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=" 741 | }, 742 | "he": { 743 | "version": "1.1.1", 744 | "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", 745 | "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", 746 | "dev": true 747 | }, 748 | "inflight": { 749 | "version": "1.0.6", 750 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 751 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 752 | "dev": true, 753 | "requires": { 754 | "once": "^1.3.0", 755 | "wrappy": "1" 756 | } 757 | }, 758 | "info-symbol": { 759 | "version": "0.1.0", 760 | "resolved": "https://registry.npmjs.org/info-symbol/-/info-symbol-0.1.0.tgz", 761 | "integrity": "sha1-J4QdcoZ920JCzWEtecEGM4gcang=" 762 | }, 763 | "inherits": { 764 | "version": "2.0.3", 765 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 766 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 767 | }, 768 | "ini": { 769 | "version": "1.3.5", 770 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 771 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" 772 | }, 773 | "is-accessor-descriptor": { 774 | "version": "1.0.0", 775 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", 776 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", 777 | "requires": { 778 | "kind-of": "^6.0.0" 779 | }, 780 | "dependencies": { 781 | "kind-of": { 782 | "version": "6.0.2", 783 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", 784 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" 785 | } 786 | } 787 | }, 788 | "is-buffer": { 789 | "version": "1.1.6", 790 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", 791 | "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" 792 | }, 793 | "is-data-descriptor": { 794 | "version": "1.0.0", 795 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", 796 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", 797 | "requires": { 798 | "kind-of": "^6.0.0" 799 | }, 800 | "dependencies": { 801 | "kind-of": { 802 | "version": "6.0.2", 803 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", 804 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" 805 | } 806 | } 807 | }, 808 | "is-descriptor": { 809 | "version": "1.0.2", 810 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", 811 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", 812 | "requires": { 813 | "is-accessor-descriptor": "^1.0.0", 814 | "is-data-descriptor": "^1.0.0", 815 | "kind-of": "^6.0.2" 816 | }, 817 | "dependencies": { 818 | "kind-of": { 819 | "version": "6.0.2", 820 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", 821 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" 822 | } 823 | } 824 | }, 825 | "is-extendable": { 826 | "version": "0.1.1", 827 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", 828 | "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" 829 | }, 830 | "is-fullwidth-code-point": { 831 | "version": "1.0.0", 832 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 833 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 834 | "requires": { 835 | "number-is-nan": "^1.0.0" 836 | } 837 | }, 838 | "is-number": { 839 | "version": "6.0.0", 840 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-6.0.0.tgz", 841 | "integrity": "sha512-Wu1VHeILBK8KAWJUAiSZQX94GmOE45Rg6/538fKwiloUu21KncEkYGPqob2oSZ5mUT73vLGrHQjKw3KMPwfDzg==" 842 | }, 843 | "is-plain-object": { 844 | "version": "2.0.4", 845 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", 846 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", 847 | "requires": { 848 | "isobject": "^3.0.1" 849 | } 850 | }, 851 | "is-windows": { 852 | "version": "1.0.2", 853 | "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", 854 | "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" 855 | }, 856 | "isarray": { 857 | "version": "1.0.0", 858 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 859 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 860 | }, 861 | "isobject": { 862 | "version": "3.0.1", 863 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", 864 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" 865 | }, 866 | "kind-of": { 867 | "version": "3.2.2", 868 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 869 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 870 | "requires": { 871 | "is-buffer": "^1.1.5" 872 | } 873 | }, 874 | "koalas": { 875 | "version": "1.0.2", 876 | "resolved": "https://registry.npmjs.org/koalas/-/koalas-1.0.2.tgz", 877 | "integrity": "sha1-MYQz8HQjXbePrlZhoCqMpT7ilc0=" 878 | }, 879 | "lazy-cache": { 880 | "version": "2.0.2", 881 | "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-2.0.2.tgz", 882 | "integrity": "sha1-uRkKT5EzVGlIQIWfio9whNiCImQ=", 883 | "requires": { 884 | "set-getter": "^0.1.0" 885 | } 886 | }, 887 | "lodash": { 888 | "version": "4.17.13", 889 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.13.tgz", 890 | "integrity": "sha512-vm3/XWXfWtRua0FkUyEHBZy8kCPjErNBT9fJx8Zvs+U6zjqPbTUOpkaoum3O5uiA8sm+yNMHXfYkTUHFoMxFNA==" 891 | }, 892 | "log-ok": { 893 | "version": "0.1.1", 894 | "resolved": "https://registry.npmjs.org/log-ok/-/log-ok-0.1.1.tgz", 895 | "integrity": "sha1-vqPdNqzQuKckDXhza1uXxlREozQ=", 896 | "requires": { 897 | "ansi-green": "^0.1.1", 898 | "success-symbol": "^0.1.0" 899 | } 900 | }, 901 | "log-utils": { 902 | "version": "0.2.1", 903 | "resolved": "https://registry.npmjs.org/log-utils/-/log-utils-0.2.1.tgz", 904 | "integrity": "sha1-pMIXoN2aUFFdm5ICBgkas9TgMc8=", 905 | "requires": { 906 | "ansi-colors": "^0.2.0", 907 | "error-symbol": "^0.1.0", 908 | "info-symbol": "^0.1.0", 909 | "log-ok": "^0.1.1", 910 | "success-symbol": "^0.1.0", 911 | "time-stamp": "^1.0.1", 912 | "warning-symbol": "^0.1.0" 913 | } 914 | }, 915 | "map-visit": { 916 | "version": "1.0.0", 917 | "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", 918 | "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", 919 | "requires": { 920 | "object-visit": "^1.0.0" 921 | } 922 | }, 923 | "mimic-response": { 924 | "version": "1.0.1", 925 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 926 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" 927 | }, 928 | "minimatch": { 929 | "version": "3.0.4", 930 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 931 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 932 | "dev": true, 933 | "requires": { 934 | "brace-expansion": "^1.1.7" 935 | } 936 | }, 937 | "minimist": { 938 | "version": "1.2.0", 939 | "resolved": "http://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 940 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 941 | }, 942 | "mixin-object": { 943 | "version": "2.0.1", 944 | "resolved": "https://registry.npmjs.org/mixin-object/-/mixin-object-2.0.1.tgz", 945 | "integrity": "sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=", 946 | "requires": { 947 | "for-in": "^0.1.3", 948 | "is-extendable": "^0.1.1" 949 | }, 950 | "dependencies": { 951 | "for-in": { 952 | "version": "0.1.8", 953 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.8.tgz", 954 | "integrity": "sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=" 955 | } 956 | } 957 | }, 958 | "mkdirp": { 959 | "version": "0.5.1", 960 | "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 961 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 962 | "requires": { 963 | "minimist": "0.0.8" 964 | }, 965 | "dependencies": { 966 | "minimist": { 967 | "version": "0.0.8", 968 | "resolved": "http://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 969 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" 970 | } 971 | } 972 | }, 973 | "mocha": { 974 | "version": "5.2.0", 975 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", 976 | "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", 977 | "dev": true, 978 | "requires": { 979 | "browser-stdout": "1.3.1", 980 | "commander": "2.15.1", 981 | "debug": "3.1.0", 982 | "diff": "3.5.0", 983 | "escape-string-regexp": "1.0.5", 984 | "glob": "7.1.2", 985 | "growl": "1.10.5", 986 | "he": "1.1.1", 987 | "minimatch": "3.0.4", 988 | "mkdirp": "0.5.1", 989 | "supports-color": "5.4.0" 990 | }, 991 | "dependencies": { 992 | "commander": { 993 | "version": "2.15.1", 994 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", 995 | "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", 996 | "dev": true 997 | }, 998 | "debug": { 999 | "version": "3.1.0", 1000 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 1001 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 1002 | "dev": true, 1003 | "requires": { 1004 | "ms": "2.0.0" 1005 | } 1006 | }, 1007 | "ms": { 1008 | "version": "2.0.0", 1009 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1010 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1011 | "dev": true 1012 | } 1013 | } 1014 | }, 1015 | "moment": { 1016 | "version": "2.19.3", 1017 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.19.3.tgz", 1018 | "integrity": "sha1-vbmdJw1tf9p4zA+6zoVeJ/59pp8=" 1019 | }, 1020 | "ms": { 1021 | "version": "2.1.1", 1022 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1023 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1024 | }, 1025 | "mute-stream": { 1026 | "version": "0.0.7", 1027 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", 1028 | "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=" 1029 | }, 1030 | "nan": { 1031 | "version": "2.11.1", 1032 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.11.1.tgz", 1033 | "integrity": "sha512-iji6k87OSXa0CcrLl9z+ZiYSuR2o+c0bGuNmXdrhTQTakxytAFsC56SArGYoiHlJlFoHSnvmhpceZJaXkVuOtA==" 1034 | }, 1035 | "napi-build-utils": { 1036 | "version": "1.0.1", 1037 | "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.1.tgz", 1038 | "integrity": "sha512-boQj1WFgQH3v4clhu3mTNfP+vOBxorDlE8EKiMjUlLG3C4qAESnn9AxIOkFgTR2c9LtzNjPrjS60cT27ZKBhaA==" 1039 | }, 1040 | "node-abi": { 1041 | "version": "2.4.5", 1042 | "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.4.5.tgz", 1043 | "integrity": "sha512-aa/UC6Nr3+tqhHGRsAuw/edz7/q9nnetBrKWxj6rpTtm+0X9T1qU7lIEHMS3yN9JwAbRiKUbRRFy1PLz/y3aaA==", 1044 | "requires": { 1045 | "semver": "^5.4.1" 1046 | } 1047 | }, 1048 | "noop-logger": { 1049 | "version": "0.1.1", 1050 | "resolved": "https://registry.npmjs.org/noop-logger/-/noop-logger-0.1.1.tgz", 1051 | "integrity": "sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI=" 1052 | }, 1053 | "npmlog": { 1054 | "version": "4.1.2", 1055 | "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", 1056 | "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", 1057 | "requires": { 1058 | "are-we-there-yet": "~1.1.2", 1059 | "console-control-strings": "~1.1.0", 1060 | "gauge": "~2.7.3", 1061 | "set-blocking": "~2.0.0" 1062 | } 1063 | }, 1064 | "number-is-nan": { 1065 | "version": "1.0.1", 1066 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1067 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" 1068 | }, 1069 | "object-assign": { 1070 | "version": "4.1.1", 1071 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1072 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1073 | }, 1074 | "object-copy": { 1075 | "version": "0.1.0", 1076 | "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", 1077 | "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", 1078 | "requires": { 1079 | "copy-descriptor": "^0.1.0", 1080 | "define-property": "^0.2.5", 1081 | "kind-of": "^3.0.3" 1082 | }, 1083 | "dependencies": { 1084 | "define-property": { 1085 | "version": "0.2.5", 1086 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", 1087 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", 1088 | "requires": { 1089 | "is-descriptor": "^0.1.0" 1090 | } 1091 | }, 1092 | "is-accessor-descriptor": { 1093 | "version": "0.1.6", 1094 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", 1095 | "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", 1096 | "requires": { 1097 | "kind-of": "^3.0.2" 1098 | } 1099 | }, 1100 | "is-data-descriptor": { 1101 | "version": "0.1.4", 1102 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", 1103 | "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", 1104 | "requires": { 1105 | "kind-of": "^3.0.2" 1106 | } 1107 | }, 1108 | "is-descriptor": { 1109 | "version": "0.1.6", 1110 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", 1111 | "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", 1112 | "requires": { 1113 | "is-accessor-descriptor": "^0.1.6", 1114 | "is-data-descriptor": "^0.1.4", 1115 | "kind-of": "^5.0.0" 1116 | }, 1117 | "dependencies": { 1118 | "kind-of": { 1119 | "version": "5.1.0", 1120 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", 1121 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" 1122 | } 1123 | } 1124 | } 1125 | } 1126 | }, 1127 | "object-visit": { 1128 | "version": "1.0.1", 1129 | "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", 1130 | "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", 1131 | "requires": { 1132 | "isobject": "^3.0.0" 1133 | } 1134 | }, 1135 | "once": { 1136 | "version": "1.4.0", 1137 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1138 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1139 | "requires": { 1140 | "wrappy": "1" 1141 | } 1142 | }, 1143 | "os-homedir": { 1144 | "version": "1.0.2", 1145 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", 1146 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" 1147 | }, 1148 | "path-is-absolute": { 1149 | "version": "1.0.1", 1150 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1151 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1152 | "dev": true 1153 | }, 1154 | "pathval": { 1155 | "version": "1.1.0", 1156 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.0.tgz", 1157 | "integrity": "sha1-uULm1L3mUwBe9rcTYd74cn0GReA=", 1158 | "dev": true 1159 | }, 1160 | "pointer-symbol": { 1161 | "version": "1.0.0", 1162 | "resolved": "https://registry.npmjs.org/pointer-symbol/-/pointer-symbol-1.0.0.tgz", 1163 | "integrity": "sha1-YPkRAgTqepKbYmRKITFVQ8uz1Ec=" 1164 | }, 1165 | "prebuild-install": { 1166 | "version": "5.2.1", 1167 | "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-5.2.1.tgz", 1168 | "integrity": "sha512-9DAccsInWHB48TBQi2eJkLPE049JuAI6FjIH0oIrij4bpDVEbX6JvlWRAcAAlUqBHhjgq0jNqA3m3bBXWm9v6w==", 1169 | "requires": { 1170 | "detect-libc": "^1.0.3", 1171 | "expand-template": "^1.0.2", 1172 | "github-from-package": "0.0.0", 1173 | "minimist": "^1.2.0", 1174 | "mkdirp": "^0.5.1", 1175 | "napi-build-utils": "^1.0.1", 1176 | "node-abi": "^2.2.0", 1177 | "noop-logger": "^0.1.1", 1178 | "npmlog": "^4.0.1", 1179 | "os-homedir": "^1.0.1", 1180 | "pump": "^2.0.1", 1181 | "rc": "^1.2.7", 1182 | "simple-get": "^2.7.0", 1183 | "tar-fs": "^1.13.0", 1184 | "tunnel-agent": "^0.6.0", 1185 | "which-pm-runs": "^1.0.0" 1186 | } 1187 | }, 1188 | "process-nextick-args": { 1189 | "version": "2.0.0", 1190 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", 1191 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" 1192 | }, 1193 | "promirepl": { 1194 | "version": "1.0.1", 1195 | "resolved": "https://registry.npmjs.org/promirepl/-/promirepl-1.0.1.tgz", 1196 | "integrity": "sha1-KVGq66K/P+InT/Y6FtlMBMpghy4=" 1197 | }, 1198 | "prompt-actions": { 1199 | "version": "3.0.2", 1200 | "resolved": "https://registry.npmjs.org/prompt-actions/-/prompt-actions-3.0.2.tgz", 1201 | "integrity": "sha512-dhz2Fl7vK+LPpmnQ/S/eSut4BnH4NZDLyddHKi5uTU/2PDn3grEMGkgsll16V5RpVUh/yxdiam0xsM0RD4xvtg==", 1202 | "requires": { 1203 | "debug": "^2.6.8" 1204 | }, 1205 | "dependencies": { 1206 | "debug": { 1207 | "version": "2.6.9", 1208 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1209 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1210 | "requires": { 1211 | "ms": "2.0.0" 1212 | } 1213 | }, 1214 | "ms": { 1215 | "version": "2.0.0", 1216 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1217 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1218 | } 1219 | } 1220 | }, 1221 | "prompt-base": { 1222 | "version": "4.1.0", 1223 | "resolved": "https://registry.npmjs.org/prompt-base/-/prompt-base-4.1.0.tgz", 1224 | "integrity": "sha512-svGzgLUKZoqomz9SGMkf1hBG8Wl3K7JGuRCXc/Pv7xw8239hhaTBXrmjt7EXA9P/QZzdyT8uNWt9F/iJTXq75g==", 1225 | "requires": { 1226 | "component-emitter": "^1.2.1", 1227 | "debug": "^3.0.1", 1228 | "koalas": "^1.0.2", 1229 | "log-utils": "^0.2.1", 1230 | "prompt-actions": "^3.0.2", 1231 | "prompt-question": "^5.0.1", 1232 | "readline-ui": "^2.2.3", 1233 | "readline-utils": "^2.2.3", 1234 | "static-extend": "^0.1.2" 1235 | } 1236 | }, 1237 | "prompt-checkbox": { 1238 | "version": "2.2.0", 1239 | "resolved": "https://registry.npmjs.org/prompt-checkbox/-/prompt-checkbox-2.2.0.tgz", 1240 | "integrity": "sha512-T/QWgkdUmKjRSr0FQlV8O+LfgmBk8PwDbWhzllm7mwWNAjs3qOVuru5Y1gV4/14L73zCncqcuwGwvnDyVcVgvA==", 1241 | "requires": { 1242 | "ansi-cyan": "^0.1.1", 1243 | "debug": "^2.6.8", 1244 | "prompt-base": "^4.0.2" 1245 | }, 1246 | "dependencies": { 1247 | "debug": { 1248 | "version": "2.6.9", 1249 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1250 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1251 | "requires": { 1252 | "ms": "2.0.0" 1253 | } 1254 | }, 1255 | "ms": { 1256 | "version": "2.0.0", 1257 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1258 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1259 | } 1260 | } 1261 | }, 1262 | "prompt-choices": { 1263 | "version": "4.1.0", 1264 | "resolved": "https://registry.npmjs.org/prompt-choices/-/prompt-choices-4.1.0.tgz", 1265 | "integrity": "sha512-ZNYLv6rW9z9n0WdwCkEuS+w5nUAGzRgtRt6GQ5aFNFz6MIcU7nHFlHOwZtzy7RQBk80KzUGPSRQphvMiQzB8pg==", 1266 | "requires": { 1267 | "arr-flatten": "^1.1.0", 1268 | "arr-swap": "^1.0.1", 1269 | "choices-separator": "^2.0.0", 1270 | "clone-deep": "^4.0.0", 1271 | "collection-visit": "^1.0.0", 1272 | "define-property": "^2.0.2", 1273 | "is-number": "^6.0.0", 1274 | "kind-of": "^6.0.2", 1275 | "koalas": "^1.0.2", 1276 | "log-utils": "^0.2.1", 1277 | "pointer-symbol": "^1.0.0", 1278 | "radio-symbol": "^2.0.0", 1279 | "set-value": "^3.0.0", 1280 | "strip-color": "^0.1.0", 1281 | "terminal-paginator": "^2.0.2", 1282 | "toggle-array": "^1.0.1" 1283 | }, 1284 | "dependencies": { 1285 | "clone-deep": { 1286 | "version": "4.0.0", 1287 | "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.0.tgz", 1288 | "integrity": "sha512-aNJ5/7Bz2IYBb7nIj34TLGk78lBXpXUgV9qsLngtTvJ9+scsZNnlU0OX2S2N4ax/sUQt7sDBkXiGjGJEmNbXOQ==", 1289 | "requires": { 1290 | "kind-of": "^6.0.2", 1291 | "shallow-clone": "^3.0.0" 1292 | } 1293 | }, 1294 | "define-property": { 1295 | "version": "2.0.2", 1296 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", 1297 | "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", 1298 | "requires": { 1299 | "is-descriptor": "^1.0.2", 1300 | "isobject": "^3.0.1" 1301 | } 1302 | }, 1303 | "kind-of": { 1304 | "version": "6.0.2", 1305 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", 1306 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" 1307 | }, 1308 | "shallow-clone": { 1309 | "version": "3.0.0", 1310 | "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.0.tgz", 1311 | "integrity": "sha512-Drg+nOI+ofeuslBf0nulyWLZhK1BZprqNvPJaiB4VvES+9gC6GG+qOVAfuO12zVSgxq9SKevcme7S3uDT6Be8w==", 1312 | "requires": { 1313 | "kind-of": "^6.0.2" 1314 | } 1315 | } 1316 | } 1317 | }, 1318 | "prompt-list": { 1319 | "version": "3.2.0", 1320 | "resolved": "https://registry.npmjs.org/prompt-list/-/prompt-list-3.2.0.tgz", 1321 | "integrity": "sha512-PDao47cmC9+m2zEUghH+WIIascd8SuyyWO+akuUubd0XxOQyUH96HMdIcL3YnNS8kJUHwddH1rHVgL9vZA1QsQ==", 1322 | "requires": { 1323 | "ansi-cyan": "^0.1.1", 1324 | "ansi-dim": "^0.1.1", 1325 | "prompt-radio": "^1.2.1" 1326 | } 1327 | }, 1328 | "prompt-question": { 1329 | "version": "5.0.2", 1330 | "resolved": "https://registry.npmjs.org/prompt-question/-/prompt-question-5.0.2.tgz", 1331 | "integrity": "sha512-wreaLbbu8f5+7zXds199uiT11Ojp59Z4iBi6hONlSLtsKGTvL2UY8VglcxQ3t/X4qWIxsNCg6aT4O8keO65v6Q==", 1332 | "requires": { 1333 | "clone-deep": "^1.0.0", 1334 | "debug": "^3.0.1", 1335 | "define-property": "^1.0.0", 1336 | "isobject": "^3.0.1", 1337 | "kind-of": "^5.0.2", 1338 | "koalas": "^1.0.2", 1339 | "prompt-choices": "^4.0.5" 1340 | }, 1341 | "dependencies": { 1342 | "kind-of": { 1343 | "version": "5.1.0", 1344 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", 1345 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" 1346 | } 1347 | } 1348 | }, 1349 | "prompt-radio": { 1350 | "version": "1.2.1", 1351 | "resolved": "https://registry.npmjs.org/prompt-radio/-/prompt-radio-1.2.1.tgz", 1352 | "integrity": "sha512-vH1iAkgbWyvZBC1BTajydiHmwJP4F1b684gq0fm2wOjPVW1zaDo01OXWr/Dske0XdoHhtZFNMOXNj/ZUSRBywg==", 1353 | "requires": { 1354 | "debug": "^2.6.8", 1355 | "prompt-checkbox": "^2.2.0" 1356 | }, 1357 | "dependencies": { 1358 | "debug": { 1359 | "version": "2.6.9", 1360 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1361 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1362 | "requires": { 1363 | "ms": "2.0.0" 1364 | } 1365 | }, 1366 | "ms": { 1367 | "version": "2.0.0", 1368 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1369 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1370 | } 1371 | } 1372 | }, 1373 | "pump": { 1374 | "version": "2.0.1", 1375 | "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", 1376 | "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", 1377 | "requires": { 1378 | "end-of-stream": "^1.1.0", 1379 | "once": "^1.3.1" 1380 | } 1381 | }, 1382 | "radio-symbol": { 1383 | "version": "2.0.0", 1384 | "resolved": "https://registry.npmjs.org/radio-symbol/-/radio-symbol-2.0.0.tgz", 1385 | "integrity": "sha1-eqm/xQSFY21S3XbWqOYxspB5muE=", 1386 | "requires": { 1387 | "ansi-gray": "^0.1.1", 1388 | "ansi-green": "^0.1.1", 1389 | "is-windows": "^1.0.1" 1390 | } 1391 | }, 1392 | "rc": { 1393 | "version": "1.2.8", 1394 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 1395 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 1396 | "requires": { 1397 | "deep-extend": "^0.6.0", 1398 | "ini": "~1.3.0", 1399 | "minimist": "^1.2.0", 1400 | "strip-json-comments": "~2.0.1" 1401 | } 1402 | }, 1403 | "readable-stream": { 1404 | "version": "2.3.6", 1405 | "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 1406 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", 1407 | "requires": { 1408 | "core-util-is": "~1.0.0", 1409 | "inherits": "~2.0.3", 1410 | "isarray": "~1.0.0", 1411 | "process-nextick-args": "~2.0.0", 1412 | "safe-buffer": "~5.1.1", 1413 | "string_decoder": "~1.1.1", 1414 | "util-deprecate": "~1.0.1" 1415 | } 1416 | }, 1417 | "readline-ui": { 1418 | "version": "2.2.3", 1419 | "resolved": "https://registry.npmjs.org/readline-ui/-/readline-ui-2.2.3.tgz", 1420 | "integrity": "sha512-ix7jz0PxqQqcIuq3yQTHv1TOhlD2IHO74aNO+lSuXsRYm1d+pdyup1yF3zKyLK1wWZrVNGjkzw5tUegO2IDy+A==", 1421 | "requires": { 1422 | "component-emitter": "^1.2.1", 1423 | "debug": "^2.6.8", 1424 | "readline-utils": "^2.2.1", 1425 | "string-width": "^2.0.0" 1426 | }, 1427 | "dependencies": { 1428 | "ansi-regex": { 1429 | "version": "3.0.0", 1430 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 1431 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" 1432 | }, 1433 | "debug": { 1434 | "version": "2.6.9", 1435 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1436 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1437 | "requires": { 1438 | "ms": "2.0.0" 1439 | } 1440 | }, 1441 | "is-fullwidth-code-point": { 1442 | "version": "2.0.0", 1443 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1444 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 1445 | }, 1446 | "ms": { 1447 | "version": "2.0.0", 1448 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1449 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1450 | }, 1451 | "string-width": { 1452 | "version": "2.1.1", 1453 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 1454 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 1455 | "requires": { 1456 | "is-fullwidth-code-point": "^2.0.0", 1457 | "strip-ansi": "^4.0.0" 1458 | } 1459 | }, 1460 | "strip-ansi": { 1461 | "version": "4.0.0", 1462 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 1463 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1464 | "requires": { 1465 | "ansi-regex": "^3.0.0" 1466 | } 1467 | } 1468 | } 1469 | }, 1470 | "readline-utils": { 1471 | "version": "2.2.3", 1472 | "resolved": "https://registry.npmjs.org/readline-utils/-/readline-utils-2.2.3.tgz", 1473 | "integrity": "sha1-b4R9a48ZFcORtYHDZ81HhzhiNRo=", 1474 | "requires": { 1475 | "arr-flatten": "^1.1.0", 1476 | "extend-shallow": "^2.0.1", 1477 | "is-buffer": "^1.1.5", 1478 | "is-number": "^3.0.0", 1479 | "is-windows": "^1.0.1", 1480 | "koalas": "^1.0.2", 1481 | "mute-stream": "0.0.7", 1482 | "strip-color": "^0.1.0", 1483 | "window-size": "^1.1.0" 1484 | }, 1485 | "dependencies": { 1486 | "is-number": { 1487 | "version": "3.0.0", 1488 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", 1489 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", 1490 | "requires": { 1491 | "kind-of": "^3.0.2" 1492 | } 1493 | } 1494 | } 1495 | }, 1496 | "rxjs": { 1497 | "version": "5.4.3", 1498 | "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.4.3.tgz", 1499 | "integrity": "sha512-fSNi+y+P9ss+EZuV0GcIIqPUK07DEaMRUtLJvdcvMyFjc9dizuDjere+A4V7JrLGnm9iCc+nagV/4QdMTkqC4A==", 1500 | "requires": { 1501 | "symbol-observable": "^1.0.1" 1502 | } 1503 | }, 1504 | "safe-buffer": { 1505 | "version": "5.1.2", 1506 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1507 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1508 | }, 1509 | "semver": { 1510 | "version": "5.6.0", 1511 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", 1512 | "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==" 1513 | }, 1514 | "serialport": { 1515 | "version": "7.0.2", 1516 | "resolved": "https://registry.npmjs.org/serialport/-/serialport-7.0.2.tgz", 1517 | "integrity": "sha512-0aM67lGIzy3hbZKPu3l8RqbiMzAoUO35JWSGUv4sMF0Mw7ZvJt37Zu+Y2L8V4VwIqYTlEDnkxFrn3nEwocMdOw==", 1518 | "requires": { 1519 | "@serialport/binding-mock": "^2.0.1", 1520 | "@serialport/bindings": "^2.0.2", 1521 | "@serialport/parser-byte-length": "^2.0.1", 1522 | "@serialport/parser-cctalk": "^2.0.1", 1523 | "@serialport/parser-delimiter": "^2.0.1", 1524 | "@serialport/parser-readline": "^2.0.1", 1525 | "@serialport/parser-ready": "^2.0.1", 1526 | "@serialport/parser-regex": "^2.0.1", 1527 | "@serialport/stream": "^2.0.1", 1528 | "commander": "^2.13.0", 1529 | "debug": "^3.1.0", 1530 | "promirepl": "^1.0.1", 1531 | "prompt-list": "^3.2.0" 1532 | } 1533 | }, 1534 | "set-blocking": { 1535 | "version": "2.0.0", 1536 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 1537 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 1538 | }, 1539 | "set-getter": { 1540 | "version": "0.1.0", 1541 | "resolved": "https://registry.npmjs.org/set-getter/-/set-getter-0.1.0.tgz", 1542 | "integrity": "sha1-12nBgsnVpR9AkUXy+6guXoboA3Y=", 1543 | "requires": { 1544 | "to-object-path": "^0.3.0" 1545 | } 1546 | }, 1547 | "set-value": { 1548 | "version": "3.0.1", 1549 | "resolved": "https://registry.npmjs.org/set-value/-/set-value-3.0.1.tgz", 1550 | "integrity": "sha512-w6n3GUPYAWQj4ZyHWzD7K2FnFXHx9OTwJYbWg+6nXjG8sCLfs9DGv+KlqglKIIJx+ks7MlFuwFW2RBPb+8V+xg==", 1551 | "requires": { 1552 | "is-plain-object": "^2.0.4" 1553 | } 1554 | }, 1555 | "shallow-clone": { 1556 | "version": "1.0.0", 1557 | "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-1.0.0.tgz", 1558 | "integrity": "sha512-oeXreoKR/SyNJtRJMAKPDSvd28OqEwG4eR/xc856cRGBII7gX9lvAqDxusPm0846z/w/hWYjI1NpKwJ00NHzRA==", 1559 | "requires": { 1560 | "is-extendable": "^0.1.1", 1561 | "kind-of": "^5.0.0", 1562 | "mixin-object": "^2.0.1" 1563 | }, 1564 | "dependencies": { 1565 | "kind-of": { 1566 | "version": "5.1.0", 1567 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", 1568 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" 1569 | } 1570 | } 1571 | }, 1572 | "signal-exit": { 1573 | "version": "3.0.2", 1574 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 1575 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" 1576 | }, 1577 | "simple-concat": { 1578 | "version": "1.0.0", 1579 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.0.tgz", 1580 | "integrity": "sha1-c0TLuLbib7J9ZrL8hvn21Zl1IcY=" 1581 | }, 1582 | "simple-get": { 1583 | "version": "2.8.1", 1584 | "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-2.8.1.tgz", 1585 | "integrity": "sha512-lSSHRSw3mQNUGPAYRqo7xy9dhKmxFXIjLjp4KHpf99GEH2VH7C3AM+Qfx6du6jhfUi6Vm7XnbEVEf7Wb6N8jRw==", 1586 | "requires": { 1587 | "decompress-response": "^3.3.0", 1588 | "once": "^1.3.1", 1589 | "simple-concat": "^1.0.0" 1590 | } 1591 | }, 1592 | "static-extend": { 1593 | "version": "0.1.2", 1594 | "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", 1595 | "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", 1596 | "requires": { 1597 | "define-property": "^0.2.5", 1598 | "object-copy": "^0.1.0" 1599 | }, 1600 | "dependencies": { 1601 | "define-property": { 1602 | "version": "0.2.5", 1603 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", 1604 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", 1605 | "requires": { 1606 | "is-descriptor": "^0.1.0" 1607 | } 1608 | }, 1609 | "is-accessor-descriptor": { 1610 | "version": "0.1.6", 1611 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", 1612 | "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", 1613 | "requires": { 1614 | "kind-of": "^3.0.2" 1615 | }, 1616 | "dependencies": { 1617 | "kind-of": { 1618 | "version": "3.2.2", 1619 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 1620 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 1621 | "requires": { 1622 | "is-buffer": "^1.1.5" 1623 | } 1624 | } 1625 | } 1626 | }, 1627 | "is-data-descriptor": { 1628 | "version": "0.1.4", 1629 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", 1630 | "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", 1631 | "requires": { 1632 | "kind-of": "^3.0.2" 1633 | }, 1634 | "dependencies": { 1635 | "kind-of": { 1636 | "version": "3.2.2", 1637 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 1638 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 1639 | "requires": { 1640 | "is-buffer": "^1.1.5" 1641 | } 1642 | } 1643 | } 1644 | }, 1645 | "is-descriptor": { 1646 | "version": "0.1.6", 1647 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", 1648 | "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", 1649 | "requires": { 1650 | "is-accessor-descriptor": "^0.1.6", 1651 | "is-data-descriptor": "^0.1.4", 1652 | "kind-of": "^5.0.0" 1653 | } 1654 | }, 1655 | "kind-of": { 1656 | "version": "5.1.0", 1657 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", 1658 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" 1659 | } 1660 | } 1661 | }, 1662 | "string-width": { 1663 | "version": "1.0.2", 1664 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 1665 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 1666 | "requires": { 1667 | "code-point-at": "^1.0.0", 1668 | "is-fullwidth-code-point": "^1.0.0", 1669 | "strip-ansi": "^3.0.0" 1670 | } 1671 | }, 1672 | "string_decoder": { 1673 | "version": "1.1.1", 1674 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1675 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1676 | "requires": { 1677 | "safe-buffer": "~5.1.0" 1678 | } 1679 | }, 1680 | "strip-ansi": { 1681 | "version": "3.0.1", 1682 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1683 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 1684 | "requires": { 1685 | "ansi-regex": "^2.0.0" 1686 | } 1687 | }, 1688 | "strip-color": { 1689 | "version": "0.1.0", 1690 | "resolved": "https://registry.npmjs.org/strip-color/-/strip-color-0.1.0.tgz", 1691 | "integrity": "sha1-EG9l09PmotlAHKwOsM6LinArT3s=" 1692 | }, 1693 | "strip-json-comments": { 1694 | "version": "2.0.1", 1695 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1696 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 1697 | }, 1698 | "success-symbol": { 1699 | "version": "0.1.0", 1700 | "resolved": "https://registry.npmjs.org/success-symbol/-/success-symbol-0.1.0.tgz", 1701 | "integrity": "sha1-JAIuSG878c3KCUKDt2nEctO3KJc=" 1702 | }, 1703 | "supports-color": { 1704 | "version": "5.4.0", 1705 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", 1706 | "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", 1707 | "dev": true, 1708 | "requires": { 1709 | "has-flag": "^3.0.0" 1710 | } 1711 | }, 1712 | "symbol-observable": { 1713 | "version": "1.0.4", 1714 | "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.4.tgz", 1715 | "integrity": "sha1-Kb9hXUqnEhvdiYsi1LP5vE4qoD0=" 1716 | }, 1717 | "tar-fs": { 1718 | "version": "1.16.3", 1719 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-1.16.3.tgz", 1720 | "integrity": "sha512-NvCeXpYx7OsmOh8zIOP/ebG55zZmxLE0etfWRbWok+q2Qo8x/vOR/IJT1taADXPe+jsiu9axDb3X4B+iIgNlKw==", 1721 | "requires": { 1722 | "chownr": "^1.0.1", 1723 | "mkdirp": "^0.5.1", 1724 | "pump": "^1.0.0", 1725 | "tar-stream": "^1.1.2" 1726 | }, 1727 | "dependencies": { 1728 | "pump": { 1729 | "version": "1.0.3", 1730 | "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", 1731 | "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", 1732 | "requires": { 1733 | "end-of-stream": "^1.1.0", 1734 | "once": "^1.3.1" 1735 | } 1736 | } 1737 | } 1738 | }, 1739 | "tar-stream": { 1740 | "version": "1.6.2", 1741 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.2.tgz", 1742 | "integrity": "sha512-rzS0heiNf8Xn7/mpdSVVSMAWAoy9bfb1WOTYC78Z0UQKeKa/CWS8FOq0lKGNa8DWKAn9gxjCvMLYc5PGXYlK2A==", 1743 | "requires": { 1744 | "bl": "^1.0.0", 1745 | "buffer-alloc": "^1.2.0", 1746 | "end-of-stream": "^1.0.0", 1747 | "fs-constants": "^1.0.0", 1748 | "readable-stream": "^2.3.0", 1749 | "to-buffer": "^1.1.1", 1750 | "xtend": "^4.0.0" 1751 | } 1752 | }, 1753 | "terminal-paginator": { 1754 | "version": "2.0.2", 1755 | "resolved": "https://registry.npmjs.org/terminal-paginator/-/terminal-paginator-2.0.2.tgz", 1756 | "integrity": "sha512-IZMT5ECF9p4s+sNCV8uvZSW9E1+9zy9Ji9xz2oee8Jfo7hUFpauyjxkhfRcIH6Lu3Wdepv5D1kVRc8Hx74/LfQ==", 1757 | "requires": { 1758 | "debug": "^2.6.6", 1759 | "extend-shallow": "^2.0.1", 1760 | "log-utils": "^0.2.1" 1761 | }, 1762 | "dependencies": { 1763 | "debug": { 1764 | "version": "2.6.9", 1765 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1766 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1767 | "requires": { 1768 | "ms": "2.0.0" 1769 | } 1770 | }, 1771 | "ms": { 1772 | "version": "2.0.0", 1773 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1774 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1775 | } 1776 | } 1777 | }, 1778 | "time-stamp": { 1779 | "version": "1.1.0", 1780 | "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", 1781 | "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=" 1782 | }, 1783 | "to-buffer": { 1784 | "version": "1.1.1", 1785 | "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz", 1786 | "integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==" 1787 | }, 1788 | "to-object-path": { 1789 | "version": "0.3.0", 1790 | "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", 1791 | "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", 1792 | "requires": { 1793 | "kind-of": "^3.0.2" 1794 | } 1795 | }, 1796 | "toggle-array": { 1797 | "version": "1.0.1", 1798 | "resolved": "https://registry.npmjs.org/toggle-array/-/toggle-array-1.0.1.tgz", 1799 | "integrity": "sha1-y/WEB5K9UJfzMReugkyTKv/ofVg=", 1800 | "requires": { 1801 | "isobject": "^3.0.0" 1802 | } 1803 | }, 1804 | "tunnel-agent": { 1805 | "version": "0.6.0", 1806 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 1807 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 1808 | "requires": { 1809 | "safe-buffer": "^5.0.1" 1810 | } 1811 | }, 1812 | "type-detect": { 1813 | "version": "4.0.8", 1814 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 1815 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 1816 | "dev": true 1817 | }, 1818 | "typescript": { 1819 | "version": "3.1.5", 1820 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.1.5.tgz", 1821 | "integrity": "sha512-muYNWV9j5+3mXoKD6oPONKuGUmYiFX14gfo9lWm9ZXRHOqVDQiB4q1CzFPbF4QLV2E9TZXH6oK55oQ94rn3PpA==" 1822 | }, 1823 | "util-deprecate": { 1824 | "version": "1.0.2", 1825 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1826 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1827 | }, 1828 | "warning-symbol": { 1829 | "version": "0.1.0", 1830 | "resolved": "https://registry.npmjs.org/warning-symbol/-/warning-symbol-0.1.0.tgz", 1831 | "integrity": "sha1-uzHdEbeg+dZ6su2V9Fe2WCW7rSE=" 1832 | }, 1833 | "which-pm-runs": { 1834 | "version": "1.0.0", 1835 | "resolved": "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz", 1836 | "integrity": "sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=" 1837 | }, 1838 | "wide-align": { 1839 | "version": "1.1.3", 1840 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 1841 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 1842 | "requires": { 1843 | "string-width": "^1.0.2 || 2" 1844 | } 1845 | }, 1846 | "window-size": { 1847 | "version": "1.1.1", 1848 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-1.1.1.tgz", 1849 | "integrity": "sha512-5D/9vujkmVQ7pSmc0SCBmHXbkv6eaHwXEx65MywhmUMsI8sGqJ972APq1lotfcwMKPFLuCFfL8xGHLIp7jaBmA==", 1850 | "requires": { 1851 | "define-property": "^1.0.0", 1852 | "is-number": "^3.0.0" 1853 | }, 1854 | "dependencies": { 1855 | "is-number": { 1856 | "version": "3.0.0", 1857 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", 1858 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", 1859 | "requires": { 1860 | "kind-of": "^3.0.2" 1861 | } 1862 | } 1863 | } 1864 | }, 1865 | "wrappy": { 1866 | "version": "1.0.2", 1867 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1868 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1869 | }, 1870 | "xtend": { 1871 | "version": "4.0.1", 1872 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 1873 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" 1874 | } 1875 | } 1876 | } 1877 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "waterrower", 3 | "version": "0.8.5", 4 | "description": "Talk to your WaterRower!", 5 | "main": "lib/index.js", 6 | "scripts": { 7 | "build": "tsc", 8 | "watch": "tsc -w", 9 | "test": "mocha lib/test", 10 | "start": "node ./lib/sample-client/.", 11 | "postinstall": "tsc" 12 | }, 13 | "types": "./lib/index.d.ts", 14 | "keywords": [ 15 | "exercise", 16 | "row", 17 | "rowing", 18 | "fitness", 19 | "water rower", 20 | "health" 21 | ], 22 | "repository": { 23 | "type": "git", 24 | "url": "git+https://github.com/codefoster/waterrower.git" 25 | }, 26 | "author": "Jeremy Foster ", 27 | "license": "Apache-2.0", 28 | "dependencies": { 29 | "@types/chai": "^4", 30 | "@types/lodash": "^4.14.117", 31 | "@types/mocha": "^5", 32 | "@types/node": "^10", 33 | "@types/serialport": "^7", 34 | "all-your-base": "^0.3.0", 35 | "lodash": "^4", 36 | "moment": "^2", 37 | "rxjs": "^5", 38 | "typescript": "^3", 39 | "serialport": "^7" 40 | }, 41 | "devDependencies": { 42 | "mocha": "^5", 43 | "chai": "^4" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | 2 | Talk to your WaterRower! 3 | 4 | This project is being actively developed. It is stable and working as it is, but there's still more that can be added for more communication with the WaterRower device. Please jump in with contributions. Pull requests are welcome. 5 | 6 | `waterrower` gives you two ways to subscribe to data changes - the EventEmitter pattern and Rx.js. The former is very familiar and works fine. The latter allows you to do some interesting things since data changes are an Rx stream. If you haven't worked with Rx.js yet, don't worry. As you can see in the example below, it's very easy. 7 | 8 | This project was initially created to support the [Waterbug](http://github.com/codefoster/waterbug) project. 9 | 10 | Keep in mind that version 0.2.0 introduced some significant changes from 0.1.0 which is what's published in npm as of now. It's much better. Instead of certain rowing session values (i.e. distance) being available by calling specific functions, any session values (that are defined in the datapoints.ts file) can be requested. I'll explain more in context below. 11 | 12 | ## Installation 13 | 14 | In your terminal... 15 | ``` 16 | npm install waterrower 17 | 18 | ``` 19 | In your project code... 20 | ``` 21 | import { WaterRower } from 'waterrower'; 22 | let waterrower = new WaterRower(); 23 | ``` 24 | 25 | ## Example Usage 26 | 27 | Here's the simplest case... 28 | ``` 29 | import { WaterRower } from 'waterrower'; 30 | let waterrower = new WaterRower(); 31 | waterrower.on('data', d => { 32 | // access the value that just changed using d 33 | // or access any of the other datapoints using waterrower.readDataPoint(''); 34 | }); 35 | ``` 36 | In this simple example we've left the port off and let the waterrower module discover it for us. 37 | 38 | If you want to do setup stuff to the WaterRower such as reset the console and then start a distance workout, you need to do that _after_ the unit is initialized. Use the following event... 39 | ``` 40 | waterrower.on('initialized', () => { 41 | waterrower.reset(); 42 | }); 43 | ``` 44 | 45 | If you would prefer, you can directly access the observable properties available on the module. `waterrower.reads$` observes all serial messages that come from the WaterRower. `waterrower.datapoints$` is a filter and map of `reads$` and includes only the datapoints (memory location values). 46 | 47 | Here's how you would do that... 48 | ``` 49 | import { WaterRower } from 'waterrower'; 50 | import { Observable } from 'rxjs/Rx'; 51 | let waterrower = new WaterRower(); 52 | 53 | // respond to the waterrower sending data 54 | waterrower.datapoints$.subscribe(d => { 55 | // access the value that just changed using d 56 | // or access any of the other datapoints using waterrower.readDataPoint(''); 57 | }); 58 | ``` 59 | 60 | If you want to access all of the PING messages that come from the WaterRower for some reason, you could use... 61 | ``` 62 | waterrower.reads$ 63 | .filter(r => r.type === 'ping') 64 | .subscribe(r => { 65 | // ping 66 | }); 67 | ``` 68 | 69 | Note that you can find all of the available "types" in the `types.ts` file. 70 | 71 | ## API Reference 72 | 73 | > The members in this API Reference are depicted using TypeScript to give you an idea of the parameter types and return types. Take, for example... 74 | > 75 | > ``` 76 | > f(p1?: string | string[]): number 77 | > ``` 78 | > 79 | > ...where function `f` receives an optional (depicted by the `?`) parameter `p1` with a type of either `string` or `string[]` and has a return value of type `number` 80 | 81 | ### `WaterRower()` (constructor) 82 | Takes an `options` parameter that must at minimum have a portName. Options are specified in `WaterRowerOptions` (documented below). 83 | 84 | ### `reads$` 85 | This is the Rx stream that fires whenever the WaterRower sends any serial message. You can check the pdf documentation distributed by WaterRower to see all valid messages. Read messages have a type and are thus easy to filter. They also have a value property with the data portion of the message. 86 | 87 | ### `datapoints$` 88 | This is simply a filter of the reads$ stream containing only the datapoint messages. 89 | 90 | See example `datapoints$.subscribe` above. 91 | 92 | ### `on(): void` 93 | `on()` is the typical means of subscribing to node EventEmitter events. Valid events for waterrower are... 94 | 95 | `on('initiazed', d => {...})` fires when the port connection to the WaterRower has been established, an initialization message has been sent, and the unit has responded with its "hardware type" message (`_WR_`). 96 | 97 | `on('data', d => {...})` fires whenever a datapoint value changes. When the rower goes 1 more meter and his total distance changes from 237 to 238, for instance, this event will fire. 98 | 99 | `on('close', d => {...})` fires when the WaterRower module is stopped. 100 | 101 | ### `reset(): void` 102 | Send a signal to the WaterRower to reset. You'll hear your WaterRower beep and the numbers will flash ready for activity to begin. 103 | 104 | ### `requestDataPoints(points?: string | string[]): any` 105 | Asks the WaterRower to send the value for a the datapoint with the given name. The returned value happens in a completely separate serial message, so it is not returned by this function. Rather, after issuing this request, you would use `readDataPoint` to get the new value. Note that you should only need to do this if the `options.refreshRate` is set to `0` and thus the module is not configured to poll the waterrower on a regular interval. When the module is configured (as it is by default) with an options.refreshRate value > 0, you should only ever need to `readDataPoint` whenever you are not subscribed. 106 | 107 | ### `readDataPoints(points?: string | string[]): any` 108 | Gets the current value of a single datapoint, an array of datapoints, or all datapoints depending on what you pass in. This does not request the latest value from the waterrower, but will be current if the module is refreshing (`options.refreshRate > 0`). If it is not, then the `requestDataPoints` method should be called prior to this and a short time waited before reading. 109 | 110 | To read a single data, simply pass in the datapoint name as a string... 111 | 112 | ``` 113 | waterrower.readDataPoints('distance'); 114 | ``` 115 | 116 | To read multiple datapoints, pass in an array of datapoint names as an array of strings... 117 | 118 | ``` 119 | waterrower.readDataPoints(['distance','total_kcal']); 120 | ``` 121 | 122 | To read all datapoints, just leave the value blank... 123 | 124 | ``` 125 | waterrower.readDataPoints(); 126 | ``` 127 | 128 | ### `defineDistanceWorkout(distance: number, units: Units)` 129 | Initiates a distance workout on the WaterRower. Accepts `distance` and `units` parameters (units defaults to Meters). 130 | 131 | ### `defineDurationWorkout(seconds: number)` 132 | Initiates a duration workout on the WaterRower. Accepts the number of seconds for the new workout. 133 | 134 | ### `displaySetDistance(units: Units)` 135 | Change the distance display units. See Units for possible values. 136 | 137 | ### `displaySetIntensity(option: IntensityDisplayOptions)` 138 | Change the intensity display. See IntensityDisplayOptions for possible values. 139 | 140 | ### `displaySetAverageIntensity(option: AverageIntensityDisplayOptions)` 141 | Change the average intensity display. See AverageIntensityDisplayOptions for possible values. 142 | 143 | ### Recording and Playing Back Sessions 144 | waterrower offers the ability to record and playback rowing sessions. 145 | 146 | These recordings are a file containing all serial messages to cross the wire. For example... 147 | 148 | ``` 149 | {"time":1468559128188,"type":"hardwaretype","data":"_WR_\r"} 150 | {"time":1468559128386,"type":"datapoint","data":"IDD0550007\r"} 151 | {"time":1468559128397,"type":"datapoint","data":"IDD0570007\r"} 152 | {"time":1468559128402,"type":"datapoint","data":"IDD0810007\r"} 153 | ``` 154 | 155 | The project contains a `data` folder with one 30 minute rowing session that you can play back. This essentially allows you to simulate a rowing session for development purposes. 156 | 157 | To start the simulation data, use... 158 | 159 | ``` 160 | import { WaterRower } from 'waterrower'; 161 | let waterrower = new WaterRower(); 162 | waterrower.startSimulation(); 163 | waterrower.on('data', d => { 164 | console.log(d); 165 | }); 166 | ``` 167 | `startRecording(name?: string)` starts recording all serial messages coming _from_ the rower to a file called `name` in the data directory. If name is not provided, then a date/time stamp will be used for the file name. 168 | 169 | `stopRecording(): void` stops the current recording. 170 | 171 | `getRecordings(): string[]` returns a list of all recorded sessions from the data directory. 172 | 173 | `playRecording(name?: string): void` starts playing back a recorded session by `name`. If no name is provided then it will defaults to `simulationdata` - the name of the 30-minute rowing session that comes with waterrower. 174 | 175 | `startSimulation(): void` is a shortcut method that is identical to calling `playRecording()`. 176 | 177 | ### WaterRowerOptions Interface 178 | These are the options that you can pass to the WaterRower constructor. All of the options are optional. 179 | 180 | ``` 181 | let waterrower = new WaterRower({ 182 | portName:'/dev/ttyACM0', //or perhaps 'COM6' 183 | baudRate:19200, 184 | refreshRate:200, 185 | dataDirectory:'data', 186 | datapoints:['distance','total_kcal'] 187 | }) 188 | ``` 189 | 190 | If `portName` is omitted then the waterrower module will automatically attempt to discover the port that the WaterRower is on. 191 | 192 | `baudRate` and `refreshRate` have defaults and are optional. 193 | 194 | `dataDirectory` is a string representing the path (relative to waterrower's root directory) of the directory where session recordings should be saved. 195 | 196 | `datapoints` is either a string representing a single datapoint or an array of strings representing all of the datapoints that you want waterrower to request every refresh. Keeping this list as trim as possible will reduce the number of messages that are generated while rowing, so it's recommended you only include the data you're interested in. 197 | 198 | ### IntensityDisplayOptions Enum 199 | This enum defines the possible values you can send to the `displaySetIntensity` method. 200 | ``` 201 | this.displaySetIntensity(IntensityDisplayOptions.MetersPerSecond); 202 | ``` 203 | 204 | ### AverageIntensityDisplayOptions Enum 205 | This enum defines the possible values you can send to the `displaySetAverageIntensity` method. 206 | 207 | Possible values are: `AverageMetersPerSecond`,`AverageMPH`,`_500m`, and `_2km` 208 | 209 | ``` 210 | this.displaySetIntensity(AverageIntensityDisplayOptions.AverageMetersPerSecond); 211 | ``` 212 | 213 | ### Units Enum 214 | This enum defines the possible values you can send to the `displaySetAverageIntensity` method. 215 | 216 | Possible values are: `Meters`, `Miles`, `Kilometers`, and `Strokes` 217 | 218 | To use the Units, you have to import the Units interface from the waterrower module. 219 | ``` 220 | import { WaterRower, Units } from 'waterrower'; 221 | ... 222 | this.defineDistanceWorkout(500, Units.Meters); 223 | ``` 224 | 225 | ### DataPoint Interface 226 | The DataPoint interface constitutes a type for the objects in the `datapoints.ts` file and the type returned in the `datapoints$` stream. 227 | 228 | ``` 229 | export interface DataPoint { 230 | name?: string, 231 | address: string, 232 | length: string, 233 | value: any 234 | } 235 | ``` 236 | 237 | ## Known Issues 238 | 239 | See the [issues](http://github.com/codefoster/waterrower/issues) on GitHub for a complete list of issues, and feel free to submit some yourself either for bugs or feature requests. 240 | 241 | 242 | ## License 243 | 244 | Apache 2.0 245 | 246 | ## Contributors 247 | Big thanks to [redoPop](https://github.com/redoPop) for the recent contributions to the waterrower project! 248 | -------------------------------------------------------------------------------- /src/datapoints.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | //performance variables 3 | { name: 'mph', address: '1A3', length: 'D', value: null }, 4 | { name: 'stroke_rate', address: '1A9', length: 'S', value: null }, 5 | 6 | //screen mode variables 7 | { name: 'screen_mode', address: '00D', length: 'S', radix: 16, value: null }, 8 | { name: 'screen_sub_mode', address: '00E', length: 'S', radix: 16, value: null }, 9 | { name: 'screen_interval', address: '00F', length: 'S', radix: 16, value: null }, 10 | 11 | //distance variables 12 | { name: 'ms_distance_dec', address: '054', length: 'S', radix: 16, value: null }, 13 | { name: 'ms_distance', address: '055', length: 'D', radix: 16, value: null }, 14 | { name: 'distance', address: '057', length: 'D', radix: 16, value: null }, 15 | { name: 'test_count', address: '059', length: 'S', radix: 16, value: null }, 16 | 17 | //clock countdown 18 | { name: 'clock_down_dec', address: '05A', length: 'A', radix: 16, value: null }, 19 | { name: 'clock_down', address: '05B', length: 'D', radix: 16, value: null }, 20 | 21 | //total distance meter counter 22 | { name: 'total_dis_dec', address: '080', length: 'S', radix: 16, value: null }, 23 | { name: 'total_dis', address: '081', length: 'D', radix: 16, value: null }, 24 | 25 | //? 26 | { name: 'pins_per_xxcm', address: '083', length: 'S', radix: 16, value: null }, 27 | { name: 'distance_xxcm', address: '084', length: 'S', radix: 16, value: null }, 28 | 29 | //Locations between these are not used and should read as 0, these maybe used if space is required 30 | { name: 'kcal_watts', address: '088', length: 'D', radix: 16, value: null }, 31 | { name: 'total_kcal', address: '08A', length: 'D', radix: 16, value: null }, 32 | 33 | //tank volume in liters 34 | { name: 'tank_volume', address: '0A9', length: 'S', radix: 16, value: null }, 35 | 36 | //BANK 1 37 | //stroke counter 38 | //stroke_pull is first subtracted from stroke_average then a modifier of 1.25 multiplied by the result to generate the ratio value for display 39 | { name: 'strokes_cnt', address: '140', length: 'D', radix: 16, value: null }, 40 | { name: 'stroke_average', address: '142', length: 'S', radix: 16, value: null }, 41 | { name: 'stroke_pull', address: '143', length: 'S', radix: 16, value: null }, 42 | 43 | //meters per second register 44 | { name: 'm_s_total', address: '148', length: 'D', radix: 16, value: null }, 45 | { name: 'm_s_average', address: '14A', length: 'D', radix: 16, value: null }, 46 | { name: 'm_s_stored', address: '14C', length: 'S', radix: 16, value: null }, 47 | { name: 'm_s_proj_avg', address: '14D', length: 'D', radix: 16, value: null }, 48 | 49 | //used to generate the display clock 50 | { name: 'display_sec_dec', address: '1E0', length: 'S', radix: 10, value: null }, 51 | { name: 'display_sec', address: '1E1', length: 'S', radix: 10, value: null }, 52 | { name: 'display_min', address: '1E2', length: 'S', radix: 10, value: null }, 53 | { name: 'display_hr', address: '1E3', length: 'S', radix: 10, value: null }, 54 | 55 | //workout total times/distances/limits 56 | { name: 'workout_time', address: '1E8', length: 'D', radix: 16, value: null }, 57 | { name: 'workout_ms', address: '1EA', length: 'D', radix: 16, value: null }, 58 | { name: 'workout_stroke', address: '1EC', length: 'D', radix: 16, value: null }, 59 | { name: 'workout_limit', address: '1EE', length: 'D', radix: 16, value: null }, 60 | ]; -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import { Observable, Subject } from 'rxjs/Rx'; 2 | import * as SerialPort from 'serialport'; 3 | import * as ayb from 'all-your-base'; 4 | import { padStart, find, includes } from "lodash"; 5 | import * as events from 'events'; 6 | import datapoints from './datapoints'; 7 | import types from './types'; 8 | import * as fs from 'fs'; 9 | import * as readline from 'readline'; 10 | import * as moment from 'moment'; 11 | import * as path from 'path'; 12 | 13 | export class WaterRower extends events.EventEmitter { 14 | private refreshRate: number = 200; 15 | private baudRate: number = 19200; 16 | private port: SerialPort; 17 | private dataDirectory: string = 'lib/data'; 18 | private datapoints: string | string[]; 19 | private recordingSubscription; 20 | 21 | // reads$ is all serial messages from the WR 22 | // datapoints$ isonly the reads that are a report of a memory location's value 23 | reads$ = new Subject(); 24 | datapoints$: Observable; 25 | 26 | constructor(options: WaterRowerOptions = {}) { 27 | super(); 28 | 29 | this.dataDirectory = options.dataDirectory || this.dataDirectory; 30 | this.refreshRate = options.refreshRate || this.refreshRate; 31 | this.baudRate = options.baudRate || this.baudRate; 32 | this.datapoints = options.datapoints; 33 | 34 | if (!options.portName) { 35 | console.log('No port configured. Attempting to discover...'); 36 | this.discoverPort(name => { 37 | if (name) { 38 | console.log('Discovered a WaterRower on ' + name + '...'); 39 | options.portName = name; 40 | this.setupSerialPort(options); 41 | } 42 | else 43 | console.log('We didn\'t find any connected WaterRowers'); 44 | }) 45 | } 46 | else { 47 | console.log('Setting up serial port on ' + options.portName + '...'); 48 | this.setupSerialPort(options); 49 | } 50 | 51 | this.setupStreams(); 52 | 53 | process.on('SIGINT', () => { 54 | this.close(); 55 | }); 56 | 57 | } 58 | 59 | private discoverPort(callback) { 60 | SerialPort.list((err, ports) => { 61 | const p = find(ports, p => includes([ 62 | 'Microchip Technology, Inc.', // standard 63 | 'Microchip Technology Inc.' // macOS specific? 64 | ], p.manufacturer)); 65 | if (p) callback(p.comName); 66 | else callback(); 67 | }); 68 | } 69 | 70 | private setupSerialPort(options) { 71 | // setup the serial port 72 | this.port = new SerialPort(options.portName, { 73 | baudRate: options.baudRate || this.baudRate 74 | }); 75 | // setup port events 76 | this.port.on('open', () => { 77 | console.log(`A connection to the WaterRower has been established on ${options.portName}`); 78 | this.initialize(); 79 | if (options.refreshRate !== 0) setInterval(() => this.requestDataPoints(this.datapoints), this.refreshRate); 80 | }); 81 | this.port.on('data', d => { 82 | let type = find(types, t => t.pattern.test(d)); 83 | this.reads$.next({ time: Date.now(), type: (type ? type.type : 'other'), data: d }) 84 | }); 85 | this.port.on('closed', () => this.close); 86 | this.port.on('disconnect', () => this.close) 87 | this.port.on('error', err => { 88 | this.emit('error', err); 89 | this.close(); 90 | }); 91 | } 92 | 93 | private setupStreams() { 94 | // this is the important stream for reading memory locations from the rower 95 | // IDS is a single, IDD is a double, and IDT is a triple byte memory location 96 | this.datapoints$ = this.reads$ 97 | .filter(d => d.type === 'datapoint') 98 | .map(d => { 99 | let pattern = find(types, t => t.type == 'datapoint').pattern; 100 | let m = pattern.exec(d.data); 101 | return { 102 | time: new Date(d.time), 103 | name: find(datapoints, point => point.address == m[2]).name, 104 | length: { 'S': 1, 'D': 2, 'T': 3 }[m[1]], 105 | address: m[2], 106 | value: m[3] 107 | }; 108 | }); 109 | 110 | //emit the data event 111 | this.datapoints$.subscribe(d => { 112 | let datapoint = find(datapoints, d2 => d2.address == d.address); 113 | datapoint.value = parseInt(d.value, datapoint.radix); 114 | this.emit('data', datapoint); 115 | }) 116 | 117 | // when the WR comes back with _WR_ then consider the WR initialized 118 | this.reads$.filter(d => d.type == 'hardwaretype').subscribe(d => { 119 | this.emit('initialized'); 120 | }); 121 | } 122 | 123 | /// send a serial message 124 | private send(value): void { 125 | if (this.port) this.port.write(value + '\r\n'); 126 | } 127 | 128 | /// initialize the connection 129 | private initialize(): void { 130 | console.log('Initializing port...'); 131 | this.send('USB'); 132 | } 133 | 134 | private close(): void { 135 | console.log('Closing WaterRower...'); 136 | this.emit('close'); 137 | this.reads$.complete(); 138 | if (this.port) { 139 | this.port.close(err => console.log(err)); 140 | this.port = null; 141 | } 142 | process.exit(); 143 | } 144 | 145 | /// reset console 146 | reset(): void { 147 | console.log('Resetting WaterRower...'); 148 | this.send('RESET'); //reset the waterrower 149 | } 150 | 151 | /// Issues a request for one, more, or all data points. 152 | /// There is no return value. Data point values can be read very 153 | /// shortly after the request is made 154 | requestDataPoints(points?: string | string[]): void { 155 | let req = (name: string): void => { 156 | console.log('requesting ' + name); 157 | let dataPoint = find(datapoints, d => d.name == name); 158 | this.send(`IR${dataPoint.length}${dataPoint.address}`) 159 | } 160 | 161 | if (points) { 162 | if (Array.isArray(points)) points.forEach(p => req(p)); 163 | else if (typeof points === 'string') req(points) 164 | else throw ('requestDataPoint requires a string, an array of strings, or nothing at all'); 165 | } 166 | else 167 | datapoints.forEach(d => req(d.name)); 168 | 169 | } 170 | 171 | readDataPoints(points?: string | string[]): any { 172 | if (points) { 173 | if (Array.isArray(points)) { 174 | return datapoints 175 | .filter(dp => points.some(p => p == dp.name)) //filter to the points that were passed in 176 | .reduce((p, c) => { p[c.name] = c.value; return p; }, {}); //build up an array of the chosen points 177 | } 178 | else if (typeof points === 'string') return find(datapoints, d => d.name == points).value; 179 | else throw ('readDataPoints requires a string, an array of strings, or nothing at all'); 180 | } 181 | else 182 | return datapoints.reduce((p, c) => p[c.name] = c.value, {}); 183 | } 184 | 185 | startRecording(name?: string) { 186 | name = name || moment().format('YYYY-MM-DD-HH-mm-ss'); 187 | this.recordingSubscription = this.reads$ 188 | .filter(r => r.type != 'pulse') //pulses are noisy 189 | .subscribe(r => fs.appendFileSync(path.join(this.dataDirectory, name), JSON.stringify(r) + '\n')); 190 | } 191 | 192 | stopRecording(): void { 193 | this.recordingSubscription.unsubscribe(); 194 | } 195 | 196 | getRecordings(): string[] { 197 | return fs.readdirSync(this.dataDirectory); 198 | } 199 | 200 | playRecording(name?: string): void { 201 | name = name || 'simulationdata'; 202 | let lineReader = readline.createInterface({ input: fs.createReadStream(path.join(this.dataDirectory, name), { encoding: 'utf-8' }) }); 203 | let simdata$: Observable = Observable.fromEvent(lineReader, 'line') 204 | .filter(value => (value ? true : false)) 205 | .map(value => JSON.parse(value.toString())) 206 | let firstrow; 207 | simdata$.subscribe(row => { 208 | if (!firstrow) firstrow = row; 209 | let delta = row.time - firstrow.time; 210 | setTimeout(() => { this.reads$.next({ time: row.time, type: row.type, data: row.data }) }, delta); 211 | }); 212 | } 213 | 214 | startSimulation(): void { 215 | this.playRecording(); 216 | } 217 | 218 | /// set up new workout session on the WR with set distance 219 | defineDistanceWorkout(distance: number, units: Units = Units.Meters): void { 220 | this.send(`WSI${units}${padStart(ayb.decToHex(distance), 4, '0').toUpperCase()}`); 221 | } 222 | 223 | /// set up new workout session on the WR with set duration 224 | defineDurationWorkout(seconds: number): void { 225 | this.send(`WSU${padStart(ayb.decToHex(seconds), 4, '0').toUpperCase()}`); 226 | } 227 | 228 | /// change the display to meters, miles, kilometers, or strokes 229 | displaySetDistance(units: Units): void { 230 | let value = 'DD'; 231 | switch (units) { 232 | case Units.Meters: value += 'ME'; break; 233 | case Units.Miles: value += 'MI'; break; 234 | case Units.Kilometers: value += 'KM'; break; 235 | case Units.Strokes: value += 'ST'; break; 236 | default: throw 'units must be meters, miles, kilometers, or strokes'; 237 | } 238 | this.send(value); 239 | } 240 | 241 | /// change the intensity display 242 | displaySetIntensity(option: IntensityDisplayOptions): void { 243 | let value = 'DD'; 244 | switch (option) { 245 | case IntensityDisplayOptions.MetersPerSecond: value += 'MS'; break; 246 | case IntensityDisplayOptions.MPH: value += 'MPH'; break; 247 | case IntensityDisplayOptions._500m: value += '500'; break; 248 | case IntensityDisplayOptions._2km: value += '2KM'; break; 249 | case IntensityDisplayOptions.Watts: value += 'WA'; break; 250 | case IntensityDisplayOptions.CaloriesPerHour: value += 'CH'; break; 251 | } 252 | this.send(value); 253 | } 254 | 255 | /// change the average intensity display 256 | displaySetAverageIntensity(option: AverageIntensityDisplayOptions): void { 257 | let value = 'DD'; 258 | switch (option) { 259 | case AverageIntensityDisplayOptions.AverageMetersPerSecond: value += 'MS'; break; 260 | case AverageIntensityDisplayOptions.AverageMPH: value += 'MPH'; break; 261 | case AverageIntensityDisplayOptions._500m: value += '500'; break; 262 | case AverageIntensityDisplayOptions._2km: value += '2KM'; break; 263 | default: throw 'units must be meters, miles, kilometers, or strokes'; 264 | } 265 | this.send(value); 266 | } 267 | } 268 | 269 | 270 | export interface WaterRowerOptions { 271 | portName?: string; 272 | baudRate?: number; 273 | refreshRate?: number; 274 | dataDirectory?: string; 275 | datapoints?: string | string[]; 276 | } 277 | 278 | export interface DataPoint { 279 | time?: Date; 280 | name?: string, 281 | address: string, 282 | length: string, 283 | value: any 284 | } 285 | 286 | export interface ReadValue { 287 | time: number 288 | type: string 289 | data: string 290 | } 291 | 292 | export enum IntensityDisplayOptions { 293 | MetersPerSecond, 294 | MPH, 295 | _500m, 296 | _2km, 297 | Watts, 298 | CaloriesPerHour 299 | } 300 | 301 | export enum AverageIntensityDisplayOptions { 302 | AverageMetersPerSecond, 303 | AverageMPH, 304 | _500m, 305 | _2km 306 | } 307 | 308 | export enum Units { 309 | Meters = 1, 310 | Miles = 2, 311 | Kilometers = 3, 312 | Strokes = 4 313 | } 314 | -------------------------------------------------------------------------------- /src/sample-client/.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "Launch", 6 | "type": "node", 7 | "request": "launch", 8 | "program": "${workspaceRoot}/index.js", 9 | "stopOnEntry": false, 10 | "args": [], 11 | "cwd": "${workspaceRoot}", 12 | "preLaunchTask": null, 13 | "runtimeExecutable": null, 14 | "runtimeArgs": [ 15 | "--nolazy" 16 | ], 17 | "env": { 18 | "NODE_ENV": "development" 19 | }, 20 | "externalConsole": false, 21 | "sourceMaps": false, 22 | "outDir": null 23 | }, 24 | { 25 | "name": "Attach", 26 | "type": "node", 27 | "request": "attach", 28 | "port": 5858, 29 | "address": "localhost", 30 | "restart": false, 31 | "sourceMaps": false, 32 | "outDir": null, 33 | "localRoot": "${workspaceRoot}", 34 | "remoteRoot": null 35 | } 36 | ] 37 | } -------------------------------------------------------------------------------- /src/sample-client/.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the tasks.json format 4 | "version": "0.1.0", 5 | "command": "tsc", 6 | "isShellCommand": true, 7 | "args": ["-w", "-p", "."], 8 | "showOutput": "silent", 9 | "isWatching": true, 10 | "problemMatcher": "$tsc-watch" 11 | } -------------------------------------------------------------------------------- /src/sample-client/index.ts: -------------------------------------------------------------------------------- 1 | import { WaterRower } from '..'; 2 | 3 | //simulation mode 4 | let waterrower = new WaterRower({datapoints:['ms_distance','m_s_total','m_s_average','total_kcal']}); 5 | waterrower.playRecording('simulationdata'); 6 | console.log('Playing \'simulationdata\''); 7 | 8 | waterrower.on('data', d => { 9 | console.log(JSON.stringify(d)); 10 | }); -------------------------------------------------------------------------------- /src/sample-client/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "waterrower-sample-client", 3 | "version": "0.1.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "Jeremy Foster (http://codefoster.com)", 11 | "license": "apache-2.0" 12 | } 13 | -------------------------------------------------------------------------------- /src/sample-client/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | "moduleResolution": "node", 6 | "sourceMap": true, 7 | "emitDecoratorMetadata": true, 8 | "experimentalDecorators": true, 9 | "removeComments": false, 10 | "noImplicitAny": false 11 | }, 12 | "exclude": [ 13 | "node_modules" 14 | ] 15 | } -------------------------------------------------------------------------------- /src/test/test.ts: -------------------------------------------------------------------------------- 1 | import { WaterRower } from '..'; 2 | import { assert } from 'chai'; 3 | import { describe, beforeEach, it } from "mocha"; 4 | 5 | describe('waterrower', () => { 6 | 7 | //constructor 8 | describe('constructor', () => { 9 | it('can instantiate waterrower with no arguments', function () { 10 | let waterrower = new WaterRower(); 11 | 12 | }); 13 | 14 | it('can instantiate waterrower with no arguments', function () { 15 | let waterrower = new WaterRower(); 16 | 17 | }); 18 | }); 19 | 20 | //session playback 21 | describe('session playback', () => { 22 | it('can playback default simulation data', function () { 23 | let waterrower = new WaterRower(); 24 | waterrower.playRecording('simulationdata'); 25 | }); 26 | it('can record a session', function () { 27 | let waterrower = new WaterRower(); 28 | waterrower.playRecording('simulationdata'); 29 | waterrower.startRecording(); 30 | setTimeout(function() { waterrower.stopRecording(); }, 10000); 31 | }); 32 | }); 33 | 34 | // datapoint processing 35 | describe('datapoint processing', () => { 36 | let waterrower; 37 | 38 | beforeEach(done => { 39 | waterrower = new WaterRower(); 40 | waterrower.setupStreams(); 41 | done(); 42 | }) 43 | 44 | it('treats distance as a hexadecimal integer', done => { 45 | waterrower.once('data', point => { 46 | assert.equal(point.name, 'distance'); 47 | assert.equal(point.value, 7350); 48 | done(); 49 | }); 50 | waterrower.reads$.next({ time: 1468559128188, type: 'datapoint', data: 'IDD0571CB6\r'}); 51 | }); 52 | 53 | it('treats display minutes as a decimal integer', done => { 54 | waterrower.once('data', point => { 55 | assert.equal(point.name, 'display_min'); 56 | assert.equal(point.value, 28); 57 | done(); 58 | }); 59 | waterrower.reads$.next({ time: 1468559128188, type: 'datapoint', data: 'IDS1E228\r'}); 60 | }); 61 | }); 62 | }); 63 | -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- 1 | export default [ 2 | { type: 'ping', pattern: /PING/ }, 3 | { type: 'pulse', pattern: /P([0-9A-F]{2})/ }, 4 | { type: 'error', pattern: /ERROR/ }, 5 | { type: 'strokestart', pattern: /SS/ }, 6 | { type: 'strokeend', pattern: /SE/ }, 7 | { type: 'exit', pattern: /EXIT/ }, 8 | { type: 'hardwaretype', pattern: /_WR_/ }, 9 | { type: 'datapoint', pattern: /ID([SDT])([0-9A-F]{3})([0-9A-F]+)/ }, 10 | { type: 'ok', pattern: /OK/ } 11 | 12 | ]; -------------------------------------------------------------------------------- /src/types/all-your-base.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'all-your-base' { 2 | export function binToDec(bin:string):string; 3 | export function binToHex(bin:string):string; 4 | export function binToOct(bin:string):string; 5 | export function octToDec(oct:string):string; 6 | export function octToBin(oct:string):string; 7 | export function octToHex(oct:string):string; 8 | export function decToBin(dec:string|number):string; 9 | export function decToHex(dec:string|number):string; 10 | export function decToOct(dec:string|number):string; 11 | export function hexToDec(hex:string):string; 12 | export function hexToBin(hex:string):string; 13 | export function hexToOct(hex:string):string; 14 | } -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es6", 4 | "module": "commonjs", 5 | "moduleResolution": "node", 6 | "sourceMap": true, 7 | "declaration": true, 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "removeComments": false, 11 | "noImplicitAny": false, 12 | "rootDir": "./src", 13 | "outDir": "./lib" 14 | }, 15 | "exclude": [ 16 | "node_modules", 17 | "lib" 18 | ] 19 | } --------------------------------------------------------------------------------