├── .eslintrc.js ├── .gitignore ├── .travis.yml ├── CHANGELOG.markdown ├── LICENSE ├── README-DEPRECATED.markdown ├── README.markdown ├── args.js ├── index.js ├── lib.js ├── main.js ├── package-lock.json ├── package.json └── test ├── .env.example ├── index.js └── jekyll.js /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "extends": "eslint:recommended", 3 | "env": { 4 | "node": true, 5 | "es6": true 6 | }, 7 | "rules": { 8 | "no-trailing-spaces": "error", 9 | "semi": "error", 10 | "indent": ["error", 4], 11 | "no-console": 0 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # nyc test coverage 18 | .nyc_output 19 | 20 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 21 | .grunt 22 | 23 | # node-waf configuration 24 | .lock-wscript 25 | 26 | # Compiled binary addons (http://nodejs.org/api/addons.html) 27 | build/Release 28 | 29 | # Dependency directories 30 | node_modules 31 | jspm_packages 32 | 33 | # Optional npm cache directory 34 | .npm 35 | 36 | # Optional REPL history 37 | .node_repl_history 38 | 39 | build/ 40 | .env 41 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "9" 4 | -------------------------------------------------------------------------------- /CHANGELOG.markdown: -------------------------------------------------------------------------------- 1 | # Changelog 2 | All notable changes to this project will be documented in this file. 3 | 4 | The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) 5 | and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). 6 | 7 | ## [3.1.1] - 2018-01-22 8 | 9 | ### Fixed 10 | 11 | - Fixed le-acme-core dependency by pointing to a [backup fork](https://github.com/rolodato/le-acme-core) of it. 12 | 13 | ## [3.1.0] - 2018-01-15 14 | 15 | ### Added 16 | 17 | - Added a `--version` flag to print the current version. 18 | 19 | ### Fixed 20 | 21 | - Fixed "Invalid PEM formatted message" when running with `--production` [(#35)](https://github.com/rolodato/gitlab-letsencrypt/issues/35) 22 | 23 | ## [3.0.0] - 2018-01-14 24 | 25 | ### Added 26 | - Certificates are now automatically configured on a GitLab Page by using GitLab's API. 27 | Full automation is now possible! 28 | - Support for arbitrary GitLab instances, not just https://gitlab.com. 29 | 30 | ### Changed 31 | - To prevent accidental rate-limiting, staging certificates are obtained by default. Use `--production` to obtain real certificates. 32 | - `--repository` now accepts a full repository URL instead of a repository identifier. 33 | - Commits made from `gitlab-le` now have their author set to "gitlab-le". 34 | - Minimum required Node version is now 8.x. 35 | -------------------------------------------------------------------------------- /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 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 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 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README-DEPRECATED.markdown: -------------------------------------------------------------------------------- 1 | # gitlab-letsencrypt [![Build Status](https://travis-ci.org/rolodato/gitlab-letsencrypt.svg?branch=master)](https://travis-ci.org/rolodato/gitlab-letsencrypt) 2 | 3 | Command-line tool to generate a [Let's Encrypt](https://letsencrypt.org) certificate for use with [GitLab Pages](https://pages.gitlab.io/). 4 | 5 | ## Installation 6 | 7 | ```sh 8 | npm install -g gitlab-letsencrypt 9 | ``` 10 | 11 | ## Usage 12 | 13 | **Important**: To avoid being rate-limited by Let's Encrypt, do not use the `--production` option until you have tested everything works OK without it. 14 | By default, `gitlab-le` will use [Let's Encrypt's staging environment](https://letsencrypt.org/docs/staging-environment/), which does not issue real certificates but has very generous rate limits. 15 | 16 | ```sh 17 | gitlab-le \ 18 | --email example@example.com `# REQUIRED - Let's Encrypt email address` \ 19 | --domain example.com www.example.com `# REQUIRED - Domain(s) that the cert will be issued for (separated by spaces)` \ 20 | --repository https://gitlab.com/gitlab_user/gitlab_repo `# REQUIRED - Full URL to your GitLab repository` \ 21 | --token ... `# REQUIRED - GitLab personal access token, see https://gitlab.com/profile/personal_access_tokens` \ 22 | --production `# OPTIONAL - Obtain a real certificate instead of a dummy one and configure your repository to use it` 23 | --path `# OPTIONAL - Absolute path in your repository where challenge files should be uploaded` 24 | --jekyll `# OPTIONAL - Upload challenge files with a Jekyll-compatible YAML front matter` \ 25 | ``` 26 | 27 | See `gitlab-le --help` for more details. 28 | 29 | ## Example 30 | 31 | ``` 32 | $ gitlab-le --email example@example.com --token ... --domain example.com www.example.com --repository https://example.com/user/my-repo --production 33 | By using Let's Encrypt, you are agreeing to the TOS at https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf 34 | Uploaded challenge file, waiting for it to be available at http://example.com/.well-known/acme-challenge/35wHSN4YSNjqh5iz5gULxQ4X30cV7vRA_S929uiiNCc 35 | Could not find challenge file. Retrying in 30s... 36 | Could not find challenge file. Retrying in 1m... 37 | Could not find challenge file. Retrying in 2m... 38 | Uploaded challenge file, waiting for it to be available at http://www.example.com/.well-known/acme-challenge/50U-eARIh2OYLQN22oe4lib6_ESnwLPhCMMkBlUY1BI 39 | Could not find challenge file. Retrying in 30s... 40 | Could not find challenge file. Retrying in 1m... 41 | Could not find challenge file. Retrying in 2m... 42 | 43 | Success! Your GitLab page has been configured to use an HTTPS certificate obtained from Let's Encrypt. 44 | Try it out: https://example.com https://www.example.com (GitLab might take a few minutes to start using your certificate for the first time) 45 | This certificate expires on Sat Apr 14 2018 03:09:06 GMT+0100 (BST). You will need to run gitlab-le again at some time before this date. 46 | ``` 47 | 48 | ## How it works 49 | 50 | `gitlab-le` uses the [ACME HTTP Challenge](https://tools.ietf.org/html/draft-ietf-acme-acme-09#section-8.3) to prove ownership of a given set of domains. 51 | 52 | 1. Requests a challenge from Let's Encrypt using the provided email address for the specified domains. One challenge file is generated per domain 53 | 2. Each challenge file is uploaded to your GitLab repository using GitLab's API, which commits to your repository 54 | 3. The challenge URL is repeatedly polled until the challenge file is made available. GitLab Pages take a while to update after changes are committed 55 | 4. If Let's Encrypt was able to verify the challenge file, a certificate for that domain is issued 56 | 5. Each challenge file is removed from your GitLab repository by committing to it through the GitLab API 57 | 6. If `--production` was set, your GitLab page is configured to use the issued certificate 58 | 59 | Because Let's Encrypt is a fully automated certificate authority, all issued certificates expire in 90 days. 60 | A fresh certificate can be obtained at any time by running `gitlab-le` again, as long as you are within Let's Encrypt's [rate limits](https://letsencrypt.org/docs/rate-limits/). 61 | 62 | ## Security 63 | 64 | `gitlab-le` does not save or log anything to disk. 65 | The GitLab access token is used to upload the challenge file to your repository and to delete it once the challenge is completed. 66 | 67 | Even though challenge files are deleted from your repository after a challenge is completed, they are still visible in the repository's commit history. 68 | `gitlab-le` does not rewrite your repository's commit history to hide this. 69 | 70 | Challenge files do not have any value to attackers without the RSA keys used to initiate a Let's Encrypt challenge, which are generated on each run of `gitlab-le`. 71 | For more details, refer to the [Integrity of Authorizations sections of the ACME specification](https://tools.ietf.org/html/draft-ietf-acme-acme-09#section-10.2). 72 | 73 | ## Motivation 74 | 75 | Let's Encrypt certificates expire every 90 days - this is by design to take advantage of automated renewals using [ACME](https://tools.ietf.org/html/draft-ietf-acme-acme-01). 76 | However, GitLab does not provide a way to automatically renew certificates, so this process must be done manually. 77 | 78 | ## Automation 79 | 80 | Since 10.2, GitLab provides an API to configure HTTPS certificates on a GitLab page, which means `gitlab-le` can be configured to obtain new certificates when your existing ones are about to expire. 81 | -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | # Deprecation notice 2 | 3 | Starting from version 12.1, [GitLab has a Let's Encrypt integration](https://gitlab.com/help/user/project/pages/custom_domains_ssl_tls_certification/lets_encrypt_integration.md), which makes this tool unnecessary. 4 | 5 | See [README-DEPRECATED for the last published README](/README-DEPRECATED.markdown). -------------------------------------------------------------------------------- /args.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const yargs = require('yargs'); 4 | module.exports = yargs 5 | .strict() 6 | .help() 7 | .version(() => require('./package.json').version) 8 | .option('domain', { 9 | describe: 'Domain(s) that the cert will be issued for (separated by spaces)', 10 | type: 'array', 11 | demandOption: true, 12 | alias: 'domains' 13 | }).option('email', { 14 | describe: 'Email address for your Let\'s Encrypt account', 15 | type: 'string', 16 | demandOption: true 17 | }).option('repository', { 18 | describe: 'GitLab repository URL', 19 | type: 'string', 20 | demandOption: true 21 | }).option('token', { 22 | describe: 'GitLab personal access token (https://gitlab.com/profile/personal_access_tokens)', 23 | type: 'string', 24 | demandOption: true 25 | }).option('jekyll', { 26 | describe: 'Upload challenge files with a Jekyll-compatible YAML front matter (see https://jekyllrb.com/docs/frontmatter)', 27 | type: 'boolean', 28 | default: false 29 | }).option('path', { 30 | describe: 'Absolute path in your repository where challenge files will be uploaded. Your .gitlab-ci.yml file must be configured to serve the contents of this directory under http://YOUR_SITE/.well-known/acme-challenge', 31 | type: 'string', 32 | default: '/public/.well-known/acme-challenge' 33 | }).option('production', { 34 | describe: 'Obtain a real certificate instead of a dummy one and configure your repository to use it', 35 | type: 'boolean', 36 | default: false 37 | }).example('$0 --domain example.com www.example.com --email rolodato@example.com --repository https://gitlab.com/foo/example.gitlab.io --token abc123', 'Simple build where all files are served from public/ inside your repository') 38 | .example('$0 --jekyll --path / --domain example.com --email rolodato@example.com --repository https://gitlab.example.com/foo/myrepo --token abc123', 'Jekyll website that serves all valid files in your repository\'s root directory') 39 | .wrap(yargs.terminalWidth()) 40 | .check(argv => { 41 | const empty = Object.keys(argv).filter(key => key !== '_' && argv[key].length == 0); 42 | if (empty.length > 0) { 43 | console.error(`Missing required arguments: ${empty.join(', ')}`); 44 | process.exit(1); 45 | } else { 46 | return true; 47 | } 48 | }).argv; 49 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | 'use strict'; 3 | const args = require('./args'); 4 | 5 | require('./main')(args); 6 | -------------------------------------------------------------------------------- /lib.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const Promise = require('bluebird'); 3 | const ACME = Promise.promisifyAll(require('le-acme-core').ACME.create()); 4 | const RSA = Promise.promisifyAll(require('rsa-compat').RSA); 5 | const ms = require('ms'); 6 | const request = require('request-promise'); 7 | const xtend = require('xtend'); 8 | const pki = require('node-forge').pki; 9 | const path = require('path'); 10 | const { URL } = require('url'); 11 | 12 | const generateRsa = () => RSA.generateKeypairAsync(2048, 65537, {}); 13 | 14 | const pollUntilDeployed = (url, expectedContent, timeoutMs = 30 * 1000, retries = 10) => { 15 | if (retries > 0) { 16 | return request.get({ 17 | url: url, 18 | simple: false // don't reject on 404 19 | }).then(res => { 20 | if (res === expectedContent) { 21 | return Promise.resolve(); 22 | } else { 23 | // GitLab CI usually takes 50-80 seconds to build 24 | console.log(`Could not find challenge file. Retrying in ${ms(timeoutMs)}...`); 25 | return Promise.delay(timeoutMs).then(() => 26 | pollUntilDeployed(url, expectedContent, timeoutMs * 2, retries - 1)); 27 | } 28 | }); 29 | } else { 30 | return Promise.reject(`Timed out while waiting for challenge file at ${url}`); 31 | } 32 | }; 33 | 34 | module.exports = (options) => { 35 | const getUrls = ACME.getAcmeUrlsAsync(options.production ? ACME.productionServerUrl : ACME.stagingServerUrl); 36 | const repoUrl = new URL(options.repository); 37 | const gitlabBaseUrl = repoUrl.origin; 38 | const gitlabRequest = request.defaults({ 39 | headers: { 'PRIVATE-TOKEN': options.token }, 40 | json: true, 41 | baseUrl: `${gitlabBaseUrl}/api/v4` 42 | }); 43 | 44 | const getRepository = (name) => { 45 | return gitlabRequest.get({ 46 | url: `/projects/${encodeURIComponent(name.replace('/', ''))}` 47 | }); 48 | }; 49 | 50 | const uploadChallenge = (key, value, repo, domain) => { 51 | const challengeContent = options.jekyll ? 52 | `---\nlayout: null\npermalink: /.well-known/acme-challenge/${key}\n---\n${value}` : value; 53 | // Need to bluebird-ify to use .asCallback() 54 | const filePath = encodeURIComponent(path.posix.resolve('/', options.path, key)); 55 | return Promise.resolve(gitlabRequest.post({ 56 | url: `/projects/${repo.id}/repository/files/${filePath}`, 57 | body: { 58 | commit_message: 'Automated Let\'s Encrypt renewal: add challenge', 59 | branch: repo.default_branch, 60 | content: challengeContent, 61 | author_name: 'gitlab-le' 62 | } 63 | })).return([`http://${domain}/.well-known/acme-challenge/${key}`, value]); 64 | }; 65 | 66 | const deleteChallenges = (key, repo) => { 67 | const filePath = encodeURIComponent(path.posix.resolve('/', options.path, key)); 68 | return Promise.resolve(gitlabRequest.delete({ 69 | url: `/projects/${repo.id}/repository/files/${filePath}`, 70 | body: { 71 | commit_message: 'Automated Let\'s Encrypt renewal: remove challenge', 72 | branch: repo.default_branch, 73 | author_name: 'gitlab-le' 74 | } 75 | })); 76 | }; 77 | 78 | const listPagesDomains = (repo) => { 79 | return gitlabRequest.get({ 80 | url: `/projects/${repo.id}/pages/domains`, 81 | }); 82 | }; 83 | 84 | const createPagesDomain = (repo, domain) => { 85 | return gitlabRequest.post({ 86 | url: `/projects/${repo.id}/pages/domains`, 87 | form: { domain: domain } 88 | }); 89 | }; 90 | 91 | const updatePagesDomainWithCertificate = (repo, domain, cert) => { 92 | return gitlabRequest.put({ 93 | url: `/projects/${repo.id}/pages/domains/${domain}`, 94 | form: { 95 | domain: domain, 96 | certificate: cert.cert + cert.chain, 97 | key: cert.privkey 98 | } 99 | }); 100 | }; 101 | 102 | const createPagesDomains = (repo) => { 103 | return listPagesDomains(repo).then(pagesDomains => { 104 | // names of existing domains in gitlab pages 105 | const pagesDomainsNames = pagesDomains.map(pagesDomain => { 106 | return pagesDomain.domain; 107 | }); 108 | 109 | // domains that need to be created 110 | const domainsToCreate = options.domain.filter(domain => { 111 | return !pagesDomainsNames.includes(domain); 112 | }); 113 | 114 | // promises to create the new domains 115 | const promises = domainsToCreate.map(domain => { 116 | return createPagesDomain(repo, domain); 117 | }); 118 | 119 | return Promise.all(promises); 120 | }); 121 | }; 122 | 123 | const updatePagesDomainsWithCertificates = (repo, cert) => { 124 | const promises = options.domain.map(domain => { 125 | return updatePagesDomainWithCertificate(repo, domain, cert); 126 | }); 127 | 128 | return Promise.all(promises); 129 | }; 130 | 131 | let deleteChallengesPromise = null; 132 | 133 | return Promise.join(getUrls, generateRsa(), generateRsa(), getRepository(repoUrl.pathname), 134 | (urls, accountKp, domainKp, repo) => { 135 | return createPagesDomains(repo).then(() => { 136 | return ACME.registerNewAccountAsync({ 137 | newRegUrl: urls.newReg, 138 | email: options.email, 139 | accountKeypair: accountKp, 140 | agreeToTerms: (tosUrl, cb) => { 141 | console.log(`By using Let's Encrypt, you are agreeing to the TOS at ${tosUrl}`); 142 | cb(null, true); 143 | } 144 | }); 145 | }).then(() => { 146 | return ACME.getCertificateAsync({ 147 | newAuthzUrl: urls.newAuthz, 148 | newCertUrl: urls.newCert, 149 | domainKeypair: domainKp, 150 | accountKeypair: accountKp, 151 | domains: options.domain, 152 | setChallenge: (hostname, key, value, cb) => { 153 | return Promise.resolve(deleteChallengesPromise) 154 | .then(() => uploadChallenge(key, value, repo, hostname)) 155 | .tap(res => console.log(`Uploaded challenge file, polling until it is available at ${res[0]}`)) 156 | .spread(pollUntilDeployed) 157 | .asCallback(cb); 158 | }, 159 | removeChallenge: (hostname, key, cb) => { 160 | return (deleteChallengesPromise = deleteChallenges(key, repo)).finally(() => cb(null)); 161 | } 162 | }); 163 | }).tap(cert => 164 | options.production ? updatePagesDomainsWithCertificates(repo, cert) : cert 165 | ).then(cert => xtend(cert, { 166 | domains: options.domain, 167 | repository: options.repository, 168 | pagesUrl: `${gitlabBaseUrl}/${options.repository}/pages`, 169 | notAfter: pki.certificateFromPem(cert.cert).validity.notAfter 170 | })); 171 | }); 172 | }; 173 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | const getCertificate = require('./lib'); 3 | 4 | module.exports = (args) => { 5 | return getCertificate(args).then(certs => { 6 | process.stdout.write('Success! '); 7 | if (!args.production) { 8 | console.log(`A test certificate was successfully obtained for the following domains: ${certs.domains.join(', ')}`); 9 | console.log(`To obtain a production certificate, run gitlab-le again and add the --production option.`); 10 | } else { 11 | console.log(`Your GitLab page has been configured to use an HTTPS certificate obtained from Let's Encrypt.`); 12 | console.log(`Try it out: ${certs.domains.map(c => `https://${c}`).join(' ')} (GitLab might take a few minutes to start using your certificate for the first time)\n`); 13 | console.log(`This certificate expires on ${certs.notAfter}. You will need to run gitlab-le again at some time before this date.`); 14 | } 15 | }).catch(err => { 16 | console.error(err.detail || err.message || err); 17 | process.exit(1); 18 | }); 19 | }; 20 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gitlab-letsencrypt", 3 | "version": "3.1.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "acorn": { 8 | "version": "5.3.0", 9 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.3.0.tgz", 10 | "integrity": "sha512-Yej+zOJ1Dm/IMZzzj78OntP/r3zHEaKcyNoU2lAaxPtrseM6rF0xwqoz5Q5ysAiED9hTjI2hgtvLXitlCN1/Ug==", 11 | "dev": true 12 | }, 13 | "acorn-jsx": { 14 | "version": "3.0.1", 15 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", 16 | "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", 17 | "dev": true, 18 | "requires": { 19 | "acorn": "3.3.0" 20 | }, 21 | "dependencies": { 22 | "acorn": { 23 | "version": "3.3.0", 24 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", 25 | "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", 26 | "dev": true 27 | } 28 | } 29 | }, 30 | "ajv": { 31 | "version": "4.11.8", 32 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", 33 | "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", 34 | "requires": { 35 | "co": "4.6.0", 36 | "json-stable-stringify": "1.0.1" 37 | } 38 | }, 39 | "ajv-keywords": { 40 | "version": "1.5.1", 41 | "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", 42 | "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=", 43 | "dev": true 44 | }, 45 | "ansi-escapes": { 46 | "version": "1.4.0", 47 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-1.4.0.tgz", 48 | "integrity": "sha1-06ioOzGapneTZisT52HHkRQiMG4=", 49 | "dev": true 50 | }, 51 | "ansi-regex": { 52 | "version": "2.1.1", 53 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 54 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 55 | }, 56 | "ansi-styles": { 57 | "version": "2.2.1", 58 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", 59 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", 60 | "dev": true 61 | }, 62 | "argparse": { 63 | "version": "1.0.9", 64 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.9.tgz", 65 | "integrity": "sha1-c9g7wmP4bpf4zE9rrhsOkKfSLIY=", 66 | "dev": true, 67 | "requires": { 68 | "sprintf-js": "1.0.3" 69 | } 70 | }, 71 | "array-union": { 72 | "version": "1.0.2", 73 | "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", 74 | "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", 75 | "dev": true, 76 | "requires": { 77 | "array-uniq": "1.0.3" 78 | } 79 | }, 80 | "array-uniq": { 81 | "version": "1.0.3", 82 | "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", 83 | "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", 84 | "dev": true 85 | }, 86 | "arrify": { 87 | "version": "1.0.1", 88 | "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", 89 | "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", 90 | "dev": true 91 | }, 92 | "asn1": { 93 | "version": "0.2.3", 94 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", 95 | "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" 96 | }, 97 | "assert-plus": { 98 | "version": "0.2.0", 99 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", 100 | "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=" 101 | }, 102 | "asynckit": { 103 | "version": "0.4.0", 104 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 105 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 106 | }, 107 | "aws-sign2": { 108 | "version": "0.6.0", 109 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", 110 | "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=" 111 | }, 112 | "aws4": { 113 | "version": "1.6.0", 114 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", 115 | "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" 116 | }, 117 | "babel-code-frame": { 118 | "version": "6.26.0", 119 | "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", 120 | "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", 121 | "dev": true, 122 | "requires": { 123 | "chalk": "1.1.3", 124 | "esutils": "2.0.2", 125 | "js-tokens": "3.0.2" 126 | } 127 | }, 128 | "balanced-match": { 129 | "version": "1.0.0", 130 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 131 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 132 | "dev": true 133 | }, 134 | "bcrypt-pbkdf": { 135 | "version": "1.0.1", 136 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", 137 | "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", 138 | "optional": true, 139 | "requires": { 140 | "tweetnacl": "0.14.5" 141 | } 142 | }, 143 | "bindings": { 144 | "version": "1.3.0", 145 | "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", 146 | "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==", 147 | "optional": true 148 | }, 149 | "bluebird": { 150 | "version": "3.5.0", 151 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.0.tgz", 152 | "integrity": "sha1-eRQg1/VR7qKJdFOop3ZT+WYG1nw=" 153 | }, 154 | "boom": { 155 | "version": "2.10.1", 156 | "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", 157 | "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", 158 | "requires": { 159 | "hoek": "2.16.3" 160 | } 161 | }, 162 | "brace-expansion": { 163 | "version": "1.1.8", 164 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", 165 | "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", 166 | "dev": true, 167 | "requires": { 168 | "balanced-match": "1.0.0", 169 | "concat-map": "0.0.1" 170 | } 171 | }, 172 | "buffer-v6-polyfill": { 173 | "version": "1.0.5", 174 | "resolved": "https://registry.npmjs.org/buffer-v6-polyfill/-/buffer-v6-polyfill-1.0.5.tgz", 175 | "integrity": "sha1-0c2v61YAvvbCjWFElkJWvRLgFnc=" 176 | }, 177 | "builtin-modules": { 178 | "version": "1.1.1", 179 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 180 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" 181 | }, 182 | "caller-path": { 183 | "version": "0.1.0", 184 | "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", 185 | "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", 186 | "dev": true, 187 | "requires": { 188 | "callsites": "0.2.0" 189 | } 190 | }, 191 | "callsites": { 192 | "version": "0.2.0", 193 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", 194 | "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", 195 | "dev": true 196 | }, 197 | "camelcase": { 198 | "version": "4.1.0", 199 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", 200 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=" 201 | }, 202 | "caseless": { 203 | "version": "0.12.0", 204 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 205 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 206 | }, 207 | "chalk": { 208 | "version": "1.1.3", 209 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 210 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 211 | "dev": true, 212 | "requires": { 213 | "ansi-styles": "2.2.1", 214 | "escape-string-regexp": "1.0.5", 215 | "has-ansi": "2.0.0", 216 | "strip-ansi": "3.0.1", 217 | "supports-color": "2.0.0" 218 | } 219 | }, 220 | "circular-json": { 221 | "version": "0.3.3", 222 | "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", 223 | "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", 224 | "dev": true 225 | }, 226 | "cli-cursor": { 227 | "version": "1.0.2", 228 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-1.0.2.tgz", 229 | "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", 230 | "dev": true, 231 | "requires": { 232 | "restore-cursor": "1.0.1" 233 | } 234 | }, 235 | "cli-width": { 236 | "version": "2.2.0", 237 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", 238 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", 239 | "dev": true 240 | }, 241 | "cliui": { 242 | "version": "3.2.0", 243 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", 244 | "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", 245 | "requires": { 246 | "string-width": "1.0.2", 247 | "strip-ansi": "3.0.1", 248 | "wrap-ansi": "2.1.0" 249 | }, 250 | "dependencies": { 251 | "string-width": { 252 | "version": "1.0.2", 253 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 254 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 255 | "requires": { 256 | "code-point-at": "1.1.0", 257 | "is-fullwidth-code-point": "1.0.0", 258 | "strip-ansi": "3.0.1" 259 | } 260 | } 261 | } 262 | }, 263 | "co": { 264 | "version": "4.6.0", 265 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 266 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" 267 | }, 268 | "code-point-at": { 269 | "version": "1.1.0", 270 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 271 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" 272 | }, 273 | "combined-stream": { 274 | "version": "1.0.5", 275 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", 276 | "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", 277 | "requires": { 278 | "delayed-stream": "1.0.0" 279 | } 280 | }, 281 | "concat-map": { 282 | "version": "0.0.1", 283 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 284 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 285 | "dev": true 286 | }, 287 | "concat-stream": { 288 | "version": "1.6.0", 289 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", 290 | "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", 291 | "dev": true, 292 | "requires": { 293 | "inherits": "2.0.3", 294 | "readable-stream": "2.3.3", 295 | "typedarray": "0.0.6" 296 | } 297 | }, 298 | "core-util-is": { 299 | "version": "1.0.2", 300 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 301 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 302 | }, 303 | "cross-spawn": { 304 | "version": "5.1.0", 305 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 306 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 307 | "requires": { 308 | "lru-cache": "4.1.1", 309 | "shebang-command": "1.2.0", 310 | "which": "1.3.0" 311 | } 312 | }, 313 | "cryptiles": { 314 | "version": "2.0.5", 315 | "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", 316 | "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", 317 | "requires": { 318 | "boom": "2.10.1" 319 | } 320 | }, 321 | "d": { 322 | "version": "1.0.0", 323 | "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", 324 | "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", 325 | "dev": true, 326 | "requires": { 327 | "es5-ext": "0.10.37" 328 | } 329 | }, 330 | "dashdash": { 331 | "version": "1.14.1", 332 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 333 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 334 | "requires": { 335 | "assert-plus": "1.0.0" 336 | }, 337 | "dependencies": { 338 | "assert-plus": { 339 | "version": "1.0.0", 340 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 341 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 342 | } 343 | } 344 | }, 345 | "debug": { 346 | "version": "2.6.9", 347 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 348 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 349 | "dev": true, 350 | "requires": { 351 | "ms": "2.0.0" 352 | } 353 | }, 354 | "decamelize": { 355 | "version": "1.2.0", 356 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 357 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 358 | }, 359 | "deep-is": { 360 | "version": "0.1.3", 361 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", 362 | "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", 363 | "dev": true 364 | }, 365 | "del": { 366 | "version": "2.2.2", 367 | "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", 368 | "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", 369 | "dev": true, 370 | "requires": { 371 | "globby": "5.0.0", 372 | "is-path-cwd": "1.0.0", 373 | "is-path-in-cwd": "1.0.0", 374 | "object-assign": "4.1.1", 375 | "pify": "2.3.0", 376 | "pinkie-promise": "2.0.1", 377 | "rimraf": "2.6.2" 378 | } 379 | }, 380 | "delayed-stream": { 381 | "version": "1.0.0", 382 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 383 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 384 | }, 385 | "doctrine": { 386 | "version": "2.1.0", 387 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", 388 | "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", 389 | "dev": true, 390 | "requires": { 391 | "esutils": "2.0.2" 392 | } 393 | }, 394 | "dotenv": { 395 | "version": "4.0.0", 396 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-4.0.0.tgz", 397 | "integrity": "sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0=", 398 | "dev": true 399 | }, 400 | "dotenv-safe": { 401 | "version": "4.0.4", 402 | "resolved": "https://registry.npmjs.org/dotenv-safe/-/dotenv-safe-4.0.4.tgz", 403 | "integrity": "sha1-iw587Y5wsdPF2HTvlCDkBvOUJbM=", 404 | "dev": true, 405 | "requires": { 406 | "dotenv": "4.0.0" 407 | } 408 | }, 409 | "ecc-jsbn": { 410 | "version": "0.1.1", 411 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", 412 | "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", 413 | "optional": true, 414 | "requires": { 415 | "jsbn": "0.1.1" 416 | } 417 | }, 418 | "error-ex": { 419 | "version": "1.3.1", 420 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", 421 | "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", 422 | "requires": { 423 | "is-arrayish": "0.2.1" 424 | } 425 | }, 426 | "es5-ext": { 427 | "version": "0.10.37", 428 | "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.37.tgz", 429 | "integrity": "sha1-DudB0Ui4AGm6J9AgOTdWryV978M=", 430 | "dev": true, 431 | "requires": { 432 | "es6-iterator": "2.0.3", 433 | "es6-symbol": "3.1.1" 434 | } 435 | }, 436 | "es6-iterator": { 437 | "version": "2.0.3", 438 | "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", 439 | "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", 440 | "dev": true, 441 | "requires": { 442 | "d": "1.0.0", 443 | "es5-ext": "0.10.37", 444 | "es6-symbol": "3.1.1" 445 | } 446 | }, 447 | "es6-map": { 448 | "version": "0.1.5", 449 | "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", 450 | "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", 451 | "dev": true, 452 | "requires": { 453 | "d": "1.0.0", 454 | "es5-ext": "0.10.37", 455 | "es6-iterator": "2.0.3", 456 | "es6-set": "0.1.5", 457 | "es6-symbol": "3.1.1", 458 | "event-emitter": "0.3.5" 459 | } 460 | }, 461 | "es6-set": { 462 | "version": "0.1.5", 463 | "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", 464 | "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", 465 | "dev": true, 466 | "requires": { 467 | "d": "1.0.0", 468 | "es5-ext": "0.10.37", 469 | "es6-iterator": "2.0.3", 470 | "es6-symbol": "3.1.1", 471 | "event-emitter": "0.3.5" 472 | } 473 | }, 474 | "es6-symbol": { 475 | "version": "3.1.1", 476 | "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", 477 | "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", 478 | "dev": true, 479 | "requires": { 480 | "d": "1.0.0", 481 | "es5-ext": "0.10.37" 482 | } 483 | }, 484 | "es6-weak-map": { 485 | "version": "2.0.2", 486 | "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", 487 | "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", 488 | "dev": true, 489 | "requires": { 490 | "d": "1.0.0", 491 | "es5-ext": "0.10.37", 492 | "es6-iterator": "2.0.3", 493 | "es6-symbol": "3.1.1" 494 | } 495 | }, 496 | "escape-string-regexp": { 497 | "version": "1.0.5", 498 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 499 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 500 | "dev": true 501 | }, 502 | "escope": { 503 | "version": "3.6.0", 504 | "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", 505 | "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", 506 | "dev": true, 507 | "requires": { 508 | "es6-map": "0.1.5", 509 | "es6-weak-map": "2.0.2", 510 | "esrecurse": "4.2.0", 511 | "estraverse": "4.2.0" 512 | } 513 | }, 514 | "eslint": { 515 | "version": "3.19.0", 516 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-3.19.0.tgz", 517 | "integrity": "sha1-yPxiAcf0DdCJQbh8CFdnOGpnmsw=", 518 | "dev": true, 519 | "requires": { 520 | "babel-code-frame": "6.26.0", 521 | "chalk": "1.1.3", 522 | "concat-stream": "1.6.0", 523 | "debug": "2.6.9", 524 | "doctrine": "2.1.0", 525 | "escope": "3.6.0", 526 | "espree": "3.5.2", 527 | "esquery": "1.0.0", 528 | "estraverse": "4.2.0", 529 | "esutils": "2.0.2", 530 | "file-entry-cache": "2.0.0", 531 | "glob": "7.1.2", 532 | "globals": "9.18.0", 533 | "ignore": "3.3.7", 534 | "imurmurhash": "0.1.4", 535 | "inquirer": "0.12.0", 536 | "is-my-json-valid": "2.17.1", 537 | "is-resolvable": "1.0.1", 538 | "js-yaml": "3.10.0", 539 | "json-stable-stringify": "1.0.1", 540 | "levn": "0.3.0", 541 | "lodash": "4.17.4", 542 | "mkdirp": "0.5.1", 543 | "natural-compare": "1.4.0", 544 | "optionator": "0.8.2", 545 | "path-is-inside": "1.0.2", 546 | "pluralize": "1.2.1", 547 | "progress": "1.1.8", 548 | "require-uncached": "1.0.3", 549 | "shelljs": "0.7.8", 550 | "strip-bom": "3.0.0", 551 | "strip-json-comments": "2.0.1", 552 | "table": "3.8.3", 553 | "text-table": "0.2.0", 554 | "user-home": "2.0.0" 555 | } 556 | }, 557 | "espree": { 558 | "version": "3.5.2", 559 | "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.2.tgz", 560 | "integrity": "sha512-sadKeYwaR/aJ3stC2CdvgXu1T16TdYN+qwCpcWbMnGJ8s0zNWemzrvb2GbD4OhmJ/fwpJjudThAlLobGbWZbCQ==", 561 | "dev": true, 562 | "requires": { 563 | "acorn": "5.3.0", 564 | "acorn-jsx": "3.0.1" 565 | } 566 | }, 567 | "esprima": { 568 | "version": "4.0.0", 569 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", 570 | "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", 571 | "dev": true 572 | }, 573 | "esquery": { 574 | "version": "1.0.0", 575 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.0.tgz", 576 | "integrity": "sha1-z7qLV9f7qT8XKYqKAGoEzaE9gPo=", 577 | "dev": true, 578 | "requires": { 579 | "estraverse": "4.2.0" 580 | } 581 | }, 582 | "esrecurse": { 583 | "version": "4.2.0", 584 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.0.tgz", 585 | "integrity": "sha1-+pVo2Y04I/mkHZHpAtyrnqblsWM=", 586 | "dev": true, 587 | "requires": { 588 | "estraverse": "4.2.0", 589 | "object-assign": "4.1.1" 590 | } 591 | }, 592 | "estraverse": { 593 | "version": "4.2.0", 594 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", 595 | "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", 596 | "dev": true 597 | }, 598 | "esutils": { 599 | "version": "2.0.2", 600 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", 601 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", 602 | "dev": true 603 | }, 604 | "event-emitter": { 605 | "version": "0.3.5", 606 | "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", 607 | "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", 608 | "dev": true, 609 | "requires": { 610 | "d": "1.0.0", 611 | "es5-ext": "0.10.37" 612 | } 613 | }, 614 | "execa": { 615 | "version": "0.7.0", 616 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", 617 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", 618 | "requires": { 619 | "cross-spawn": "5.1.0", 620 | "get-stream": "3.0.0", 621 | "is-stream": "1.1.0", 622 | "npm-run-path": "2.0.2", 623 | "p-finally": "1.0.0", 624 | "signal-exit": "3.0.2", 625 | "strip-eof": "1.0.0" 626 | } 627 | }, 628 | "exit-hook": { 629 | "version": "1.1.1", 630 | "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-1.1.1.tgz", 631 | "integrity": "sha1-8FyiM7SMBdVP/wd2XfhQfpXAL/g=", 632 | "dev": true 633 | }, 634 | "extend": { 635 | "version": "3.0.1", 636 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", 637 | "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" 638 | }, 639 | "extsprintf": { 640 | "version": "1.3.0", 641 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 642 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 643 | }, 644 | "fast-levenshtein": { 645 | "version": "2.0.6", 646 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 647 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", 648 | "dev": true 649 | }, 650 | "figures": { 651 | "version": "1.7.0", 652 | "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", 653 | "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", 654 | "dev": true, 655 | "requires": { 656 | "escape-string-regexp": "1.0.5", 657 | "object-assign": "4.1.1" 658 | } 659 | }, 660 | "file-entry-cache": { 661 | "version": "2.0.0", 662 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", 663 | "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", 664 | "dev": true, 665 | "requires": { 666 | "flat-cache": "1.3.0", 667 | "object-assign": "4.1.1" 668 | } 669 | }, 670 | "find-up": { 671 | "version": "2.1.0", 672 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", 673 | "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", 674 | "requires": { 675 | "locate-path": "2.0.0" 676 | } 677 | }, 678 | "flat-cache": { 679 | "version": "1.3.0", 680 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz", 681 | "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", 682 | "dev": true, 683 | "requires": { 684 | "circular-json": "0.3.3", 685 | "del": "2.2.2", 686 | "graceful-fs": "4.1.11", 687 | "write": "0.2.1" 688 | } 689 | }, 690 | "forever-agent": { 691 | "version": "0.6.1", 692 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 693 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 694 | }, 695 | "form-data": { 696 | "version": "2.1.4", 697 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", 698 | "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", 699 | "requires": { 700 | "asynckit": "0.4.0", 701 | "combined-stream": "1.0.5", 702 | "mime-types": "2.1.17" 703 | } 704 | }, 705 | "fs.realpath": { 706 | "version": "1.0.0", 707 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 708 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 709 | "dev": true 710 | }, 711 | "generate-function": { 712 | "version": "2.0.0", 713 | "resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz", 714 | "integrity": "sha1-aFj+fAlpt9TpCTM3ZHrHn2DfvnQ=", 715 | "dev": true 716 | }, 717 | "generate-object-property": { 718 | "version": "1.2.0", 719 | "resolved": "https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz", 720 | "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", 721 | "dev": true, 722 | "requires": { 723 | "is-property": "1.0.2" 724 | } 725 | }, 726 | "get-caller-file": { 727 | "version": "1.0.2", 728 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", 729 | "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=" 730 | }, 731 | "get-stream": { 732 | "version": "3.0.0", 733 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 734 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=" 735 | }, 736 | "getpass": { 737 | "version": "0.1.7", 738 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 739 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 740 | "requires": { 741 | "assert-plus": "1.0.0" 742 | }, 743 | "dependencies": { 744 | "assert-plus": { 745 | "version": "1.0.0", 746 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 747 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 748 | } 749 | } 750 | }, 751 | "glob": { 752 | "version": "7.1.2", 753 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", 754 | "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", 755 | "dev": true, 756 | "requires": { 757 | "fs.realpath": "1.0.0", 758 | "inflight": "1.0.6", 759 | "inherits": "2.0.3", 760 | "minimatch": "3.0.4", 761 | "once": "1.4.0", 762 | "path-is-absolute": "1.0.1" 763 | } 764 | }, 765 | "globals": { 766 | "version": "9.18.0", 767 | "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", 768 | "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", 769 | "dev": true 770 | }, 771 | "globby": { 772 | "version": "5.0.0", 773 | "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", 774 | "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", 775 | "dev": true, 776 | "requires": { 777 | "array-union": "1.0.2", 778 | "arrify": "1.0.1", 779 | "glob": "7.1.2", 780 | "object-assign": "4.1.1", 781 | "pify": "2.3.0", 782 | "pinkie-promise": "2.0.1" 783 | } 784 | }, 785 | "graceful-fs": { 786 | "version": "4.1.11", 787 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", 788 | "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" 789 | }, 790 | "har-schema": { 791 | "version": "1.0.5", 792 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", 793 | "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=" 794 | }, 795 | "har-validator": { 796 | "version": "4.2.1", 797 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", 798 | "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", 799 | "requires": { 800 | "ajv": "4.11.8", 801 | "har-schema": "1.0.5" 802 | } 803 | }, 804 | "has-ansi": { 805 | "version": "2.0.0", 806 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", 807 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", 808 | "dev": true, 809 | "requires": { 810 | "ansi-regex": "2.1.1" 811 | } 812 | }, 813 | "hawk": { 814 | "version": "3.1.3", 815 | "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", 816 | "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", 817 | "requires": { 818 | "boom": "2.10.1", 819 | "cryptiles": "2.0.5", 820 | "hoek": "2.16.3", 821 | "sntp": "1.0.9" 822 | } 823 | }, 824 | "hoek": { 825 | "version": "2.16.3", 826 | "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", 827 | "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=" 828 | }, 829 | "hosted-git-info": { 830 | "version": "2.5.0", 831 | "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", 832 | "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==" 833 | }, 834 | "http-signature": { 835 | "version": "1.1.1", 836 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", 837 | "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", 838 | "requires": { 839 | "assert-plus": "0.2.0", 840 | "jsprim": "1.4.1", 841 | "sshpk": "1.13.1" 842 | } 843 | }, 844 | "ignore": { 845 | "version": "3.3.7", 846 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz", 847 | "integrity": "sha512-YGG3ejvBNHRqu0559EOxxNFihD0AjpvHlC/pdGKd3X3ofe+CoJkYazwNJYTNebqpPKN+VVQbh4ZFn1DivMNuHA==", 848 | "dev": true 849 | }, 850 | "imurmurhash": { 851 | "version": "0.1.4", 852 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 853 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 854 | "dev": true 855 | }, 856 | "inflight": { 857 | "version": "1.0.6", 858 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 859 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 860 | "dev": true, 861 | "requires": { 862 | "once": "1.4.0", 863 | "wrappy": "1.0.2" 864 | } 865 | }, 866 | "inherits": { 867 | "version": "2.0.3", 868 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 869 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 870 | "dev": true 871 | }, 872 | "inquirer": { 873 | "version": "0.12.0", 874 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-0.12.0.tgz", 875 | "integrity": "sha1-HvK/1jUE3wvHV4X/+MLEHfEvB34=", 876 | "dev": true, 877 | "requires": { 878 | "ansi-escapes": "1.4.0", 879 | "ansi-regex": "2.1.1", 880 | "chalk": "1.1.3", 881 | "cli-cursor": "1.0.2", 882 | "cli-width": "2.2.0", 883 | "figures": "1.7.0", 884 | "lodash": "4.17.4", 885 | "readline2": "1.0.1", 886 | "run-async": "0.1.0", 887 | "rx-lite": "3.1.2", 888 | "string-width": "1.0.2", 889 | "strip-ansi": "3.0.1", 890 | "through": "2.3.8" 891 | }, 892 | "dependencies": { 893 | "string-width": { 894 | "version": "1.0.2", 895 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 896 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 897 | "dev": true, 898 | "requires": { 899 | "code-point-at": "1.1.0", 900 | "is-fullwidth-code-point": "1.0.0", 901 | "strip-ansi": "3.0.1" 902 | } 903 | } 904 | } 905 | }, 906 | "interpret": { 907 | "version": "1.1.0", 908 | "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", 909 | "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", 910 | "dev": true 911 | }, 912 | "invert-kv": { 913 | "version": "1.0.0", 914 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", 915 | "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" 916 | }, 917 | "is-arrayish": { 918 | "version": "0.2.1", 919 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 920 | "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" 921 | }, 922 | "is-builtin-module": { 923 | "version": "1.0.0", 924 | "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", 925 | "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", 926 | "requires": { 927 | "builtin-modules": "1.1.1" 928 | } 929 | }, 930 | "is-fullwidth-code-point": { 931 | "version": "1.0.0", 932 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 933 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 934 | "requires": { 935 | "number-is-nan": "1.0.1" 936 | } 937 | }, 938 | "is-my-json-valid": { 939 | "version": "2.17.1", 940 | "resolved": "https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.17.1.tgz", 941 | "integrity": "sha512-Q2khNw+oBlWuaYvEEHtKSw/pCxD2L5Rc1C+UQme9X6JdRDh7m5D7HkozA0qa3DUkQ6VzCnEm8mVIQPyIRkI5sQ==", 942 | "dev": true, 943 | "requires": { 944 | "generate-function": "2.0.0", 945 | "generate-object-property": "1.2.0", 946 | "jsonpointer": "4.0.1", 947 | "xtend": "4.0.1" 948 | } 949 | }, 950 | "is-path-cwd": { 951 | "version": "1.0.0", 952 | "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", 953 | "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", 954 | "dev": true 955 | }, 956 | "is-path-in-cwd": { 957 | "version": "1.0.0", 958 | "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", 959 | "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", 960 | "dev": true, 961 | "requires": { 962 | "is-path-inside": "1.0.1" 963 | } 964 | }, 965 | "is-path-inside": { 966 | "version": "1.0.1", 967 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", 968 | "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", 969 | "dev": true, 970 | "requires": { 971 | "path-is-inside": "1.0.2" 972 | } 973 | }, 974 | "is-property": { 975 | "version": "1.0.2", 976 | "resolved": "https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz", 977 | "integrity": "sha1-V/4cTkhHTt1lsJkR8msc1Ald2oQ=", 978 | "dev": true 979 | }, 980 | "is-resolvable": { 981 | "version": "1.0.1", 982 | "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.0.1.tgz", 983 | "integrity": "sha512-y5CXYbzvB3jTnWAZH1Nl7ykUWb6T3BcTs56HUruwBf8MhF56n1HWqhDWnVFo8GHrUPDgvUUNVhrc2U8W7iqz5g==", 984 | "dev": true 985 | }, 986 | "is-stream": { 987 | "version": "1.1.0", 988 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 989 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" 990 | }, 991 | "is-typedarray": { 992 | "version": "1.0.0", 993 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 994 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 995 | }, 996 | "isarray": { 997 | "version": "1.0.0", 998 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 999 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1000 | "dev": true 1001 | }, 1002 | "isexe": { 1003 | "version": "2.0.0", 1004 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1005 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" 1006 | }, 1007 | "isstream": { 1008 | "version": "0.1.2", 1009 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 1010 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 1011 | }, 1012 | "js-tokens": { 1013 | "version": "3.0.2", 1014 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", 1015 | "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", 1016 | "dev": true 1017 | }, 1018 | "js-yaml": { 1019 | "version": "3.10.0", 1020 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz", 1021 | "integrity": "sha512-O2v52ffjLa9VeM43J4XocZE//WT9N0IiwDa3KSHH7Tu8CtH+1qM8SIZvnsTh6v+4yFy5KUY3BHUVwjpfAWsjIA==", 1022 | "dev": true, 1023 | "requires": { 1024 | "argparse": "1.0.9", 1025 | "esprima": "4.0.0" 1026 | } 1027 | }, 1028 | "jsbn": { 1029 | "version": "0.1.1", 1030 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 1031 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 1032 | "optional": true 1033 | }, 1034 | "json-schema": { 1035 | "version": "0.2.3", 1036 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 1037 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 1038 | }, 1039 | "json-stable-stringify": { 1040 | "version": "1.0.1", 1041 | "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", 1042 | "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", 1043 | "requires": { 1044 | "jsonify": "0.0.0" 1045 | } 1046 | }, 1047 | "json-stringify-safe": { 1048 | "version": "5.0.1", 1049 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 1050 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 1051 | }, 1052 | "jsonify": { 1053 | "version": "0.0.0", 1054 | "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", 1055 | "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=" 1056 | }, 1057 | "jsonpointer": { 1058 | "version": "4.0.1", 1059 | "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.0.1.tgz", 1060 | "integrity": "sha1-T9kss04OnbPInIYi7PUfm5eMbLk=", 1061 | "dev": true 1062 | }, 1063 | "jsprim": { 1064 | "version": "1.4.1", 1065 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 1066 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 1067 | "requires": { 1068 | "assert-plus": "1.0.0", 1069 | "extsprintf": "1.3.0", 1070 | "json-schema": "0.2.3", 1071 | "verror": "1.10.0" 1072 | }, 1073 | "dependencies": { 1074 | "assert-plus": { 1075 | "version": "1.0.0", 1076 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 1077 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 1078 | } 1079 | } 1080 | }, 1081 | "lcid": { 1082 | "version": "1.0.0", 1083 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", 1084 | "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", 1085 | "requires": { 1086 | "invert-kv": "1.0.0" 1087 | } 1088 | }, 1089 | "le-acme-core": { 1090 | "version": "git+https://github.com/rolodato/le-acme-core.git#092c9cfb64539117bddb242870ba97db98c10f23", 1091 | "requires": { 1092 | "request": "2.81.0", 1093 | "rsa-compat": "1.2.7" 1094 | } 1095 | }, 1096 | "levn": { 1097 | "version": "0.3.0", 1098 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", 1099 | "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", 1100 | "dev": true, 1101 | "requires": { 1102 | "prelude-ls": "1.1.2", 1103 | "type-check": "0.3.2" 1104 | } 1105 | }, 1106 | "load-json-file": { 1107 | "version": "2.0.0", 1108 | "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", 1109 | "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", 1110 | "requires": { 1111 | "graceful-fs": "4.1.11", 1112 | "parse-json": "2.2.0", 1113 | "pify": "2.3.0", 1114 | "strip-bom": "3.0.0" 1115 | } 1116 | }, 1117 | "locate-path": { 1118 | "version": "2.0.0", 1119 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", 1120 | "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", 1121 | "requires": { 1122 | "p-locate": "2.0.0", 1123 | "path-exists": "3.0.0" 1124 | } 1125 | }, 1126 | "lodash": { 1127 | "version": "4.17.4", 1128 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", 1129 | "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=" 1130 | }, 1131 | "lru-cache": { 1132 | "version": "4.1.1", 1133 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", 1134 | "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", 1135 | "requires": { 1136 | "pseudomap": "1.0.2", 1137 | "yallist": "2.1.2" 1138 | } 1139 | }, 1140 | "mem": { 1141 | "version": "1.1.0", 1142 | "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", 1143 | "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", 1144 | "requires": { 1145 | "mimic-fn": "1.1.0" 1146 | } 1147 | }, 1148 | "mime-db": { 1149 | "version": "1.30.0", 1150 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", 1151 | "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=" 1152 | }, 1153 | "mime-types": { 1154 | "version": "2.1.17", 1155 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", 1156 | "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", 1157 | "requires": { 1158 | "mime-db": "1.30.0" 1159 | } 1160 | }, 1161 | "mimic-fn": { 1162 | "version": "1.1.0", 1163 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.1.0.tgz", 1164 | "integrity": "sha1-5md4PZLonb00KBi1IwudYqZyrRg=" 1165 | }, 1166 | "minimatch": { 1167 | "version": "3.0.4", 1168 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1169 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1170 | "dev": true, 1171 | "requires": { 1172 | "brace-expansion": "1.1.8" 1173 | } 1174 | }, 1175 | "minimist": { 1176 | "version": "0.0.8", 1177 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 1178 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 1179 | "dev": true 1180 | }, 1181 | "mkdirp": { 1182 | "version": "0.5.1", 1183 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 1184 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 1185 | "dev": true, 1186 | "requires": { 1187 | "minimist": "0.0.8" 1188 | } 1189 | }, 1190 | "ms": { 1191 | "version": "2.0.0", 1192 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1193 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1194 | }, 1195 | "mute-stream": { 1196 | "version": "0.0.5", 1197 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz", 1198 | "integrity": "sha1-j7+rsKmKJT0xhDMfno3rc3L6xsA=", 1199 | "dev": true 1200 | }, 1201 | "nan": { 1202 | "version": "2.8.0", 1203 | "resolved": "https://registry.npmjs.org/nan/-/nan-2.8.0.tgz", 1204 | "integrity": "sha1-7XFfP+neArV6XmJS2QqWZ14fCFo=", 1205 | "optional": true 1206 | }, 1207 | "natural-compare": { 1208 | "version": "1.4.0", 1209 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1210 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", 1211 | "dev": true 1212 | }, 1213 | "node-forge": { 1214 | "version": "0.7.1", 1215 | "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.1.tgz", 1216 | "integrity": "sha1-naYR6giYL0uUIGs760zJZl8gwwA=" 1217 | }, 1218 | "normalize-package-data": { 1219 | "version": "2.4.0", 1220 | "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", 1221 | "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", 1222 | "requires": { 1223 | "hosted-git-info": "2.5.0", 1224 | "is-builtin-module": "1.0.0", 1225 | "semver": "5.4.1", 1226 | "validate-npm-package-license": "3.0.1" 1227 | } 1228 | }, 1229 | "npm-run-path": { 1230 | "version": "2.0.2", 1231 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 1232 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 1233 | "requires": { 1234 | "path-key": "2.0.1" 1235 | } 1236 | }, 1237 | "number-is-nan": { 1238 | "version": "1.0.1", 1239 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1240 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" 1241 | }, 1242 | "oauth-sign": { 1243 | "version": "0.8.2", 1244 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", 1245 | "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" 1246 | }, 1247 | "object-assign": { 1248 | "version": "4.1.1", 1249 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1250 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 1251 | "dev": true 1252 | }, 1253 | "once": { 1254 | "version": "1.4.0", 1255 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1256 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1257 | "dev": true, 1258 | "requires": { 1259 | "wrappy": "1.0.2" 1260 | } 1261 | }, 1262 | "onetime": { 1263 | "version": "1.1.0", 1264 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz", 1265 | "integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=", 1266 | "dev": true 1267 | }, 1268 | "optionator": { 1269 | "version": "0.8.2", 1270 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", 1271 | "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", 1272 | "dev": true, 1273 | "requires": { 1274 | "deep-is": "0.1.3", 1275 | "fast-levenshtein": "2.0.6", 1276 | "levn": "0.3.0", 1277 | "prelude-ls": "1.1.2", 1278 | "type-check": "0.3.2", 1279 | "wordwrap": "1.0.0" 1280 | } 1281 | }, 1282 | "os-homedir": { 1283 | "version": "1.0.2", 1284 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", 1285 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", 1286 | "dev": true 1287 | }, 1288 | "os-locale": { 1289 | "version": "2.1.0", 1290 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", 1291 | "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", 1292 | "requires": { 1293 | "execa": "0.7.0", 1294 | "lcid": "1.0.0", 1295 | "mem": "1.1.0" 1296 | } 1297 | }, 1298 | "p-finally": { 1299 | "version": "1.0.0", 1300 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 1301 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" 1302 | }, 1303 | "p-limit": { 1304 | "version": "1.2.0", 1305 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", 1306 | "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", 1307 | "requires": { 1308 | "p-try": "1.0.0" 1309 | } 1310 | }, 1311 | "p-locate": { 1312 | "version": "2.0.0", 1313 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", 1314 | "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", 1315 | "requires": { 1316 | "p-limit": "1.2.0" 1317 | } 1318 | }, 1319 | "p-try": { 1320 | "version": "1.0.0", 1321 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", 1322 | "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=" 1323 | }, 1324 | "parse-json": { 1325 | "version": "2.2.0", 1326 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", 1327 | "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", 1328 | "requires": { 1329 | "error-ex": "1.3.1" 1330 | } 1331 | }, 1332 | "path-exists": { 1333 | "version": "3.0.0", 1334 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 1335 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" 1336 | }, 1337 | "path-is-absolute": { 1338 | "version": "1.0.1", 1339 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1340 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1341 | "dev": true 1342 | }, 1343 | "path-is-inside": { 1344 | "version": "1.0.2", 1345 | "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", 1346 | "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", 1347 | "dev": true 1348 | }, 1349 | "path-key": { 1350 | "version": "2.0.1", 1351 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1352 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" 1353 | }, 1354 | "path-parse": { 1355 | "version": "1.0.5", 1356 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", 1357 | "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", 1358 | "dev": true 1359 | }, 1360 | "path-type": { 1361 | "version": "2.0.0", 1362 | "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", 1363 | "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", 1364 | "requires": { 1365 | "pify": "2.3.0" 1366 | } 1367 | }, 1368 | "performance-now": { 1369 | "version": "0.2.0", 1370 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", 1371 | "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=" 1372 | }, 1373 | "pify": { 1374 | "version": "2.3.0", 1375 | "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", 1376 | "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=" 1377 | }, 1378 | "pinkie": { 1379 | "version": "2.0.4", 1380 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 1381 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", 1382 | "dev": true 1383 | }, 1384 | "pinkie-promise": { 1385 | "version": "2.0.1", 1386 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 1387 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 1388 | "dev": true, 1389 | "requires": { 1390 | "pinkie": "2.0.4" 1391 | } 1392 | }, 1393 | "pluralize": { 1394 | "version": "1.2.1", 1395 | "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-1.2.1.tgz", 1396 | "integrity": "sha1-0aIUg/0iu0HlihL6NCGCMUCJfEU=", 1397 | "dev": true 1398 | }, 1399 | "prelude-ls": { 1400 | "version": "1.1.2", 1401 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", 1402 | "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", 1403 | "dev": true 1404 | }, 1405 | "process-nextick-args": { 1406 | "version": "1.0.7", 1407 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", 1408 | "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", 1409 | "dev": true 1410 | }, 1411 | "progress": { 1412 | "version": "1.1.8", 1413 | "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", 1414 | "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", 1415 | "dev": true 1416 | }, 1417 | "pseudomap": { 1418 | "version": "1.0.2", 1419 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 1420 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" 1421 | }, 1422 | "punycode": { 1423 | "version": "1.4.1", 1424 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 1425 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" 1426 | }, 1427 | "qs": { 1428 | "version": "6.4.0", 1429 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", 1430 | "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=" 1431 | }, 1432 | "read-pkg": { 1433 | "version": "2.0.0", 1434 | "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", 1435 | "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", 1436 | "requires": { 1437 | "load-json-file": "2.0.0", 1438 | "normalize-package-data": "2.4.0", 1439 | "path-type": "2.0.0" 1440 | } 1441 | }, 1442 | "read-pkg-up": { 1443 | "version": "2.0.0", 1444 | "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", 1445 | "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", 1446 | "requires": { 1447 | "find-up": "2.1.0", 1448 | "read-pkg": "2.0.0" 1449 | } 1450 | }, 1451 | "readable-stream": { 1452 | "version": "2.3.3", 1453 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", 1454 | "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", 1455 | "dev": true, 1456 | "requires": { 1457 | "core-util-is": "1.0.2", 1458 | "inherits": "2.0.3", 1459 | "isarray": "1.0.0", 1460 | "process-nextick-args": "1.0.7", 1461 | "safe-buffer": "5.1.1", 1462 | "string_decoder": "1.0.3", 1463 | "util-deprecate": "1.0.2" 1464 | } 1465 | }, 1466 | "readline2": { 1467 | "version": "1.0.1", 1468 | "resolved": "https://registry.npmjs.org/readline2/-/readline2-1.0.1.tgz", 1469 | "integrity": "sha1-QQWWCP/BVHV7cV2ZidGZ/783LjU=", 1470 | "dev": true, 1471 | "requires": { 1472 | "code-point-at": "1.1.0", 1473 | "is-fullwidth-code-point": "1.0.0", 1474 | "mute-stream": "0.0.5" 1475 | } 1476 | }, 1477 | "rechoir": { 1478 | "version": "0.6.2", 1479 | "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", 1480 | "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", 1481 | "dev": true, 1482 | "requires": { 1483 | "resolve": "1.5.0" 1484 | } 1485 | }, 1486 | "request": { 1487 | "version": "2.81.0", 1488 | "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", 1489 | "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", 1490 | "requires": { 1491 | "aws-sign2": "0.6.0", 1492 | "aws4": "1.6.0", 1493 | "caseless": "0.12.0", 1494 | "combined-stream": "1.0.5", 1495 | "extend": "3.0.1", 1496 | "forever-agent": "0.6.1", 1497 | "form-data": "2.1.4", 1498 | "har-validator": "4.2.1", 1499 | "hawk": "3.1.3", 1500 | "http-signature": "1.1.1", 1501 | "is-typedarray": "1.0.0", 1502 | "isstream": "0.1.2", 1503 | "json-stringify-safe": "5.0.1", 1504 | "mime-types": "2.1.17", 1505 | "oauth-sign": "0.8.2", 1506 | "performance-now": "0.2.0", 1507 | "qs": "6.4.0", 1508 | "safe-buffer": "5.1.1", 1509 | "stringstream": "0.0.5", 1510 | "tough-cookie": "2.3.3", 1511 | "tunnel-agent": "0.6.0", 1512 | "uuid": "3.1.0" 1513 | } 1514 | }, 1515 | "request-promise": { 1516 | "version": "4.2.1", 1517 | "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.1.tgz", 1518 | "integrity": "sha1-fuxWyJMXqCLL/qmbA5zlQ8LhX2c=", 1519 | "requires": { 1520 | "bluebird": "3.5.0", 1521 | "request-promise-core": "1.1.1", 1522 | "stealthy-require": "1.1.1", 1523 | "tough-cookie": "2.3.3" 1524 | } 1525 | }, 1526 | "request-promise-core": { 1527 | "version": "1.1.1", 1528 | "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", 1529 | "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", 1530 | "requires": { 1531 | "lodash": "4.17.4" 1532 | } 1533 | }, 1534 | "require-directory": { 1535 | "version": "2.1.1", 1536 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1537 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" 1538 | }, 1539 | "require-main-filename": { 1540 | "version": "1.0.1", 1541 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", 1542 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=" 1543 | }, 1544 | "require-uncached": { 1545 | "version": "1.0.3", 1546 | "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", 1547 | "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", 1548 | "dev": true, 1549 | "requires": { 1550 | "caller-path": "0.1.0", 1551 | "resolve-from": "1.0.1" 1552 | } 1553 | }, 1554 | "resolve": { 1555 | "version": "1.5.0", 1556 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", 1557 | "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", 1558 | "dev": true, 1559 | "requires": { 1560 | "path-parse": "1.0.5" 1561 | } 1562 | }, 1563 | "resolve-from": { 1564 | "version": "1.0.1", 1565 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", 1566 | "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", 1567 | "dev": true 1568 | }, 1569 | "restore-cursor": { 1570 | "version": "1.0.1", 1571 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-1.0.1.tgz", 1572 | "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", 1573 | "dev": true, 1574 | "requires": { 1575 | "exit-hook": "1.1.1", 1576 | "onetime": "1.1.0" 1577 | } 1578 | }, 1579 | "rimraf": { 1580 | "version": "2.6.2", 1581 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", 1582 | "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", 1583 | "dev": true, 1584 | "requires": { 1585 | "glob": "7.1.2" 1586 | } 1587 | }, 1588 | "rsa-compat": { 1589 | "version": "1.2.7", 1590 | "resolved": "https://registry.npmjs.org/rsa-compat/-/rsa-compat-1.2.7.tgz", 1591 | "integrity": "sha1-fEY23nmIhanzyQQ26jgE41sWhMg=", 1592 | "requires": { 1593 | "buffer-v6-polyfill": "1.0.5", 1594 | "node-forge": "0.6.49", 1595 | "ursa": "0.9.4" 1596 | }, 1597 | "dependencies": { 1598 | "node-forge": { 1599 | "version": "0.6.49", 1600 | "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.6.49.tgz", 1601 | "integrity": "sha1-8e6V1ddGI5OP4Z1piqWibVTS9g8=" 1602 | } 1603 | } 1604 | }, 1605 | "run-async": { 1606 | "version": "0.1.0", 1607 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz", 1608 | "integrity": "sha1-yK1KXhEGYeQCp9IbUw4AnyX444k=", 1609 | "dev": true, 1610 | "requires": { 1611 | "once": "1.4.0" 1612 | } 1613 | }, 1614 | "rx-lite": { 1615 | "version": "3.1.2", 1616 | "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-3.1.2.tgz", 1617 | "integrity": "sha1-Gc5QLKVyZl87ZHsQk5+X/RYV8QI=", 1618 | "dev": true 1619 | }, 1620 | "safe-buffer": { 1621 | "version": "5.1.1", 1622 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 1623 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" 1624 | }, 1625 | "semver": { 1626 | "version": "5.4.1", 1627 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", 1628 | "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==" 1629 | }, 1630 | "set-blocking": { 1631 | "version": "2.0.0", 1632 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 1633 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" 1634 | }, 1635 | "shebang-command": { 1636 | "version": "1.2.0", 1637 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1638 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 1639 | "requires": { 1640 | "shebang-regex": "1.0.0" 1641 | } 1642 | }, 1643 | "shebang-regex": { 1644 | "version": "1.0.0", 1645 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1646 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" 1647 | }, 1648 | "shelljs": { 1649 | "version": "0.7.8", 1650 | "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.7.8.tgz", 1651 | "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", 1652 | "dev": true, 1653 | "requires": { 1654 | "glob": "7.1.2", 1655 | "interpret": "1.1.0", 1656 | "rechoir": "0.6.2" 1657 | } 1658 | }, 1659 | "signal-exit": { 1660 | "version": "3.0.2", 1661 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 1662 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" 1663 | }, 1664 | "slice-ansi": { 1665 | "version": "0.0.4", 1666 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-0.0.4.tgz", 1667 | "integrity": "sha1-7b+JA/ZvfOL46v1s7tZeJkyDGzU=", 1668 | "dev": true 1669 | }, 1670 | "sntp": { 1671 | "version": "1.0.9", 1672 | "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", 1673 | "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", 1674 | "requires": { 1675 | "hoek": "2.16.3" 1676 | } 1677 | }, 1678 | "spdx-correct": { 1679 | "version": "1.0.2", 1680 | "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", 1681 | "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", 1682 | "requires": { 1683 | "spdx-license-ids": "1.2.2" 1684 | } 1685 | }, 1686 | "spdx-expression-parse": { 1687 | "version": "1.0.4", 1688 | "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", 1689 | "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=" 1690 | }, 1691 | "spdx-license-ids": { 1692 | "version": "1.2.2", 1693 | "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", 1694 | "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=" 1695 | }, 1696 | "sprintf-js": { 1697 | "version": "1.0.3", 1698 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1699 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 1700 | "dev": true 1701 | }, 1702 | "sshpk": { 1703 | "version": "1.13.1", 1704 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", 1705 | "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", 1706 | "requires": { 1707 | "asn1": "0.2.3", 1708 | "assert-plus": "1.0.0", 1709 | "bcrypt-pbkdf": "1.0.1", 1710 | "dashdash": "1.14.1", 1711 | "ecc-jsbn": "0.1.1", 1712 | "getpass": "0.1.7", 1713 | "jsbn": "0.1.1", 1714 | "tweetnacl": "0.14.5" 1715 | }, 1716 | "dependencies": { 1717 | "assert-plus": { 1718 | "version": "1.0.0", 1719 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 1720 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 1721 | } 1722 | } 1723 | }, 1724 | "stealthy-require": { 1725 | "version": "1.1.1", 1726 | "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", 1727 | "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" 1728 | }, 1729 | "string-width": { 1730 | "version": "2.1.1", 1731 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 1732 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 1733 | "requires": { 1734 | "is-fullwidth-code-point": "2.0.0", 1735 | "strip-ansi": "4.0.0" 1736 | }, 1737 | "dependencies": { 1738 | "ansi-regex": { 1739 | "version": "3.0.0", 1740 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 1741 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" 1742 | }, 1743 | "is-fullwidth-code-point": { 1744 | "version": "2.0.0", 1745 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 1746 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 1747 | }, 1748 | "strip-ansi": { 1749 | "version": "4.0.0", 1750 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 1751 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1752 | "requires": { 1753 | "ansi-regex": "3.0.0" 1754 | } 1755 | } 1756 | } 1757 | }, 1758 | "string_decoder": { 1759 | "version": "1.0.3", 1760 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", 1761 | "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", 1762 | "dev": true, 1763 | "requires": { 1764 | "safe-buffer": "5.1.1" 1765 | } 1766 | }, 1767 | "stringstream": { 1768 | "version": "0.0.5", 1769 | "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", 1770 | "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" 1771 | }, 1772 | "strip-ansi": { 1773 | "version": "3.0.1", 1774 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1775 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 1776 | "requires": { 1777 | "ansi-regex": "2.1.1" 1778 | } 1779 | }, 1780 | "strip-bom": { 1781 | "version": "3.0.0", 1782 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 1783 | "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" 1784 | }, 1785 | "strip-eof": { 1786 | "version": "1.0.0", 1787 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 1788 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" 1789 | }, 1790 | "strip-json-comments": { 1791 | "version": "2.0.1", 1792 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1793 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 1794 | "dev": true 1795 | }, 1796 | "supports-color": { 1797 | "version": "2.0.0", 1798 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", 1799 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", 1800 | "dev": true 1801 | }, 1802 | "table": { 1803 | "version": "3.8.3", 1804 | "resolved": "https://registry.npmjs.org/table/-/table-3.8.3.tgz", 1805 | "integrity": "sha1-K7xULw/amGGnVdOUf+/Ys/UThV8=", 1806 | "dev": true, 1807 | "requires": { 1808 | "ajv": "4.11.8", 1809 | "ajv-keywords": "1.5.1", 1810 | "chalk": "1.1.3", 1811 | "lodash": "4.17.4", 1812 | "slice-ansi": "0.0.4", 1813 | "string-width": "2.1.1" 1814 | } 1815 | }, 1816 | "text-table": { 1817 | "version": "0.2.0", 1818 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1819 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", 1820 | "dev": true 1821 | }, 1822 | "through": { 1823 | "version": "2.3.8", 1824 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1825 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", 1826 | "dev": true 1827 | }, 1828 | "tough-cookie": { 1829 | "version": "2.3.3", 1830 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.3.tgz", 1831 | "integrity": "sha1-C2GKVWW23qkL80JdBNVe3EdadWE=", 1832 | "requires": { 1833 | "punycode": "1.4.1" 1834 | } 1835 | }, 1836 | "tunnel-agent": { 1837 | "version": "0.6.0", 1838 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 1839 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 1840 | "requires": { 1841 | "safe-buffer": "5.1.1" 1842 | } 1843 | }, 1844 | "tweetnacl": { 1845 | "version": "0.14.5", 1846 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 1847 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 1848 | "optional": true 1849 | }, 1850 | "type-check": { 1851 | "version": "0.3.2", 1852 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", 1853 | "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", 1854 | "dev": true, 1855 | "requires": { 1856 | "prelude-ls": "1.1.2" 1857 | } 1858 | }, 1859 | "typedarray": { 1860 | "version": "0.0.6", 1861 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 1862 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", 1863 | "dev": true 1864 | }, 1865 | "ursa": { 1866 | "version": "0.9.4", 1867 | "resolved": "https://registry.npmjs.org/ursa/-/ursa-0.9.4.tgz", 1868 | "integrity": "sha1-Ciq/t9xCZ/czsPjy/H8siV1ApBM=", 1869 | "optional": true, 1870 | "requires": { 1871 | "bindings": "1.3.0", 1872 | "nan": "2.8.0" 1873 | } 1874 | }, 1875 | "user-home": { 1876 | "version": "2.0.0", 1877 | "resolved": "https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz", 1878 | "integrity": "sha1-nHC/2Babwdy/SGBODwS4tJzenp8=", 1879 | "dev": true, 1880 | "requires": { 1881 | "os-homedir": "1.0.2" 1882 | } 1883 | }, 1884 | "util-deprecate": { 1885 | "version": "1.0.2", 1886 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1887 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 1888 | "dev": true 1889 | }, 1890 | "uuid": { 1891 | "version": "3.1.0", 1892 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", 1893 | "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==" 1894 | }, 1895 | "validate-npm-package-license": { 1896 | "version": "3.0.1", 1897 | "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", 1898 | "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", 1899 | "requires": { 1900 | "spdx-correct": "1.0.2", 1901 | "spdx-expression-parse": "1.0.4" 1902 | } 1903 | }, 1904 | "verror": { 1905 | "version": "1.10.0", 1906 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 1907 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 1908 | "requires": { 1909 | "assert-plus": "1.0.0", 1910 | "core-util-is": "1.0.2", 1911 | "extsprintf": "1.3.0" 1912 | }, 1913 | "dependencies": { 1914 | "assert-plus": { 1915 | "version": "1.0.0", 1916 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 1917 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 1918 | } 1919 | } 1920 | }, 1921 | "which": { 1922 | "version": "1.3.0", 1923 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", 1924 | "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", 1925 | "requires": { 1926 | "isexe": "2.0.0" 1927 | } 1928 | }, 1929 | "which-module": { 1930 | "version": "2.0.0", 1931 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 1932 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" 1933 | }, 1934 | "wordwrap": { 1935 | "version": "1.0.0", 1936 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", 1937 | "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", 1938 | "dev": true 1939 | }, 1940 | "wrap-ansi": { 1941 | "version": "2.1.0", 1942 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 1943 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 1944 | "requires": { 1945 | "string-width": "1.0.2", 1946 | "strip-ansi": "3.0.1" 1947 | }, 1948 | "dependencies": { 1949 | "string-width": { 1950 | "version": "1.0.2", 1951 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 1952 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 1953 | "requires": { 1954 | "code-point-at": "1.1.0", 1955 | "is-fullwidth-code-point": "1.0.0", 1956 | "strip-ansi": "3.0.1" 1957 | } 1958 | } 1959 | } 1960 | }, 1961 | "wrappy": { 1962 | "version": "1.0.2", 1963 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1964 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1965 | "dev": true 1966 | }, 1967 | "write": { 1968 | "version": "0.2.1", 1969 | "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", 1970 | "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", 1971 | "dev": true, 1972 | "requires": { 1973 | "mkdirp": "0.5.1" 1974 | } 1975 | }, 1976 | "xtend": { 1977 | "version": "4.0.1", 1978 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 1979 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" 1980 | }, 1981 | "y18n": { 1982 | "version": "3.2.1", 1983 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", 1984 | "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" 1985 | }, 1986 | "yallist": { 1987 | "version": "2.1.2", 1988 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 1989 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" 1990 | }, 1991 | "yargs": { 1992 | "version": "8.0.1", 1993 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.1.tgz", 1994 | "integrity": "sha1-Qg73XoQMFFeoCtzKm8b6OEneUao=", 1995 | "requires": { 1996 | "camelcase": "4.1.0", 1997 | "cliui": "3.2.0", 1998 | "decamelize": "1.2.0", 1999 | "get-caller-file": "1.0.2", 2000 | "os-locale": "2.1.0", 2001 | "read-pkg-up": "2.0.0", 2002 | "require-directory": "2.1.1", 2003 | "require-main-filename": "1.0.1", 2004 | "set-blocking": "2.0.0", 2005 | "string-width": "2.1.1", 2006 | "which-module": "2.0.0", 2007 | "y18n": "3.2.1", 2008 | "yargs-parser": "7.0.0" 2009 | } 2010 | }, 2011 | "yargs-parser": { 2012 | "version": "7.0.0", 2013 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", 2014 | "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", 2015 | "requires": { 2016 | "camelcase": "4.1.0" 2017 | } 2018 | } 2019 | } 2020 | } 2021 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gitlab-letsencrypt", 3 | "version": "3.1.1", 4 | "description": "Generate a Let's Encrypt certificate for GitLab.com hosted pages", 5 | "main": "index.js", 6 | "bin": { 7 | "gitlab-le": "./index.js" 8 | }, 9 | "dependencies": { 10 | "bluebird": "3.5.0", 11 | "le-acme-core": "https://github.com/rolodato/le-acme-core#semver:2.1.0", 12 | "ms": "2.0.0", 13 | "node-forge": "0.7.1", 14 | "request": "2.81.0", 15 | "request-promise": "4.2.1", 16 | "rsa-compat": "1.2.7", 17 | "xtend": "4.0.1", 18 | "yargs": "8.0.1" 19 | }, 20 | "devDependencies": { 21 | "dotenv-safe": "4.0.4", 22 | "eslint": "3.19.0" 23 | }, 24 | "scripts": { 25 | "test": "eslint . && cd test && node jekyll.js && node index.js" 26 | }, 27 | "repository": { 28 | "type": "git", 29 | "url": "git+https://github.com/rolodato/gitlab-letsencrypt.git" 30 | }, 31 | "keywords": [ 32 | "letsencrypt", 33 | "gitlab" 34 | ], 35 | "author": "Rodrigo López Dato ", 36 | "license": "GPL-3.0", 37 | "bugs": { 38 | "url": "https://github.com/rolodato/gitlab-letsencrypt/issues" 39 | }, 40 | "homepage": "https://github.com/rolodato/gitlab-letsencrypt#readme", 41 | "engines": { 42 | "node": ">=8.0.0" 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /test/.env.example: -------------------------------------------------------------------------------- 1 | GITLAB_LE_EMAIL= 2 | 3 | GITLAB_LE_DOMAIN= 4 | GITLAB_LE_REPOSITORY= 5 | GITLAB_LE_TOKEN= 6 | 7 | GITLAB_LE_JEKYLL_DOMAIN= 8 | GITLAB_LE_JEKYLL_TOKEN= 9 | GITLAB_LE_JEKYLL_REPOSITORY= -------------------------------------------------------------------------------- /test/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('dotenv-safe').load(); 4 | 5 | const options = { 6 | path: '/public/.well-known/acme-challenge', 7 | domain: process.env.GITLAB_LE_DOMAIN.split(','), 8 | repository: process.env.GITLAB_LE_REPOSITORY, 9 | token: process.env.GITLAB_LE_TOKEN, 10 | email: process.env.GITLAB_LE_EMAIL 11 | }; 12 | 13 | require('../main')(options); 14 | -------------------------------------------------------------------------------- /test/jekyll.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | require('dotenv-safe').load(); 4 | 5 | const options = { 6 | jekyll: true, 7 | path: '/', 8 | domain: process.env.GITLAB_LE_JEKYLL_DOMAIN.split(','), 9 | repository: process.env.GITLAB_LE_JEKYLL_REPOSITORY, 10 | token: process.env.GITLAB_LE_JEKYLL_TOKEN, 11 | email: process.env.GITLAB_LE_EMAIL 12 | }; 13 | 14 | require('../main')(options); 15 | --------------------------------------------------------------------------------