├── .gitignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── app.js ├── bin └── www ├── config ├── homebridge │ └── config.json └── index.dist.json ├── docs ├── Home.app-Hallway.PNG ├── Home.app-Kitchen.PNG ├── Home.app-Speaker-Volume.PNG └── PM2-status.png ├── jsonAPI ├── Library.js ├── Outputs.js ├── Player.js └── Queue.js ├── libs └── logger.js ├── package-lock.json ├── package.json └── routes ├── index.js ├── outputs.js ├── player.js └── playlists.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Configs 2 | config/index.json 3 | 4 | # Logs 5 | logs 6 | *.log 7 | npm-debug.log* 8 | yarn-debug.log* 9 | yarn-error.log* 10 | 11 | # Runtime data 12 | pids 13 | *.pid 14 | *.seed 15 | *.pid.lock 16 | 17 | # Directory for instrumented libs generated by jscoverage/JSCover 18 | lib-cov 19 | 20 | # Coverage directory used by tools like istanbul 21 | coverage 22 | 23 | # nyc test coverage 24 | .nyc_output 25 | 26 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 27 | .grunt 28 | 29 | # Bower dependency directory (https://bower.io/) 30 | bower_components 31 | 32 | # node-waf configuration 33 | .lock-wscript 34 | 35 | # Compiled binary addons (https://nodejs.org/api/addons.html) 36 | build/Release 37 | 38 | # Dependency directories 39 | node_modules/ 40 | jspm_packages/ 41 | 42 | # Typescript v1 declaration files 43 | typings/ 44 | 45 | # Optional npm cache directory 46 | .npm 47 | 48 | # Optional eslint cache 49 | .eslintcache 50 | 51 | # Optional REPL history 52 | .node_repl_history 53 | 54 | # Output of 'npm pack' 55 | *.tgz 56 | 57 | # Yarn Integrity file 58 | .yarn-integrity 59 | 60 | # dotenv environment variables file 61 | .env 62 | 63 | # next.js build output 64 | .next 65 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All notable changes to this project will be documented in this file. 3 | 4 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 5 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 6 | 7 | ## [Unreleased] 8 | 9 | ## [1.2.4] - 2019-03-25 10 | ### Fixed 11 | - Socket hang up on `/player/stop` because of missing `send()` 12 | 13 | ## [1.2.3] - 2019-03-25 14 | ### Added 15 | - Changelog 16 | - Optional param `shuffle` for endpoint `/playlists/:playlist/play` 17 | 18 | ### Changed 19 | - Added shuffle option to README 20 | 21 | ## [1.1.3] - 2019-03-15 22 | ### Added 23 | - Log given output device name if device not found 24 | 25 | ### Changed 26 | - Let winston log errors to stderr 27 | 28 | ## [1.1.2] - 2019-03-15 29 | ### Added 30 | - Implemented winston as global logger 31 | 32 | ## [1.1.1] - 2019-03-02 33 | ### Removed 34 | - Removed unnecessary error logging if there is no playback at all 35 | 36 | ## [1.1.0] - 2019-03-02 37 | ### Changed 38 | - Completed README.md (for now) 39 | - Made some minor improvements to error logging 40 | 41 | ## [1.0.0] - 2019-02-28 42 | ### Added 43 | - This is v1.0 which contains all of my current use cases so far. 44 | 45 | [Unreleased]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.4...HEAD 46 | [1.2.4]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.2.3...1.2.4 47 | [1.2.3]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.3...1.2.3 48 | [1.1.3]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.2...1.1.3 49 | [1.1.2]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.1...1.1.2 50 | [1.1.1]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.1.0...1.1.1 51 | [1.1.0]: https://github.com/moecre/forked-daapd-homebridge-middleware/compare/1.0.0...1.1.0 52 | [1.0.0]: https://github.com/moecre/forked-daapd-homebridge-middleware/tag/1.0.0 -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | For use in conjunction with 2 | * [forked-daapd](https://github.com/ejurgensen/forked-daapd) 3 | * [Shairport Sync](https://github.com/mikebrady/shairport-sync) (Optional) 4 | * [Homebridge](https://github.com/nfarina/homebridge) 5 | * [homebridge-better-http-rgb](https://github.com/jnovack/homebridge-better-http-rgb) 6 | 7 | to play your favourite radio stations with just a voice command and control multiple output devices. 8 | 9 | Examples: 10 | 11 | * "Hey Siri, start ROCK ANTENNE" 12 | * "Hey Siri, start [YOUR_FAVOURITE_RADIO_STATION]" 13 | * "Hey Siri, turn on Speaker in Hallway" 14 | * "Hey Siri, turn off [SPEAKER_NAME] in [ROOM_NAME]" 15 | * You can use the brightness setting to control the output volume: "Hey Siri, set brightness of [SPEAKER_NAME] in [ROOM_NAME] to 70%" 16 | 17 | ![Hallway](docs/Home.app-Hallway.PNG) 18 | ![Kitchen](docs/Home.app-Kitchen.PNG) 19 | ![Volume control](docs/Home.app-Speaker-Volume.PNG) 20 | 21 | # Overview 22 | 23 | This package acts like a standalone proxy server which endpoints get to be called by the homebridge-better-http-rgb plugin. 24 | The plugin is responsible for then advertising the various accessories to homebridge (see [config.json](config/homebridge/config.json)). 25 | The middleware is using the amazing [forked-daapd JSON API](https://github.com/ejurgensen/forked-daapd/blob/master/README_JSON_API.md) 26 | to control the various accessories and redirect their actions to forked-daapd. Therefore it is possible to advertise almost 27 | any forked-daapd action to HomeKit. 28 | 29 | # Prerequisites 30 | 31 | * [Node.js](https://nodejs.org/en/) >= v10.15.1 with [npm](https://www.npmjs.com) >= v6.4.1 32 | * [forked-daapd](https://github.com/ejurgensen/forked-daapd) >= v26.4 available in your local network 33 | * [homebridge](https://homebridge.io) >= v0.4.46 with [homebridge-better-http-rgb](https://www.npmjs.com/package/homebridge-better-http-rgb) >= v2.0.0 plugin available in your local network 34 | * At least one output device (AirPlay, Chromecast, etc) in your local network which can be controlled by forked-daapd 35 | * At least one playlist with an internet radio stream url in it, available in your forked-daapd library 36 | 37 | # Installation and execution 38 | 39 | ## Option 1: Installing as npm dependency 40 | 41 | ```bash 42 | $ mkdir forked-daapd-homebridge-middleware 43 | $ npm init 44 | $ npm install --save forked-daapd-homebridge-middleware 45 | ``` 46 | 47 | For the `npm init` command answer all questions with [ENTER] key. 48 | 49 | ### Configuration 50 | See [configuration](#configuration-2). 51 | 52 | ### Run as npm dependency 53 | 54 | ```bash 55 | $ cd forked-daapd-homebridge-middleware 56 | $ npx forked-daapd-homebridge-middleware 57 | ``` 58 | 59 | ## Option 2: Installing as separate project 60 | 61 | ```bash 62 | $ git clone https://github.com/moecre/forked-daapd-homebridge-middleware.git 63 | $ cd forked-daapd-homebridge-middleware 64 | $ npm install 65 | ``` 66 | 67 | ### Configuration 68 | See [configuration](#configuration-2). 69 | 70 | ### Run as separate project 71 | 72 | ```bash 73 | $ cd forked-daapd-homebridge-middleware 74 | $ npm start 75 | ``` 76 | 77 | ## Running with PM2 78 | 79 | In production I strongly advise you to use a process manager like [PM2](http://pm2.keymetrics.io) to run forked-daapd-homebridge-middleware. 80 | In case anything unexpected happens the middleware is going to be restarted automatically by PM2. 81 | 82 | ![PM2 status](docs/PM2-status.png) 83 | 84 | By the way, that's a good solution for your Homebridge process, too. 85 | 86 | # Configuration 87 | 88 | ## Create forked-daapd-homebridge-middleware configuration file 89 | 90 | Copy the distributed [index.dist.json](config/index.dist.json) to index.json in the same directory and change the file 91 | according to your setup and needs. 92 | 93 | | Param | Description | 94 | |---------|-----------------------------------| 95 | | baseUrl | URL to your forked-daapd JSON API | 96 | 97 | ## Adding your accessories to Homebridge 98 | 99 | Please take a look at the provided [config.json](config/homebridge/config.json) for examples. In general your Homebridge 100 | configuration file is located in `~/.homebridge/config.json`. 101 | 102 | ### Radio station 103 | 104 | Please replace placeholders, eg. `{NAME YOUR RADIO STATION}` for `ROCK ANTENNE`. Keep in mind that the name must 105 | be unique over all your accessories (UUID in Homebridge). 106 | 107 | ```json 108 | { 109 | "accessory": "HTTP-RGB", 110 | "name": "{NAME YOUR RADIO STATION}", 111 | "service": "Light", 112 | "switch": { 113 | "status": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/playlists/{URL ENCODED NAME OF THE PLAYLIST IN FORKED-DAAPD}", 114 | "powerOn": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/playlists/{URL ENCODED NAME OF THE PLAYLIST IN FORKED-DAAPD}/play[?shuffle=true]", 115 | "powerOff": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/player/stop" 116 | } 117 | } 118 | ``` 119 | The `/playlists/:playlist/play` endpoint has an optional parameter `shuffle`. If applied all the playlist items get added to the queue shuffled. 120 | 121 | ### Speaker (output device) 122 | 123 | Please replace placeholders, eg. `{NAME YOUR SPEAKER}` for `Hallway speaker`. Keep in mind that the name must be 124 | unique over all your accessories (UUID in Homebridge). 125 | 126 | ```json 127 | { 128 | "accessory": "HTTP-RGB", 129 | "name": "{NAME YOUR SPEAKER}", 130 | "service": "Light", 131 | "switch": { 132 | "status": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}", 133 | "powerOn": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/state/on", 134 | "powerOff": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/state/off" 135 | }, 136 | "brightness": { 137 | "status": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/volume", 138 | "url": "http://{HOSTNAME ON WHICH FORKED-DAAPD-HOMEBRIDGE-MIDDLEWARE IS RUNNING}:3000/outputs/{URL ENCODED NAME OF OUTPUT DEVICE IN FORKED-DAAPD}/volume/%s" 139 | } 140 | } 141 | ``` 142 | 143 | ## How to create playlists in your forked-daapd server 144 | 145 | Please have a look [here](https://github.com/ejurgensen/forked-daapd#playlists-and-internet-radio). -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | require('es6-promise').polyfill() 2 | require('isomorphic-fetch') 3 | 4 | const express = require('express') 5 | const logger = require('morgan') 6 | 7 | const indexRouter = require('./routes/index') 8 | const outputsRouter = require('./routes/outputs') 9 | const playerRouter = require('./routes/player') 10 | const playlistsRouter = require('./routes/playlists') 11 | 12 | const app = express() 13 | 14 | app.use(logger('dev')) 15 | app.use(express.json()) 16 | app.use(express.urlencoded({ extended: false })) 17 | 18 | app.use('/', indexRouter) 19 | app.use('/outputs', outputsRouter) 20 | app.use('/player', playerRouter) 21 | app.use('/playlists', playlistsRouter) 22 | 23 | module.exports = app 24 | -------------------------------------------------------------------------------- /bin/www: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /** 4 | * Module dependencies. 5 | */ 6 | 7 | var app = require('../app') 8 | var debug = require('debug')('forked-daapd-homebridge-middleware:server') 9 | var http = require('http') 10 | var logger = require('../libs/logger') 11 | 12 | /** 13 | * Get port from environment and store in Express. 14 | */ 15 | 16 | var port = normalizePort(process.env.PORT || '3000') 17 | app.set('port', port) 18 | 19 | /** 20 | * Create HTTP server. 21 | */ 22 | 23 | var server = http.createServer(app) 24 | 25 | /** 26 | * Listen on provided port, on all network interfaces. 27 | */ 28 | 29 | server.listen(port) 30 | server.on('error', onError) 31 | server.on('listening', onListening) 32 | 33 | /** 34 | * Normalize a port into a number, string, or false. 35 | */ 36 | 37 | function normalizePort (val) { 38 | var port = parseInt(val, 10) 39 | 40 | if (isNaN(port)) { 41 | // named pipe 42 | return val 43 | } 44 | 45 | if (port >= 0) { 46 | // port number 47 | return port 48 | } 49 | 50 | return false 51 | } 52 | 53 | /** 54 | * Event listener for HTTP server "error" event. 55 | */ 56 | 57 | function onError (error) { 58 | if (error.syscall !== 'listen') { 59 | throw error 60 | } 61 | 62 | var bind = typeof port === 'string' 63 | ? 'Pipe ' + port 64 | : 'Port ' + port 65 | 66 | // handle specific listen errors with friendly messages 67 | switch (error.code) { 68 | case 'EACCES': 69 | logger.error(bind + ' requires elevated privileges') 70 | process.exit(1) 71 | break 72 | case 'EADDRINUSE': 73 | logger.error(bind + ' is already in use') 74 | process.exit(1) 75 | break 76 | default: 77 | throw error 78 | } 79 | } 80 | 81 | /** 82 | * Event listener for HTTP server "listening" event. 83 | */ 84 | 85 | function onListening () { 86 | var addr = server.address() 87 | var bind = typeof addr === 'string' 88 | ? 'pipe ' + addr 89 | : 'port ' + addr.port 90 | debug('Listening on ' + bind) 91 | } 92 | -------------------------------------------------------------------------------- /config/homebridge/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "accessories": [ 3 | { 4 | "accessory": "HTTP-RGB", 5 | "name": "ROCK ANTENNE", 6 | "service": "Light", 7 | "switch": { 8 | "status": "http://localhost:3000/playlists/ROCK%20ANTENNE", 9 | "powerOn": "http://localhost:3000/playlists/ROCK%20ANTENNE/play", 10 | "powerOff": "http://localhost:3000/player/stop" 11 | } 12 | }, 13 | { 14 | "accessory": "HTTP-RGB", 15 | "name": "Hallway speaker", 16 | "service": "Light", 17 | "switch": { 18 | "status": "http://localhost:3000/outputs/Hallway", 19 | "powerOn": "http://localhost:3000/outputs/Hallway/state/on", 20 | "powerOff": "http://localhost:3000/outputs/Hallway/state/off" 21 | }, 22 | "brightness": { 23 | "status": "http://localhost:3000/outputs/Hallway/volume", 24 | "url": "http://localhost:3000/outputs/Hallway/volume/%s" 25 | } 26 | } 27 | ] 28 | } -------------------------------------------------------------------------------- /config/index.dist.json: -------------------------------------------------------------------------------- 1 | { 2 | "baseUrl": "http://{hostname or ip of forked-daapd server}:3689/api/" 3 | } -------------------------------------------------------------------------------- /docs/Home.app-Hallway.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moecre/forked-daapd-homebridge-middleware/c4998e49f9ff6124143e6db22ee5ac49715c7a08/docs/Home.app-Hallway.PNG -------------------------------------------------------------------------------- /docs/Home.app-Kitchen.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moecre/forked-daapd-homebridge-middleware/c4998e49f9ff6124143e6db22ee5ac49715c7a08/docs/Home.app-Kitchen.PNG -------------------------------------------------------------------------------- /docs/Home.app-Speaker-Volume.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moecre/forked-daapd-homebridge-middleware/c4998e49f9ff6124143e6db22ee5ac49715c7a08/docs/Home.app-Speaker-Volume.PNG -------------------------------------------------------------------------------- /docs/PM2-status.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moecre/forked-daapd-homebridge-middleware/c4998e49f9ff6124143e6db22ee5ac49715c7a08/docs/PM2-status.png -------------------------------------------------------------------------------- /jsonAPI/Library.js: -------------------------------------------------------------------------------- 1 | const url = require('url').URL 2 | 3 | module.exports = class Library { 4 | 5 | constructor (baseUrl) { 6 | this.baseUrl = baseUrl + 'library' 7 | } 8 | 9 | /** 10 | * List all available playlists 11 | * 12 | * @return {Promise} 13 | */ 14 | playlists () { 15 | return fetch(this.baseUrl + '/playlists') 16 | } 17 | 18 | /** 19 | * List all tracks of one individual playlist 20 | * 21 | * @param {String} playlistId 22 | * @return {Promise} 23 | */ 24 | playlistTracks (playlistId) { 25 | let URL = new url(`/api/library/playlists/${playlistId}/tracks`, this.baseUrl) 26 | return fetch(URL.href) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /jsonAPI/Outputs.js: -------------------------------------------------------------------------------- 1 | const url = require('url').URL 2 | 3 | module.exports = class Outputs { 4 | 5 | constructor (baseUrl) { 6 | this.baseUrl = baseUrl + 'outputs' 7 | } 8 | 9 | /** 10 | * List all available output devices 11 | * 12 | * @return {Promise} 13 | */ 14 | list () { 15 | return fetch(this.baseUrl) 16 | } 17 | 18 | /** 19 | * Control one individual output device 20 | * 21 | * You can un-/select the device and change it's volume. 22 | * 23 | * @param {String} id 24 | * @param {{selected: Boolean, volume: Number}|{selected: Boolean}|{volume: Number}} bodyParams 25 | * @return {Promise} 26 | */ 27 | output (id, bodyParams) { 28 | let URL = new url(`/api/outputs/${id}`, this.baseUrl) 29 | return fetch(URL.href, { 30 | method: 'PUT', 31 | body: JSON.stringify(bodyParams) 32 | }) 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /jsonAPI/Player.js: -------------------------------------------------------------------------------- 1 | module.exports = class Player { 2 | 3 | constructor (baseUrl) { 4 | this.baseUrl = baseUrl + 'player' 5 | } 6 | 7 | /** 8 | * Gets player status 9 | * 10 | * @return {Promise} 11 | */ 12 | status () { 13 | return fetch(this.baseUrl) 14 | } 15 | 16 | /** 17 | * Stops playback 18 | * 19 | * @return {Promise} 20 | */ 21 | stop () { 22 | return fetch(this.baseUrl + '/stop', { 23 | method: 'PUT' 24 | }) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /jsonAPI/Queue.js: -------------------------------------------------------------------------------- 1 | const url = require('url').URL 2 | 3 | module.exports = class Queue { 4 | 5 | constructor (baseUrl) { 6 | this.baseUrl = baseUrl + 'queue' 7 | } 8 | 9 | /** 10 | * List current playback queue 11 | * 12 | * @return {Promise} 13 | */ 14 | list () { 15 | return fetch(this.baseUrl) 16 | } 17 | 18 | /** 19 | * Adds items to the current playback queue 20 | * 21 | * @param {String} uris 22 | * @param {String=} playback 23 | * @param {Number=} playbackFromPosition 24 | * @param {Boolean=} clear 25 | * @param {Boolean=} shuffle 26 | * @return {Promise} 27 | */ 28 | add (uris, playback = '', playbackFromPosition = 0, clear = false, shuffle = false) { 29 | let URL = new url('/api/queue/items/add', this.baseUrl) 30 | URL.searchParams.set('uris', uris) 31 | URL.searchParams.set('playback', String(playback)) 32 | URL.searchParams.set('playback_from_position', String(playbackFromPosition)) 33 | URL.searchParams.set('clear', String(clear)) 34 | URL.searchParams.set('shuffle', String(shuffle)) 35 | return fetch(URL.href, { 36 | method: 'POST' 37 | }) 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /libs/logger.js: -------------------------------------------------------------------------------- 1 | const { createLogger, format, transports } = require('winston') 2 | const { combine, colorize, timestamp, errors, printf } = format 3 | 4 | const outputFormat = printf((info) => { 5 | if (info.stack) { 6 | return `[${info.timestamp}] [${info.level}]: ${info.stack}` 7 | } 8 | return `[${info.timestamp}] [${info.level}]: ${info.message}` 9 | }) 10 | 11 | module.exports = createLogger({ 12 | format: combine( 13 | colorize(), 14 | timestamp({ 15 | format: 'YYYY-MM-DD HH:mm:ss' 16 | }), 17 | errors({ stack: true }), 18 | outputFormat 19 | ), 20 | transports: [ 21 | new transports.Console({ 22 | stderrLevels: ['error'] 23 | }) 24 | ], 25 | exceptionHandlers: [ 26 | new transports.Console({ 27 | stderrLevels: ['error'] 28 | }) 29 | ] 30 | }) 31 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "forked-daapd-homebridge-middleware", 3 | "version": "1.1.2", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "abbrev": { 8 | "version": "1.1.1", 9 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 10 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 11 | "dev": true 12 | }, 13 | "accepts": { 14 | "version": "1.3.5", 15 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.5.tgz", 16 | "integrity": "sha1-63d99gEXI6OxTopywIBcjoZ0a9I=", 17 | "requires": { 18 | "mime-types": "~2.1.18", 19 | "negotiator": "0.6.1" 20 | } 21 | }, 22 | "ansi-align": { 23 | "version": "2.0.0", 24 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", 25 | "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", 26 | "dev": true, 27 | "requires": { 28 | "string-width": "^2.0.0" 29 | } 30 | }, 31 | "ansi-regex": { 32 | "version": "3.0.0", 33 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 34 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 35 | "dev": true 36 | }, 37 | "ansi-styles": { 38 | "version": "3.2.1", 39 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 40 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 41 | "dev": true, 42 | "requires": { 43 | "color-convert": "^1.9.0" 44 | } 45 | }, 46 | "anymatch": { 47 | "version": "2.0.0", 48 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", 49 | "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", 50 | "dev": true, 51 | "requires": { 52 | "micromatch": "^3.1.4", 53 | "normalize-path": "^2.1.1" 54 | }, 55 | "dependencies": { 56 | "normalize-path": { 57 | "version": "2.1.1", 58 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", 59 | "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", 60 | "dev": true, 61 | "requires": { 62 | "remove-trailing-separator": "^1.0.1" 63 | } 64 | } 65 | } 66 | }, 67 | "arr-diff": { 68 | "version": "4.0.0", 69 | "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", 70 | "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", 71 | "dev": true 72 | }, 73 | "arr-flatten": { 74 | "version": "1.1.0", 75 | "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", 76 | "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", 77 | "dev": true 78 | }, 79 | "arr-union": { 80 | "version": "3.1.0", 81 | "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", 82 | "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", 83 | "dev": true 84 | }, 85 | "array-flatten": { 86 | "version": "1.1.1", 87 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 88 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 89 | }, 90 | "array-unique": { 91 | "version": "0.3.2", 92 | "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", 93 | "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", 94 | "dev": true 95 | }, 96 | "assign-symbols": { 97 | "version": "1.0.0", 98 | "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", 99 | "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", 100 | "dev": true 101 | }, 102 | "async": { 103 | "version": "2.6.2", 104 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", 105 | "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", 106 | "requires": { 107 | "lodash": "^4.17.11" 108 | } 109 | }, 110 | "async-each": { 111 | "version": "1.0.1", 112 | "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", 113 | "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", 114 | "dev": true 115 | }, 116 | "atob": { 117 | "version": "2.1.2", 118 | "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", 119 | "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", 120 | "dev": true 121 | }, 122 | "balanced-match": { 123 | "version": "1.0.0", 124 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 125 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 126 | "dev": true 127 | }, 128 | "base": { 129 | "version": "0.11.2", 130 | "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", 131 | "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", 132 | "dev": true, 133 | "requires": { 134 | "cache-base": "^1.0.1", 135 | "class-utils": "^0.3.5", 136 | "component-emitter": "^1.2.1", 137 | "define-property": "^1.0.0", 138 | "isobject": "^3.0.1", 139 | "mixin-deep": "^1.2.0", 140 | "pascalcase": "^0.1.1" 141 | }, 142 | "dependencies": { 143 | "define-property": { 144 | "version": "1.0.0", 145 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", 146 | "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", 147 | "dev": true, 148 | "requires": { 149 | "is-descriptor": "^1.0.0" 150 | } 151 | }, 152 | "is-accessor-descriptor": { 153 | "version": "1.0.0", 154 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", 155 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", 156 | "dev": true, 157 | "requires": { 158 | "kind-of": "^6.0.0" 159 | } 160 | }, 161 | "is-data-descriptor": { 162 | "version": "1.0.0", 163 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", 164 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", 165 | "dev": true, 166 | "requires": { 167 | "kind-of": "^6.0.0" 168 | } 169 | }, 170 | "is-descriptor": { 171 | "version": "1.0.2", 172 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", 173 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", 174 | "dev": true, 175 | "requires": { 176 | "is-accessor-descriptor": "^1.0.0", 177 | "is-data-descriptor": "^1.0.0", 178 | "kind-of": "^6.0.2" 179 | } 180 | } 181 | } 182 | }, 183 | "basic-auth": { 184 | "version": "2.0.1", 185 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", 186 | "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", 187 | "requires": { 188 | "safe-buffer": "5.1.2" 189 | } 190 | }, 191 | "binary-extensions": { 192 | "version": "1.13.0", 193 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.13.0.tgz", 194 | "integrity": "sha512-EgmjVLMn22z7eGGv3kcnHwSnJXmFHjISTY9E/S5lIcTD3Oxw05QTcBLNkJFzcb3cNueUdF/IN4U+d78V0zO8Hw==", 195 | "dev": true 196 | }, 197 | "body-parser": { 198 | "version": "1.18.3", 199 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.18.3.tgz", 200 | "integrity": "sha1-WykhmP/dVTs6DyDe0FkrlWlVyLQ=", 201 | "requires": { 202 | "bytes": "3.0.0", 203 | "content-type": "~1.0.4", 204 | "debug": "2.6.9", 205 | "depd": "~1.1.2", 206 | "http-errors": "~1.6.3", 207 | "iconv-lite": "0.4.23", 208 | "on-finished": "~2.3.0", 209 | "qs": "6.5.2", 210 | "raw-body": "2.3.3", 211 | "type-is": "~1.6.16" 212 | } 213 | }, 214 | "boxen": { 215 | "version": "1.3.0", 216 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", 217 | "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", 218 | "dev": true, 219 | "requires": { 220 | "ansi-align": "^2.0.0", 221 | "camelcase": "^4.0.0", 222 | "chalk": "^2.0.1", 223 | "cli-boxes": "^1.0.0", 224 | "string-width": "^2.0.0", 225 | "term-size": "^1.2.0", 226 | "widest-line": "^2.0.0" 227 | } 228 | }, 229 | "brace-expansion": { 230 | "version": "1.1.11", 231 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 232 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 233 | "dev": true, 234 | "requires": { 235 | "balanced-match": "^1.0.0", 236 | "concat-map": "0.0.1" 237 | } 238 | }, 239 | "braces": { 240 | "version": "2.3.2", 241 | "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", 242 | "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", 243 | "dev": true, 244 | "requires": { 245 | "arr-flatten": "^1.1.0", 246 | "array-unique": "^0.3.2", 247 | "extend-shallow": "^2.0.1", 248 | "fill-range": "^4.0.0", 249 | "isobject": "^3.0.1", 250 | "repeat-element": "^1.1.2", 251 | "snapdragon": "^0.8.1", 252 | "snapdragon-node": "^2.0.1", 253 | "split-string": "^3.0.2", 254 | "to-regex": "^3.0.1" 255 | }, 256 | "dependencies": { 257 | "extend-shallow": { 258 | "version": "2.0.1", 259 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 260 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 261 | "dev": true, 262 | "requires": { 263 | "is-extendable": "^0.1.0" 264 | } 265 | } 266 | } 267 | }, 268 | "bytes": { 269 | "version": "3.0.0", 270 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", 271 | "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" 272 | }, 273 | "cache-base": { 274 | "version": "1.0.1", 275 | "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", 276 | "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", 277 | "dev": true, 278 | "requires": { 279 | "collection-visit": "^1.0.0", 280 | "component-emitter": "^1.2.1", 281 | "get-value": "^2.0.6", 282 | "has-value": "^1.0.0", 283 | "isobject": "^3.0.1", 284 | "set-value": "^2.0.0", 285 | "to-object-path": "^0.3.0", 286 | "union-value": "^1.0.0", 287 | "unset-value": "^1.0.0" 288 | } 289 | }, 290 | "camelcase": { 291 | "version": "4.1.0", 292 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", 293 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", 294 | "dev": true 295 | }, 296 | "capture-stack-trace": { 297 | "version": "1.0.1", 298 | "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", 299 | "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==", 300 | "dev": true 301 | }, 302 | "chalk": { 303 | "version": "2.4.2", 304 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 305 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 306 | "dev": true, 307 | "requires": { 308 | "ansi-styles": "^3.2.1", 309 | "escape-string-regexp": "^1.0.5", 310 | "supports-color": "^5.3.0" 311 | } 312 | }, 313 | "chokidar": { 314 | "version": "2.1.2", 315 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-2.1.2.tgz", 316 | "integrity": "sha512-IwXUx0FXc5ibYmPC2XeEj5mpXoV66sR+t3jqu2NS2GYwCktt3KF1/Qqjws/NkegajBA4RbZ5+DDwlOiJsxDHEg==", 317 | "dev": true, 318 | "requires": { 319 | "anymatch": "^2.0.0", 320 | "async-each": "^1.0.1", 321 | "braces": "^2.3.2", 322 | "fsevents": "^1.2.7", 323 | "glob-parent": "^3.1.0", 324 | "inherits": "^2.0.3", 325 | "is-binary-path": "^1.0.0", 326 | "is-glob": "^4.0.0", 327 | "normalize-path": "^3.0.0", 328 | "path-is-absolute": "^1.0.0", 329 | "readdirp": "^2.2.1", 330 | "upath": "^1.1.0" 331 | } 332 | }, 333 | "ci-info": { 334 | "version": "1.6.0", 335 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", 336 | "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==", 337 | "dev": true 338 | }, 339 | "class-utils": { 340 | "version": "0.3.6", 341 | "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", 342 | "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", 343 | "dev": true, 344 | "requires": { 345 | "arr-union": "^3.1.0", 346 | "define-property": "^0.2.5", 347 | "isobject": "^3.0.0", 348 | "static-extend": "^0.1.1" 349 | }, 350 | "dependencies": { 351 | "define-property": { 352 | "version": "0.2.5", 353 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", 354 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", 355 | "dev": true, 356 | "requires": { 357 | "is-descriptor": "^0.1.0" 358 | } 359 | } 360 | } 361 | }, 362 | "cli-boxes": { 363 | "version": "1.0.0", 364 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", 365 | "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", 366 | "dev": true 367 | }, 368 | "collection-visit": { 369 | "version": "1.0.0", 370 | "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", 371 | "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", 372 | "dev": true, 373 | "requires": { 374 | "map-visit": "^1.0.0", 375 | "object-visit": "^1.0.0" 376 | } 377 | }, 378 | "color": { 379 | "version": "3.0.0", 380 | "resolved": "https://registry.npmjs.org/color/-/color-3.0.0.tgz", 381 | "integrity": "sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w==", 382 | "requires": { 383 | "color-convert": "^1.9.1", 384 | "color-string": "^1.5.2" 385 | } 386 | }, 387 | "color-convert": { 388 | "version": "1.9.3", 389 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 390 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 391 | "requires": { 392 | "color-name": "1.1.3" 393 | } 394 | }, 395 | "color-name": { 396 | "version": "1.1.3", 397 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 398 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 399 | }, 400 | "color-string": { 401 | "version": "1.5.3", 402 | "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.5.3.tgz", 403 | "integrity": "sha512-dC2C5qeWoYkxki5UAXapdjqO672AM4vZuPGRQfO8b5HKuKGBbKWpITyDYN7TOFKvRW7kOgAn3746clDBMDJyQw==", 404 | "requires": { 405 | "color-name": "^1.0.0", 406 | "simple-swizzle": "^0.2.2" 407 | } 408 | }, 409 | "colornames": { 410 | "version": "1.1.1", 411 | "resolved": "https://registry.npmjs.org/colornames/-/colornames-1.1.1.tgz", 412 | "integrity": "sha1-+IiQMGhcfE/54qVZ9Qd+t2qBb5Y=" 413 | }, 414 | "colors": { 415 | "version": "1.3.3", 416 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.3.3.tgz", 417 | "integrity": "sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg==" 418 | }, 419 | "colorspace": { 420 | "version": "1.1.1", 421 | "resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.1.tgz", 422 | "integrity": "sha512-pI3btWyiuz7Ken0BWh9Elzsmv2bM9AhA7psXib4anUXy/orfZ/E0MbQwhSOG/9L8hLlalqrU0UhOuqxW1YjmVw==", 423 | "requires": { 424 | "color": "3.0.x", 425 | "text-hex": "1.0.x" 426 | } 427 | }, 428 | "component-emitter": { 429 | "version": "1.2.1", 430 | "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", 431 | "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", 432 | "dev": true 433 | }, 434 | "concat-map": { 435 | "version": "0.0.1", 436 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 437 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 438 | "dev": true 439 | }, 440 | "configstore": { 441 | "version": "3.1.2", 442 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.2.tgz", 443 | "integrity": "sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw==", 444 | "dev": true, 445 | "requires": { 446 | "dot-prop": "^4.1.0", 447 | "graceful-fs": "^4.1.2", 448 | "make-dir": "^1.0.0", 449 | "unique-string": "^1.0.0", 450 | "write-file-atomic": "^2.0.0", 451 | "xdg-basedir": "^3.0.0" 452 | } 453 | }, 454 | "content-disposition": { 455 | "version": "0.5.2", 456 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.2.tgz", 457 | "integrity": "sha1-DPaLud318r55YcOoUXjLhdunjLQ=" 458 | }, 459 | "content-type": { 460 | "version": "1.0.4", 461 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 462 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 463 | }, 464 | "cookie": { 465 | "version": "0.3.1", 466 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", 467 | "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" 468 | }, 469 | "cookie-signature": { 470 | "version": "1.0.6", 471 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 472 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 473 | }, 474 | "copy-descriptor": { 475 | "version": "0.1.1", 476 | "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", 477 | "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", 478 | "dev": true 479 | }, 480 | "core-util-is": { 481 | "version": "1.0.2", 482 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 483 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 484 | }, 485 | "create-error-class": { 486 | "version": "3.0.2", 487 | "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", 488 | "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", 489 | "dev": true, 490 | "requires": { 491 | "capture-stack-trace": "^1.0.0" 492 | } 493 | }, 494 | "cross-spawn": { 495 | "version": "5.1.0", 496 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 497 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 498 | "dev": true, 499 | "requires": { 500 | "lru-cache": "^4.0.1", 501 | "shebang-command": "^1.2.0", 502 | "which": "^1.2.9" 503 | } 504 | }, 505 | "crypto-random-string": { 506 | "version": "1.0.0", 507 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", 508 | "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", 509 | "dev": true 510 | }, 511 | "debug": { 512 | "version": "2.6.9", 513 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 514 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 515 | "requires": { 516 | "ms": "2.0.0" 517 | } 518 | }, 519 | "decode-uri-component": { 520 | "version": "0.2.0", 521 | "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", 522 | "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", 523 | "dev": true 524 | }, 525 | "deep-extend": { 526 | "version": "0.6.0", 527 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 528 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 529 | "dev": true 530 | }, 531 | "define-property": { 532 | "version": "2.0.2", 533 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", 534 | "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", 535 | "dev": true, 536 | "requires": { 537 | "is-descriptor": "^1.0.2", 538 | "isobject": "^3.0.1" 539 | }, 540 | "dependencies": { 541 | "is-accessor-descriptor": { 542 | "version": "1.0.0", 543 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", 544 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", 545 | "dev": true, 546 | "requires": { 547 | "kind-of": "^6.0.0" 548 | } 549 | }, 550 | "is-data-descriptor": { 551 | "version": "1.0.0", 552 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", 553 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", 554 | "dev": true, 555 | "requires": { 556 | "kind-of": "^6.0.0" 557 | } 558 | }, 559 | "is-descriptor": { 560 | "version": "1.0.2", 561 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", 562 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", 563 | "dev": true, 564 | "requires": { 565 | "is-accessor-descriptor": "^1.0.0", 566 | "is-data-descriptor": "^1.0.0", 567 | "kind-of": "^6.0.2" 568 | } 569 | } 570 | } 571 | }, 572 | "depd": { 573 | "version": "1.1.2", 574 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 575 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 576 | }, 577 | "destroy": { 578 | "version": "1.0.4", 579 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 580 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 581 | }, 582 | "diagnostics": { 583 | "version": "1.1.1", 584 | "resolved": "https://registry.npmjs.org/diagnostics/-/diagnostics-1.1.1.tgz", 585 | "integrity": "sha512-8wn1PmdunLJ9Tqbx+Fx/ZEuHfJf4NKSN2ZBj7SJC/OWRWha843+WsTjqMe1B5E3p28jqBlp+mJ2fPVxPyNgYKQ==", 586 | "requires": { 587 | "colorspace": "1.1.x", 588 | "enabled": "1.0.x", 589 | "kuler": "1.0.x" 590 | } 591 | }, 592 | "dot-prop": { 593 | "version": "4.2.0", 594 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", 595 | "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", 596 | "dev": true, 597 | "requires": { 598 | "is-obj": "^1.0.0" 599 | } 600 | }, 601 | "duplexer3": { 602 | "version": "0.1.4", 603 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 604 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", 605 | "dev": true 606 | }, 607 | "ee-first": { 608 | "version": "1.1.1", 609 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 610 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 611 | }, 612 | "enabled": { 613 | "version": "1.0.2", 614 | "resolved": "https://registry.npmjs.org/enabled/-/enabled-1.0.2.tgz", 615 | "integrity": "sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M=", 616 | "requires": { 617 | "env-variable": "0.0.x" 618 | } 619 | }, 620 | "encodeurl": { 621 | "version": "1.0.2", 622 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 623 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 624 | }, 625 | "encoding": { 626 | "version": "0.1.12", 627 | "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", 628 | "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", 629 | "requires": { 630 | "iconv-lite": "~0.4.13" 631 | } 632 | }, 633 | "env-variable": { 634 | "version": "0.0.5", 635 | "resolved": "https://registry.npmjs.org/env-variable/-/env-variable-0.0.5.tgz", 636 | "integrity": "sha512-zoB603vQReOFvTg5xMl9I1P2PnHsHQQKTEowsKKD7nseUfJq6UWzK+4YtlWUO1nhiQUxe6XMkk+JleSZD1NZFA==" 637 | }, 638 | "es6-promise": { 639 | "version": "4.2.6", 640 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.6.tgz", 641 | "integrity": "sha512-aRVgGdnmW2OiySVPUC9e6m+plolMAJKjZnQlCwNSuK5yQ0JN61DZSO1X1Ufd1foqWRAlig0rhduTCHe7sVtK5Q==" 642 | }, 643 | "escape-html": { 644 | "version": "1.0.3", 645 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 646 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 647 | }, 648 | "escape-string-regexp": { 649 | "version": "1.0.5", 650 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 651 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 652 | "dev": true 653 | }, 654 | "etag": { 655 | "version": "1.8.1", 656 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 657 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 658 | }, 659 | "execa": { 660 | "version": "0.7.0", 661 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", 662 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", 663 | "dev": true, 664 | "requires": { 665 | "cross-spawn": "^5.0.1", 666 | "get-stream": "^3.0.0", 667 | "is-stream": "^1.1.0", 668 | "npm-run-path": "^2.0.0", 669 | "p-finally": "^1.0.0", 670 | "signal-exit": "^3.0.0", 671 | "strip-eof": "^1.0.0" 672 | } 673 | }, 674 | "expand-brackets": { 675 | "version": "2.1.4", 676 | "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", 677 | "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", 678 | "dev": true, 679 | "requires": { 680 | "debug": "^2.3.3", 681 | "define-property": "^0.2.5", 682 | "extend-shallow": "^2.0.1", 683 | "posix-character-classes": "^0.1.0", 684 | "regex-not": "^1.0.0", 685 | "snapdragon": "^0.8.1", 686 | "to-regex": "^3.0.1" 687 | }, 688 | "dependencies": { 689 | "define-property": { 690 | "version": "0.2.5", 691 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", 692 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", 693 | "dev": true, 694 | "requires": { 695 | "is-descriptor": "^0.1.0" 696 | } 697 | }, 698 | "extend-shallow": { 699 | "version": "2.0.1", 700 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 701 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 702 | "dev": true, 703 | "requires": { 704 | "is-extendable": "^0.1.0" 705 | } 706 | } 707 | } 708 | }, 709 | "express": { 710 | "version": "4.16.4", 711 | "resolved": "https://registry.npmjs.org/express/-/express-4.16.4.tgz", 712 | "integrity": "sha512-j12Uuyb4FMrd/qQAm6uCHAkPtO8FDTRJZBDd5D2KOL2eLaz1yUNdUB/NOIyq0iU4q4cFarsUCrnFDPBcnksuOg==", 713 | "requires": { 714 | "accepts": "~1.3.5", 715 | "array-flatten": "1.1.1", 716 | "body-parser": "1.18.3", 717 | "content-disposition": "0.5.2", 718 | "content-type": "~1.0.4", 719 | "cookie": "0.3.1", 720 | "cookie-signature": "1.0.6", 721 | "debug": "2.6.9", 722 | "depd": "~1.1.2", 723 | "encodeurl": "~1.0.2", 724 | "escape-html": "~1.0.3", 725 | "etag": "~1.8.1", 726 | "finalhandler": "1.1.1", 727 | "fresh": "0.5.2", 728 | "merge-descriptors": "1.0.1", 729 | "methods": "~1.1.2", 730 | "on-finished": "~2.3.0", 731 | "parseurl": "~1.3.2", 732 | "path-to-regexp": "0.1.7", 733 | "proxy-addr": "~2.0.4", 734 | "qs": "6.5.2", 735 | "range-parser": "~1.2.0", 736 | "safe-buffer": "5.1.2", 737 | "send": "0.16.2", 738 | "serve-static": "1.13.2", 739 | "setprototypeof": "1.1.0", 740 | "statuses": "~1.4.0", 741 | "type-is": "~1.6.16", 742 | "utils-merge": "1.0.1", 743 | "vary": "~1.1.2" 744 | } 745 | }, 746 | "extend-shallow": { 747 | "version": "3.0.2", 748 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", 749 | "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", 750 | "dev": true, 751 | "requires": { 752 | "assign-symbols": "^1.0.0", 753 | "is-extendable": "^1.0.1" 754 | }, 755 | "dependencies": { 756 | "is-extendable": { 757 | "version": "1.0.1", 758 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", 759 | "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", 760 | "dev": true, 761 | "requires": { 762 | "is-plain-object": "^2.0.4" 763 | } 764 | } 765 | } 766 | }, 767 | "extglob": { 768 | "version": "2.0.4", 769 | "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", 770 | "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", 771 | "dev": true, 772 | "requires": { 773 | "array-unique": "^0.3.2", 774 | "define-property": "^1.0.0", 775 | "expand-brackets": "^2.1.4", 776 | "extend-shallow": "^2.0.1", 777 | "fragment-cache": "^0.2.1", 778 | "regex-not": "^1.0.0", 779 | "snapdragon": "^0.8.1", 780 | "to-regex": "^3.0.1" 781 | }, 782 | "dependencies": { 783 | "define-property": { 784 | "version": "1.0.0", 785 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", 786 | "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", 787 | "dev": true, 788 | "requires": { 789 | "is-descriptor": "^1.0.0" 790 | } 791 | }, 792 | "extend-shallow": { 793 | "version": "2.0.1", 794 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 795 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 796 | "dev": true, 797 | "requires": { 798 | "is-extendable": "^0.1.0" 799 | } 800 | }, 801 | "is-accessor-descriptor": { 802 | "version": "1.0.0", 803 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", 804 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", 805 | "dev": true, 806 | "requires": { 807 | "kind-of": "^6.0.0" 808 | } 809 | }, 810 | "is-data-descriptor": { 811 | "version": "1.0.0", 812 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", 813 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", 814 | "dev": true, 815 | "requires": { 816 | "kind-of": "^6.0.0" 817 | } 818 | }, 819 | "is-descriptor": { 820 | "version": "1.0.2", 821 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", 822 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", 823 | "dev": true, 824 | "requires": { 825 | "is-accessor-descriptor": "^1.0.0", 826 | "is-data-descriptor": "^1.0.0", 827 | "kind-of": "^6.0.2" 828 | } 829 | } 830 | } 831 | }, 832 | "fast-safe-stringify": { 833 | "version": "2.0.6", 834 | "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.0.6.tgz", 835 | "integrity": "sha512-q8BZ89jjc+mz08rSxROs8VsrBBcn1SIw1kq9NjolL509tkABRk9io01RAjSaEv1Xb2uFLt8VtRiZbGp5H8iDtg==" 836 | }, 837 | "fecha": { 838 | "version": "2.3.3", 839 | "resolved": "https://registry.npmjs.org/fecha/-/fecha-2.3.3.tgz", 840 | "integrity": "sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg==" 841 | }, 842 | "fill-range": { 843 | "version": "4.0.0", 844 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", 845 | "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", 846 | "dev": true, 847 | "requires": { 848 | "extend-shallow": "^2.0.1", 849 | "is-number": "^3.0.0", 850 | "repeat-string": "^1.6.1", 851 | "to-regex-range": "^2.1.0" 852 | }, 853 | "dependencies": { 854 | "extend-shallow": { 855 | "version": "2.0.1", 856 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 857 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 858 | "dev": true, 859 | "requires": { 860 | "is-extendable": "^0.1.0" 861 | } 862 | } 863 | } 864 | }, 865 | "finalhandler": { 866 | "version": "1.1.1", 867 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.1.tgz", 868 | "integrity": "sha512-Y1GUDo39ez4aHAw7MysnUD5JzYX+WaIj8I57kO3aEPT1fFRL4sr7mjei97FgnwhAyyzRYmQZaTHb2+9uZ1dPtg==", 869 | "requires": { 870 | "debug": "2.6.9", 871 | "encodeurl": "~1.0.2", 872 | "escape-html": "~1.0.3", 873 | "on-finished": "~2.3.0", 874 | "parseurl": "~1.3.2", 875 | "statuses": "~1.4.0", 876 | "unpipe": "~1.0.0" 877 | } 878 | }, 879 | "for-in": { 880 | "version": "1.0.2", 881 | "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", 882 | "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", 883 | "dev": true 884 | }, 885 | "forwarded": { 886 | "version": "0.1.2", 887 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 888 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 889 | }, 890 | "fragment-cache": { 891 | "version": "0.2.1", 892 | "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", 893 | "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", 894 | "dev": true, 895 | "requires": { 896 | "map-cache": "^0.2.2" 897 | } 898 | }, 899 | "fresh": { 900 | "version": "0.5.2", 901 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 902 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 903 | }, 904 | "fsevents": { 905 | "version": "1.2.7", 906 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.7.tgz", 907 | "integrity": "sha512-Pxm6sI2MeBD7RdD12RYsqaP0nMiwx8eZBXCa6z2L+mRHm2DYrOYwihmhjpkdjUHwQhslWQjRpEgNq4XvBmaAuw==", 908 | "dev": true, 909 | "optional": true, 910 | "requires": { 911 | "nan": "^2.9.2", 912 | "node-pre-gyp": "^0.10.0" 913 | }, 914 | "dependencies": { 915 | "abbrev": { 916 | "version": "1.1.1", 917 | "bundled": true, 918 | "dev": true, 919 | "optional": true 920 | }, 921 | "ansi-regex": { 922 | "version": "2.1.1", 923 | "bundled": true, 924 | "dev": true 925 | }, 926 | "aproba": { 927 | "version": "1.2.0", 928 | "bundled": true, 929 | "dev": true, 930 | "optional": true 931 | }, 932 | "are-we-there-yet": { 933 | "version": "1.1.5", 934 | "bundled": true, 935 | "dev": true, 936 | "optional": true, 937 | "requires": { 938 | "delegates": "^1.0.0", 939 | "readable-stream": "^2.0.6" 940 | } 941 | }, 942 | "balanced-match": { 943 | "version": "1.0.0", 944 | "bundled": true, 945 | "dev": true 946 | }, 947 | "brace-expansion": { 948 | "version": "1.1.11", 949 | "bundled": true, 950 | "dev": true, 951 | "requires": { 952 | "balanced-match": "^1.0.0", 953 | "concat-map": "0.0.1" 954 | } 955 | }, 956 | "chownr": { 957 | "version": "1.1.1", 958 | "bundled": true, 959 | "dev": true, 960 | "optional": true 961 | }, 962 | "code-point-at": { 963 | "version": "1.1.0", 964 | "bundled": true, 965 | "dev": true 966 | }, 967 | "concat-map": { 968 | "version": "0.0.1", 969 | "bundled": true, 970 | "dev": true 971 | }, 972 | "console-control-strings": { 973 | "version": "1.1.0", 974 | "bundled": true, 975 | "dev": true 976 | }, 977 | "core-util-is": { 978 | "version": "1.0.2", 979 | "bundled": true, 980 | "dev": true, 981 | "optional": true 982 | }, 983 | "debug": { 984 | "version": "2.6.9", 985 | "bundled": true, 986 | "dev": true, 987 | "optional": true, 988 | "requires": { 989 | "ms": "2.0.0" 990 | } 991 | }, 992 | "deep-extend": { 993 | "version": "0.6.0", 994 | "bundled": true, 995 | "dev": true, 996 | "optional": true 997 | }, 998 | "delegates": { 999 | "version": "1.0.0", 1000 | "bundled": true, 1001 | "dev": true, 1002 | "optional": true 1003 | }, 1004 | "detect-libc": { 1005 | "version": "1.0.3", 1006 | "bundled": true, 1007 | "dev": true, 1008 | "optional": true 1009 | }, 1010 | "fs-minipass": { 1011 | "version": "1.2.5", 1012 | "bundled": true, 1013 | "dev": true, 1014 | "optional": true, 1015 | "requires": { 1016 | "minipass": "^2.2.1" 1017 | } 1018 | }, 1019 | "fs.realpath": { 1020 | "version": "1.0.0", 1021 | "bundled": true, 1022 | "dev": true, 1023 | "optional": true 1024 | }, 1025 | "gauge": { 1026 | "version": "2.7.4", 1027 | "bundled": true, 1028 | "dev": true, 1029 | "optional": true, 1030 | "requires": { 1031 | "aproba": "^1.0.3", 1032 | "console-control-strings": "^1.0.0", 1033 | "has-unicode": "^2.0.0", 1034 | "object-assign": "^4.1.0", 1035 | "signal-exit": "^3.0.0", 1036 | "string-width": "^1.0.1", 1037 | "strip-ansi": "^3.0.1", 1038 | "wide-align": "^1.1.0" 1039 | } 1040 | }, 1041 | "glob": { 1042 | "version": "7.1.3", 1043 | "bundled": true, 1044 | "dev": true, 1045 | "optional": true, 1046 | "requires": { 1047 | "fs.realpath": "^1.0.0", 1048 | "inflight": "^1.0.4", 1049 | "inherits": "2", 1050 | "minimatch": "^3.0.4", 1051 | "once": "^1.3.0", 1052 | "path-is-absolute": "^1.0.0" 1053 | } 1054 | }, 1055 | "has-unicode": { 1056 | "version": "2.0.1", 1057 | "bundled": true, 1058 | "dev": true, 1059 | "optional": true 1060 | }, 1061 | "iconv-lite": { 1062 | "version": "0.4.24", 1063 | "bundled": true, 1064 | "dev": true, 1065 | "optional": true, 1066 | "requires": { 1067 | "safer-buffer": ">= 2.1.2 < 3" 1068 | } 1069 | }, 1070 | "ignore-walk": { 1071 | "version": "3.0.1", 1072 | "bundled": true, 1073 | "dev": true, 1074 | "optional": true, 1075 | "requires": { 1076 | "minimatch": "^3.0.4" 1077 | } 1078 | }, 1079 | "inflight": { 1080 | "version": "1.0.6", 1081 | "bundled": true, 1082 | "dev": true, 1083 | "optional": true, 1084 | "requires": { 1085 | "once": "^1.3.0", 1086 | "wrappy": "1" 1087 | } 1088 | }, 1089 | "inherits": { 1090 | "version": "2.0.3", 1091 | "bundled": true, 1092 | "dev": true 1093 | }, 1094 | "ini": { 1095 | "version": "1.3.5", 1096 | "bundled": true, 1097 | "dev": true, 1098 | "optional": true 1099 | }, 1100 | "is-fullwidth-code-point": { 1101 | "version": "1.0.0", 1102 | "bundled": true, 1103 | "dev": true, 1104 | "requires": { 1105 | "number-is-nan": "^1.0.0" 1106 | } 1107 | }, 1108 | "isarray": { 1109 | "version": "1.0.0", 1110 | "bundled": true, 1111 | "dev": true, 1112 | "optional": true 1113 | }, 1114 | "minimatch": { 1115 | "version": "3.0.4", 1116 | "bundled": true, 1117 | "dev": true, 1118 | "requires": { 1119 | "brace-expansion": "^1.1.7" 1120 | } 1121 | }, 1122 | "minimist": { 1123 | "version": "0.0.8", 1124 | "bundled": true, 1125 | "dev": true 1126 | }, 1127 | "minipass": { 1128 | "version": "2.3.5", 1129 | "bundled": true, 1130 | "dev": true, 1131 | "requires": { 1132 | "safe-buffer": "^5.1.2", 1133 | "yallist": "^3.0.0" 1134 | } 1135 | }, 1136 | "minizlib": { 1137 | "version": "1.2.1", 1138 | "bundled": true, 1139 | "dev": true, 1140 | "optional": true, 1141 | "requires": { 1142 | "minipass": "^2.2.1" 1143 | } 1144 | }, 1145 | "mkdirp": { 1146 | "version": "0.5.1", 1147 | "bundled": true, 1148 | "dev": true, 1149 | "requires": { 1150 | "minimist": "0.0.8" 1151 | } 1152 | }, 1153 | "ms": { 1154 | "version": "2.0.0", 1155 | "bundled": true, 1156 | "dev": true, 1157 | "optional": true 1158 | }, 1159 | "needle": { 1160 | "version": "2.2.4", 1161 | "bundled": true, 1162 | "dev": true, 1163 | "optional": true, 1164 | "requires": { 1165 | "debug": "^2.1.2", 1166 | "iconv-lite": "^0.4.4", 1167 | "sax": "^1.2.4" 1168 | } 1169 | }, 1170 | "node-pre-gyp": { 1171 | "version": "0.10.3", 1172 | "bundled": true, 1173 | "dev": true, 1174 | "optional": true, 1175 | "requires": { 1176 | "detect-libc": "^1.0.2", 1177 | "mkdirp": "^0.5.1", 1178 | "needle": "^2.2.1", 1179 | "nopt": "^4.0.1", 1180 | "npm-packlist": "^1.1.6", 1181 | "npmlog": "^4.0.2", 1182 | "rc": "^1.2.7", 1183 | "rimraf": "^2.6.1", 1184 | "semver": "^5.3.0", 1185 | "tar": "^4" 1186 | } 1187 | }, 1188 | "nopt": { 1189 | "version": "4.0.1", 1190 | "bundled": true, 1191 | "dev": true, 1192 | "optional": true, 1193 | "requires": { 1194 | "abbrev": "1", 1195 | "osenv": "^0.1.4" 1196 | } 1197 | }, 1198 | "npm-bundled": { 1199 | "version": "1.0.5", 1200 | "bundled": true, 1201 | "dev": true, 1202 | "optional": true 1203 | }, 1204 | "npm-packlist": { 1205 | "version": "1.2.0", 1206 | "bundled": true, 1207 | "dev": true, 1208 | "optional": true, 1209 | "requires": { 1210 | "ignore-walk": "^3.0.1", 1211 | "npm-bundled": "^1.0.1" 1212 | } 1213 | }, 1214 | "npmlog": { 1215 | "version": "4.1.2", 1216 | "bundled": true, 1217 | "dev": true, 1218 | "optional": true, 1219 | "requires": { 1220 | "are-we-there-yet": "~1.1.2", 1221 | "console-control-strings": "~1.1.0", 1222 | "gauge": "~2.7.3", 1223 | "set-blocking": "~2.0.0" 1224 | } 1225 | }, 1226 | "number-is-nan": { 1227 | "version": "1.0.1", 1228 | "bundled": true, 1229 | "dev": true 1230 | }, 1231 | "object-assign": { 1232 | "version": "4.1.1", 1233 | "bundled": true, 1234 | "dev": true, 1235 | "optional": true 1236 | }, 1237 | "once": { 1238 | "version": "1.4.0", 1239 | "bundled": true, 1240 | "dev": true, 1241 | "requires": { 1242 | "wrappy": "1" 1243 | } 1244 | }, 1245 | "os-homedir": { 1246 | "version": "1.0.2", 1247 | "bundled": true, 1248 | "dev": true, 1249 | "optional": true 1250 | }, 1251 | "os-tmpdir": { 1252 | "version": "1.0.2", 1253 | "bundled": true, 1254 | "dev": true, 1255 | "optional": true 1256 | }, 1257 | "osenv": { 1258 | "version": "0.1.5", 1259 | "bundled": true, 1260 | "dev": true, 1261 | "optional": true, 1262 | "requires": { 1263 | "os-homedir": "^1.0.0", 1264 | "os-tmpdir": "^1.0.0" 1265 | } 1266 | }, 1267 | "path-is-absolute": { 1268 | "version": "1.0.1", 1269 | "bundled": true, 1270 | "dev": true, 1271 | "optional": true 1272 | }, 1273 | "process-nextick-args": { 1274 | "version": "2.0.0", 1275 | "bundled": true, 1276 | "dev": true, 1277 | "optional": true 1278 | }, 1279 | "rc": { 1280 | "version": "1.2.8", 1281 | "bundled": true, 1282 | "dev": true, 1283 | "optional": true, 1284 | "requires": { 1285 | "deep-extend": "^0.6.0", 1286 | "ini": "~1.3.0", 1287 | "minimist": "^1.2.0", 1288 | "strip-json-comments": "~2.0.1" 1289 | }, 1290 | "dependencies": { 1291 | "minimist": { 1292 | "version": "1.2.0", 1293 | "bundled": true, 1294 | "dev": true, 1295 | "optional": true 1296 | } 1297 | } 1298 | }, 1299 | "readable-stream": { 1300 | "version": "2.3.6", 1301 | "bundled": true, 1302 | "dev": true, 1303 | "optional": true, 1304 | "requires": { 1305 | "core-util-is": "~1.0.0", 1306 | "inherits": "~2.0.3", 1307 | "isarray": "~1.0.0", 1308 | "process-nextick-args": "~2.0.0", 1309 | "safe-buffer": "~5.1.1", 1310 | "string_decoder": "~1.1.1", 1311 | "util-deprecate": "~1.0.1" 1312 | } 1313 | }, 1314 | "rimraf": { 1315 | "version": "2.6.3", 1316 | "bundled": true, 1317 | "dev": true, 1318 | "optional": true, 1319 | "requires": { 1320 | "glob": "^7.1.3" 1321 | } 1322 | }, 1323 | "safe-buffer": { 1324 | "version": "5.1.2", 1325 | "bundled": true, 1326 | "dev": true 1327 | }, 1328 | "safer-buffer": { 1329 | "version": "2.1.2", 1330 | "bundled": true, 1331 | "dev": true, 1332 | "optional": true 1333 | }, 1334 | "sax": { 1335 | "version": "1.2.4", 1336 | "bundled": true, 1337 | "dev": true, 1338 | "optional": true 1339 | }, 1340 | "semver": { 1341 | "version": "5.6.0", 1342 | "bundled": true, 1343 | "dev": true, 1344 | "optional": true 1345 | }, 1346 | "set-blocking": { 1347 | "version": "2.0.0", 1348 | "bundled": true, 1349 | "dev": true, 1350 | "optional": true 1351 | }, 1352 | "signal-exit": { 1353 | "version": "3.0.2", 1354 | "bundled": true, 1355 | "dev": true, 1356 | "optional": true 1357 | }, 1358 | "string-width": { 1359 | "version": "1.0.2", 1360 | "bundled": true, 1361 | "dev": true, 1362 | "requires": { 1363 | "code-point-at": "^1.0.0", 1364 | "is-fullwidth-code-point": "^1.0.0", 1365 | "strip-ansi": "^3.0.0" 1366 | } 1367 | }, 1368 | "string_decoder": { 1369 | "version": "1.1.1", 1370 | "bundled": true, 1371 | "dev": true, 1372 | "optional": true, 1373 | "requires": { 1374 | "safe-buffer": "~5.1.0" 1375 | } 1376 | }, 1377 | "strip-ansi": { 1378 | "version": "3.0.1", 1379 | "bundled": true, 1380 | "dev": true, 1381 | "requires": { 1382 | "ansi-regex": "^2.0.0" 1383 | } 1384 | }, 1385 | "strip-json-comments": { 1386 | "version": "2.0.1", 1387 | "bundled": true, 1388 | "dev": true, 1389 | "optional": true 1390 | }, 1391 | "tar": { 1392 | "version": "4.4.8", 1393 | "bundled": true, 1394 | "dev": true, 1395 | "optional": true, 1396 | "requires": { 1397 | "chownr": "^1.1.1", 1398 | "fs-minipass": "^1.2.5", 1399 | "minipass": "^2.3.4", 1400 | "minizlib": "^1.1.1", 1401 | "mkdirp": "^0.5.0", 1402 | "safe-buffer": "^5.1.2", 1403 | "yallist": "^3.0.2" 1404 | } 1405 | }, 1406 | "util-deprecate": { 1407 | "version": "1.0.2", 1408 | "bundled": true, 1409 | "dev": true, 1410 | "optional": true 1411 | }, 1412 | "wide-align": { 1413 | "version": "1.1.3", 1414 | "bundled": true, 1415 | "dev": true, 1416 | "optional": true, 1417 | "requires": { 1418 | "string-width": "^1.0.2 || 2" 1419 | } 1420 | }, 1421 | "wrappy": { 1422 | "version": "1.0.2", 1423 | "bundled": true, 1424 | "dev": true 1425 | }, 1426 | "yallist": { 1427 | "version": "3.0.3", 1428 | "bundled": true, 1429 | "dev": true 1430 | } 1431 | } 1432 | }, 1433 | "get-stream": { 1434 | "version": "3.0.0", 1435 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 1436 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", 1437 | "dev": true 1438 | }, 1439 | "get-value": { 1440 | "version": "2.0.6", 1441 | "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", 1442 | "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", 1443 | "dev": true 1444 | }, 1445 | "glob-parent": { 1446 | "version": "3.1.0", 1447 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", 1448 | "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", 1449 | "dev": true, 1450 | "requires": { 1451 | "is-glob": "^3.1.0", 1452 | "path-dirname": "^1.0.0" 1453 | }, 1454 | "dependencies": { 1455 | "is-glob": { 1456 | "version": "3.1.0", 1457 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", 1458 | "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", 1459 | "dev": true, 1460 | "requires": { 1461 | "is-extglob": "^2.1.0" 1462 | } 1463 | } 1464 | } 1465 | }, 1466 | "global-dirs": { 1467 | "version": "0.1.1", 1468 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", 1469 | "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", 1470 | "dev": true, 1471 | "requires": { 1472 | "ini": "^1.3.4" 1473 | } 1474 | }, 1475 | "got": { 1476 | "version": "6.7.1", 1477 | "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", 1478 | "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", 1479 | "dev": true, 1480 | "requires": { 1481 | "create-error-class": "^3.0.0", 1482 | "duplexer3": "^0.1.4", 1483 | "get-stream": "^3.0.0", 1484 | "is-redirect": "^1.0.0", 1485 | "is-retry-allowed": "^1.0.0", 1486 | "is-stream": "^1.0.0", 1487 | "lowercase-keys": "^1.0.0", 1488 | "safe-buffer": "^5.0.1", 1489 | "timed-out": "^4.0.0", 1490 | "unzip-response": "^2.0.1", 1491 | "url-parse-lax": "^1.0.0" 1492 | } 1493 | }, 1494 | "graceful-fs": { 1495 | "version": "4.1.15", 1496 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", 1497 | "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", 1498 | "dev": true 1499 | }, 1500 | "has-flag": { 1501 | "version": "3.0.0", 1502 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1503 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 1504 | "dev": true 1505 | }, 1506 | "has-value": { 1507 | "version": "1.0.0", 1508 | "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", 1509 | "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", 1510 | "dev": true, 1511 | "requires": { 1512 | "get-value": "^2.0.6", 1513 | "has-values": "^1.0.0", 1514 | "isobject": "^3.0.0" 1515 | } 1516 | }, 1517 | "has-values": { 1518 | "version": "1.0.0", 1519 | "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", 1520 | "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", 1521 | "dev": true, 1522 | "requires": { 1523 | "is-number": "^3.0.0", 1524 | "kind-of": "^4.0.0" 1525 | }, 1526 | "dependencies": { 1527 | "kind-of": { 1528 | "version": "4.0.0", 1529 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", 1530 | "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", 1531 | "dev": true, 1532 | "requires": { 1533 | "is-buffer": "^1.1.5" 1534 | } 1535 | } 1536 | } 1537 | }, 1538 | "http-errors": { 1539 | "version": "1.6.3", 1540 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", 1541 | "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", 1542 | "requires": { 1543 | "depd": "~1.1.2", 1544 | "inherits": "2.0.3", 1545 | "setprototypeof": "1.1.0", 1546 | "statuses": ">= 1.4.0 < 2" 1547 | } 1548 | }, 1549 | "iconv-lite": { 1550 | "version": "0.4.23", 1551 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", 1552 | "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", 1553 | "requires": { 1554 | "safer-buffer": ">= 2.1.2 < 3" 1555 | } 1556 | }, 1557 | "ignore-by-default": { 1558 | "version": "1.0.1", 1559 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 1560 | "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", 1561 | "dev": true 1562 | }, 1563 | "import-lazy": { 1564 | "version": "2.1.0", 1565 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 1566 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", 1567 | "dev": true 1568 | }, 1569 | "imurmurhash": { 1570 | "version": "0.1.4", 1571 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1572 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 1573 | "dev": true 1574 | }, 1575 | "inherits": { 1576 | "version": "2.0.3", 1577 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1578 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 1579 | }, 1580 | "ini": { 1581 | "version": "1.3.5", 1582 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 1583 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", 1584 | "dev": true 1585 | }, 1586 | "ipaddr.js": { 1587 | "version": "1.8.0", 1588 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", 1589 | "integrity": "sha1-6qM9bd16zo9/b+DJygRA5wZzix4=" 1590 | }, 1591 | "is-accessor-descriptor": { 1592 | "version": "0.1.6", 1593 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", 1594 | "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", 1595 | "dev": true, 1596 | "requires": { 1597 | "kind-of": "^3.0.2" 1598 | }, 1599 | "dependencies": { 1600 | "kind-of": { 1601 | "version": "3.2.2", 1602 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 1603 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 1604 | "dev": true, 1605 | "requires": { 1606 | "is-buffer": "^1.1.5" 1607 | } 1608 | } 1609 | } 1610 | }, 1611 | "is-arrayish": { 1612 | "version": "0.3.2", 1613 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", 1614 | "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" 1615 | }, 1616 | "is-binary-path": { 1617 | "version": "1.0.1", 1618 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", 1619 | "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", 1620 | "dev": true, 1621 | "requires": { 1622 | "binary-extensions": "^1.0.0" 1623 | } 1624 | }, 1625 | "is-buffer": { 1626 | "version": "1.1.6", 1627 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", 1628 | "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", 1629 | "dev": true 1630 | }, 1631 | "is-ci": { 1632 | "version": "1.2.1", 1633 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", 1634 | "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", 1635 | "dev": true, 1636 | "requires": { 1637 | "ci-info": "^1.5.0" 1638 | } 1639 | }, 1640 | "is-data-descriptor": { 1641 | "version": "0.1.4", 1642 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", 1643 | "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", 1644 | "dev": true, 1645 | "requires": { 1646 | "kind-of": "^3.0.2" 1647 | }, 1648 | "dependencies": { 1649 | "kind-of": { 1650 | "version": "3.2.2", 1651 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 1652 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 1653 | "dev": true, 1654 | "requires": { 1655 | "is-buffer": "^1.1.5" 1656 | } 1657 | } 1658 | } 1659 | }, 1660 | "is-descriptor": { 1661 | "version": "0.1.6", 1662 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", 1663 | "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", 1664 | "dev": true, 1665 | "requires": { 1666 | "is-accessor-descriptor": "^0.1.6", 1667 | "is-data-descriptor": "^0.1.4", 1668 | "kind-of": "^5.0.0" 1669 | }, 1670 | "dependencies": { 1671 | "kind-of": { 1672 | "version": "5.1.0", 1673 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", 1674 | "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", 1675 | "dev": true 1676 | } 1677 | } 1678 | }, 1679 | "is-extendable": { 1680 | "version": "0.1.1", 1681 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", 1682 | "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", 1683 | "dev": true 1684 | }, 1685 | "is-extglob": { 1686 | "version": "2.1.1", 1687 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1688 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 1689 | "dev": true 1690 | }, 1691 | "is-fullwidth-code-point": { 1692 | "version": "2.0.0", 1693 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1694 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 1695 | "dev": true 1696 | }, 1697 | "is-glob": { 1698 | "version": "4.0.0", 1699 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", 1700 | "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", 1701 | "dev": true, 1702 | "requires": { 1703 | "is-extglob": "^2.1.1" 1704 | } 1705 | }, 1706 | "is-installed-globally": { 1707 | "version": "0.1.0", 1708 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", 1709 | "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", 1710 | "dev": true, 1711 | "requires": { 1712 | "global-dirs": "^0.1.0", 1713 | "is-path-inside": "^1.0.0" 1714 | } 1715 | }, 1716 | "is-npm": { 1717 | "version": "1.0.0", 1718 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", 1719 | "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=", 1720 | "dev": true 1721 | }, 1722 | "is-number": { 1723 | "version": "3.0.0", 1724 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", 1725 | "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", 1726 | "dev": true, 1727 | "requires": { 1728 | "kind-of": "^3.0.2" 1729 | }, 1730 | "dependencies": { 1731 | "kind-of": { 1732 | "version": "3.2.2", 1733 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 1734 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 1735 | "dev": true, 1736 | "requires": { 1737 | "is-buffer": "^1.1.5" 1738 | } 1739 | } 1740 | } 1741 | }, 1742 | "is-obj": { 1743 | "version": "1.0.1", 1744 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", 1745 | "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", 1746 | "dev": true 1747 | }, 1748 | "is-path-inside": { 1749 | "version": "1.0.1", 1750 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", 1751 | "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", 1752 | "dev": true, 1753 | "requires": { 1754 | "path-is-inside": "^1.0.1" 1755 | } 1756 | }, 1757 | "is-plain-object": { 1758 | "version": "2.0.4", 1759 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", 1760 | "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", 1761 | "dev": true, 1762 | "requires": { 1763 | "isobject": "^3.0.1" 1764 | } 1765 | }, 1766 | "is-redirect": { 1767 | "version": "1.0.0", 1768 | "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", 1769 | "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", 1770 | "dev": true 1771 | }, 1772 | "is-retry-allowed": { 1773 | "version": "1.1.0", 1774 | "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", 1775 | "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", 1776 | "dev": true 1777 | }, 1778 | "is-stream": { 1779 | "version": "1.1.0", 1780 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 1781 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" 1782 | }, 1783 | "is-windows": { 1784 | "version": "1.0.2", 1785 | "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", 1786 | "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", 1787 | "dev": true 1788 | }, 1789 | "isarray": { 1790 | "version": "1.0.0", 1791 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1792 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 1793 | }, 1794 | "isexe": { 1795 | "version": "2.0.0", 1796 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1797 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1798 | "dev": true 1799 | }, 1800 | "isobject": { 1801 | "version": "3.0.1", 1802 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", 1803 | "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", 1804 | "dev": true 1805 | }, 1806 | "isomorphic-fetch": { 1807 | "version": "2.2.1", 1808 | "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", 1809 | "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", 1810 | "requires": { 1811 | "node-fetch": "^1.0.1", 1812 | "whatwg-fetch": ">=0.10.0" 1813 | } 1814 | }, 1815 | "kind-of": { 1816 | "version": "6.0.2", 1817 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", 1818 | "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", 1819 | "dev": true 1820 | }, 1821 | "kuler": { 1822 | "version": "1.0.1", 1823 | "resolved": "https://registry.npmjs.org/kuler/-/kuler-1.0.1.tgz", 1824 | "integrity": "sha512-J9nVUucG1p/skKul6DU3PUZrhs0LPulNaeUOox0IyXDi8S4CztTHs1gQphhuZmzXG7VOQSf6NJfKuzteQLv9gQ==", 1825 | "requires": { 1826 | "colornames": "^1.1.1" 1827 | } 1828 | }, 1829 | "latest-version": { 1830 | "version": "3.1.0", 1831 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", 1832 | "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", 1833 | "dev": true, 1834 | "requires": { 1835 | "package-json": "^4.0.0" 1836 | } 1837 | }, 1838 | "lodash": { 1839 | "version": "4.17.11", 1840 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", 1841 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==" 1842 | }, 1843 | "logform": { 1844 | "version": "2.1.2", 1845 | "resolved": "https://registry.npmjs.org/logform/-/logform-2.1.2.tgz", 1846 | "integrity": "sha512-+lZh4OpERDBLqjiwDLpAWNQu6KMjnlXH2ByZwCuSqVPJletw0kTWJf5CgSNAUKn1KUkv3m2cUz/LK8zyEy7wzQ==", 1847 | "requires": { 1848 | "colors": "^1.2.1", 1849 | "fast-safe-stringify": "^2.0.4", 1850 | "fecha": "^2.3.3", 1851 | "ms": "^2.1.1", 1852 | "triple-beam": "^1.3.0" 1853 | }, 1854 | "dependencies": { 1855 | "ms": { 1856 | "version": "2.1.1", 1857 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1858 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1859 | } 1860 | } 1861 | }, 1862 | "lowercase-keys": { 1863 | "version": "1.0.1", 1864 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 1865 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", 1866 | "dev": true 1867 | }, 1868 | "lru-cache": { 1869 | "version": "4.1.5", 1870 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", 1871 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", 1872 | "dev": true, 1873 | "requires": { 1874 | "pseudomap": "^1.0.2", 1875 | "yallist": "^2.1.2" 1876 | } 1877 | }, 1878 | "make-dir": { 1879 | "version": "1.3.0", 1880 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", 1881 | "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", 1882 | "dev": true, 1883 | "requires": { 1884 | "pify": "^3.0.0" 1885 | } 1886 | }, 1887 | "map-cache": { 1888 | "version": "0.2.2", 1889 | "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", 1890 | "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", 1891 | "dev": true 1892 | }, 1893 | "map-visit": { 1894 | "version": "1.0.0", 1895 | "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", 1896 | "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", 1897 | "dev": true, 1898 | "requires": { 1899 | "object-visit": "^1.0.0" 1900 | } 1901 | }, 1902 | "media-typer": { 1903 | "version": "0.3.0", 1904 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1905 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 1906 | }, 1907 | "merge-descriptors": { 1908 | "version": "1.0.1", 1909 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 1910 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 1911 | }, 1912 | "methods": { 1913 | "version": "1.1.2", 1914 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1915 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 1916 | }, 1917 | "micromatch": { 1918 | "version": "3.1.10", 1919 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", 1920 | "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", 1921 | "dev": true, 1922 | "requires": { 1923 | "arr-diff": "^4.0.0", 1924 | "array-unique": "^0.3.2", 1925 | "braces": "^2.3.1", 1926 | "define-property": "^2.0.2", 1927 | "extend-shallow": "^3.0.2", 1928 | "extglob": "^2.0.4", 1929 | "fragment-cache": "^0.2.1", 1930 | "kind-of": "^6.0.2", 1931 | "nanomatch": "^1.2.9", 1932 | "object.pick": "^1.3.0", 1933 | "regex-not": "^1.0.0", 1934 | "snapdragon": "^0.8.1", 1935 | "to-regex": "^3.0.2" 1936 | } 1937 | }, 1938 | "mime": { 1939 | "version": "1.4.1", 1940 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz", 1941 | "integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==" 1942 | }, 1943 | "mime-db": { 1944 | "version": "1.38.0", 1945 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.38.0.tgz", 1946 | "integrity": "sha512-bqVioMFFzc2awcdJZIzR3HjZFX20QhilVS7hytkKrv7xFAn8bM1gzc/FOX2awLISvWe0PV8ptFKcon+wZ5qYkg==" 1947 | }, 1948 | "mime-types": { 1949 | "version": "2.1.22", 1950 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.22.tgz", 1951 | "integrity": "sha512-aGl6TZGnhm/li6F7yx82bJiBZwgiEa4Hf6CNr8YO+r5UHr53tSTYZb102zyU50DOWWKeOv0uQLRL0/9EiKWCog==", 1952 | "requires": { 1953 | "mime-db": "~1.38.0" 1954 | } 1955 | }, 1956 | "minimatch": { 1957 | "version": "3.0.4", 1958 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1959 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1960 | "dev": true, 1961 | "requires": { 1962 | "brace-expansion": "^1.1.7" 1963 | } 1964 | }, 1965 | "minimist": { 1966 | "version": "1.2.0", 1967 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1968 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", 1969 | "dev": true 1970 | }, 1971 | "mixin-deep": { 1972 | "version": "1.3.1", 1973 | "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", 1974 | "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", 1975 | "dev": true, 1976 | "requires": { 1977 | "for-in": "^1.0.2", 1978 | "is-extendable": "^1.0.1" 1979 | }, 1980 | "dependencies": { 1981 | "is-extendable": { 1982 | "version": "1.0.1", 1983 | "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", 1984 | "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", 1985 | "dev": true, 1986 | "requires": { 1987 | "is-plain-object": "^2.0.4" 1988 | } 1989 | } 1990 | } 1991 | }, 1992 | "morgan": { 1993 | "version": "1.9.1", 1994 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", 1995 | "integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==", 1996 | "requires": { 1997 | "basic-auth": "~2.0.0", 1998 | "debug": "2.6.9", 1999 | "depd": "~1.1.2", 2000 | "on-finished": "~2.3.0", 2001 | "on-headers": "~1.0.1" 2002 | } 2003 | }, 2004 | "ms": { 2005 | "version": "2.0.0", 2006 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2007 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 2008 | }, 2009 | "nan": { 2010 | "version": "2.12.1", 2011 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.12.1.tgz", 2012 | "integrity": "sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw==", 2013 | "dev": true, 2014 | "optional": true 2015 | }, 2016 | "nanomatch": { 2017 | "version": "1.2.13", 2018 | "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", 2019 | "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", 2020 | "dev": true, 2021 | "requires": { 2022 | "arr-diff": "^4.0.0", 2023 | "array-unique": "^0.3.2", 2024 | "define-property": "^2.0.2", 2025 | "extend-shallow": "^3.0.2", 2026 | "fragment-cache": "^0.2.1", 2027 | "is-windows": "^1.0.2", 2028 | "kind-of": "^6.0.2", 2029 | "object.pick": "^1.3.0", 2030 | "regex-not": "^1.0.0", 2031 | "snapdragon": "^0.8.1", 2032 | "to-regex": "^3.0.1" 2033 | } 2034 | }, 2035 | "negotiator": { 2036 | "version": "0.6.1", 2037 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", 2038 | "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=" 2039 | }, 2040 | "node-fetch": { 2041 | "version": "1.7.3", 2042 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", 2043 | "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", 2044 | "requires": { 2045 | "encoding": "^0.1.11", 2046 | "is-stream": "^1.0.1" 2047 | } 2048 | }, 2049 | "nodemon": { 2050 | "version": "1.18.10", 2051 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-1.18.10.tgz", 2052 | "integrity": "sha512-we51yBb1TfEvZamFchRgcfLbVYgg0xlGbyXmOtbBzDwxwgewYS/YbZ5tnlnsH51+AoSTTsT3A2E/FloUbtH8cQ==", 2053 | "dev": true, 2054 | "requires": { 2055 | "chokidar": "^2.1.0", 2056 | "debug": "^3.1.0", 2057 | "ignore-by-default": "^1.0.1", 2058 | "minimatch": "^3.0.4", 2059 | "pstree.remy": "^1.1.6", 2060 | "semver": "^5.5.0", 2061 | "supports-color": "^5.2.0", 2062 | "touch": "^3.1.0", 2063 | "undefsafe": "^2.0.2", 2064 | "update-notifier": "^2.5.0" 2065 | }, 2066 | "dependencies": { 2067 | "debug": { 2068 | "version": "3.2.6", 2069 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 2070 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 2071 | "dev": true, 2072 | "requires": { 2073 | "ms": "^2.1.1" 2074 | } 2075 | }, 2076 | "ms": { 2077 | "version": "2.1.1", 2078 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 2079 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 2080 | "dev": true 2081 | } 2082 | } 2083 | }, 2084 | "nopt": { 2085 | "version": "1.0.10", 2086 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 2087 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 2088 | "dev": true, 2089 | "requires": { 2090 | "abbrev": "1" 2091 | } 2092 | }, 2093 | "normalize-path": { 2094 | "version": "3.0.0", 2095 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 2096 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 2097 | "dev": true 2098 | }, 2099 | "npm-run-path": { 2100 | "version": "2.0.2", 2101 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 2102 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 2103 | "dev": true, 2104 | "requires": { 2105 | "path-key": "^2.0.0" 2106 | } 2107 | }, 2108 | "object-copy": { 2109 | "version": "0.1.0", 2110 | "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", 2111 | "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", 2112 | "dev": true, 2113 | "requires": { 2114 | "copy-descriptor": "^0.1.0", 2115 | "define-property": "^0.2.5", 2116 | "kind-of": "^3.0.3" 2117 | }, 2118 | "dependencies": { 2119 | "define-property": { 2120 | "version": "0.2.5", 2121 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", 2122 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", 2123 | "dev": true, 2124 | "requires": { 2125 | "is-descriptor": "^0.1.0" 2126 | } 2127 | }, 2128 | "kind-of": { 2129 | "version": "3.2.2", 2130 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2131 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2132 | "dev": true, 2133 | "requires": { 2134 | "is-buffer": "^1.1.5" 2135 | } 2136 | } 2137 | } 2138 | }, 2139 | "object-visit": { 2140 | "version": "1.0.1", 2141 | "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", 2142 | "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", 2143 | "dev": true, 2144 | "requires": { 2145 | "isobject": "^3.0.0" 2146 | } 2147 | }, 2148 | "object.pick": { 2149 | "version": "1.3.0", 2150 | "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", 2151 | "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", 2152 | "dev": true, 2153 | "requires": { 2154 | "isobject": "^3.0.1" 2155 | } 2156 | }, 2157 | "on-finished": { 2158 | "version": "2.3.0", 2159 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 2160 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 2161 | "requires": { 2162 | "ee-first": "1.1.1" 2163 | } 2164 | }, 2165 | "on-headers": { 2166 | "version": "1.0.2", 2167 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 2168 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==" 2169 | }, 2170 | "one-time": { 2171 | "version": "0.0.4", 2172 | "resolved": "https://registry.npmjs.org/one-time/-/one-time-0.0.4.tgz", 2173 | "integrity": "sha1-+M33eISCb+Tf+T46nMN7HkSAdC4=" 2174 | }, 2175 | "p-finally": { 2176 | "version": "1.0.0", 2177 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 2178 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", 2179 | "dev": true 2180 | }, 2181 | "package-json": { 2182 | "version": "4.0.1", 2183 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", 2184 | "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", 2185 | "dev": true, 2186 | "requires": { 2187 | "got": "^6.7.1", 2188 | "registry-auth-token": "^3.0.1", 2189 | "registry-url": "^3.0.3", 2190 | "semver": "^5.1.0" 2191 | } 2192 | }, 2193 | "parseurl": { 2194 | "version": "1.3.2", 2195 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.2.tgz", 2196 | "integrity": "sha1-/CidTtiZMRlGDBViUyYs3I3mW/M=" 2197 | }, 2198 | "pascalcase": { 2199 | "version": "0.1.1", 2200 | "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", 2201 | "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", 2202 | "dev": true 2203 | }, 2204 | "path-dirname": { 2205 | "version": "1.0.2", 2206 | "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", 2207 | "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", 2208 | "dev": true 2209 | }, 2210 | "path-is-absolute": { 2211 | "version": "1.0.1", 2212 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2213 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 2214 | "dev": true 2215 | }, 2216 | "path-is-inside": { 2217 | "version": "1.0.2", 2218 | "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", 2219 | "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", 2220 | "dev": true 2221 | }, 2222 | "path-key": { 2223 | "version": "2.0.1", 2224 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 2225 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 2226 | "dev": true 2227 | }, 2228 | "path-to-regexp": { 2229 | "version": "0.1.7", 2230 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 2231 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 2232 | }, 2233 | "pify": { 2234 | "version": "3.0.0", 2235 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 2236 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", 2237 | "dev": true 2238 | }, 2239 | "posix-character-classes": { 2240 | "version": "0.1.1", 2241 | "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", 2242 | "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", 2243 | "dev": true 2244 | }, 2245 | "prepend-http": { 2246 | "version": "1.0.4", 2247 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", 2248 | "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", 2249 | "dev": true 2250 | }, 2251 | "process-nextick-args": { 2252 | "version": "2.0.0", 2253 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", 2254 | "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" 2255 | }, 2256 | "proxy-addr": { 2257 | "version": "2.0.4", 2258 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.4.tgz", 2259 | "integrity": "sha512-5erio2h9jp5CHGwcybmxmVqHmnCBZeewlfJ0pex+UW7Qny7OOZXTtH56TGNyBizkgiOwhJtMKrVzDTeKcySZwA==", 2260 | "requires": { 2261 | "forwarded": "~0.1.2", 2262 | "ipaddr.js": "1.8.0" 2263 | } 2264 | }, 2265 | "pseudomap": { 2266 | "version": "1.0.2", 2267 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 2268 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", 2269 | "dev": true 2270 | }, 2271 | "pstree.remy": { 2272 | "version": "1.1.6", 2273 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.6.tgz", 2274 | "integrity": "sha512-NdF35+QsqD7EgNEI5mkI/X+UwaxVEbQaz9f4IooEmMUv6ZPmlTQYGjBPJGgrlzNdjSvIy4MWMg6Q6vCgBO2K+w==", 2275 | "dev": true 2276 | }, 2277 | "qs": { 2278 | "version": "6.5.2", 2279 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 2280 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 2281 | }, 2282 | "range-parser": { 2283 | "version": "1.2.0", 2284 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.0.tgz", 2285 | "integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=" 2286 | }, 2287 | "raw-body": { 2288 | "version": "2.3.3", 2289 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.3.tgz", 2290 | "integrity": "sha512-9esiElv1BrZoI3rCDuOuKCBRbuApGGaDPQfjSflGxdy4oyzqghxu6klEkkVIvBje+FF0BX9coEv8KqW6X/7njw==", 2291 | "requires": { 2292 | "bytes": "3.0.0", 2293 | "http-errors": "1.6.3", 2294 | "iconv-lite": "0.4.23", 2295 | "unpipe": "1.0.0" 2296 | } 2297 | }, 2298 | "rc": { 2299 | "version": "1.2.8", 2300 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 2301 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 2302 | "dev": true, 2303 | "requires": { 2304 | "deep-extend": "^0.6.0", 2305 | "ini": "~1.3.0", 2306 | "minimist": "^1.2.0", 2307 | "strip-json-comments": "~2.0.1" 2308 | } 2309 | }, 2310 | "readable-stream": { 2311 | "version": "2.3.6", 2312 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 2313 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", 2314 | "requires": { 2315 | "core-util-is": "~1.0.0", 2316 | "inherits": "~2.0.3", 2317 | "isarray": "~1.0.0", 2318 | "process-nextick-args": "~2.0.0", 2319 | "safe-buffer": "~5.1.1", 2320 | "string_decoder": "~1.1.1", 2321 | "util-deprecate": "~1.0.1" 2322 | } 2323 | }, 2324 | "readdirp": { 2325 | "version": "2.2.1", 2326 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", 2327 | "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", 2328 | "dev": true, 2329 | "requires": { 2330 | "graceful-fs": "^4.1.11", 2331 | "micromatch": "^3.1.10", 2332 | "readable-stream": "^2.0.2" 2333 | } 2334 | }, 2335 | "regex-not": { 2336 | "version": "1.0.2", 2337 | "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", 2338 | "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", 2339 | "dev": true, 2340 | "requires": { 2341 | "extend-shallow": "^3.0.2", 2342 | "safe-regex": "^1.1.0" 2343 | } 2344 | }, 2345 | "registry-auth-token": { 2346 | "version": "3.3.2", 2347 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", 2348 | "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", 2349 | "dev": true, 2350 | "requires": { 2351 | "rc": "^1.1.6", 2352 | "safe-buffer": "^5.0.1" 2353 | } 2354 | }, 2355 | "registry-url": { 2356 | "version": "3.1.0", 2357 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", 2358 | "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", 2359 | "dev": true, 2360 | "requires": { 2361 | "rc": "^1.0.1" 2362 | } 2363 | }, 2364 | "remove-trailing-separator": { 2365 | "version": "1.1.0", 2366 | "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", 2367 | "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", 2368 | "dev": true 2369 | }, 2370 | "repeat-element": { 2371 | "version": "1.1.3", 2372 | "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", 2373 | "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", 2374 | "dev": true 2375 | }, 2376 | "repeat-string": { 2377 | "version": "1.6.1", 2378 | "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", 2379 | "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", 2380 | "dev": true 2381 | }, 2382 | "resolve-url": { 2383 | "version": "0.2.1", 2384 | "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", 2385 | "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", 2386 | "dev": true 2387 | }, 2388 | "ret": { 2389 | "version": "0.1.15", 2390 | "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", 2391 | "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", 2392 | "dev": true 2393 | }, 2394 | "safe-buffer": { 2395 | "version": "5.1.2", 2396 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 2397 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 2398 | }, 2399 | "safe-regex": { 2400 | "version": "1.1.0", 2401 | "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", 2402 | "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", 2403 | "dev": true, 2404 | "requires": { 2405 | "ret": "~0.1.10" 2406 | } 2407 | }, 2408 | "safer-buffer": { 2409 | "version": "2.1.2", 2410 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2411 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 2412 | }, 2413 | "semver": { 2414 | "version": "5.6.0", 2415 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", 2416 | "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", 2417 | "dev": true 2418 | }, 2419 | "semver-diff": { 2420 | "version": "2.1.0", 2421 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", 2422 | "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", 2423 | "dev": true, 2424 | "requires": { 2425 | "semver": "^5.0.3" 2426 | } 2427 | }, 2428 | "send": { 2429 | "version": "0.16.2", 2430 | "resolved": "https://registry.npmjs.org/send/-/send-0.16.2.tgz", 2431 | "integrity": "sha512-E64YFPUssFHEFBvpbbjr44NCLtI1AohxQ8ZSiJjQLskAdKuriYEP6VyGEsRDH8ScozGpkaX1BGvhanqCwkcEZw==", 2432 | "requires": { 2433 | "debug": "2.6.9", 2434 | "depd": "~1.1.2", 2435 | "destroy": "~1.0.4", 2436 | "encodeurl": "~1.0.2", 2437 | "escape-html": "~1.0.3", 2438 | "etag": "~1.8.1", 2439 | "fresh": "0.5.2", 2440 | "http-errors": "~1.6.2", 2441 | "mime": "1.4.1", 2442 | "ms": "2.0.0", 2443 | "on-finished": "~2.3.0", 2444 | "range-parser": "~1.2.0", 2445 | "statuses": "~1.4.0" 2446 | } 2447 | }, 2448 | "serve-static": { 2449 | "version": "1.13.2", 2450 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.13.2.tgz", 2451 | "integrity": "sha512-p/tdJrO4U387R9oMjb1oj7qSMaMfmOyd4j9hOFoxZe2baQszgHcSWjuya/CiT5kgZZKRudHNOA0pYXOl8rQ5nw==", 2452 | "requires": { 2453 | "encodeurl": "~1.0.2", 2454 | "escape-html": "~1.0.3", 2455 | "parseurl": "~1.3.2", 2456 | "send": "0.16.2" 2457 | } 2458 | }, 2459 | "set-value": { 2460 | "version": "2.0.0", 2461 | "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", 2462 | "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", 2463 | "dev": true, 2464 | "requires": { 2465 | "extend-shallow": "^2.0.1", 2466 | "is-extendable": "^0.1.1", 2467 | "is-plain-object": "^2.0.3", 2468 | "split-string": "^3.0.1" 2469 | }, 2470 | "dependencies": { 2471 | "extend-shallow": { 2472 | "version": "2.0.1", 2473 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 2474 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 2475 | "dev": true, 2476 | "requires": { 2477 | "is-extendable": "^0.1.0" 2478 | } 2479 | } 2480 | } 2481 | }, 2482 | "setprototypeof": { 2483 | "version": "1.1.0", 2484 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", 2485 | "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==" 2486 | }, 2487 | "shebang-command": { 2488 | "version": "1.2.0", 2489 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 2490 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 2491 | "dev": true, 2492 | "requires": { 2493 | "shebang-regex": "^1.0.0" 2494 | } 2495 | }, 2496 | "shebang-regex": { 2497 | "version": "1.0.0", 2498 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 2499 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 2500 | "dev": true 2501 | }, 2502 | "signal-exit": { 2503 | "version": "3.0.2", 2504 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 2505 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 2506 | "dev": true 2507 | }, 2508 | "simple-swizzle": { 2509 | "version": "0.2.2", 2510 | "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", 2511 | "integrity": "sha1-pNprY1/8zMoz9w0Xy5JZLeleVXo=", 2512 | "requires": { 2513 | "is-arrayish": "^0.3.1" 2514 | } 2515 | }, 2516 | "snapdragon": { 2517 | "version": "0.8.2", 2518 | "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", 2519 | "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", 2520 | "dev": true, 2521 | "requires": { 2522 | "base": "^0.11.1", 2523 | "debug": "^2.2.0", 2524 | "define-property": "^0.2.5", 2525 | "extend-shallow": "^2.0.1", 2526 | "map-cache": "^0.2.2", 2527 | "source-map": "^0.5.6", 2528 | "source-map-resolve": "^0.5.0", 2529 | "use": "^3.1.0" 2530 | }, 2531 | "dependencies": { 2532 | "define-property": { 2533 | "version": "0.2.5", 2534 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", 2535 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", 2536 | "dev": true, 2537 | "requires": { 2538 | "is-descriptor": "^0.1.0" 2539 | } 2540 | }, 2541 | "extend-shallow": { 2542 | "version": "2.0.1", 2543 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 2544 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 2545 | "dev": true, 2546 | "requires": { 2547 | "is-extendable": "^0.1.0" 2548 | } 2549 | } 2550 | } 2551 | }, 2552 | "snapdragon-node": { 2553 | "version": "2.1.1", 2554 | "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", 2555 | "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", 2556 | "dev": true, 2557 | "requires": { 2558 | "define-property": "^1.0.0", 2559 | "isobject": "^3.0.0", 2560 | "snapdragon-util": "^3.0.1" 2561 | }, 2562 | "dependencies": { 2563 | "define-property": { 2564 | "version": "1.0.0", 2565 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", 2566 | "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", 2567 | "dev": true, 2568 | "requires": { 2569 | "is-descriptor": "^1.0.0" 2570 | } 2571 | }, 2572 | "is-accessor-descriptor": { 2573 | "version": "1.0.0", 2574 | "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", 2575 | "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", 2576 | "dev": true, 2577 | "requires": { 2578 | "kind-of": "^6.0.0" 2579 | } 2580 | }, 2581 | "is-data-descriptor": { 2582 | "version": "1.0.0", 2583 | "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", 2584 | "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", 2585 | "dev": true, 2586 | "requires": { 2587 | "kind-of": "^6.0.0" 2588 | } 2589 | }, 2590 | "is-descriptor": { 2591 | "version": "1.0.2", 2592 | "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", 2593 | "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", 2594 | "dev": true, 2595 | "requires": { 2596 | "is-accessor-descriptor": "^1.0.0", 2597 | "is-data-descriptor": "^1.0.0", 2598 | "kind-of": "^6.0.2" 2599 | } 2600 | } 2601 | } 2602 | }, 2603 | "snapdragon-util": { 2604 | "version": "3.0.1", 2605 | "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", 2606 | "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", 2607 | "dev": true, 2608 | "requires": { 2609 | "kind-of": "^3.2.0" 2610 | }, 2611 | "dependencies": { 2612 | "kind-of": { 2613 | "version": "3.2.2", 2614 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2615 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2616 | "dev": true, 2617 | "requires": { 2618 | "is-buffer": "^1.1.5" 2619 | } 2620 | } 2621 | } 2622 | }, 2623 | "source-map": { 2624 | "version": "0.5.7", 2625 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", 2626 | "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", 2627 | "dev": true 2628 | }, 2629 | "source-map-resolve": { 2630 | "version": "0.5.2", 2631 | "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", 2632 | "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", 2633 | "dev": true, 2634 | "requires": { 2635 | "atob": "^2.1.1", 2636 | "decode-uri-component": "^0.2.0", 2637 | "resolve-url": "^0.2.1", 2638 | "source-map-url": "^0.4.0", 2639 | "urix": "^0.1.0" 2640 | } 2641 | }, 2642 | "source-map-url": { 2643 | "version": "0.4.0", 2644 | "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", 2645 | "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", 2646 | "dev": true 2647 | }, 2648 | "split-string": { 2649 | "version": "3.1.0", 2650 | "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", 2651 | "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", 2652 | "dev": true, 2653 | "requires": { 2654 | "extend-shallow": "^3.0.0" 2655 | } 2656 | }, 2657 | "stack-trace": { 2658 | "version": "0.0.10", 2659 | "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", 2660 | "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" 2661 | }, 2662 | "static-extend": { 2663 | "version": "0.1.2", 2664 | "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", 2665 | "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", 2666 | "dev": true, 2667 | "requires": { 2668 | "define-property": "^0.2.5", 2669 | "object-copy": "^0.1.0" 2670 | }, 2671 | "dependencies": { 2672 | "define-property": { 2673 | "version": "0.2.5", 2674 | "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", 2675 | "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", 2676 | "dev": true, 2677 | "requires": { 2678 | "is-descriptor": "^0.1.0" 2679 | } 2680 | } 2681 | } 2682 | }, 2683 | "statuses": { 2684 | "version": "1.4.0", 2685 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.4.0.tgz", 2686 | "integrity": "sha512-zhSCtt8v2NDrRlPQpCNtw/heZLtfUDqxBM1udqikb/Hbk52LK4nQSwr10u77iopCW5LsyHpuXS0GnEc48mLeew==" 2687 | }, 2688 | "string-width": { 2689 | "version": "2.1.1", 2690 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 2691 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 2692 | "dev": true, 2693 | "requires": { 2694 | "is-fullwidth-code-point": "^2.0.0", 2695 | "strip-ansi": "^4.0.0" 2696 | } 2697 | }, 2698 | "string_decoder": { 2699 | "version": "1.1.1", 2700 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 2701 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 2702 | "requires": { 2703 | "safe-buffer": "~5.1.0" 2704 | } 2705 | }, 2706 | "strip-ansi": { 2707 | "version": "4.0.0", 2708 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 2709 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 2710 | "dev": true, 2711 | "requires": { 2712 | "ansi-regex": "^3.0.0" 2713 | } 2714 | }, 2715 | "strip-eof": { 2716 | "version": "1.0.0", 2717 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 2718 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", 2719 | "dev": true 2720 | }, 2721 | "strip-json-comments": { 2722 | "version": "2.0.1", 2723 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 2724 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 2725 | "dev": true 2726 | }, 2727 | "supports-color": { 2728 | "version": "5.5.0", 2729 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 2730 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 2731 | "dev": true, 2732 | "requires": { 2733 | "has-flag": "^3.0.0" 2734 | } 2735 | }, 2736 | "term-size": { 2737 | "version": "1.2.0", 2738 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", 2739 | "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", 2740 | "dev": true, 2741 | "requires": { 2742 | "execa": "^0.7.0" 2743 | } 2744 | }, 2745 | "text-hex": { 2746 | "version": "1.0.0", 2747 | "resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz", 2748 | "integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg==" 2749 | }, 2750 | "timed-out": { 2751 | "version": "4.0.1", 2752 | "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", 2753 | "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", 2754 | "dev": true 2755 | }, 2756 | "to-object-path": { 2757 | "version": "0.3.0", 2758 | "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", 2759 | "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", 2760 | "dev": true, 2761 | "requires": { 2762 | "kind-of": "^3.0.2" 2763 | }, 2764 | "dependencies": { 2765 | "kind-of": { 2766 | "version": "3.2.2", 2767 | "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", 2768 | "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", 2769 | "dev": true, 2770 | "requires": { 2771 | "is-buffer": "^1.1.5" 2772 | } 2773 | } 2774 | } 2775 | }, 2776 | "to-regex": { 2777 | "version": "3.0.2", 2778 | "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", 2779 | "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", 2780 | "dev": true, 2781 | "requires": { 2782 | "define-property": "^2.0.2", 2783 | "extend-shallow": "^3.0.2", 2784 | "regex-not": "^1.0.2", 2785 | "safe-regex": "^1.1.0" 2786 | } 2787 | }, 2788 | "to-regex-range": { 2789 | "version": "2.1.1", 2790 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", 2791 | "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", 2792 | "dev": true, 2793 | "requires": { 2794 | "is-number": "^3.0.0", 2795 | "repeat-string": "^1.6.1" 2796 | } 2797 | }, 2798 | "touch": { 2799 | "version": "3.1.0", 2800 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 2801 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 2802 | "dev": true, 2803 | "requires": { 2804 | "nopt": "~1.0.10" 2805 | } 2806 | }, 2807 | "triple-beam": { 2808 | "version": "1.3.0", 2809 | "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz", 2810 | "integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw==" 2811 | }, 2812 | "type-is": { 2813 | "version": "1.6.16", 2814 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.16.tgz", 2815 | "integrity": "sha512-HRkVv/5qY2G6I8iab9cI7v1bOIdhm94dVjQCPFElW9W+3GeDOSHmy2EBYe4VTApuzolPcmgFTN3ftVJRKR2J9Q==", 2816 | "requires": { 2817 | "media-typer": "0.3.0", 2818 | "mime-types": "~2.1.18" 2819 | } 2820 | }, 2821 | "undefsafe": { 2822 | "version": "2.0.2", 2823 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.2.tgz", 2824 | "integrity": "sha1-Il9rngM3Zj4Njnz9aG/Cg2zKznY=", 2825 | "dev": true, 2826 | "requires": { 2827 | "debug": "^2.2.0" 2828 | } 2829 | }, 2830 | "union-value": { 2831 | "version": "1.0.0", 2832 | "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", 2833 | "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", 2834 | "dev": true, 2835 | "requires": { 2836 | "arr-union": "^3.1.0", 2837 | "get-value": "^2.0.6", 2838 | "is-extendable": "^0.1.1", 2839 | "set-value": "^0.4.3" 2840 | }, 2841 | "dependencies": { 2842 | "extend-shallow": { 2843 | "version": "2.0.1", 2844 | "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", 2845 | "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", 2846 | "dev": true, 2847 | "requires": { 2848 | "is-extendable": "^0.1.0" 2849 | } 2850 | }, 2851 | "set-value": { 2852 | "version": "0.4.3", 2853 | "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", 2854 | "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", 2855 | "dev": true, 2856 | "requires": { 2857 | "extend-shallow": "^2.0.1", 2858 | "is-extendable": "^0.1.1", 2859 | "is-plain-object": "^2.0.1", 2860 | "to-object-path": "^0.3.0" 2861 | } 2862 | } 2863 | } 2864 | }, 2865 | "unique-string": { 2866 | "version": "1.0.0", 2867 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", 2868 | "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", 2869 | "dev": true, 2870 | "requires": { 2871 | "crypto-random-string": "^1.0.0" 2872 | } 2873 | }, 2874 | "unpipe": { 2875 | "version": "1.0.0", 2876 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2877 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 2878 | }, 2879 | "unset-value": { 2880 | "version": "1.0.0", 2881 | "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", 2882 | "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", 2883 | "dev": true, 2884 | "requires": { 2885 | "has-value": "^0.3.1", 2886 | "isobject": "^3.0.0" 2887 | }, 2888 | "dependencies": { 2889 | "has-value": { 2890 | "version": "0.3.1", 2891 | "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", 2892 | "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", 2893 | "dev": true, 2894 | "requires": { 2895 | "get-value": "^2.0.3", 2896 | "has-values": "^0.1.4", 2897 | "isobject": "^2.0.0" 2898 | }, 2899 | "dependencies": { 2900 | "isobject": { 2901 | "version": "2.1.0", 2902 | "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", 2903 | "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", 2904 | "dev": true, 2905 | "requires": { 2906 | "isarray": "1.0.0" 2907 | } 2908 | } 2909 | } 2910 | }, 2911 | "has-values": { 2912 | "version": "0.1.4", 2913 | "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", 2914 | "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", 2915 | "dev": true 2916 | } 2917 | } 2918 | }, 2919 | "unzip-response": { 2920 | "version": "2.0.1", 2921 | "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", 2922 | "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", 2923 | "dev": true 2924 | }, 2925 | "upath": { 2926 | "version": "1.1.0", 2927 | "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.0.tgz", 2928 | "integrity": "sha512-bzpH/oBhoS/QI/YtbkqCg6VEiPYjSZtrHQM6/QnJS6OL9pKUFLqb3aFh4Scvwm45+7iAgiMkLhSbaZxUqmrprw==", 2929 | "dev": true 2930 | }, 2931 | "update-notifier": { 2932 | "version": "2.5.0", 2933 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz", 2934 | "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", 2935 | "dev": true, 2936 | "requires": { 2937 | "boxen": "^1.2.1", 2938 | "chalk": "^2.0.1", 2939 | "configstore": "^3.0.0", 2940 | "import-lazy": "^2.1.0", 2941 | "is-ci": "^1.0.10", 2942 | "is-installed-globally": "^0.1.0", 2943 | "is-npm": "^1.0.0", 2944 | "latest-version": "^3.0.0", 2945 | "semver-diff": "^2.0.0", 2946 | "xdg-basedir": "^3.0.0" 2947 | } 2948 | }, 2949 | "urix": { 2950 | "version": "0.1.0", 2951 | "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", 2952 | "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", 2953 | "dev": true 2954 | }, 2955 | "url-parse-lax": { 2956 | "version": "1.0.0", 2957 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", 2958 | "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", 2959 | "dev": true, 2960 | "requires": { 2961 | "prepend-http": "^1.0.1" 2962 | } 2963 | }, 2964 | "use": { 2965 | "version": "3.1.1", 2966 | "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", 2967 | "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", 2968 | "dev": true 2969 | }, 2970 | "util-deprecate": { 2971 | "version": "1.0.2", 2972 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2973 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 2974 | }, 2975 | "utils-merge": { 2976 | "version": "1.0.1", 2977 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2978 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 2979 | }, 2980 | "vary": { 2981 | "version": "1.1.2", 2982 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2983 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 2984 | }, 2985 | "whatwg-fetch": { 2986 | "version": "3.0.0", 2987 | "resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.0.0.tgz", 2988 | "integrity": "sha512-9GSJUgz1D4MfyKU7KRqwOjXCXTqWdFNvEr7eUBYchQiVc744mqK/MzXPNR2WsPkmkOa4ywfg8C2n8h+13Bey1Q==" 2989 | }, 2990 | "which": { 2991 | "version": "1.3.1", 2992 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 2993 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 2994 | "dev": true, 2995 | "requires": { 2996 | "isexe": "^2.0.0" 2997 | } 2998 | }, 2999 | "widest-line": { 3000 | "version": "2.0.1", 3001 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz", 3002 | "integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==", 3003 | "dev": true, 3004 | "requires": { 3005 | "string-width": "^2.1.1" 3006 | } 3007 | }, 3008 | "winston": { 3009 | "version": "3.2.1", 3010 | "resolved": "https://registry.npmjs.org/winston/-/winston-3.2.1.tgz", 3011 | "integrity": "sha512-zU6vgnS9dAWCEKg/QYigd6cgMVVNwyTzKs81XZtTFuRwJOcDdBg7AU0mXVyNbs7O5RH2zdv+BdNZUlx7mXPuOw==", 3012 | "requires": { 3013 | "async": "^2.6.1", 3014 | "diagnostics": "^1.1.1", 3015 | "is-stream": "^1.1.0", 3016 | "logform": "^2.1.1", 3017 | "one-time": "0.0.4", 3018 | "readable-stream": "^3.1.1", 3019 | "stack-trace": "0.0.x", 3020 | "triple-beam": "^1.3.0", 3021 | "winston-transport": "^4.3.0" 3022 | }, 3023 | "dependencies": { 3024 | "readable-stream": { 3025 | "version": "3.2.0", 3026 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.2.0.tgz", 3027 | "integrity": "sha512-RV20kLjdmpZuTF1INEb9IA3L68Nmi+Ri7ppZqo78wj//Pn62fCoJyV9zalccNzDD/OuJpMG4f+pfMl8+L6QdGw==", 3028 | "requires": { 3029 | "inherits": "^2.0.3", 3030 | "string_decoder": "^1.1.1", 3031 | "util-deprecate": "^1.0.1" 3032 | } 3033 | } 3034 | } 3035 | }, 3036 | "winston-transport": { 3037 | "version": "4.3.0", 3038 | "resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.3.0.tgz", 3039 | "integrity": "sha512-B2wPuwUi3vhzn/51Uukcao4dIduEiPOcOt9HJ3QeaXgkJ5Z7UwpBzxS4ZGNHtrxrUvTwemsQiSys0ihOf8Mp1A==", 3040 | "requires": { 3041 | "readable-stream": "^2.3.6", 3042 | "triple-beam": "^1.2.0" 3043 | } 3044 | }, 3045 | "write-file-atomic": { 3046 | "version": "2.4.2", 3047 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.2.tgz", 3048 | "integrity": "sha512-s0b6vB3xIVRLWywa6X9TOMA7k9zio0TMOsl9ZnDkliA/cfJlpHXAscj0gbHVJiTdIuAYpIyqS5GW91fqm6gG5g==", 3049 | "dev": true, 3050 | "requires": { 3051 | "graceful-fs": "^4.1.11", 3052 | "imurmurhash": "^0.1.4", 3053 | "signal-exit": "^3.0.2" 3054 | } 3055 | }, 3056 | "xdg-basedir": { 3057 | "version": "3.0.0", 3058 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", 3059 | "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", 3060 | "dev": true 3061 | }, 3062 | "yallist": { 3063 | "version": "2.1.2", 3064 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 3065 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", 3066 | "dev": true 3067 | } 3068 | } 3069 | } 3070 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "forked-daapd-homebridge-middleware", 3 | "description": "A middleware for provisioning common use cases of forked-daapd's HTTP API to homebridge", 4 | "keywords": [ 5 | "music", 6 | "radio", 7 | "AirPlay", 8 | "speaker", 9 | "multiroom", 10 | "audio", 11 | "api", 12 | "middleware", 13 | "forked-daapd", 14 | "homebridge", 15 | "plugin", 16 | "playlist" 17 | ], 18 | "version": "1.2.4", 19 | "scripts": { 20 | "start": "node ./bin/www", 21 | "dev-server": "DEBUG=* nodemon ./bin/www" 22 | }, 23 | "bin": { 24 | "forked-daapd-homebridge-middleware": "./bin/www" 25 | }, 26 | "dependencies": { 27 | "debug": "~2.6.9", 28 | "es6-promise": "^4.2.6", 29 | "express": "~4.16.0", 30 | "isomorphic-fetch": "^2.2.1", 31 | "lodash": "^4.17.11", 32 | "morgan": "~1.9.0", 33 | "winston": "^3.2.1" 34 | }, 35 | "devDependencies": { 36 | "nodemon": "^1.18.10" 37 | }, 38 | "author": "Patrick Pittich-Rinnerthaler (https://www.pittich-rinnerthaler.de)", 39 | "license": "GPL-3.0", 40 | "repository": { 41 | "type": "git", 42 | "url": "https://github.com/moecre/forked-daapd-homebridge-middleware.git" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const logger = require('../libs/logger') 3 | const config = require('../config') 4 | const Player = new (require('../jsonAPI/Player'))(config.baseUrl) 5 | const router = express.Router() 6 | 7 | /** 8 | * Route to get player status (only there to have something on /) 9 | */ 10 | router.get('/', async (req, res) => { 11 | Player.status() 12 | .then(async response => { 13 | res.status(response.status).send(await response.json()) 14 | }) 15 | .catch(err => { 16 | logger.error(err) 17 | res.status(500).send('Internal Server Error') 18 | }) 19 | }) 20 | 21 | module.exports = router 22 | -------------------------------------------------------------------------------- /routes/outputs.js: -------------------------------------------------------------------------------- 1 | const _ = require('lodash') 2 | const express = require('express') 3 | const logger = require('../libs/logger') 4 | const config = require('../config') 5 | const Outputs = new (require('../jsonAPI/Outputs'))(config.baseUrl) 6 | const router = express.Router() 7 | 8 | /** 9 | * Gets output device by name 10 | * 11 | * @param {String} name 12 | * @return {Promise} 13 | * @private 14 | */ 15 | const _getOutputByName = name => { 16 | return Outputs.list() 17 | .then(response => { 18 | if (!(response.status >= 200 && response.status < 300)) { 19 | return Promise.reject(new Error(response.statusText)) 20 | } 21 | return response.json() 22 | .then(json => { 23 | const { outputs } = json 24 | return outputs.filter(o => o.name === name)[0] 25 | }) 26 | }) 27 | } 28 | 29 | /** 30 | * Route to get state of one individual output device 31 | */ 32 | router.get('/:name', (req, res) => { 33 | const outputName = req.params.name 34 | 35 | _getOutputByName(outputName) 36 | .then(outputByName => { 37 | if (_.isEmpty(outputByName)) { 38 | return Promise.reject(new Error(`Output device "${outputName}" not found`)) 39 | } 40 | res.send(outputByName.selected ? '1' : '0') 41 | }) 42 | .catch(err => { 43 | logger.error(err) 44 | res.send('0') 45 | }) 46 | }) 47 | 48 | /** 49 | * Route to change state of one individual output device 50 | */ 51 | router.get('/:name/state/:state', (req, res) => { 52 | const outputName = req.params.name 53 | const state = (req.params.state === 'on') 54 | 55 | _getOutputByName(outputName) 56 | .then(outputByName => { 57 | if (_.isEmpty(outputByName)) { 58 | return Promise.reject(new Error(`Output device "${outputName}" not found`)) 59 | } 60 | return Outputs.output(outputByName.id, { selected: state }) 61 | .then(response => { 62 | if (!(response.status >= 200 && response.status < 300)) { 63 | return Promise.reject(new Error(response.statusText)) 64 | } 65 | return _getOutputByName(outputName) 66 | .then(refreshedOutputByName => { 67 | if (_.isEmpty(outputByName)) { 68 | return Promise.reject(new Error(`Output device "${outputName}" not found`)) 69 | } 70 | return refreshedOutputByName 71 | }) 72 | }) 73 | }) 74 | .then(refreshedOutputByName => { 75 | res.send(refreshedOutputByName) 76 | }) 77 | .catch(err => { 78 | logger.error(err) 79 | res.status(500).send('Internal Server Error') 80 | }) 81 | }) 82 | 83 | /** 84 | * Route to get current volume of one individual output device 85 | */ 86 | router.get('/:name/volume', (req, res) => { 87 | const outputName = req.params.name 88 | 89 | _getOutputByName(outputName) 90 | .then(outputByName => { 91 | if (_.isEmpty(outputByName)) { 92 | return Promise.reject(new Error(`Output device "${outputName}" not found`)) 93 | } 94 | res.send(String(outputByName.volume)) 95 | }) 96 | .catch(err => { 97 | logger.error(err) 98 | res.send('0') 99 | }) 100 | }) 101 | 102 | /** 103 | * Route to change volume of one individual output device 104 | */ 105 | router.get('/:name/volume/:volume', (req, res) => { 106 | const outputName = req.params.name 107 | const volume = Number(req.params.volume) 108 | 109 | if (volume < 0 || volume > 100) { 110 | return res.status(400).send('Volume must be a number between 0 and 100') 111 | } 112 | 113 | _getOutputByName(outputName) 114 | .then(outputByName => { 115 | if (_.isEmpty(outputByName)) { 116 | return Promise.reject(new Error(`Output device "${outputName}" not found`)) 117 | } 118 | return Outputs.output(outputByName.id, { volume }) 119 | .then(response => { 120 | if (!(response.status >= 200 && response.status < 300)) { 121 | return Promise.reject(new Error(response.statusText)) 122 | } 123 | return _getOutputByName(outputName) 124 | .then(refreshedOutputByName => { 125 | if (_.isEmpty(outputByName)) { 126 | return Promise.reject(new Error(`Output device "${outputName}" not found`)) 127 | } 128 | return refreshedOutputByName 129 | }) 130 | }) 131 | }) 132 | .then(refreshedOutputByName => { 133 | res.send(refreshedOutputByName) 134 | }) 135 | .catch(err => { 136 | logger.error(err) 137 | res.status(500).send('Internal Server Error') 138 | }) 139 | }) 140 | 141 | module.exports = router 142 | -------------------------------------------------------------------------------- /routes/player.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const logger = require('../libs/logger') 3 | const config = require('../config') 4 | const Player = new (require('../jsonAPI/Player'))(config.baseUrl) 5 | const router = express.Router() 6 | 7 | /** 8 | * Route to stop playback 9 | */ 10 | router.get('/stop', (req, res) => { 11 | Player.stop() 12 | .then(response => { 13 | res.status(response.status).send(response.statusText) 14 | }) 15 | .catch(err => { 16 | logger.error(err) 17 | res.status(500).send('Internal Server Error') 18 | }) 19 | }) 20 | 21 | module.exports = router 22 | -------------------------------------------------------------------------------- /routes/playlists.js: -------------------------------------------------------------------------------- 1 | const _ = require('lodash') 2 | const express = require('express') 3 | const logger = require('../libs/logger') 4 | const config = require('../config') 5 | const Queue = new (require('../jsonAPI/Queue'))(config.baseUrl) 6 | const Library = new (require('../jsonAPI/Library'))(config.baseUrl) 7 | const Player = new (require('../jsonAPI/Player'))(config.baseUrl) 8 | const router = express.Router() 9 | 10 | /** 11 | * Gets playlist by name 12 | * 13 | * @param {String} name 14 | * @return {Promise} 15 | * @private 16 | */ 17 | const _getPlaylistByName = name => { 18 | return Library.playlists() 19 | .then(response => { 20 | if (!(response.status >= 200 && response.status < 300)) { 21 | return Promise.reject(new Error(response.statusText)) 22 | } 23 | return response.json() 24 | .then(json => { 25 | const { items } = json 26 | return items.filter(i => i.name === name)[0] 27 | }) 28 | }) 29 | } 30 | 31 | /** 32 | * Route to get playback state of one individual playlist 33 | */ 34 | router.get('/:name', (req, res) => { 35 | const playlistName = req.params.name 36 | let queueItem, playlistByName 37 | 38 | Player.status() 39 | .then(response => { 40 | if (!(response.status >= 200 && response.status < 300)) { 41 | return Promise.reject(new Error(response.statusText)) 42 | } 43 | return response.json() 44 | }) 45 | .then(playerStatus => { 46 | if (playerStatus.state === 'stop') { 47 | // No playback at all 48 | return Promise.reject(new Error()) 49 | } 50 | return playerStatus['item_id'] 51 | }) 52 | .then(itemId => { 53 | /** 54 | * From here: Check if playlist item is played back 55 | */ 56 | return Queue.list() 57 | .then(response => { 58 | if (!(response.status >= 200 && response.status < 300)) { 59 | return Promise.reject(new Error(response.statusText)) 60 | } 61 | return response.json() 62 | }) 63 | .then(queue => { 64 | queueItem = queue.items.filter(i => i.id === itemId)[0] 65 | }) 66 | }) 67 | .then(async () => { 68 | playlistByName = await _getPlaylistByName(playlistName) 69 | 70 | if (_.isEmpty(playlistByName)) { 71 | return Promise.reject(new Error('Playlist not found')) 72 | } 73 | }) 74 | .then(() => { 75 | return Library.playlistTracks(playlistByName.id) 76 | .then(response => { 77 | if (!(response.status >= 200 && response.status < 300)) { 78 | return Promise.reject(new Error(response.statusText)) 79 | } 80 | return response.json() 81 | }) 82 | .then(playlistTracks => { 83 | return playlistTracks.items.filter(i => i.id === queueItem['track_id'])[0] 84 | }) 85 | }) 86 | .then(foundTrack => { 87 | res.send(_.isObject(foundTrack) ? '1' : '0') 88 | }) 89 | .catch(err => { 90 | if (!_.isEmpty(err.message)) { 91 | logger.error(err) 92 | } 93 | res.send('0') 94 | }) 95 | }) 96 | 97 | /** 98 | * Route to queue up one individual playlist and start playback 99 | */ 100 | router.get('/:name/play', (req, res) => { 101 | const playlistName = req.params.name 102 | const shuffle = !!req.query.shuffle 103 | 104 | _getPlaylistByName(playlistName) 105 | .then(playlistByName => { 106 | if (_.isEmpty(playlistByName)) { 107 | return Promise.reject(new Error('Playlist not found')) 108 | } 109 | return Queue.add(`library:playlist:${playlistByName.id}`, 'start', 0, true, shuffle) 110 | .then(async response => { 111 | if (!(response.status >= 200 && response.status < 300)) { 112 | return Promise.reject(new Error(response.statusText)) 113 | } 114 | return response.json() 115 | }) 116 | }) 117 | .then(response => { 118 | res.send(response) 119 | }) 120 | .catch(err => { 121 | logger.error(err) 122 | res.status(500).send('Internal Server Error') 123 | }) 124 | }) 125 | 126 | module.exports = router 127 | --------------------------------------------------------------------------------