├── .gitignore ├── LICENSE ├── curl └── unregister.txt ├── fakeapi ├── package-lock.json ├── package.json └── server.js ├── gateway.js ├── package-lock.json ├── package.json ├── postman └── api_gateway.postman_collection.json ├── public ├── css │ └── index.css └── js ├── routes ├── index.js └── registry.json ├── util └── loadbalancer.js └── views └── index.ejs /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /curl/unregister.txt: -------------------------------------------------------------------------------- 1 | curl -X POST -d '{"apiName": "registrytest", "url": "http://localhost:3001/"}' http://localhost:3000/unregister -H "Content-Type: application/json" -------------------------------------------------------------------------------- /fakeapi/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fakeapi", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "accepts": { 8 | "version": "1.3.7", 9 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 10 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 11 | "requires": { 12 | "mime-types": "~2.1.24", 13 | "negotiator": "0.6.2" 14 | } 15 | }, 16 | "array-flatten": { 17 | "version": "1.1.1", 18 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 19 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 20 | }, 21 | "axios": { 22 | "version": "0.20.0", 23 | "resolved": "https://registry.npmjs.org/axios/-/axios-0.20.0.tgz", 24 | "integrity": "sha512-ANA4rr2BDcmmAQLOKft2fufrtuvlqR+cXNNinUmvfeSNCOF98PZL+7M/v1zIdGo7OLjEA9J2gXJL+j4zGsl0bA==", 25 | "requires": { 26 | "follow-redirects": "^1.10.0" 27 | } 28 | }, 29 | "body-parser": { 30 | "version": "1.19.0", 31 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 32 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 33 | "requires": { 34 | "bytes": "3.1.0", 35 | "content-type": "~1.0.4", 36 | "debug": "2.6.9", 37 | "depd": "~1.1.2", 38 | "http-errors": "1.7.2", 39 | "iconv-lite": "0.4.24", 40 | "on-finished": "~2.3.0", 41 | "qs": "6.7.0", 42 | "raw-body": "2.4.0", 43 | "type-is": "~1.6.17" 44 | } 45 | }, 46 | "bytes": { 47 | "version": "3.1.0", 48 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 49 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 50 | }, 51 | "content-disposition": { 52 | "version": "0.5.3", 53 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 54 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 55 | "requires": { 56 | "safe-buffer": "5.1.2" 57 | } 58 | }, 59 | "content-type": { 60 | "version": "1.0.4", 61 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 62 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 63 | }, 64 | "cookie": { 65 | "version": "0.4.0", 66 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 67 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 68 | }, 69 | "cookie-signature": { 70 | "version": "1.0.6", 71 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 72 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 73 | }, 74 | "debug": { 75 | "version": "2.6.9", 76 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 77 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 78 | "requires": { 79 | "ms": "2.0.0" 80 | } 81 | }, 82 | "depd": { 83 | "version": "1.1.2", 84 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 85 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 86 | }, 87 | "destroy": { 88 | "version": "1.0.4", 89 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 90 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 91 | }, 92 | "ee-first": { 93 | "version": "1.1.1", 94 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 95 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 96 | }, 97 | "encodeurl": { 98 | "version": "1.0.2", 99 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 100 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 101 | }, 102 | "escape-html": { 103 | "version": "1.0.3", 104 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 105 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 106 | }, 107 | "etag": { 108 | "version": "1.8.1", 109 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 110 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 111 | }, 112 | "express": { 113 | "version": "4.17.1", 114 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 115 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 116 | "requires": { 117 | "accepts": "~1.3.7", 118 | "array-flatten": "1.1.1", 119 | "body-parser": "1.19.0", 120 | "content-disposition": "0.5.3", 121 | "content-type": "~1.0.4", 122 | "cookie": "0.4.0", 123 | "cookie-signature": "1.0.6", 124 | "debug": "2.6.9", 125 | "depd": "~1.1.2", 126 | "encodeurl": "~1.0.2", 127 | "escape-html": "~1.0.3", 128 | "etag": "~1.8.1", 129 | "finalhandler": "~1.1.2", 130 | "fresh": "0.5.2", 131 | "merge-descriptors": "1.0.1", 132 | "methods": "~1.1.2", 133 | "on-finished": "~2.3.0", 134 | "parseurl": "~1.3.3", 135 | "path-to-regexp": "0.1.7", 136 | "proxy-addr": "~2.0.5", 137 | "qs": "6.7.0", 138 | "range-parser": "~1.2.1", 139 | "safe-buffer": "5.1.2", 140 | "send": "0.17.1", 141 | "serve-static": "1.14.1", 142 | "setprototypeof": "1.1.1", 143 | "statuses": "~1.5.0", 144 | "type-is": "~1.6.18", 145 | "utils-merge": "1.0.1", 146 | "vary": "~1.1.2" 147 | } 148 | }, 149 | "finalhandler": { 150 | "version": "1.1.2", 151 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 152 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 153 | "requires": { 154 | "debug": "2.6.9", 155 | "encodeurl": "~1.0.2", 156 | "escape-html": "~1.0.3", 157 | "on-finished": "~2.3.0", 158 | "parseurl": "~1.3.3", 159 | "statuses": "~1.5.0", 160 | "unpipe": "~1.0.0" 161 | } 162 | }, 163 | "follow-redirects": { 164 | "version": "1.13.0", 165 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz", 166 | "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==" 167 | }, 168 | "forwarded": { 169 | "version": "0.1.2", 170 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 171 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 172 | }, 173 | "fresh": { 174 | "version": "0.5.2", 175 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 176 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 177 | }, 178 | "http-errors": { 179 | "version": "1.7.2", 180 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 181 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 182 | "requires": { 183 | "depd": "~1.1.2", 184 | "inherits": "2.0.3", 185 | "setprototypeof": "1.1.1", 186 | "statuses": ">= 1.5.0 < 2", 187 | "toidentifier": "1.0.0" 188 | } 189 | }, 190 | "iconv-lite": { 191 | "version": "0.4.24", 192 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 193 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 194 | "requires": { 195 | "safer-buffer": ">= 2.1.2 < 3" 196 | } 197 | }, 198 | "inherits": { 199 | "version": "2.0.3", 200 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 201 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 202 | }, 203 | "ipaddr.js": { 204 | "version": "1.9.1", 205 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 206 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 207 | }, 208 | "media-typer": { 209 | "version": "0.3.0", 210 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 211 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 212 | }, 213 | "merge-descriptors": { 214 | "version": "1.0.1", 215 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 216 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 217 | }, 218 | "methods": { 219 | "version": "1.1.2", 220 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 221 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 222 | }, 223 | "mime": { 224 | "version": "1.6.0", 225 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 226 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 227 | }, 228 | "mime-db": { 229 | "version": "1.44.0", 230 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 231 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 232 | }, 233 | "mime-types": { 234 | "version": "2.1.27", 235 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 236 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 237 | "requires": { 238 | "mime-db": "1.44.0" 239 | } 240 | }, 241 | "ms": { 242 | "version": "2.0.0", 243 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 244 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 245 | }, 246 | "negotiator": { 247 | "version": "0.6.2", 248 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 249 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 250 | }, 251 | "on-finished": { 252 | "version": "2.3.0", 253 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 254 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 255 | "requires": { 256 | "ee-first": "1.1.1" 257 | } 258 | }, 259 | "parseurl": { 260 | "version": "1.3.3", 261 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 262 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 263 | }, 264 | "path-to-regexp": { 265 | "version": "0.1.7", 266 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 267 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 268 | }, 269 | "proxy-addr": { 270 | "version": "2.0.6", 271 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 272 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 273 | "requires": { 274 | "forwarded": "~0.1.2", 275 | "ipaddr.js": "1.9.1" 276 | } 277 | }, 278 | "qs": { 279 | "version": "6.7.0", 280 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 281 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 282 | }, 283 | "range-parser": { 284 | "version": "1.2.1", 285 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 286 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 287 | }, 288 | "raw-body": { 289 | "version": "2.4.0", 290 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 291 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 292 | "requires": { 293 | "bytes": "3.1.0", 294 | "http-errors": "1.7.2", 295 | "iconv-lite": "0.4.24", 296 | "unpipe": "1.0.0" 297 | } 298 | }, 299 | "safe-buffer": { 300 | "version": "5.1.2", 301 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 302 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 303 | }, 304 | "safer-buffer": { 305 | "version": "2.1.2", 306 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 307 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 308 | }, 309 | "send": { 310 | "version": "0.17.1", 311 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 312 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 313 | "requires": { 314 | "debug": "2.6.9", 315 | "depd": "~1.1.2", 316 | "destroy": "~1.0.4", 317 | "encodeurl": "~1.0.2", 318 | "escape-html": "~1.0.3", 319 | "etag": "~1.8.1", 320 | "fresh": "0.5.2", 321 | "http-errors": "~1.7.2", 322 | "mime": "1.6.0", 323 | "ms": "2.1.1", 324 | "on-finished": "~2.3.0", 325 | "range-parser": "~1.2.1", 326 | "statuses": "~1.5.0" 327 | }, 328 | "dependencies": { 329 | "ms": { 330 | "version": "2.1.1", 331 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 332 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 333 | } 334 | } 335 | }, 336 | "serve-static": { 337 | "version": "1.14.1", 338 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 339 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 340 | "requires": { 341 | "encodeurl": "~1.0.2", 342 | "escape-html": "~1.0.3", 343 | "parseurl": "~1.3.3", 344 | "send": "0.17.1" 345 | } 346 | }, 347 | "setprototypeof": { 348 | "version": "1.1.1", 349 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 350 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 351 | }, 352 | "statuses": { 353 | "version": "1.5.0", 354 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 355 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 356 | }, 357 | "toidentifier": { 358 | "version": "1.0.0", 359 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 360 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 361 | }, 362 | "type-is": { 363 | "version": "1.6.18", 364 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 365 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 366 | "requires": { 367 | "media-typer": "0.3.0", 368 | "mime-types": "~2.1.24" 369 | } 370 | }, 371 | "unpipe": { 372 | "version": "1.0.0", 373 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 374 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 375 | }, 376 | "utils-merge": { 377 | "version": "1.0.1", 378 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 379 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 380 | }, 381 | "vary": { 382 | "version": "1.1.2", 383 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 384 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 385 | } 386 | } 387 | } 388 | -------------------------------------------------------------------------------- /fakeapi/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fakeapi", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [], 10 | "author": "", 11 | "license": "ISC", 12 | "dependencies": { 13 | "axios": "^0.20.0", 14 | "express": "^4.17.1" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /fakeapi/server.js: -------------------------------------------------------------------------------- 1 | const express = require("express"); 2 | const app = express(); 3 | const axios = require("axios"); 4 | const HOST = "localhost"; 5 | const PORT = 3001; 6 | 7 | app.use(express.json()); 8 | app.get("/fakeapi", (req, res, next) => { 9 | res.send("Hello From fake api server"); 10 | }); 11 | app.post("/bogusapi", (req, res, next) => { 12 | res.send("Bogus api says hello!"); 13 | }); 14 | 15 | app.listen(PORT, () => { 16 | const authString = "johndoe:password"; 17 | const encodedAuthString = Buffer.from(authString, "utf8").toString("base64"); 18 | console.log(encodedAuthString); 19 | 20 | axios({ 21 | method: "POST", 22 | url: "http://localhost:3000/register", 23 | headers: { 24 | authorization: encodedAuthString, 25 | "Content-Type": "application/json", 26 | }, 27 | data: { 28 | apiName: "registrytest", 29 | protocol: "http", 30 | host: HOST, 31 | port: PORT, 32 | }, 33 | }).then((response) => { 34 | console.log(response.data); 35 | }); 36 | console.log("Fake server started on port " + PORT); 37 | }); 38 | -------------------------------------------------------------------------------- /gateway.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const helmet = require('helmet') 3 | const app = express() 4 | const registry = require('./routes/registry.json') 5 | const routes = require('./routes') 6 | const PORT = 3000 7 | 8 | app.use(express.static('public')) 9 | app.set('view engine', 'ejs') 10 | app.use(express.json()) 11 | app.use(helmet()) 12 | 13 | const auth = (req, res, next) => { 14 | const url = req.protocol + '://' + req.hostname + PORT + req.path 15 | const authString = Buffer.from(req.headers.authorization, 'base64').toString('utf8') 16 | const authParts = authString.split(':') 17 | const username = authParts[0] 18 | const password = authParts[1] 19 | console.log(username + ' | ' + password) 20 | const user = registry.auth.users[username] 21 | if (user) { 22 | if (user.username === username && user.password === password) { 23 | next() 24 | } else { 25 | res.send({ authenticated: false, path: url, message: 'Authentication Unsuccessful: Incorrect password.' }) 26 | } 27 | } else { 28 | res.send({ authenticated: false, path: url, message: 'Authentication Unsuccessful: User ' + username + ' does not exist.' }) 29 | } 30 | } 31 | 32 | app.get('/ui', (req, res) => { 33 | res.render('index', { services: registry.services }) 34 | }) 35 | app.use(auth) 36 | app.use('/', routes) 37 | 38 | app.listen(PORT, () => { 39 | console.log('Gateway has started on port ' + PORT) 40 | }) 41 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apigateway", 3 | "version": "1.0.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@sindresorhus/is": { 8 | "version": "0.14.0", 9 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", 10 | "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", 11 | "dev": true 12 | }, 13 | "@szmarczak/http-timer": { 14 | "version": "1.1.2", 15 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 16 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 17 | "dev": true, 18 | "requires": { 19 | "defer-to-connect": "^1.0.1" 20 | } 21 | }, 22 | "@types/color-name": { 23 | "version": "1.1.1", 24 | "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", 25 | "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==", 26 | "dev": true 27 | }, 28 | "abbrev": { 29 | "version": "1.1.1", 30 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 31 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 32 | "dev": true 33 | }, 34 | "accepts": { 35 | "version": "1.3.7", 36 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 37 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 38 | "requires": { 39 | "mime-types": "~2.1.24", 40 | "negotiator": "0.6.2" 41 | } 42 | }, 43 | "ansi-align": { 44 | "version": "3.0.0", 45 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", 46 | "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", 47 | "dev": true, 48 | "requires": { 49 | "string-width": "^3.0.0" 50 | }, 51 | "dependencies": { 52 | "string-width": { 53 | "version": "3.1.0", 54 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 55 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 56 | "dev": true, 57 | "requires": { 58 | "emoji-regex": "^7.0.1", 59 | "is-fullwidth-code-point": "^2.0.0", 60 | "strip-ansi": "^5.1.0" 61 | } 62 | } 63 | } 64 | }, 65 | "ansi-regex": { 66 | "version": "4.1.0", 67 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 68 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 69 | "dev": true 70 | }, 71 | "ansi-styles": { 72 | "version": "4.2.1", 73 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", 74 | "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", 75 | "dev": true, 76 | "requires": { 77 | "@types/color-name": "^1.1.1", 78 | "color-convert": "^2.0.1" 79 | } 80 | }, 81 | "anymatch": { 82 | "version": "3.1.1", 83 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", 84 | "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", 85 | "dev": true, 86 | "requires": { 87 | "normalize-path": "^3.0.0", 88 | "picomatch": "^2.0.4" 89 | } 90 | }, 91 | "array-flatten": { 92 | "version": "1.1.1", 93 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 94 | "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=" 95 | }, 96 | "async": { 97 | "version": "0.9.2", 98 | "resolved": "https://registry.npmjs.org/async/-/async-0.9.2.tgz", 99 | "integrity": "sha1-rqdNXmHB+JlhO/ZL2mbUx48v0X0=" 100 | }, 101 | "axios": { 102 | "version": "0.20.0", 103 | "resolved": "https://registry.npmjs.org/axios/-/axios-0.20.0.tgz", 104 | "integrity": "sha512-ANA4rr2BDcmmAQLOKft2fufrtuvlqR+cXNNinUmvfeSNCOF98PZL+7M/v1zIdGo7OLjEA9J2gXJL+j4zGsl0bA==", 105 | "requires": { 106 | "follow-redirects": "^1.10.0" 107 | } 108 | }, 109 | "balanced-match": { 110 | "version": "1.0.0", 111 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 112 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 113 | }, 114 | "binary-extensions": { 115 | "version": "2.1.0", 116 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz", 117 | "integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==", 118 | "dev": true 119 | }, 120 | "body-parser": { 121 | "version": "1.19.0", 122 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", 123 | "integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", 124 | "requires": { 125 | "bytes": "3.1.0", 126 | "content-type": "~1.0.4", 127 | "debug": "2.6.9", 128 | "depd": "~1.1.2", 129 | "http-errors": "1.7.2", 130 | "iconv-lite": "0.4.24", 131 | "on-finished": "~2.3.0", 132 | "qs": "6.7.0", 133 | "raw-body": "2.4.0", 134 | "type-is": "~1.6.17" 135 | }, 136 | "dependencies": { 137 | "debug": { 138 | "version": "2.6.9", 139 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 140 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 141 | "requires": { 142 | "ms": "2.0.0" 143 | } 144 | }, 145 | "ms": { 146 | "version": "2.0.0", 147 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 148 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 149 | } 150 | } 151 | }, 152 | "boxen": { 153 | "version": "4.2.0", 154 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz", 155 | "integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==", 156 | "dev": true, 157 | "requires": { 158 | "ansi-align": "^3.0.0", 159 | "camelcase": "^5.3.1", 160 | "chalk": "^3.0.0", 161 | "cli-boxes": "^2.2.0", 162 | "string-width": "^4.1.0", 163 | "term-size": "^2.1.0", 164 | "type-fest": "^0.8.1", 165 | "widest-line": "^3.1.0" 166 | } 167 | }, 168 | "brace-expansion": { 169 | "version": "1.1.11", 170 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 171 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 172 | "requires": { 173 | "balanced-match": "^1.0.0", 174 | "concat-map": "0.0.1" 175 | } 176 | }, 177 | "braces": { 178 | "version": "3.0.2", 179 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 180 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 181 | "dev": true, 182 | "requires": { 183 | "fill-range": "^7.0.1" 184 | } 185 | }, 186 | "bytes": { 187 | "version": "3.1.0", 188 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 189 | "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==" 190 | }, 191 | "cacheable-request": { 192 | "version": "6.1.0", 193 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 194 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 195 | "dev": true, 196 | "requires": { 197 | "clone-response": "^1.0.2", 198 | "get-stream": "^5.1.0", 199 | "http-cache-semantics": "^4.0.0", 200 | "keyv": "^3.0.0", 201 | "lowercase-keys": "^2.0.0", 202 | "normalize-url": "^4.1.0", 203 | "responselike": "^1.0.2" 204 | }, 205 | "dependencies": { 206 | "get-stream": { 207 | "version": "5.2.0", 208 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", 209 | "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", 210 | "dev": true, 211 | "requires": { 212 | "pump": "^3.0.0" 213 | } 214 | }, 215 | "lowercase-keys": { 216 | "version": "2.0.0", 217 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 218 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", 219 | "dev": true 220 | } 221 | } 222 | }, 223 | "camelcase": { 224 | "version": "5.3.1", 225 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 226 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 227 | "dev": true 228 | }, 229 | "chalk": { 230 | "version": "3.0.0", 231 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", 232 | "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", 233 | "dev": true, 234 | "requires": { 235 | "ansi-styles": "^4.1.0", 236 | "supports-color": "^7.1.0" 237 | }, 238 | "dependencies": { 239 | "has-flag": { 240 | "version": "4.0.0", 241 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 242 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 243 | "dev": true 244 | }, 245 | "supports-color": { 246 | "version": "7.2.0", 247 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 248 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 249 | "dev": true, 250 | "requires": { 251 | "has-flag": "^4.0.0" 252 | } 253 | } 254 | } 255 | }, 256 | "chokidar": { 257 | "version": "3.4.2", 258 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.2.tgz", 259 | "integrity": "sha512-IZHaDeBeI+sZJRX7lGcXsdzgvZqKv6sECqsbErJA4mHWfpRrD8B97kSFN4cQz6nGBGiuFia1MKR4d6c1o8Cv7A==", 260 | "dev": true, 261 | "requires": { 262 | "anymatch": "~3.1.1", 263 | "braces": "~3.0.2", 264 | "fsevents": "~2.1.2", 265 | "glob-parent": "~5.1.0", 266 | "is-binary-path": "~2.1.0", 267 | "is-glob": "~4.0.1", 268 | "normalize-path": "~3.0.0", 269 | "readdirp": "~3.4.0" 270 | } 271 | }, 272 | "ci-info": { 273 | "version": "2.0.0", 274 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", 275 | "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", 276 | "dev": true 277 | }, 278 | "cli-boxes": { 279 | "version": "2.2.1", 280 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", 281 | "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", 282 | "dev": true 283 | }, 284 | "clone-response": { 285 | "version": "1.0.2", 286 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 287 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 288 | "dev": true, 289 | "requires": { 290 | "mimic-response": "^1.0.0" 291 | } 292 | }, 293 | "color-convert": { 294 | "version": "2.0.1", 295 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 296 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 297 | "dev": true, 298 | "requires": { 299 | "color-name": "~1.1.4" 300 | } 301 | }, 302 | "color-name": { 303 | "version": "1.1.4", 304 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 305 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 306 | "dev": true 307 | }, 308 | "concat-map": { 309 | "version": "0.0.1", 310 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 311 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 312 | }, 313 | "configstore": { 314 | "version": "5.0.1", 315 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", 316 | "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", 317 | "dev": true, 318 | "requires": { 319 | "dot-prop": "^5.2.0", 320 | "graceful-fs": "^4.1.2", 321 | "make-dir": "^3.0.0", 322 | "unique-string": "^2.0.0", 323 | "write-file-atomic": "^3.0.0", 324 | "xdg-basedir": "^4.0.0" 325 | } 326 | }, 327 | "content-disposition": { 328 | "version": "0.5.3", 329 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.3.tgz", 330 | "integrity": "sha512-ExO0774ikEObIAEV9kDo50o+79VCUdEB6n6lzKgGwupcVeRlhrj3qGAfwq8G6uBJjkqLrhT0qEYFcWng8z1z0g==", 331 | "requires": { 332 | "safe-buffer": "5.1.2" 333 | } 334 | }, 335 | "content-type": { 336 | "version": "1.0.4", 337 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 338 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 339 | }, 340 | "cookie": { 341 | "version": "0.4.0", 342 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.0.tgz", 343 | "integrity": "sha512-+Hp8fLp57wnUSt0tY0tHEXh4voZRDnoIrZPqlo3DPiI4y9lwg/jqx+1Om94/W6ZaPDOUbnjOt/99w66zk+l1Xg==" 344 | }, 345 | "cookie-signature": { 346 | "version": "1.0.6", 347 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 348 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=" 349 | }, 350 | "crypto-random-string": { 351 | "version": "2.0.0", 352 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", 353 | "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", 354 | "dev": true 355 | }, 356 | "debug": { 357 | "version": "3.2.6", 358 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 359 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 360 | "dev": true, 361 | "requires": { 362 | "ms": "^2.1.1" 363 | } 364 | }, 365 | "decompress-response": { 366 | "version": "3.3.0", 367 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 368 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 369 | "dev": true, 370 | "requires": { 371 | "mimic-response": "^1.0.0" 372 | } 373 | }, 374 | "deep-extend": { 375 | "version": "0.6.0", 376 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 377 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", 378 | "dev": true 379 | }, 380 | "defer-to-connect": { 381 | "version": "1.1.3", 382 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", 383 | "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", 384 | "dev": true 385 | }, 386 | "depd": { 387 | "version": "1.1.2", 388 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 389 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" 390 | }, 391 | "destroy": { 392 | "version": "1.0.4", 393 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 394 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=" 395 | }, 396 | "dot-prop": { 397 | "version": "5.2.0", 398 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz", 399 | "integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==", 400 | "dev": true, 401 | "requires": { 402 | "is-obj": "^2.0.0" 403 | } 404 | }, 405 | "duplexer3": { 406 | "version": "0.1.4", 407 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 408 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", 409 | "dev": true 410 | }, 411 | "ee-first": { 412 | "version": "1.1.1", 413 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 414 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" 415 | }, 416 | "ejs": { 417 | "version": "3.1.5", 418 | "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.5.tgz", 419 | "integrity": "sha512-dldq3ZfFtgVTJMLjOe+/3sROTzALlL9E34V4/sDtUd/KlBSS0s6U1/+WPE1B4sj9CXHJpL1M6rhNJnc9Wbal9w==", 420 | "requires": { 421 | "jake": "^10.6.1" 422 | } 423 | }, 424 | "emoji-regex": { 425 | "version": "7.0.3", 426 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 427 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 428 | "dev": true 429 | }, 430 | "encodeurl": { 431 | "version": "1.0.2", 432 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 433 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" 434 | }, 435 | "end-of-stream": { 436 | "version": "1.4.4", 437 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 438 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 439 | "dev": true, 440 | "requires": { 441 | "once": "^1.4.0" 442 | } 443 | }, 444 | "escape-goat": { 445 | "version": "2.1.1", 446 | "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", 447 | "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", 448 | "dev": true 449 | }, 450 | "escape-html": { 451 | "version": "1.0.3", 452 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 453 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=" 454 | }, 455 | "escape-string-regexp": { 456 | "version": "1.0.5", 457 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 458 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 459 | }, 460 | "etag": { 461 | "version": "1.8.1", 462 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 463 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" 464 | }, 465 | "express": { 466 | "version": "4.17.1", 467 | "resolved": "https://registry.npmjs.org/express/-/express-4.17.1.tgz", 468 | "integrity": "sha512-mHJ9O79RqluphRrcw2X/GTh3k9tVv8YcoyY4Kkh4WDMUYKRZUq0h1o0w2rrrxBqM7VoeUVqgb27xlEMXTnYt4g==", 469 | "requires": { 470 | "accepts": "~1.3.7", 471 | "array-flatten": "1.1.1", 472 | "body-parser": "1.19.0", 473 | "content-disposition": "0.5.3", 474 | "content-type": "~1.0.4", 475 | "cookie": "0.4.0", 476 | "cookie-signature": "1.0.6", 477 | "debug": "2.6.9", 478 | "depd": "~1.1.2", 479 | "encodeurl": "~1.0.2", 480 | "escape-html": "~1.0.3", 481 | "etag": "~1.8.1", 482 | "finalhandler": "~1.1.2", 483 | "fresh": "0.5.2", 484 | "merge-descriptors": "1.0.1", 485 | "methods": "~1.1.2", 486 | "on-finished": "~2.3.0", 487 | "parseurl": "~1.3.3", 488 | "path-to-regexp": "0.1.7", 489 | "proxy-addr": "~2.0.5", 490 | "qs": "6.7.0", 491 | "range-parser": "~1.2.1", 492 | "safe-buffer": "5.1.2", 493 | "send": "0.17.1", 494 | "serve-static": "1.14.1", 495 | "setprototypeof": "1.1.1", 496 | "statuses": "~1.5.0", 497 | "type-is": "~1.6.18", 498 | "utils-merge": "1.0.1", 499 | "vary": "~1.1.2" 500 | }, 501 | "dependencies": { 502 | "debug": { 503 | "version": "2.6.9", 504 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 505 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 506 | "requires": { 507 | "ms": "2.0.0" 508 | } 509 | }, 510 | "ms": { 511 | "version": "2.0.0", 512 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 513 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 514 | } 515 | } 516 | }, 517 | "filelist": { 518 | "version": "1.0.1", 519 | "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.1.tgz", 520 | "integrity": "sha512-8zSK6Nu0DQIC08mUC46sWGXi+q3GGpKydAG36k+JDba6VRpkevvOWUW5a/PhShij4+vHT9M+ghgG7eM+a9JDUQ==", 521 | "requires": { 522 | "minimatch": "^3.0.4" 523 | } 524 | }, 525 | "fill-range": { 526 | "version": "7.0.1", 527 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 528 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 529 | "dev": true, 530 | "requires": { 531 | "to-regex-range": "^5.0.1" 532 | } 533 | }, 534 | "finalhandler": { 535 | "version": "1.1.2", 536 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 537 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 538 | "requires": { 539 | "debug": "2.6.9", 540 | "encodeurl": "~1.0.2", 541 | "escape-html": "~1.0.3", 542 | "on-finished": "~2.3.0", 543 | "parseurl": "~1.3.3", 544 | "statuses": "~1.5.0", 545 | "unpipe": "~1.0.0" 546 | }, 547 | "dependencies": { 548 | "debug": { 549 | "version": "2.6.9", 550 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 551 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 552 | "requires": { 553 | "ms": "2.0.0" 554 | } 555 | }, 556 | "ms": { 557 | "version": "2.0.0", 558 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 559 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 560 | } 561 | } 562 | }, 563 | "follow-redirects": { 564 | "version": "1.13.0", 565 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.13.0.tgz", 566 | "integrity": "sha512-aq6gF1BEKje4a9i9+5jimNFIpq4Q1WiwBToeRK5NvZBd/TRsmW8BsJfOEGkr76TbOyPVD3OVDN910EcUNtRYEA==" 567 | }, 568 | "forwarded": { 569 | "version": "0.1.2", 570 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.1.2.tgz", 571 | "integrity": "sha1-mMI9qxF1ZXuMBXPozszZGw/xjIQ=" 572 | }, 573 | "fresh": { 574 | "version": "0.5.2", 575 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 576 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=" 577 | }, 578 | "fsevents": { 579 | "version": "2.1.3", 580 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", 581 | "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", 582 | "dev": true, 583 | "optional": true 584 | }, 585 | "get-stream": { 586 | "version": "4.1.0", 587 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 588 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 589 | "dev": true, 590 | "requires": { 591 | "pump": "^3.0.0" 592 | } 593 | }, 594 | "glob-parent": { 595 | "version": "5.1.1", 596 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz", 597 | "integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==", 598 | "dev": true, 599 | "requires": { 600 | "is-glob": "^4.0.1" 601 | } 602 | }, 603 | "global-dirs": { 604 | "version": "2.0.1", 605 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz", 606 | "integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==", 607 | "dev": true, 608 | "requires": { 609 | "ini": "^1.3.5" 610 | } 611 | }, 612 | "got": { 613 | "version": "9.6.0", 614 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 615 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 616 | "dev": true, 617 | "requires": { 618 | "@sindresorhus/is": "^0.14.0", 619 | "@szmarczak/http-timer": "^1.1.2", 620 | "cacheable-request": "^6.0.0", 621 | "decompress-response": "^3.3.0", 622 | "duplexer3": "^0.1.4", 623 | "get-stream": "^4.1.0", 624 | "lowercase-keys": "^1.0.1", 625 | "mimic-response": "^1.0.1", 626 | "p-cancelable": "^1.0.0", 627 | "to-readable-stream": "^1.0.0", 628 | "url-parse-lax": "^3.0.0" 629 | } 630 | }, 631 | "graceful-fs": { 632 | "version": "4.2.4", 633 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.4.tgz", 634 | "integrity": "sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw==", 635 | "dev": true 636 | }, 637 | "has-flag": { 638 | "version": "3.0.0", 639 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 640 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 641 | }, 642 | "has-yarn": { 643 | "version": "2.1.0", 644 | "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", 645 | "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", 646 | "dev": true 647 | }, 648 | "helmet": { 649 | "version": "4.1.1", 650 | "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.1.1.tgz", 651 | "integrity": "sha512-Avg4XxSBrehD94mkRwEljnO+6RZx7AGfk8Wa6K1nxaU+hbXlFOhlOIMgPfFqOYQB/dBCsTpootTGuiOG+CHiQA==" 652 | }, 653 | "http-cache-semantics": { 654 | "version": "4.1.0", 655 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", 656 | "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", 657 | "dev": true 658 | }, 659 | "http-errors": { 660 | "version": "1.7.2", 661 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.2.tgz", 662 | "integrity": "sha512-uUQBt3H/cSIVfch6i1EuPNy/YsRSOUBXTVfZ+yR7Zjez3qjBz6i9+i4zjNaoqcoFVI4lQJ5plg63TvGfRSDCRg==", 663 | "requires": { 664 | "depd": "~1.1.2", 665 | "inherits": "2.0.3", 666 | "setprototypeof": "1.1.1", 667 | "statuses": ">= 1.5.0 < 2", 668 | "toidentifier": "1.0.0" 669 | } 670 | }, 671 | "iconv-lite": { 672 | "version": "0.4.24", 673 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 674 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 675 | "requires": { 676 | "safer-buffer": ">= 2.1.2 < 3" 677 | } 678 | }, 679 | "ignore-by-default": { 680 | "version": "1.0.1", 681 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 682 | "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", 683 | "dev": true 684 | }, 685 | "import-lazy": { 686 | "version": "2.1.0", 687 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 688 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", 689 | "dev": true 690 | }, 691 | "imurmurhash": { 692 | "version": "0.1.4", 693 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 694 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 695 | "dev": true 696 | }, 697 | "inherits": { 698 | "version": "2.0.3", 699 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 700 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 701 | }, 702 | "ini": { 703 | "version": "1.3.5", 704 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 705 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", 706 | "dev": true 707 | }, 708 | "ipaddr.js": { 709 | "version": "1.9.1", 710 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 711 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" 712 | }, 713 | "is-binary-path": { 714 | "version": "2.1.0", 715 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 716 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 717 | "dev": true, 718 | "requires": { 719 | "binary-extensions": "^2.0.0" 720 | } 721 | }, 722 | "is-ci": { 723 | "version": "2.0.0", 724 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", 725 | "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", 726 | "dev": true, 727 | "requires": { 728 | "ci-info": "^2.0.0" 729 | } 730 | }, 731 | "is-extglob": { 732 | "version": "2.1.1", 733 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 734 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 735 | "dev": true 736 | }, 737 | "is-fullwidth-code-point": { 738 | "version": "2.0.0", 739 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 740 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 741 | "dev": true 742 | }, 743 | "is-glob": { 744 | "version": "4.0.1", 745 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", 746 | "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", 747 | "dev": true, 748 | "requires": { 749 | "is-extglob": "^2.1.1" 750 | } 751 | }, 752 | "is-installed-globally": { 753 | "version": "0.3.2", 754 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz", 755 | "integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==", 756 | "dev": true, 757 | "requires": { 758 | "global-dirs": "^2.0.1", 759 | "is-path-inside": "^3.0.1" 760 | } 761 | }, 762 | "is-npm": { 763 | "version": "4.0.0", 764 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz", 765 | "integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==", 766 | "dev": true 767 | }, 768 | "is-number": { 769 | "version": "7.0.0", 770 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 771 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 772 | "dev": true 773 | }, 774 | "is-obj": { 775 | "version": "2.0.0", 776 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", 777 | "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", 778 | "dev": true 779 | }, 780 | "is-path-inside": { 781 | "version": "3.0.2", 782 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz", 783 | "integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==", 784 | "dev": true 785 | }, 786 | "is-typedarray": { 787 | "version": "1.0.0", 788 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 789 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", 790 | "dev": true 791 | }, 792 | "is-yarn-global": { 793 | "version": "0.3.0", 794 | "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", 795 | "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", 796 | "dev": true 797 | }, 798 | "jake": { 799 | "version": "10.8.2", 800 | "resolved": "https://registry.npmjs.org/jake/-/jake-10.8.2.tgz", 801 | "integrity": "sha512-eLpKyrfG3mzvGE2Du8VoPbeSkRry093+tyNjdYaBbJS9v17knImYGNXQCUV0gLxQtF82m3E8iRb/wdSQZLoq7A==", 802 | "requires": { 803 | "async": "0.9.x", 804 | "chalk": "^2.4.2", 805 | "filelist": "^1.0.1", 806 | "minimatch": "^3.0.4" 807 | }, 808 | "dependencies": { 809 | "ansi-styles": { 810 | "version": "3.2.1", 811 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 812 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 813 | "requires": { 814 | "color-convert": "^1.9.0" 815 | } 816 | }, 817 | "chalk": { 818 | "version": "2.4.2", 819 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 820 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 821 | "requires": { 822 | "ansi-styles": "^3.2.1", 823 | "escape-string-regexp": "^1.0.5", 824 | "supports-color": "^5.3.0" 825 | } 826 | }, 827 | "color-convert": { 828 | "version": "1.9.3", 829 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 830 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 831 | "requires": { 832 | "color-name": "1.1.3" 833 | } 834 | }, 835 | "color-name": { 836 | "version": "1.1.3", 837 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 838 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 839 | } 840 | } 841 | }, 842 | "json-buffer": { 843 | "version": "3.0.0", 844 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 845 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", 846 | "dev": true 847 | }, 848 | "keyv": { 849 | "version": "3.1.0", 850 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 851 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 852 | "dev": true, 853 | "requires": { 854 | "json-buffer": "3.0.0" 855 | } 856 | }, 857 | "latest-version": { 858 | "version": "5.1.0", 859 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", 860 | "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", 861 | "dev": true, 862 | "requires": { 863 | "package-json": "^6.3.0" 864 | } 865 | }, 866 | "lowercase-keys": { 867 | "version": "1.0.1", 868 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 869 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", 870 | "dev": true 871 | }, 872 | "make-dir": { 873 | "version": "3.1.0", 874 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", 875 | "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", 876 | "dev": true, 877 | "requires": { 878 | "semver": "^6.0.0" 879 | }, 880 | "dependencies": { 881 | "semver": { 882 | "version": "6.3.0", 883 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 884 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 885 | "dev": true 886 | } 887 | } 888 | }, 889 | "media-typer": { 890 | "version": "0.3.0", 891 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 892 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=" 893 | }, 894 | "merge-descriptors": { 895 | "version": "1.0.1", 896 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", 897 | "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=" 898 | }, 899 | "methods": { 900 | "version": "1.1.2", 901 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 902 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=" 903 | }, 904 | "mime": { 905 | "version": "1.6.0", 906 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 907 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" 908 | }, 909 | "mime-db": { 910 | "version": "1.44.0", 911 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", 912 | "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" 913 | }, 914 | "mime-types": { 915 | "version": "2.1.27", 916 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", 917 | "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", 918 | "requires": { 919 | "mime-db": "1.44.0" 920 | } 921 | }, 922 | "mimic-response": { 923 | "version": "1.0.1", 924 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 925 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", 926 | "dev": true 927 | }, 928 | "minimatch": { 929 | "version": "3.0.4", 930 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 931 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 932 | "requires": { 933 | "brace-expansion": "^1.1.7" 934 | } 935 | }, 936 | "minimist": { 937 | "version": "1.2.5", 938 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 939 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 940 | "dev": true 941 | }, 942 | "ms": { 943 | "version": "2.1.2", 944 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 945 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 946 | "dev": true 947 | }, 948 | "negotiator": { 949 | "version": "0.6.2", 950 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 951 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==" 952 | }, 953 | "nodemon": { 954 | "version": "2.0.4", 955 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-2.0.4.tgz", 956 | "integrity": "sha512-Ltced+hIfTmaS28Zjv1BM552oQ3dbwPqI4+zI0SLgq+wpJhSyqgYude/aZa/3i31VCQWMfXJVxvu86abcam3uQ==", 957 | "dev": true, 958 | "requires": { 959 | "chokidar": "^3.2.2", 960 | "debug": "^3.2.6", 961 | "ignore-by-default": "^1.0.1", 962 | "minimatch": "^3.0.4", 963 | "pstree.remy": "^1.1.7", 964 | "semver": "^5.7.1", 965 | "supports-color": "^5.5.0", 966 | "touch": "^3.1.0", 967 | "undefsafe": "^2.0.2", 968 | "update-notifier": "^4.0.0" 969 | } 970 | }, 971 | "nopt": { 972 | "version": "1.0.10", 973 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 974 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 975 | "dev": true, 976 | "requires": { 977 | "abbrev": "1" 978 | } 979 | }, 980 | "normalize-path": { 981 | "version": "3.0.0", 982 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 983 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 984 | "dev": true 985 | }, 986 | "normalize-url": { 987 | "version": "4.5.0", 988 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", 989 | "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", 990 | "dev": true 991 | }, 992 | "on-finished": { 993 | "version": "2.3.0", 994 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 995 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 996 | "requires": { 997 | "ee-first": "1.1.1" 998 | } 999 | }, 1000 | "once": { 1001 | "version": "1.4.0", 1002 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1003 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1004 | "dev": true, 1005 | "requires": { 1006 | "wrappy": "1" 1007 | } 1008 | }, 1009 | "p-cancelable": { 1010 | "version": "1.1.0", 1011 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 1012 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", 1013 | "dev": true 1014 | }, 1015 | "package-json": { 1016 | "version": "6.5.0", 1017 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", 1018 | "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", 1019 | "dev": true, 1020 | "requires": { 1021 | "got": "^9.6.0", 1022 | "registry-auth-token": "^4.0.0", 1023 | "registry-url": "^5.0.0", 1024 | "semver": "^6.2.0" 1025 | }, 1026 | "dependencies": { 1027 | "semver": { 1028 | "version": "6.3.0", 1029 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1030 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1031 | "dev": true 1032 | } 1033 | } 1034 | }, 1035 | "parseurl": { 1036 | "version": "1.3.3", 1037 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1038 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" 1039 | }, 1040 | "path-to-regexp": { 1041 | "version": "0.1.7", 1042 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.7.tgz", 1043 | "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=" 1044 | }, 1045 | "picomatch": { 1046 | "version": "2.2.2", 1047 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", 1048 | "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", 1049 | "dev": true 1050 | }, 1051 | "prepend-http": { 1052 | "version": "2.0.0", 1053 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 1054 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", 1055 | "dev": true 1056 | }, 1057 | "proxy-addr": { 1058 | "version": "2.0.6", 1059 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.6.tgz", 1060 | "integrity": "sha512-dh/frvCBVmSsDYzw6n926jv974gddhkFPfiN8hPOi30Wax25QZyZEGveluCgliBnqmuM+UJmBErbAUFIoDbjOw==", 1061 | "requires": { 1062 | "forwarded": "~0.1.2", 1063 | "ipaddr.js": "1.9.1" 1064 | } 1065 | }, 1066 | "pstree.remy": { 1067 | "version": "1.1.8", 1068 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1069 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1070 | "dev": true 1071 | }, 1072 | "pump": { 1073 | "version": "3.0.0", 1074 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 1075 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 1076 | "dev": true, 1077 | "requires": { 1078 | "end-of-stream": "^1.1.0", 1079 | "once": "^1.3.1" 1080 | } 1081 | }, 1082 | "pupa": { 1083 | "version": "2.0.1", 1084 | "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz", 1085 | "integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==", 1086 | "dev": true, 1087 | "requires": { 1088 | "escape-goat": "^2.0.0" 1089 | } 1090 | }, 1091 | "qs": { 1092 | "version": "6.7.0", 1093 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.7.0.tgz", 1094 | "integrity": "sha512-VCdBRNFTX1fyE7Nb6FYoURo/SPe62QCaAyzJvUjwRaIsc+NePBEniHlvxFmmX56+HZphIGtV0XeCirBtpDrTyQ==" 1095 | }, 1096 | "range-parser": { 1097 | "version": "1.2.1", 1098 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1099 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==" 1100 | }, 1101 | "raw-body": { 1102 | "version": "2.4.0", 1103 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.0.tgz", 1104 | "integrity": "sha512-4Oz8DUIwdvoa5qMJelxipzi/iJIi40O5cGV1wNYp5hvZP8ZN0T+jiNkL0QepXs+EsQ9XJ8ipEDoiH70ySUJP3Q==", 1105 | "requires": { 1106 | "bytes": "3.1.0", 1107 | "http-errors": "1.7.2", 1108 | "iconv-lite": "0.4.24", 1109 | "unpipe": "1.0.0" 1110 | } 1111 | }, 1112 | "rc": { 1113 | "version": "1.2.8", 1114 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 1115 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 1116 | "dev": true, 1117 | "requires": { 1118 | "deep-extend": "^0.6.0", 1119 | "ini": "~1.3.0", 1120 | "minimist": "^1.2.0", 1121 | "strip-json-comments": "~2.0.1" 1122 | } 1123 | }, 1124 | "readdirp": { 1125 | "version": "3.4.0", 1126 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz", 1127 | "integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==", 1128 | "dev": true, 1129 | "requires": { 1130 | "picomatch": "^2.2.1" 1131 | } 1132 | }, 1133 | "registry-auth-token": { 1134 | "version": "4.2.0", 1135 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.0.tgz", 1136 | "integrity": "sha512-P+lWzPrsgfN+UEpDS3U8AQKg/UjZX6mQSJueZj3EK+vNESoqBSpBUD3gmu4sF9lOsjXWjF11dQKUqemf3veq1w==", 1137 | "dev": true, 1138 | "requires": { 1139 | "rc": "^1.2.8" 1140 | } 1141 | }, 1142 | "registry-url": { 1143 | "version": "5.1.0", 1144 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", 1145 | "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", 1146 | "dev": true, 1147 | "requires": { 1148 | "rc": "^1.2.8" 1149 | } 1150 | }, 1151 | "responselike": { 1152 | "version": "1.0.2", 1153 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 1154 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 1155 | "dev": true, 1156 | "requires": { 1157 | "lowercase-keys": "^1.0.0" 1158 | } 1159 | }, 1160 | "safe-buffer": { 1161 | "version": "5.1.2", 1162 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1163 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1164 | }, 1165 | "safer-buffer": { 1166 | "version": "2.1.2", 1167 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1168 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1169 | }, 1170 | "semver": { 1171 | "version": "5.7.1", 1172 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1173 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1174 | "dev": true 1175 | }, 1176 | "semver-diff": { 1177 | "version": "3.1.1", 1178 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", 1179 | "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", 1180 | "dev": true, 1181 | "requires": { 1182 | "semver": "^6.3.0" 1183 | }, 1184 | "dependencies": { 1185 | "semver": { 1186 | "version": "6.3.0", 1187 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 1188 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 1189 | "dev": true 1190 | } 1191 | } 1192 | }, 1193 | "send": { 1194 | "version": "0.17.1", 1195 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 1196 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 1197 | "requires": { 1198 | "debug": "2.6.9", 1199 | "depd": "~1.1.2", 1200 | "destroy": "~1.0.4", 1201 | "encodeurl": "~1.0.2", 1202 | "escape-html": "~1.0.3", 1203 | "etag": "~1.8.1", 1204 | "fresh": "0.5.2", 1205 | "http-errors": "~1.7.2", 1206 | "mime": "1.6.0", 1207 | "ms": "2.1.1", 1208 | "on-finished": "~2.3.0", 1209 | "range-parser": "~1.2.1", 1210 | "statuses": "~1.5.0" 1211 | }, 1212 | "dependencies": { 1213 | "debug": { 1214 | "version": "2.6.9", 1215 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1216 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1217 | "requires": { 1218 | "ms": "2.0.0" 1219 | }, 1220 | "dependencies": { 1221 | "ms": { 1222 | "version": "2.0.0", 1223 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1224 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1225 | } 1226 | } 1227 | }, 1228 | "ms": { 1229 | "version": "2.1.1", 1230 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 1231 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==" 1232 | } 1233 | } 1234 | }, 1235 | "serve-static": { 1236 | "version": "1.14.1", 1237 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 1238 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 1239 | "requires": { 1240 | "encodeurl": "~1.0.2", 1241 | "escape-html": "~1.0.3", 1242 | "parseurl": "~1.3.3", 1243 | "send": "0.17.1" 1244 | } 1245 | }, 1246 | "setprototypeof": { 1247 | "version": "1.1.1", 1248 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 1249 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==" 1250 | }, 1251 | "signal-exit": { 1252 | "version": "3.0.3", 1253 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", 1254 | "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", 1255 | "dev": true 1256 | }, 1257 | "statuses": { 1258 | "version": "1.5.0", 1259 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1260 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1261 | }, 1262 | "string-width": { 1263 | "version": "4.2.0", 1264 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 1265 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 1266 | "dev": true, 1267 | "requires": { 1268 | "emoji-regex": "^8.0.0", 1269 | "is-fullwidth-code-point": "^3.0.0", 1270 | "strip-ansi": "^6.0.0" 1271 | }, 1272 | "dependencies": { 1273 | "ansi-regex": { 1274 | "version": "5.0.0", 1275 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 1276 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", 1277 | "dev": true 1278 | }, 1279 | "emoji-regex": { 1280 | "version": "8.0.0", 1281 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1282 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1283 | "dev": true 1284 | }, 1285 | "is-fullwidth-code-point": { 1286 | "version": "3.0.0", 1287 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1288 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1289 | "dev": true 1290 | }, 1291 | "strip-ansi": { 1292 | "version": "6.0.0", 1293 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 1294 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 1295 | "dev": true, 1296 | "requires": { 1297 | "ansi-regex": "^5.0.0" 1298 | } 1299 | } 1300 | } 1301 | }, 1302 | "strip-ansi": { 1303 | "version": "5.2.0", 1304 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1305 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1306 | "dev": true, 1307 | "requires": { 1308 | "ansi-regex": "^4.1.0" 1309 | } 1310 | }, 1311 | "strip-json-comments": { 1312 | "version": "2.0.1", 1313 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1314 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 1315 | "dev": true 1316 | }, 1317 | "supports-color": { 1318 | "version": "5.5.0", 1319 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1320 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1321 | "requires": { 1322 | "has-flag": "^3.0.0" 1323 | } 1324 | }, 1325 | "term-size": { 1326 | "version": "2.2.0", 1327 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz", 1328 | "integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==", 1329 | "dev": true 1330 | }, 1331 | "to-readable-stream": { 1332 | "version": "1.0.0", 1333 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 1334 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", 1335 | "dev": true 1336 | }, 1337 | "to-regex-range": { 1338 | "version": "5.0.1", 1339 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1340 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1341 | "dev": true, 1342 | "requires": { 1343 | "is-number": "^7.0.0" 1344 | } 1345 | }, 1346 | "toidentifier": { 1347 | "version": "1.0.0", 1348 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 1349 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==" 1350 | }, 1351 | "touch": { 1352 | "version": "3.1.0", 1353 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.0.tgz", 1354 | "integrity": "sha512-WBx8Uy5TLtOSRtIq+M03/sKDrXCLHxwDcquSP2c43Le03/9serjQBIztjRz6FkJez9D/hleyAXTBGLwwZUw9lA==", 1355 | "dev": true, 1356 | "requires": { 1357 | "nopt": "~1.0.10" 1358 | } 1359 | }, 1360 | "type-fest": { 1361 | "version": "0.8.1", 1362 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 1363 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", 1364 | "dev": true 1365 | }, 1366 | "type-is": { 1367 | "version": "1.6.18", 1368 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 1369 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 1370 | "requires": { 1371 | "media-typer": "0.3.0", 1372 | "mime-types": "~2.1.24" 1373 | } 1374 | }, 1375 | "typedarray-to-buffer": { 1376 | "version": "3.1.5", 1377 | "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", 1378 | "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", 1379 | "dev": true, 1380 | "requires": { 1381 | "is-typedarray": "^1.0.0" 1382 | } 1383 | }, 1384 | "undefsafe": { 1385 | "version": "2.0.3", 1386 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.3.tgz", 1387 | "integrity": "sha512-nrXZwwXrD/T/JXeygJqdCO6NZZ1L66HrxM/Z7mIq2oPanoN0F1nLx3lwJMu6AwJY69hdixaFQOuoYsMjE5/C2A==", 1388 | "dev": true, 1389 | "requires": { 1390 | "debug": "^2.2.0" 1391 | }, 1392 | "dependencies": { 1393 | "debug": { 1394 | "version": "2.6.9", 1395 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1396 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1397 | "dev": true, 1398 | "requires": { 1399 | "ms": "2.0.0" 1400 | } 1401 | }, 1402 | "ms": { 1403 | "version": "2.0.0", 1404 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1405 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1406 | "dev": true 1407 | } 1408 | } 1409 | }, 1410 | "unique-string": { 1411 | "version": "2.0.0", 1412 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", 1413 | "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", 1414 | "dev": true, 1415 | "requires": { 1416 | "crypto-random-string": "^2.0.0" 1417 | } 1418 | }, 1419 | "unpipe": { 1420 | "version": "1.0.0", 1421 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1422 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1423 | }, 1424 | "update-notifier": { 1425 | "version": "4.1.1", 1426 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.1.tgz", 1427 | "integrity": "sha512-9y+Kds0+LoLG6yN802wVXoIfxYEwh3FlZwzMwpCZp62S2i1/Jzeqb9Eeeju3NSHccGGasfGlK5/vEHbAifYRDg==", 1428 | "dev": true, 1429 | "requires": { 1430 | "boxen": "^4.2.0", 1431 | "chalk": "^3.0.0", 1432 | "configstore": "^5.0.1", 1433 | "has-yarn": "^2.1.0", 1434 | "import-lazy": "^2.1.0", 1435 | "is-ci": "^2.0.0", 1436 | "is-installed-globally": "^0.3.1", 1437 | "is-npm": "^4.0.0", 1438 | "is-yarn-global": "^0.3.0", 1439 | "latest-version": "^5.0.0", 1440 | "pupa": "^2.0.1", 1441 | "semver-diff": "^3.1.1", 1442 | "xdg-basedir": "^4.0.0" 1443 | } 1444 | }, 1445 | "url-parse-lax": { 1446 | "version": "3.0.0", 1447 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 1448 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 1449 | "dev": true, 1450 | "requires": { 1451 | "prepend-http": "^2.0.0" 1452 | } 1453 | }, 1454 | "utils-merge": { 1455 | "version": "1.0.1", 1456 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 1457 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=" 1458 | }, 1459 | "vary": { 1460 | "version": "1.1.2", 1461 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 1462 | "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" 1463 | }, 1464 | "widest-line": { 1465 | "version": "3.1.0", 1466 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", 1467 | "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", 1468 | "dev": true, 1469 | "requires": { 1470 | "string-width": "^4.0.0" 1471 | } 1472 | }, 1473 | "wrappy": { 1474 | "version": "1.0.2", 1475 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1476 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1477 | "dev": true 1478 | }, 1479 | "write-file-atomic": { 1480 | "version": "3.0.3", 1481 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", 1482 | "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", 1483 | "dev": true, 1484 | "requires": { 1485 | "imurmurhash": "^0.1.4", 1486 | "is-typedarray": "^1.0.0", 1487 | "signal-exit": "^3.0.2", 1488 | "typedarray-to-buffer": "^3.1.5" 1489 | } 1490 | }, 1491 | "xdg-basedir": { 1492 | "version": "4.0.0", 1493 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", 1494 | "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", 1495 | "dev": true 1496 | } 1497 | } 1498 | } 1499 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "apigateway", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "dev": "nodemon gateway.js", 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "keywords": [], 11 | "author": "", 12 | "license": "ISC", 13 | "devDependencies": { 14 | "nodemon": "^2.0.4" 15 | }, 16 | "dependencies": { 17 | "axios": "^0.20.0", 18 | "ejs": "^3.1.5", 19 | "express": "^4.17.1", 20 | "helmet": "^4.1.1" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /postman/api_gateway.postman_collection.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "_postman_id": "22d75d6c-cf6b-4d02-9bed-655bfa3bc58b", 4 | "name": "API Gateway", 5 | "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" 6 | }, 7 | "item": [ 8 | { 9 | "name": "Fake API", 10 | "request": { 11 | "auth": { 12 | "type": "noauth" 13 | }, 14 | "method": "GET", 15 | "header": [ 16 | { 17 | "key": "Authorization", 18 | "value": "am9obmRvZTpwYXNzd29yZA==", 19 | "type": "text" 20 | } 21 | ], 22 | "url": { 23 | "raw": "http://localhost:3000/registrytest/fakeapi", 24 | "protocol": "http", 25 | "host": ["localhost"], 26 | "port": "3000", 27 | "path": ["registrytest", "fakeapi"] 28 | } 29 | }, 30 | "response": [] 31 | }, 32 | { 33 | "name": "Bogus Api", 34 | "request": { 35 | "method": "POST", 36 | "header": [ 37 | { 38 | "key": "Authorization", 39 | "value": "am9obmRvZTpwYXNzd29yZA==", 40 | "type": "text" 41 | } 42 | ], 43 | "body": { 44 | "mode": "raw", 45 | "raw": "{\r\n \"message\": \"this is a test\"\r\n}", 46 | "options": { 47 | "raw": { 48 | "language": "json" 49 | } 50 | } 51 | }, 52 | "url": { 53 | "raw": "http://localhost:3000/registrytest/bogusapi", 54 | "protocol": "http", 55 | "host": ["localhost"], 56 | "port": "3000", 57 | "path": ["registrytest", "bogusapi"] 58 | } 59 | }, 60 | "response": [] 61 | } 62 | ] 63 | } 64 | -------------------------------------------------------------------------------- /public/css/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fclassvisions/apigateway/503f631f10f2a01aba7ff9ce52b9a4b0e0b18184/public/css/index.css -------------------------------------------------------------------------------- /public/js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fclassvisions/apigateway/503f631f10f2a01aba7ff9ce52b9a4b0e0b18184/public/js -------------------------------------------------------------------------------- /routes/index.js: -------------------------------------------------------------------------------- 1 | const express = require('express') 2 | const router = express.Router() 3 | const axios = require('axios') 4 | const registry = require('./registry.json') 5 | const fs = require('fs') 6 | const loadbalancer = require('../util/loadbalancer') 7 | 8 | router.post('/enable/:apiName', (req, res) => { 9 | const apiName = req.params.apiName 10 | const requestBody = req.body 11 | const instances = registry.services[apiName].instances 12 | const index = instances.findIndex((srv) => { return srv.url === requestBody.url }) 13 | if(index == -1){ 14 | res.send({ status: 'error', message: "Could not find '" + requestBody.url + "' for service '" + apiName + "'"}) 15 | } else { 16 | instances[index].enabled = requestBody.enabled 17 | fs.writeFile('./routes/registry.json', JSON.stringify(registry), (error) => { 18 | if (error) { 19 | res.send("Could not enable/disable '" + requestBody.url + "' for service '" + apiName + ":'\n" + error) 20 | } else { 21 | res.send("Successfully enabled/disabled '" + requestBody.url + "' for service '" + apiName + "'\n") 22 | } 23 | }) 24 | } 25 | }) 26 | 27 | router.all('/:apiName/:path', (req, res) => { 28 | const service = registry.services[req.params.apiName] 29 | if (service) { 30 | if (!service.loadBalanceStrategy) { 31 | service.loadBalanceStrategy = 'ROUND_ROBIN' 32 | fs.writeFile('./routes/registry.json', JSON.stringify(registry), (error) => { 33 | if (error) { 34 | res.send("Couldn't write load balance strategy" + error) 35 | } 36 | }) 37 | } 38 | 39 | const newIndex = loadbalancer[service.loadBalanceStrategy](service) 40 | const url = service.instances[newIndex].url 41 | console.log(url) 42 | axios({ 43 | method: req.method, 44 | url: url + req.params.path, 45 | headers: req.headers, 46 | data: req.body 47 | }).then((response) => { 48 | res.send(response.data) 49 | }).catch(error => { 50 | res.send("") 51 | }) 52 | } else { 53 | res.send("API Name doesn't exist") 54 | } 55 | }) 56 | 57 | router.post('/register', (req, res) => { 58 | const registrationInfo = req.body 59 | registrationInfo.url = registrationInfo.protocol + "://" + registrationInfo.host + ":" + registrationInfo.port + "/" 60 | 61 | if (apiAlreadyExists(registrationInfo)) { 62 | res.send("Configuration already exists for '" + registrationInfo.apiName + "' at '" + registrationInfo.url + "'") 63 | } else { 64 | registry.services[registrationInfo.apiName].instances.push({ ...registrationInfo }) 65 | fs.writeFile('./routes/registry.json', JSON.stringify(registry), (error) => { 66 | if (error) { 67 | res.send("Could not register '" + registrationInfo.apiName + "'\n" + error) 68 | } else { 69 | res.send("Successfully registered '" + registrationInfo.apiName + "'") 70 | } 71 | }) 72 | } 73 | }) 74 | 75 | router.post('/unregister', (req, res) => { 76 | const registrationInfo = req.body 77 | 78 | if (apiAlreadyExists(registrationInfo)) { 79 | const index = registry.services[registrationInfo.apiName].instances.findIndex((instance) => { 80 | return registrationInfo.url === instance.url 81 | }) 82 | registry.services[registrationInfo.apiName].instances.splice(index, 1) 83 | fs.writeFile('./routes/registry.json', JSON.stringify(registry), (error) => { 84 | if (error) { 85 | res.send("Could not unregister '" + registrationInfo.apiName + "'\n" + error) 86 | } else { 87 | res.send("Successfully unregistered '" + registrationInfo.apiName + "'") 88 | } 89 | }) 90 | } else { 91 | res.send("Configuration does not exist for '" + registrationInfo.apiName + "' at '" + registrationInfo.url + "'") 92 | } 93 | }) 94 | 95 | const apiAlreadyExists = (registrationInfo) => { 96 | let exists = false 97 | 98 | registry.services[registrationInfo.apiName].instances.forEach(instance => { 99 | if (instance.url === registrationInfo.url) { 100 | exists = true 101 | return 102 | } 103 | }) 104 | 105 | return exists 106 | } 107 | 108 | module.exports = router -------------------------------------------------------------------------------- /routes/registry.json: -------------------------------------------------------------------------------- 1 | { 2 | "services": { 3 | "registrytest": { 4 | "index": 0, 5 | "instances": [ 6 | { 7 | "apiName": "registrytest", 8 | "protocol": "http", 9 | "host": "localhost", 10 | "port": 3002, 11 | "url": "http://localhost:3002/", 12 | "enabled": true 13 | }, 14 | { 15 | "apiName": "registrytest", 16 | "protocol": "http", 17 | "host": "localhost", 18 | "port": 3001, 19 | "url": "http://localhost:3001/", 20 | "enabled": true 21 | } 22 | ], 23 | "loadBalanceStrategy": "ROUND_ROBIN" 24 | } 25 | }, 26 | "auth": { 27 | "users": { 28 | "johndoe": { 29 | "username": "johndoe", 30 | "password": "password" 31 | } 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /util/loadbalancer.js: -------------------------------------------------------------------------------- 1 | const loadbalancer = {} 2 | 3 | loadbalancer.ROUND_ROBIN = (service) => { 4 | const newIndex = ++service.index >= service.instances.length ? 0 : service.index 5 | service.index = newIndex 6 | return loadbalancer.isEnabled(service, newIndex, loadbalancer.ROUND_ROBIN) 7 | } 8 | 9 | loadbalancer.isEnabled = (service, index, loadBalanceStrategy) => { 10 | return service.instances[index].enabled ? index : loadBalanceStrategy(service) 11 | } 12 | 13 | module.exports = loadbalancer -------------------------------------------------------------------------------- /views/index.ejs: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | API Gateway 8 | 9 | 10 |

<%= JSON.stringify(services) %>

11 |
12 |

API Gateway Services

13 |
14 | <% Object.entries(services).forEach(service => { %> 15 |
16 |

Name

17 |

<%= service[0] %>

18 |
19 |
20 |

Load Balance Strategy

21 |

<%= service[1].loadBalanceStrategy %>

22 |
23 |
24 |

Registered Instances

25 | <% service[1].instances.forEach((instance, index) => { %> 26 |
27 | 28 |
29 |
30 | 31 |

<%= instance.url %>

32 |
33 |
34 | 35 |

<%= instance.enabled %>

36 |
37 | <% }) %> 38 |
39 | <% }) %> 40 |
41 |
42 | 43 | --------------------------------------------------------------------------------