├── .gitignore ├── AUTHORS ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── LICENSE ├── OWNERS.yaml ├── README.md ├── amp-prototyper ├── package.json ├── sample_web ├── amp_favicon.png ├── base.css ├── base.js ├── iframe-page.html ├── img │ ├── GoogleNYC.jpg │ └── mountains.jpg └── index.html ├── src ├── cli.js ├── core.js └── watermark.js ├── steps ├── default-steps.js └── remove-unused-css.js ├── test └── url-tests.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | output 3 | .DS_Store 4 | tmp 5 | custom 6 | .vscode/ 7 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | # This is a list of contributors to AMP HTML. 2 | 3 | # Names should be added to this file like so: 4 | # Name or Organization 5 | 6 | Google Inc. 7 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Want to contribute? Great! First, read this page (including the small print at the end). 2 | 3 | ### Before you contribute 4 | Before we can use your code, you must sign the 5 | [Google Individual Contributor License Agreement] 6 | (https://cla.developers.google.com/about/google-individual) 7 | (CLA), which you can do online. The CLA is necessary mainly because you own the 8 | copyright to your changes, even after your contribution becomes part of our 9 | codebase, so we need your permission to use and distribute your code. We also 10 | need to be sure of various other things—for instance that you'll tell us if you 11 | know that your code infringes on other people's patents. You don't have to sign 12 | the CLA until after you've submitted your code for review and a member has 13 | approved it, but you must do it before we can put your code into our codebase. 14 | Before you start working on a larger contribution, you should get in touch with 15 | us first through the issue tracker with your idea so that we can help out and 16 | possibly guide you. Coordinating up front makes it much easier to avoid 17 | frustration later on. 18 | 19 | ### Code reviews 20 | All submissions, including submissions by project members, require review. We 21 | use Github pull requests for this purpose. 22 | 23 | ### The small print 24 | Contributions made by corporations are covered by a different agreement than 25 | the one above, the 26 | [Software Grant and Corporate Contributor License Agreement] 27 | (https://cla.developers.google.com/about/google-corporate). 28 | -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # Names should be added to this file as: 2 | # Name 3 | Jonathen Chen 4 | Ricardo Aponte 5 | Andrew K Guan 6 | Damani Brown 7 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "{}" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright 2015, Google Inc. 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /OWNERS.yaml: -------------------------------------------------------------------------------- 1 | - jonchenn 2 | - rjaponte 3 | - AndrewKGuan 4 | - Dbrown910 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # amp-prototyper 2 | 3 | This Node.js-based script is a prototyping tool that automatically converts a HTML page to a [Accelerated Mobile Page (AMP)](https://amp.dev) to demonstrate performance gains with AMP. It follows [the general guideline of converting HTML to AMP](https://amp.dev/documentation/guides-and-tutorials/start/converting/). 4 | 5 | ## TL;DR 6 | 7 | - The goal is to showcase the advantages of AMP in page load performance. 8 | - It generates a converted AMP HTML, a screenshot, and AMP validation errors for each step. 9 | - It automatically converts a HTML page to AMP with pre-defined steps. You can customize the steps for specific scenarios. 10 | - Final output contains image comparison and match percentage to original URL. Remove the watermark from the HTML and manually review the output 11 | 12 | ## What is amp-prototyper 13 | 14 | The main goal is to minimize the effort of creating a prototype AMP page from a canonical HTML page, such as adding AMP boilerplate, removing custom Javascript, making all CSS inline, etc. The output of this tool includes converted AMP, the screenshot, and AMP validation errors for each conversion step. 15 | 16 | This script uses [puppeteer](https://github.com/GoogleChrome/puppeteer) to load and render pages. 17 | 18 | ## Non-scope 19 | 20 | This tool doesn't aim to create production-ready AMP pages from any arbitrary HTML pages. If your goal is to create high-quality AMP pages for production, please follow [the general guideline of converting HTML to AMP](https://amp.dev/documentation/guides-and-tutorials/start/converting/). 21 | 22 | ## Getting started 23 | 24 | To run the script, you may choose one of the following methods: 25 | 26 | #### npx 27 | 28 | Run the script directly with npx: 29 | 30 | ``` 31 | npx amp-prototyper [URL] 32 | ``` 33 | 34 | - `URL` - URL to the page to convert. 35 | 36 | #### npm or yarn 37 | 38 | Install amp-prototyper package. 39 | 40 | ``` 41 | git clone https://github.com/jonchenn/amp-prototyper.git 42 | cd amp-prototyper 43 | yarn install 44 | ``` 45 | 46 | Then, run the script. 47 | ``` 48 | ./amp-prototyper [URL] 49 | ``` 50 | 51 | ### Usage 52 | 53 | ``` 54 | ./amp-prototyper [URL] 55 | ``` 56 | 57 | Required arguments: 58 | 59 | - `URL` - URL to the page to convert. 60 | 61 | ### Options 62 | 63 | - `--steps=FILE` - Path to the custom steps JS file. If not defined, it will use ./steps/default-steps.js 64 | - `--output=FILE` - Path to the output file. 65 | - `--device=DEVICE_NAME` - Use specific device name for screenshots. 66 | - `--headless=(true|false)` - Whether to show browser. 67 | - `--fullPageScreenshot=(true|false*)` - tWhether to save full-page screenshots. 68 | - `--compareScreenshots=(true|false*)` - Whether to compare original site with converted. 69 | - `--customHost=HOST` - Use a custom host name when updating relative asset URLs. 70 | - `--port=PORT_NUMBER` - Port number to use to compare before and after (defaults to 8080) 71 | - `--verbose` - Display AMP validation errors. 72 | 73 | ### Examples: 74 | 75 | ``` 76 | # Amplify a page and generate results in /output folder. 77 | ./amp-prototyper https://thinkwithgoogle.com 78 | 79 | # Amplify a page and generate results in /output/test folder. 80 | ./amp-prototyper https://thinkwithgoogle.com --output=test 81 | 82 | # Amplify a page with customized steps. 83 | ./amp-prototyper https://thinkwithgoogle.com --steps=custom/mysteps.js 84 | 85 | # Amplify a page and display AMP validation details. 86 | ./amp-prototyper https://thinkwithgoogle.com --verbose 87 | 88 | # Amplify a page and generate screenshots with specific Device. 89 | ./amp-prototyper https://thinkwithgoogle.com --device='Pixel 2' 90 | 91 | # Amplify a page and display browser. 92 | ./amp-prototyper https://thinkwithgoogle.com --headless=false 93 | 94 | # Amplify a page and compare original site with converted. 95 | ./amp-prototyper https://thinkwithgoogle.com --compareScreenshots=true 96 | 97 | # Amplify a page that served from localhost and generate results with correct absolute URLs for assets. 98 | ./amp-prototyper https://thinkwithgoogle.com --customHost=https://example.com 99 | ``` 100 | 101 | ### Test with a sample HTML. 102 | 103 | You can also run a sample HTML with following: 104 | 105 | ``` 106 | # Run a localhost web server using http-server. 107 | yarn sample 108 | ``` 109 | 110 | This opens up a localhost web server at by default that serves [test/index.html](https://github.com/jonchenn/amp-prototyper/blob/master/test/index.html). This is a quick and simple HTML page to test amp-prototyper. You can run the following to see how amp-prototyper works. (If localhost has trouble connecting to the port, add the --port flag with a different port number) 111 | 112 | ``` 113 | # Amplify the page at localhost and output in sample/ folder. 114 | ./amp-prototyper http://127.0.0.1:8080 --output=sample 115 | ``` 116 | 117 | Then, check out the `./output/sample`, and you will see a list of output files. 118 | 119 | ## Output of each step 120 | 121 | When you run the script, it follows predefined steps, either default steps at [src/default-steps.js](https://github.com/jonchenn/amp-prototyper/blob/master/src/default-steps.js), or customized steps. 122 | 123 | You can amplify a HTML page with default steps: 124 | 125 | ``` 126 | # Amplify a page with default steps. 127 | ./amp-prototyper http://127.0.0.1:8080 128 | ``` 129 | 130 | Or run amplify a page with customized steps: 131 | 132 | ``` 133 | # Amplify a page with customized steps. 134 | ./amp-prototyper http://127.0.0.1:8080 --steps=custom/mysteps.js 135 | ``` 136 | 137 | At each step, it executes a set of actions and writes the files below to the output/ folder: 138 | 139 | - `output-step-[STEP_ID].html` - the modified HTML. 140 | - `output-step-[STEP_ID].png` - the screenshot after this step. 141 | - `output-step-[STEP_ID]-validation.txt` (only with --verbose) - AMP validation errors from console output. 142 | 143 | If you don't specify --output, it uses the domain from the given URL as the name of the output folder. 144 | 145 | ### Verify your output 146 | 147 | You can run the following command to run a simple web server locally to serve your output files. 148 | 149 | ``` 150 | yarn output 151 | ``` 152 | 153 | Open up the localhost URL with a browser. For example: 154 | 155 | Check the image comparsion to see visual differences in the original URL and AMP HTML 156 | 157 | Remove the watermark in the AMP HTML and review the code for additional changes/AMP validation error fixes 158 | 159 | ### Caveats 160 | 161 | - Styles from '@import' media queries must be manually added 162 | - HTML containing ShadowDOMs and nested ShadowDOMS are unsupported 163 | 164 | ## Customize steps 165 | 166 | ### Structure of steps 167 | 168 | You can check out the default steps at [src/default-steps.js](https://github.com/jonchenn/amp-prototyper/blob/master/src/default-steps.js). 169 | 170 | Each step follows the structure below. 171 | 172 | ``` 173 | { 174 | name: 'Name of the step', 175 | actions: [{ 176 | skip: false, 177 | log: 'Log output for this action', 178 | actionType: 'replace', 179 | selector: 'html', 180 | regex: '(.*)', 181 | replace: '$2', 182 | }, { 183 | ... 184 | }], 185 | }, 186 | ``` 187 | 188 | Step properties: 189 | 190 | - `name` <[string]> Step name. 191 | - `actions` <[Array]<[Action]()>> actions to execute. 192 | - `skip` <[boolean]> Whether to skip this step. 193 | 194 | Common properties of an action: 195 | 196 | - `actionType` Action type. 197 | - `log` <[string]> Message output of this action. 198 | - `waitAfterLoaded` <[number]> Wait for a specific milliseconds after the page loaded. 199 | 200 | ### Environment Variables 201 | 202 | You can also use the following EnvVars in the steps configuration. 203 | 204 | - `$URL` <[string]> The URL from the `--url` parameter. 205 | - `$HOST` <[string]> The host derived from the URL. 206 | - `$DOMAIN` <[string]> The domain derived from the URL. 207 | 208 | For example, you have a step like below: 209 | 210 | ``` 211 | { 212 | name: 'Name of the step', 213 | actions: [{ 214 | log: 'Log output for this action', 215 | actionType: 'replace', 216 | selector: 'html', 217 | regex: '(.*)', 218 | replace: '$HOST', 219 | }], 220 | }, 221 | ``` 222 | 223 | While running the script with `https://example.com`, it replaces """$HOST""" with ". 224 | 225 | ### Supported actions: 226 | 227 | #### setAttribute 228 | 229 | Set an attribute to a specific element. 230 | 231 | - `selector` <[string]> target element. 232 | - `attribute` <[string]> attribute to ad. 233 | - `value` <[string]> the attribute value. 234 | 235 | #### removeAttribute 236 | 237 | Remove an attribute to a specific element. 238 | 239 | - `selector` <[string]> target element. 240 | - `attribute` <[string]> attribute to remove. 241 | #### replace 242 | 243 | Use Regex to find and replace in the DOM. 244 | 245 | - `selector` <[string]> target element. 246 | - `regex` <[string]> Regex string to match. 247 | - `replace` <[string]> Replace matches with this string. 248 | #### removeDisallowedAttribute 249 | 250 | Remove an attribute to specific elements based on AMP validation errors. 251 | 252 | - `selector` <[string]> target element. 253 | #### replaceBasedOnAmpErrors 254 | 255 | Use Regex to find and replace in the DOM based on AMP validation errors. 256 | 257 | - `selector` <[string]> target element. 258 | - `ampErrorRegex` <[string]> Regex string to match for AMP validation errors. 259 | - `regex` <[string]> Regex string to match. 260 | - `replace` <[string]> Replace matches with this string. 261 | For example, in a specific step it has the following AMP validation errors. 262 | 263 | ``` 264 | line 61, col 4: The attribute 'onclick' may not appear in tag 'button'. 265 | line 70, col 4: The tag 'custom-tag' is disallowed. 266 | ``` 267 | 268 | To replace the 269 | 270 | in the body based on the AMP validation result, you 271 | can have the following step: 272 | 273 | ``` 274 | { 275 | name: 'Convert disallowed tags to
based on AMP validation result.', 276 | actions: [{ 277 | log: 'Change tags to
', 278 | actionType: 'replaceBasedOnAmpErrors', 279 | selector: 'body', 280 | ampErrorRegex: 'The tag \'([^\']*)\' is disallowed', 281 | regex: '<($1)((.|[\\r\\n])*)', 282 | replace: '
', 283 | }], 284 | } 285 | ``` 286 | 287 | This step matches the AMP validation result with `ampErrorRegex`. Then it replace the `regex` with the capturing group #1 from `ampErrorRegex`. In this case, the `regex` becomes: 288 | 289 | ``` 290 | <(custom-tag)((.|[\\r\\n])*) 291 | ``` 292 | 293 | Finally, it uses the revised `regex` to replace the content with `replace` value. 294 | 295 | #### replaceOrInsert 296 | 297 | Use Regex to find and replace in the DOM. If not found, insert to the destination element. 298 | 299 | - `selector` <[string]> target element. 300 | - `regex` <[string]> Regex string to match. 301 | - `replace` <[string]> Replace matches with this string. 302 | #### insert 303 | 304 | Insert a string to the bottom of the destination element. E.g. adding a string to the bottom of the . 305 | 306 | - `selector` <[string]> target element. 307 | - `value` <[string]> the string to insert. 308 | - `destSelector` <[string]> destination element. 309 | #### move 310 | 311 | Move elements to the bottom of the destination element. E.g. moving all 312 | 313 | 314 | 315 | to the bottom of the . 316 | 317 | - `selector` <[string]> target element. 318 | - `destSelector` <[string]> destination element. 319 | #### appendAfter 320 | 321 | Append a string right after a specific element. 322 | 323 | - `selector` <[string]> target element. 324 | - `value` <[string]> the string to append. 325 | #### inlineExternalStyles 326 | 327 | Collect all external CSS and append a ` 31 | 46 | 54 |
55 |

Article Name

56 | 57 |

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam egestas tortor sapien, non tristique ligula accumsan eu.

58 |

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam egestas tortor sapien, non tristique ligula accumsan eu.

59 |

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam egestas tortor sapien, non tristique ligula accumsan eu.

60 |
61 | 62 | 63 | 64 |

Another paragraph

65 |
Div with attribute name
66 |
Duplicate attibutes
67 |
Duplicate attibutes
68 | 69 |
70 | Multiple attibutes 71 | 72 |
73 | 74 | 75 | 76 | This should remain intact. 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 93 | 94 | 95 |
96 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /src/cli.js: -------------------------------------------------------------------------------- 1 | const {amplify} = require('./core'); 2 | const argv = require('minimist')(process.argv.slice(2)); 3 | const steps = require('../steps/default-steps.js') 4 | 5 | function printUsage() { 6 | let usage = ` 7 | Usage: ./amp-prototyper [URL] 8 | 9 | Required: 10 | URL\tURL to the page to convert. 11 | 12 | Options (*denotes default value if not passed in): 13 | --steps=FILE\tPath to the custom steps JS file. If not defined, it will use ./steps/default-steps.js 14 | --output=FILE\tPath to the output file. 15 | --device=DEVICE_NAME\tUse specific device name for screenshots. 16 | --headless=(true*|false)\tWhether to show browser. 17 | --verbose\tDisplay AMP validation errors. 18 | --fullPageScreenshot=(true|false*)\tWhether to save full-page screenshots. 19 | --compareScreenshots=(true|false*)\tWhether to compare original site with converted. 20 | --customHost=HOST\tUse a custom host name when updating relative asset URLs. 21 | --port=PORT_NUMBER\tPort number to use to compare before and after (defaults to 8080). 22 | 23 | Examples: 24 | # Amplify a page and generate results in /output folder. 25 | ./amp-prototyper https://thinkwithgoogle.com 26 | 27 | # Amplify a page and generate results in /output/test folder. 28 | ./amp-prototyper https://thinkwithgoogle.com --output=test 29 | 30 | # Amplify a page with customized steps. 31 | ./amp-prototyper https://thinkwithgoogle.com --steps=custom/mysteps.js 32 | 33 | # Amplify a page and display AMP validation details. 34 | ./amp-prototyper https://thinkwithgoogle.com --verbose 35 | 36 | # Amplify a page and compare original site with converted. 37 | ./amp-prototyper https://thinkwithgoogle.com --compareScreenshots=true 38 | 39 | # Amplify a page and use a different port. 40 | ./amp-prototyper https://thinkwithgoogle.com --port=3000 41 | 42 | # Amplify a page that served from localhost and generate results with correct absolute URLs for assets. 43 | ./amp-prototyper https://thinkwithgoogle.com --customHost=https://example.com 44 | `; 45 | console.log(usage); 46 | } 47 | 48 | /** 49 | * Main CLI function. 50 | */ 51 | async function begin() { 52 | let url = argv['_'][0], output = argv['output']; 53 | let customSteps = argv['steps'] ? 54 | require(`../${argv['steps']}`) : null; 55 | 56 | if (!url) { 57 | printUsage(); 58 | return; 59 | } 60 | 61 | let allSteps = customSteps || steps; 62 | if (customSteps) console.log(`Use custom steps ${argv['steps']}`); 63 | 64 | await amplify(url, allSteps, argv); 65 | } 66 | 67 | module.exports = { 68 | begin, 69 | }; 70 | -------------------------------------------------------------------------------- /src/core.js: -------------------------------------------------------------------------------- 1 | const puppeteer = require('puppeteer'); 2 | const devices = require('puppeteer/DeviceDescriptors'); 3 | const fse = require('fs-extra'); 4 | const mkdirp = require('mkdirp'); 5 | const rimraf = require('rimraf'); 6 | const path = require('path'); 7 | const beautify = require('js-beautify').html; 8 | const colors = require('colors'); 9 | const amphtmlValidator = require('amphtml-validator'); 10 | const purify = require("purify-css") 11 | const argv = require('minimist')(process.argv.slice(2)); 12 | const CleanCSS = require('clean-css'); 13 | const Diff = require('diff'); 14 | const assert = require('assert'); 15 | const httpServer = require('http-server'); 16 | const { 17 | JSDOM 18 | } = require("jsdom"); 19 | const PNG = require('pngjs').PNG; 20 | const pixelmatch = require('pixelmatch'); 21 | const watermarkTpl = require('./watermark'); 22 | 23 | 24 | let outputPath, verbose, envVars; 25 | let computedDimensions = {}; 26 | let styleByUrls = {}, 27 | allStyles = ''; 28 | let port = 8080; 29 | var sourceDom = null; 30 | 31 | function replaceEnvVars(str) { 32 | Object.keys(envVars).forEach((key) => { 33 | if (typeof str === 'string') { 34 | str = str.replace(key, envVars[key]); 35 | } 36 | }); 37 | return str; 38 | } 39 | 40 | async function collectStyles(response) { 41 | if (response.request().resourceType() === 'stylesheet') { 42 | let url = await response.url(); 43 | let text = await response.text(); 44 | allStyles += text; 45 | styleByUrls[url] = text; 46 | } 47 | } 48 | 49 | async function validateAMP(html, printResult) { 50 | const ampValidator = await amphtmlValidator.getInstance(); 51 | let errors = []; 52 | 53 | let result = ampValidator.validateString(html); 54 | if (result.status === 'PASS') { 55 | if (printResult) console.log('\tAMP validation successful.'.green); 56 | } else { 57 | result.errors.forEach((e) => { 58 | var msg = `line ${e.line}, col ${e.col}: ${e.message}`; 59 | if (e.specUrl) msg += ` (see ${e.specUrl})`; 60 | if (verbose) console.log('\t' + msg.dim); 61 | errors.push(msg); 62 | }); 63 | if (printResult) 64 | console.log(`\t${errors.length} AMP validation errors.`.red); 65 | } 66 | return Promise.resolve(errors); 67 | } 68 | 69 | function matchAmpErrors(errors, ampErrorsRegex) { 70 | let resultSet = new Set(); 71 | errors.forEach(error => { 72 | let matches = error.match(new RegExp(ampErrorsRegex)); 73 | if (matches) { 74 | resultSet.add(matches); 75 | } 76 | }); 77 | return resultSet; 78 | } 79 | 80 | function beautifyHtml(sourceDom) { 81 | // Beautify html. 82 | let html = beautify(sourceDom.documentElement.outerHTML, { 83 | indent_size: 2, 84 | preserve_newlines: false, 85 | content_unformatted: ['script', 'style'], 86 | }); 87 | return '\n' + html; 88 | } 89 | 90 | async function writeToFile(filename, html, options) { 91 | let filePath = path.resolve(`./output/${outputPath}/${filename}`); 92 | await fse.outputFile(filePath, html); 93 | } 94 | 95 | async function runAction(action, sourceDom, page) { 96 | let elements, el, destEl, elHtml, regex, matches, newEl, body; 97 | let numReplaced = 0, 98 | oldStyles = '', 99 | newStyles = '', 100 | optimizedStyles = ''; 101 | let message = action.actionType; 102 | let result = {}; 103 | 104 | // Replace the action's all properties with envVars values. 105 | Object.keys(action).forEach((prop) => { 106 | action[prop] = replaceEnvVars(action[prop]); 107 | }); 108 | 109 | if (action.waitAfterLoaded) { 110 | await page.waitFor(action.waitAfterLoaded); 111 | } 112 | 113 | switch (action.actionType) { 114 | case 'setAttribute': 115 | elements = sourceDom.querySelectorAll(action.selector); 116 | elements.forEach((el) => { 117 | el.setAttribute(action.attribute, action.value); 118 | }); 119 | message = `set ${action.attribute} as ${action.value}`; 120 | break; 121 | 122 | case 'removeAttribute': 123 | elements = sourceDom.querySelectorAll(action.selector); 124 | elements.forEach((el) => { 125 | el.removeAttribute(action.attribute); 126 | }); 127 | message = `remove ${action.attribute} from ${elements.length} elements`; 128 | break; 129 | 130 | case 'replaceBasedOnAmpErrors': 131 | elements = sourceDom.querySelectorAll(action.selector); 132 | if (!elements.length) throw new Error(`No matched element(s): ${action.selector}`); 133 | 134 | let ampErrorMatches = matchAmpErrors(ampErrors, action.ampErrorRegex); 135 | let regexStr; 136 | let matchSet = new Set(); 137 | 138 | elements.forEach((el) => { 139 | ampErrorMatches.forEach(matches => { 140 | regexStr = action.regex; 141 | for (let i = 1; i <= 9; i++) { 142 | if (matches[i]) { 143 | regexStr = regexStr.replace(new RegExp('\\$' + i, 'g'), matches[i]); 144 | matchSet.add(matches[i]) 145 | } 146 | } 147 | regex = new RegExp(regexStr); 148 | matches = el.innerHTML.match(regex); 149 | numReplaced += matches ? matches.length : 0; 150 | el.innerHTML = el.innerHTML.replace(regex, action.replace); 151 | }); 152 | }); 153 | message = `${numReplaced} replaced: ${[...matchSet].join(', ')}`; 154 | break; 155 | 156 | case 'removeDisallowedAttribute': { 157 | let ampErrorRegex = 'The attribute \'([^\']*)\' may not appear in tag \'([\\w-]* > )*([\\w-]*)\''; 158 | let ampErrorMatches = matchAmpErrors(ampErrors, ampErrorRegex); 159 | let matchSet = new Set(); 160 | let numRemoved = 0; 161 | 162 | ampErrorMatches.forEach(matches => { 163 | let attribute = matches[1]; 164 | let tag = matches[3]; 165 | matchSet.add(attribute) 166 | numRemoved += matches ? matches.length : 0; 167 | 168 | elements = sourceDom.querySelectorAll(tag); 169 | elements.forEach((el) => { 170 | el.removeAttribute(attribute); 171 | }); 172 | }); 173 | 174 | message = `${numRemoved} removed: ${[...matchSet].join(', ')}`; 175 | break; } 176 | 177 | case 'replace': 178 | elements = sourceDom.querySelectorAll(action.selector); 179 | if (!elements.length) throw new Error(`No matched element(s): ${action.selector}`); 180 | 181 | elements.forEach((el) => { 182 | elHtml = el.innerHTML; 183 | regex = new RegExp(action.regex, 'ig'); 184 | matches = elHtml.match(regex, 'ig'); 185 | numReplaced += matches ? matches.length : 0; 186 | elHtml = elHtml.replace(regex, action.replace); 187 | el.innerHTML = elHtml; 188 | }); 189 | message = `${numReplaced} replaced`; 190 | break; 191 | 192 | case 'replaceOrInsert': 193 | el = sourceDom.querySelector(action.selector); 194 | if (!el) throw new Error(`No matched element(s): ${action.selector}`); 195 | 196 | elHtml = el.innerHTML; 197 | regex = new RegExp(action.regex, 'ig'); 198 | if (elHtml.match(regex, 'ig')) { 199 | elHtml = elHtml.replace(regex, action.replace); 200 | el.innerHTML = elHtml; 201 | message = 'Replaced'; 202 | } else { 203 | newEl = sourceDom.createElement('template'); 204 | newEl.innerHTML = action.replace; 205 | newEl.content.childNodes.forEach((node) => { 206 | el.appendChild(node); 207 | }); 208 | message = `Inserted in ${action.selector}`; 209 | } 210 | break; 211 | 212 | case 'insert': 213 | el = sourceDom.querySelector(action.selector); 214 | if (!el) throw new Error(`No matched element(s): ${action.selector}`); 215 | 216 | el.innerHTML += (action.value || ''); 217 | message = `Inserted in ${action.selector}`; 218 | break; 219 | 220 | case 'appendAfter': 221 | el = sourceDom.querySelector(action.selector); 222 | if (!el) throw new Error(`No matched element(s): ${action.selector}`); 223 | 224 | newEl = sourceDom.createElement('template'); 225 | newEl.innerHTML = action.value; 226 | Array.from(newEl.content.childNodes).forEach((node) => { 227 | el.parentNode.insertBefore(node, el.nextSibling); 228 | }); 229 | message = 'Dom appended'; 230 | break; 231 | 232 | case 'move': 233 | elements = sourceDom.querySelectorAll(action.selector); 234 | if (!elements.length) throw new Error(`No matched element(s): ${action.selector}`); 235 | 236 | destEl = sourceDom.querySelector(action.destSelector); 237 | if (!destEl) throw new Error(`No matched element: ${action.destSelector}`); 238 | 239 | var movedContent = ''; 240 | elements.forEach((el) => { 241 | movedContent += el.outerHTML + '\n'; 242 | el.parentNode.removeChild(el); 243 | }); 244 | 245 | destEl.innerHTML += movedContent; 246 | message = `Moved ${elements.length} elements`; 247 | break; 248 | 249 | // Merge multiple DOMs into one. 250 | case 'mergeContent': 251 | elements = sourceDom.querySelectorAll(action.selector); 252 | if (!elements.length) throw new Error(`No matched element(s): ${action.selector}`); 253 | 254 | destEl = sourceDom.querySelector(action.destSelector); 255 | if (!destEl) throw new Error(`No matched element: ${action.destSelector}`); 256 | 257 | var mergedContent = ''; 258 | var firstEl = elements[0]; 259 | elements.forEach((el) => { 260 | mergedContent += el.innerHTML + '\n'; 261 | el.parentNode.removeChild(el); 262 | }); 263 | 264 | firstEl.innerHTML = mergedContent; 265 | destEl.innerHTML += firstEl.outerHTML; 266 | message = `Merged ${elements.length} elements`; 267 | break; 268 | 269 | case 'inlineExternalStyles': 270 | el = sourceDom.querySelector(action.selector); 271 | if (!el) throw new Error(`No matched element(s): ${action.selector}`); 272 | 273 | newStyles = action.minify ? 274 | new CleanCSS({}).minify(allStyles).styles : allStyles; 275 | 276 | newEl = sourceDom.createElement('style'); 277 | newEl.appendChild(sourceDom.createTextNode(newStyles)); 278 | el.appendChild(newEl); 279 | message = 'styles appended'; 280 | break; 281 | 282 | case 'removeUnusedStyles': 283 | elements = sourceDom.querySelectorAll(action.selector); 284 | if (!elements.length) throw new Error(`No matched element(s): ${action.selector}`); 285 | 286 | body = sourceDom.querySelector('body'); 287 | oldStyles = ''; 288 | newStyles = ''; 289 | optimizedStyles = ''; 290 | 291 | elements.forEach((el) => { 292 | // if (el.tagName !== 'style') return; 293 | oldStyles += el.innerHTML; 294 | 295 | // Use CleanCSS to prevent breaking from bad syntax. 296 | newStyles = new CleanCSS({ 297 | all: false, // Disabled minification. 298 | format: 'beautify', 299 | }).minify(el.innerHTML).styles; 300 | 301 | // Use PurifyCSS to remove unused CSS. 302 | let purifyOptions = { 303 | minify: action.minify || false, 304 | }; 305 | newStyles = purify(body.innerHTML, newStyles, purifyOptions); 306 | el.innerHTML = newStyles; 307 | optimizedStyles += '\n\n' + newStyles; 308 | }); 309 | 310 | // Collect unused styles. 311 | if (action.outputCSS) { 312 | let diff = Diff.diffLines(optimizedStyles, oldStyles, { 313 | ignoreWhitespace: true, 314 | }); 315 | let unusedStyles = ''; 316 | diff.forEach((part) => { 317 | unusedStyles += part.value + '\n'; 318 | }); 319 | unusedStyles = new CleanCSS({ 320 | all: false, // Disabled minification. 321 | format: 'beautify', 322 | }).minify(unusedStyles).styles; 323 | 324 | // Return back to action result. 325 | result.optimizedStyles = optimizedStyles; 326 | result.unusedStyles = unusedStyles; 327 | } 328 | 329 | let oldSize = oldStyles.length, 330 | newSize = optimizedStyles.length; 331 | let ratio = Math.round((oldSize - newSize) / oldSize * 100); 332 | message = `Removed ${ratio}% styles. (${oldSize} -> ${newSize} bytes)`; 333 | break; 334 | 335 | case 'customFunc': 336 | elements = sourceDom.querySelectorAll(action.selector); 337 | if (!elements.length) throw new Error(`No matched element(s): ${action.selector}`); 338 | 339 | if (action.customFunc) { 340 | await action.customFunc(action, elements, page); 341 | } 342 | break; 343 | 344 | default: 345 | console.log(`${action.actionType} is not supported.`.red); 346 | break; 347 | } 348 | console.log(`\t${action.log || action.actionType}:`.reset + ` ${message}`.dim); 349 | 350 | // Beautify html and update to source DOM. 351 | html = beautifyHtml(sourceDom); 352 | sourceDom.documentElement.innerHTML = html; 353 | 354 | // Validate AMP. 355 | ampErrors = await validateAMP(html); 356 | 357 | // Update page content with updated HTML. 358 | await page.setContent(html, { 359 | waitUntil: 'networkidle0', 360 | }); 361 | 362 | result.html = html; 363 | return result; 364 | } 365 | 366 | //add disclaimer watermark 367 | //TODO: refactor disclaimer text to a static file 368 | function addDisclaminerWatermark(html) { 369 | console.log('Adding disclaimer'.yellow); 370 | let bodyTag = html.match(/]*>/); 371 | return bodyTag ? html.replace(bodyTag, bodyTag + watermarkTpl) : html; 372 | } 373 | 374 | async function amplifyFunc(browser, url, steps, argv, computedDimensions) { 375 | argv = argv || {}; 376 | verbose = argv.hasOwnProperty('verbose'); 377 | 378 | let device = argv['device'] || 'Pixel 2' 379 | let customHost = argv['customHost'] 380 | let consoleOutputs = []; 381 | 382 | // Print warnings when missing necessary arguments. 383 | assert(url, 'Missing url.'); 384 | assert(steps, 'Missing steps'); 385 | 386 | // Set default protocol as https if no protocol is given. 387 | let protocol = url.match(/(https|http).*/i); 388 | url = protocol ? url : 'https://' + url; 389 | 390 | let host = url.match(/(https|http)\:\/\/([\w.-]*(\:\d+)?)/i)[0]; 391 | assert(host, 'Unable to get host from ' + url); 392 | 393 | let domain = host.replace(/http(s)?:\/\//ig, ''); 394 | let urlWithoutProtocol = url.replace(/http(s)?:\/\//ig, ''); 395 | assert(domain, 'Unable to get domain from ' + url); 396 | 397 | // Set output subfolder using domain if undefined. 398 | outputPath = argv['output'] || urlWithoutProtocol.replace(/\//ig, '_'); 399 | 400 | envVars = { 401 | '$URL': encodeURI(url), 402 | '$HOST': customHost || host, 403 | '$DOMAIN': domain, 404 | }; 405 | 406 | console.log('Url: ' + url.green); 407 | console.log('Host: ' + host.green); 408 | console.log('Domain: ' + domain.green); 409 | 410 | // Create directory if it doesn't exist. 411 | mkdirp(`./output/${outputPath}/`, (err) => { 412 | if (err) throw new Error(`Unable to create directory ${err}`); 413 | }); 414 | rimraf(`./output/${outputPath}/*`, () => { 415 | console.log(`Removed previous output in ./output/${outputPath}`.dim); 416 | }); 417 | 418 | const page = await browser.newPage(); 419 | await page.emulate(devices[device]); 420 | page.on('response', collectStyles); 421 | page.on('console', (consoleObj) => { 422 | consoleOutputs.push(consoleObj.text()); 423 | }); 424 | 425 | console.log(`Step 0: loading page: ${url}`.yellow); 426 | 427 | // Open URL and save source to sourceDom. 428 | let response = await page.goto(url); 429 | let pageSource = await response.text(); 430 | let pageContent = await page.content(); 431 | computedDimensions.computedHeight = await page.$eval('body', (ele) => { 432 | let compStyles = window.getComputedStyle(ele); 433 | return compStyles.getPropertyValue('height'); 434 | }); 435 | computedDimensions.computedWidth = await page.$eval('body', (ele) => { 436 | let compStyles = window.getComputedStyle(ele); 437 | return compStyles.getPropertyValue('width'); 438 | }); 439 | sourceDom = new JSDOM(pageContent, { 440 | url: host 441 | }).window.document; 442 | let ampErrors = await validateAMP(pageContent); 443 | 444 | // Output initial HTML, screenshot and amp errors. 445 | await writeToFile(`output-original.html`, pageContent); 446 | await page.screenshot({ 447 | path: `output/${outputPath}/output-original.png`, 448 | fullPage: argv['fullPageScreenshot'] 449 | }); 450 | await writeToFile(`output-original-validation.txt`, ampErrors.join('\n')); 451 | 452 | // Clear page.on listener. 453 | page.removeListener('response', collectStyles); 454 | 455 | let i = 1; 456 | let stepOutput = ''; 457 | let html = beautifyHtml(sourceDom); 458 | let actionResult, optimizedStyles, unusedStyles, oldStyles; 459 | 460 | // Since puppeteer thinks were still on a public facing server 461 | // setting it to localhost will allow us to continue seeing 462 | // a page even with some errors! 463 | let server = httpServer.createServer({root:`output/${outputPath}/`}); 464 | server.listen(port, '127.0.0.1', () => { 465 | console.log('Local server started!'.cyan); 466 | }); 467 | response = await page.goto(`http://127.0.0.1:${port}`); 468 | 469 | if(!response.ok()){ 470 | console.warn('Could not connect to local server with Puppeteer!'); 471 | } 472 | 473 | for (let i = 0; i < steps.length; i++) { 474 | consoleOutputs = []; 475 | let step = steps[i]; 476 | 477 | if (!step.actions || step.skip) continue; 478 | console.log(`Step ${i+1}: ${step.name}`.yellow); 479 | 480 | for (let j = 0; j < step.actions.length; j++) { 481 | let action = step.actions[j]; 482 | 483 | try { 484 | // The sourceDom will be updated after each action. 485 | actionResult = await runAction(action, sourceDom, page); 486 | html = actionResult.html; 487 | optimizedStyles = actionResult.optimizedStyles; 488 | unusedStyles = actionResult.unusedStyles; 489 | 490 | } catch (e) { 491 | if (verbose) { 492 | console.log(e); 493 | } else { 494 | console.log(`\t${action.log || action.type}:`.reset + 495 | ` Error: ${e.message}`.red); 496 | } 497 | } 498 | } 499 | 500 | // Write HTML to file. 501 | await writeToFile(`steps/output-step-${i+1}.html`, html); 502 | 503 | if (optimizedStyles) { 504 | await writeToFile(`steps/output-step-${i+1}-optimized-css.css`, 505 | optimizedStyles); 506 | } 507 | if (unusedStyles) { 508 | await writeToFile(`steps/output-step-${i+1}-unused-css.css`, 509 | unusedStyles); 510 | } 511 | 512 | // Update page content with updated HTML. 513 | await page.setContent(html, { 514 | waitUntil: 'networkidle0', 515 | }); 516 | 517 | // Take and save screenshot to file. 518 | // await page.waitFor(500); 519 | 520 | // Uncomment to see what the browser is seeing 521 | // await writeToFile(`steps/output-step-${i+1}-page-output.html`, await page.content()); 522 | 523 | await page.screenshot({ 524 | path: `output/${outputPath}/steps/output-step-${i+1}.png`, 525 | fullPage: argv['fullPageScreenshot'] 526 | }); 527 | 528 | await writeToFile(`steps/output-step-${i+1}-validation.txt`, (ampErrors || []).join('\n')); 529 | 530 | // Print AMP validation result. 531 | ampErrors = await validateAMP(html, true /* printResult */ ); 532 | } 533 | 534 | //Add the disclaimer watermark 535 | html = addDisclaminerWatermark(html); 536 | 537 | // need to make sure we close out the server that was used! 538 | await server.close(); 539 | console.log('Local server closed!'.cyan); 540 | 541 | // Write final outcome to file. 542 | await writeToFile(`output-final.html`, html); 543 | await page.screenshot({ 544 | path: `output/${outputPath}/output-final.png`, 545 | fullPage: argv['fullPageScreenshot'] 546 | }); 547 | await writeToFile(`output-final-validation.txt`, (ampErrors || []).join('\n')); 548 | 549 | if (argv['compareScreenshots'] && argv['compareScreenshots'] === 'true') { 550 | try{ 551 | await compareImages(`output/${outputPath}/output-original.png`, 552 | `output/${outputPath}/output-final.png`, 553 | `output/${outputPath}/output-difference.png`, computedDimensions.computedHeight, computedDimensions.computedWidth, page, 'output-final.png', server, `output/${outputPath}/output-replace.png`); 554 | } catch(error) { 555 | console.log('Not able to compare at this time, please create issue with following info: '.yellow, error); 556 | } 557 | } 558 | 559 | console.log(`You can find the output files at ./output/${outputPath}/`.cyan); 560 | } 561 | 562 | async function amplify(url, steps, argv) { 563 | let isHeadless = argv['headless'] ? argv['headless'] === 'true' : true; 564 | port = argv['port'] || port; 565 | 566 | // Start puppeteer. 567 | const browser = await puppeteer.launch({ 568 | headless: isHeadless, 569 | }); 570 | 571 | try { 572 | await amplifyFunc(browser, url, steps, argv, computedDimensions); 573 | console.log('Complete.'.green); 574 | 575 | } catch (e) { 576 | console.error(e); 577 | console.log('Complete with errors.'.yellow); 578 | 579 | } finally { 580 | if (browser) await browser.close(); 581 | } 582 | } 583 | 584 | async function compareImages(image1Path, image2Path, diffPath, computedHeight, computedWidth, page, backgroundImage, server, replacementPath){ 585 | const img1 = PNG.sync.read(fse.readFileSync(image1Path)); 586 | let img2 = PNG.sync.read(fse.readFileSync(image2Path)); 587 | 588 | let {width, height} = img1; 589 | if(img1.height > img2.height) { 590 | img2 = await resizeImage(computedHeight, computedWidth, backgroundImage, replacementPath, server, page); 591 | } 592 | const diff = new PNG({width,height}); 593 | const mismatch = runComparison(img1.data, img2.data, diff, width, height); 594 | 595 | console.log(`Difference between original and converted: ${((mismatch/(width * height)) * 100).toFixed(2)}%`); 596 | 597 | fse.writeFileSync(diffPath, PNG.sync.write(diff)); 598 | } 599 | 600 | async function resizeImage(height, width, imageLocation, replacementPath, server, page) { 601 | server = httpServer.createServer({root:`output/${outputPath}/`}); 602 | await server.listen(port, '127.0.0.1', () => { 603 | }); 604 | await page.goto(`http://127.0.0.1:${port}`); 605 | const newscreenshot = ` 606 | 607 | 608 | 609 | 610 | 611 | 612 |
613 | 614 |
615 | 616 | 617 | `; 618 | await page.setContent(newscreenshot); 619 | // Uncomment if you want to debug 620 | await writeToFile(`output-replace.html`, await page.content()); 621 | await page.screenshot({ 622 | path: replacementPath, 623 | fullPage: argv['fullPageScreenshot'] 624 | }); 625 | await server.close(); 626 | return PNG.sync.read(fse.readFileSync(replacementPath)); 627 | } 628 | 629 | function runComparison(img1Data, img2Data, diff, width, height){ 630 | return pixelmatch(img1Data, img2Data, diff.data, width, height, {threshold: 0.1}); 631 | } 632 | 633 | module.exports = { 634 | amplify: amplify, 635 | runComparison, 636 | resizeImage, 637 | innerFunc: amplifyFunc 638 | }; 639 | -------------------------------------------------------------------------------- /src/watermark.js: -------------------------------------------------------------------------------- 1 | module.exports = ` 2 | 3 | 4 | 5 |
18 |

19 | This page is not production-ready, yet 20 |

21 |

22 | Please manually resolve any validation errors by adding 23 | #development=1 to end of the URL and checking outputs inside the Chrome Dev Tools console, 24 |
or running the validation on: 25 | AMP test
26 | Details about AMP validation 27 |

28 | To remove this message, look for "TO REMOVE" in the source code of this HTML and delete the line below

29 |
30 | 31 | 32 | 33 | `; 34 | -------------------------------------------------------------------------------- /steps/default-steps.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | { 3 | name: 'Make relative URLs absolute', 4 | actions: [{ 5 | log: 'Adding https for URLs that start with \/\/', 6 | actionType: 'replace', 7 | selector: 'head, body', 8 | regex: '(href|src)=["\']\/\/([^\)^"^\']*)["\']', 9 | replace: '$1="$2"', 10 | }, { 11 | log: 'Update relative URLs', 12 | actionType: 'replace', 13 | selector: 'head, body', 14 | regex: '(href|src)=["\'](\\.*\\/[^\)^"^\']*)["\']', 15 | replace: '$1="$HOST/$2"', 16 | }, { 17 | log: 'Update relative URLs in CSS url()', 18 | actionType: 'replace', 19 | selector: 'style', 20 | regex: 'url\\(["\']?(\\.*[^\)^"^\']*)["\']?\\)', 21 | replace: 'url($HOST/$1)', 22 | }], 23 | }, 24 | { 25 | name: 'Remove disallowed tags', 26 | actions: [{ 27 | log: 'Remove iframe', 28 | actionType: 'replace', 29 | selector: 'html', 30 | regex: ')<[^<]*)*<\/iframe>', 31 | replace: '', 32 | }, { 33 | log: 'Remove inline scripts', 34 | actionType: 'replace', 35 | selector: 'html', 36 | regex: '()?', 37 | replace: '', 38 | }, { 39 | log: 'Remove third-party elements', 40 | actionType: 'replace', 41 | selector: 'html', 42 | regex: '()?', 43 | replace: '', 44 | }, { 45 | log: 'Remove javascript:void(0)', 46 | actionType: 'replace', 47 | selector: 'html', 48 | regex: 'javascript:.*void(0)', 49 | replace: '', 50 | }, { 51 | log: 'Remove noscript', 52 | actionType: 'replace', 53 | selector: 'html', 54 | regex: ')<[^<]*)*<\/noscript>', 55 | replace: '', 56 | }], 57 | }, 58 | { 59 | name: 'Inline all CSS styles in ', 60 | actions: [{ 61 | log: 'Remove styles links', 62 | actionType: 'replace', 63 | selector: 'head', 64 | regex: '()?', 65 | replace: '', 66 | }, { 67 | log: 'Inline external CSS', 68 | actionType: 'inlineExternalStyles', 69 | selector: 'head', 70 | minify: true, 71 | }, { 72 | log: 'Merge all inline CSS to the head.', 73 | actionType: 'mergeContent', 74 | selector: 'style:not([amp-boilerplate])', 75 | destSelector: 'head', 76 | }, { 77 | log: 'Change inline CSS to 168 | 169 | `, 170 | }], 171 | }, 172 | { 173 | name: 'Convert img to amp-img', 174 | actions: [{ 175 | log: 'Set width and height for amp-img', 176 | actionType: 'customFunc', 177 | selector: 'img', 178 | customFunc: async (action, elements, page) => { 179 | if (elements && elements.length) { 180 | sizeMap = await page.$$eval('img', (imgs) => { 181 | return imgs.map(img =>[img.width, img.height]); 182 | }); 183 | for (let i=0; i]*/?>', 201 | replace: '', 202 | }, { 203 | log: 'Set fixed layout', 204 | actionType: 'setAttribute', 205 | selector: 'amp-img', 206 | attribute: 'layout', 207 | value: 'fixed', 208 | }], 209 | }, 210 | { 211 | name: 'Remove disallowed attributes and tags based on AMP validation result.', 212 | actions: [{ 213 | log: 'Remove disallowed attributes', 214 | actionType: 'removeDisallowedAttribute', 215 | selector: 'html', 216 | }], 217 | }, 218 | 219 | ]; 220 | -------------------------------------------------------------------------------- /steps/remove-unused-css.js: -------------------------------------------------------------------------------- 1 | module.exports = [ 2 | { 3 | name: 'Remove unused inline styles', 4 | actions: [{ 5 | log: 'Inline external CSS', 6 | actionType: 'inlineExternalStyles', 7 | selector: 'head', 8 | minify: false, 9 | }, { 10 | log: 'Remove unused CSS', 11 | actionType: 'removeUnusedStyles', 12 | selector: 'style', 13 | minify: false, 14 | outputCSS: true, 15 | }], 16 | }, 17 | ]; 18 | -------------------------------------------------------------------------------- /test/url-tests.js: -------------------------------------------------------------------------------- 1 | require('colors'); 2 | const { readFileSync, createReadStream, createWriteStream } = require('fs-extra'); 3 | const puppeteer = require('puppeteer'); 4 | const pixelmatch = require('pixelmatch'); 5 | const devices = require('puppeteer/DeviceDescriptors'); 6 | const { PNG } = require('pngjs'); 7 | const prototyper = require('../src/core'); 8 | const steps = require('../steps/default-steps'); 9 | const urlsToTest = [ 10 | // Format: {url string, percentage of difference} 11 | {url:'https://www.thinkwithgoogle.com/', percentage: '0.00'}, 12 | //{url:'https://www.dulcolax.com/', percentage: '23.57'}, 13 | {url: 'https://www.ancestrydna.com/', percentage: '55.95'}, 14 | // {url: 'https://www.newegg.com/', percentage: ''}, 15 | // {url: 'https://www.libertymutual.com/', percentage: ''}, 16 | // {url: 'https://www.wyndhamhotels.com/', percentage: ''}, 17 | // {url: 'https://www.toyota.com/', percentage: ''}, 18 | // {url: 'https://www.applebees.com/en/to-go', percentage: ''}, 19 | // {url: 'https://www.nike.com/', percentage: ''}, 20 | // {url: 'https://www.cargurus.com/', percentage: ''}, 21 | // {url: 'https://www.phoenix.edu/', percentage: ''}, 22 | ]; 23 | 24 | let computedDimensions = []; 25 | let browser; 26 | 27 | async function tests() { 28 | console.log('Converting sites....'.cyan); 29 | let size = urlsToTest.length; 30 | let pass = 0; 31 | browser = await puppeteer.launch(); 32 | for (let [index, url] of urlsToTest.entries()) { 33 | computedDimensions.push({computedHeight:'', computedWidth: ''}); 34 | await prototyper.innerFunc(browser, url.url, steps, { 'shouldcompare': 'false' }, computedDimensions[index]); 35 | } 36 | console.log('....Completed Conversion\n'.cyan); 37 | 38 | for (let [index, url] of urlsToTest.entries()) { 39 | console.log(`.......Running Test ${index + 1}`.cyan); 40 | console.log(`URL: ${url.url}`.cyan); 41 | console.log('Running though Prototyper'.cyan); 42 | let urlWithoutProtocol = url.url.replace(/http(s)?:\/\//ig, ''); 43 | let outputPath = urlWithoutProtocol.replace(/\//ig, '_'); 44 | 45 | const passed = await compareImages(`output/${outputPath}/output-original.png`, `output/${outputPath}/output-final.png`, `output/${outputPath}/output-temp.png`, computedDimensions[index], url.percentage); 46 | if (passed) { 47 | pass++; 48 | } 49 | } 50 | let message = `Passed ${pass}/${size}`; 51 | if (pass === size) { 52 | console.log(message.green); 53 | return; 54 | } 55 | console.log(message.red); 56 | } 57 | 58 | 59 | 60 | async function compareImages(image1Path, image2Path, tempPath, computedDimensions, expectedPercentage) { 61 | let img1 = PNG.sync.read(readFileSync(image1Path)); 62 | let img2 = PNG.sync.read(readFileSync(image2Path)); 63 | 64 | const page = await browser.newPage(); 65 | await page.emulate(devices['Pixel 2']); 66 | 67 | 68 | let { width, height } = img1; 69 | 70 | if (img1.height !== img2.height) { 71 | img2 = await prototyper.resizeImage(computedDimensions.computedHeight, computedDimensions.computedWidth, 'output-final.png', tempPath, {}, page); 72 | console.debug("resizing img2"); 73 | } 74 | 75 | return match(img1, img2, width, height, expectedPercentage); 76 | 77 | } 78 | 79 | function match(img1, img2, width, height, expectedPercentage) { 80 | const diff = new PNG({ width, height }); 81 | 82 | const mismatch = prototyper.runComparison(img1.data, img2.data, diff, width, height); 83 | const percentage = ((mismatch / (width * height)) * 100).toFixed(2); 84 | 85 | if (percentage === expectedPercentage) { 86 | console.log(`Conversion passed`.green); 87 | return true; 88 | } 89 | 90 | console.log(`Conversion not within limits ${percentage}%`.red); 91 | return false; 92 | } 93 | 94 | Promise.all([ 95 | tests() 96 | ]).then(process.exit) 97 | .catch((reason) => { 98 | console.log(reason); 99 | process.exit(); 100 | }); 101 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@types/node@^10.11.7": 6 | version "10.12.20" 7 | resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.20.tgz#f79f959acd3422d0889bd1ead1664bd2d17cd367" 8 | 9 | "@types/semver@^5.5.0": 10 | version "5.5.0" 11 | resolved "https://registry.yarnpkg.com/@types/semver/-/semver-5.5.0.tgz#146c2a29ee7d3bae4bf2fcb274636e264c813c45" 12 | 13 | abab@^2.0.0: 14 | version "2.0.0" 15 | resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.0.tgz#aba0ab4c5eee2d4c79d3487d85450fb2376ebb0f" 16 | 17 | abbrev@1: 18 | version "1.1.1" 19 | resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" 20 | 21 | acorn-globals@^4.3.0: 22 | version "4.3.0" 23 | resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-4.3.0.tgz#e3b6f8da3c1552a95ae627571f7dd6923bb54103" 24 | dependencies: 25 | acorn "^6.0.1" 26 | acorn-walk "^6.0.1" 27 | 28 | acorn-walk@^6.0.1: 29 | version "6.1.1" 30 | resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.1.1.tgz#d363b66f5fac5f018ff9c3a1e7b6f8e310cc3913" 31 | 32 | acorn@^6.0.1, acorn@^6.0.4: 33 | version "6.0.6" 34 | resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.0.6.tgz#cd75181670d5b99bdb1b1c993941d3a239ab1f56" 35 | 36 | agent-base@^4.3.0: 37 | version "4.3.0" 38 | resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" 39 | integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== 40 | dependencies: 41 | es6-promisify "^5.0.0" 42 | 43 | ajv@^6.5.5: 44 | version "6.8.1" 45 | resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.8.1.tgz#0890b93742985ebf8973cd365c5b23920ce3cb20" 46 | dependencies: 47 | fast-deep-equal "^2.0.1" 48 | fast-json-stable-stringify "^2.0.0" 49 | json-schema-traverse "^0.4.1" 50 | uri-js "^4.2.2" 51 | 52 | amphtml-validator@^1.0.23: 53 | version "1.0.23" 54 | resolved "https://registry.yarnpkg.com/amphtml-validator/-/amphtml-validator-1.0.23.tgz#dba0c3854289563c0adaac292cd4d6096ee4d7c8" 55 | dependencies: 56 | colors "1.1.2" 57 | commander "2.9.0" 58 | promise "7.1.1" 59 | 60 | ansi-regex@^2.0.0: 61 | version "2.1.1" 62 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" 63 | 64 | ansi-regex@^3.0.0: 65 | version "3.0.0" 66 | resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-3.0.0.tgz#ed0317c322064f79466c02966bddb605ab37d998" 67 | 68 | array-equal@^1.0.0: 69 | version "1.0.0" 70 | resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" 71 | 72 | asap@~2.0.3: 73 | version "2.0.6" 74 | resolved "https://registry.yarnpkg.com/asap/-/asap-2.0.6.tgz#e50347611d7e690943208bbdafebcbc2fb866d46" 75 | 76 | asn1@~0.2.3: 77 | version "0.2.4" 78 | resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" 79 | dependencies: 80 | safer-buffer "~2.1.0" 81 | 82 | assert-plus@1.0.0, assert-plus@^1.0.0: 83 | version "1.0.0" 84 | resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" 85 | 86 | async-limiter@~1.0.0: 87 | version "1.0.0" 88 | resolved "https://registry.yarnpkg.com/async-limiter/-/async-limiter-1.0.0.tgz#78faed8c3d074ab81f22b4e985d79e8738f720f8" 89 | integrity sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg== 90 | 91 | async@^1.5.2: 92 | version "1.5.2" 93 | resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" 94 | 95 | asynckit@^0.4.0: 96 | version "0.4.0" 97 | resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" 98 | 99 | atob@^2.1.1: 100 | version "2.1.2" 101 | resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" 102 | 103 | aws-sign2@~0.7.0: 104 | version "0.7.0" 105 | resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" 106 | 107 | aws4@^1.8.0: 108 | version "1.8.0" 109 | resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.8.0.tgz#f0e003d9ca9e7f59c7a508945d7b2ef9a04a542f" 110 | 111 | balanced-match@^1.0.0: 112 | version "1.0.0" 113 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 114 | integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= 115 | 116 | bcrypt-pbkdf@^1.0.0: 117 | version "1.0.2" 118 | resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" 119 | dependencies: 120 | tweetnacl "^0.14.3" 121 | 122 | brace-expansion@^1.1.7: 123 | version "1.1.11" 124 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 125 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 126 | dependencies: 127 | balanced-match "^1.0.0" 128 | concat-map "0.0.1" 129 | 130 | browser-process-hrtime@^0.1.2: 131 | version "0.1.3" 132 | resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-0.1.3.tgz#616f00faef1df7ec1b5bf9cfe2bdc3170f26c7b4" 133 | 134 | buffer-from@^1.0.0: 135 | version "1.1.1" 136 | resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef" 137 | integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A== 138 | 139 | builtin-modules@^1.0.0: 140 | version "1.1.1" 141 | resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" 142 | 143 | camelcase@^4.1.0: 144 | version "4.1.0" 145 | resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" 146 | 147 | caseless@~0.12.0: 148 | version "0.12.0" 149 | resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" 150 | 151 | clean-css@^4.0.12, clean-css@^4.2.1: 152 | version "4.2.1" 153 | resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.1.tgz#2d411ef76b8569b6d0c84068dabe85b0aa5e5c17" 154 | dependencies: 155 | source-map "~0.6.0" 156 | 157 | cliui@^3.2.0: 158 | version "3.2.0" 159 | resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" 160 | dependencies: 161 | string-width "^1.0.1" 162 | strip-ansi "^3.0.1" 163 | wrap-ansi "^2.0.0" 164 | 165 | code-point-at@^1.0.0: 166 | version "1.1.0" 167 | resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" 168 | 169 | colors@1.0.3: 170 | version "1.0.3" 171 | resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" 172 | 173 | colors@1.1.2: 174 | version "1.1.2" 175 | resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63" 176 | 177 | colors@^1.3.3: 178 | version "1.3.3" 179 | resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.3.tgz#39e005d546afe01e01f9c4ca8fa50f686a01205d" 180 | 181 | combined-stream@^1.0.6, combined-stream@~1.0.6: 182 | version "1.0.7" 183 | resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.7.tgz#2d1d24317afb8abe95d6d2c0b07b57813539d828" 184 | dependencies: 185 | delayed-stream "~1.0.0" 186 | 187 | commander@2.9.0: 188 | version "2.9.0" 189 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4" 190 | dependencies: 191 | graceful-readlink ">= 1.0.0" 192 | 193 | commander@^2.19.0: 194 | version "2.19.0" 195 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" 196 | 197 | commander@~2.17.1: 198 | version "2.17.1" 199 | resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" 200 | 201 | concat-map@0.0.1: 202 | version "0.0.1" 203 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 204 | integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= 205 | 206 | concat-stream@1.6.2: 207 | version "1.6.2" 208 | resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.2.tgz#904bdf194cd3122fc675c77fc4ac3d4ff0fd1a34" 209 | integrity sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw== 210 | dependencies: 211 | buffer-from "^1.0.0" 212 | inherits "^2.0.3" 213 | readable-stream "^2.2.2" 214 | typedarray "^0.0.6" 215 | 216 | config-chain@^1.1.12: 217 | version "1.1.12" 218 | resolved "https://registry.yarnpkg.com/config-chain/-/config-chain-1.1.12.tgz#0fde8d091200eb5e808caf25fe618c02f48e4efa" 219 | dependencies: 220 | ini "^1.3.4" 221 | proto-list "~1.2.1" 222 | 223 | convert-source-map@^0.3.3: 224 | version "0.3.5" 225 | resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-0.3.5.tgz#f1d802950af7dd2631a1febe0596550c86ab3190" 226 | 227 | core-util-is@1.0.2, core-util-is@~1.0.0: 228 | version "1.0.2" 229 | resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" 230 | 231 | corser@~2.0.0: 232 | version "2.0.1" 233 | resolved "https://registry.yarnpkg.com/corser/-/corser-2.0.1.tgz#8eda252ecaab5840dcd975ceb90d9370c819ff87" 234 | 235 | cross-spawn@^5.0.1: 236 | version "5.1.0" 237 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 238 | dependencies: 239 | lru-cache "^4.0.1" 240 | shebang-command "^1.2.0" 241 | which "^1.2.9" 242 | 243 | css@^2.0.0: 244 | version "2.2.4" 245 | resolved "https://registry.yarnpkg.com/css/-/css-2.2.4.tgz#c646755c73971f2bba6a601e2cf2fd71b1298929" 246 | dependencies: 247 | inherits "^2.0.3" 248 | source-map "^0.6.1" 249 | source-map-resolve "^0.5.2" 250 | urix "^0.1.0" 251 | 252 | cssom@0.3.x, cssom@^0.3.4: 253 | version "0.3.4" 254 | resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.4.tgz#8cd52e8a3acfd68d3aed38ee0a640177d2f9d797" 255 | 256 | cssstyle@^1.1.1: 257 | version "1.1.1" 258 | resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-1.1.1.tgz#18b038a9c44d65f7a8e428a653b9f6fe42faf5fb" 259 | dependencies: 260 | cssom "0.3.x" 261 | 262 | dashdash@^1.12.0: 263 | version "1.14.1" 264 | resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" 265 | dependencies: 266 | assert-plus "^1.0.0" 267 | 268 | data-urls@^1.1.0: 269 | version "1.1.0" 270 | resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-1.1.0.tgz#15ee0582baa5e22bb59c77140da8f9c76963bbfe" 271 | dependencies: 272 | abab "^2.0.0" 273 | whatwg-mimetype "^2.2.0" 274 | whatwg-url "^7.0.0" 275 | 276 | debug@2.6.9, debug@^2.2.0: 277 | version "2.6.9" 278 | resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" 279 | dependencies: 280 | ms "2.0.0" 281 | 282 | debug@=3.1.0: 283 | version "3.1.0" 284 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" 285 | dependencies: 286 | ms "2.0.0" 287 | 288 | debug@^3.1.0: 289 | version "3.2.6" 290 | resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" 291 | integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== 292 | dependencies: 293 | ms "^2.1.1" 294 | 295 | debug@^4.1.0: 296 | version "4.1.1" 297 | resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" 298 | integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== 299 | dependencies: 300 | ms "^2.1.1" 301 | 302 | decamelize@^1.1.1: 303 | version "1.2.0" 304 | resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" 305 | 306 | decode-uri-component@^0.2.0: 307 | version "0.2.0" 308 | resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545" 309 | 310 | deep-is@~0.1.3: 311 | version "0.1.3" 312 | resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" 313 | 314 | delayed-stream@~1.0.0: 315 | version "1.0.0" 316 | resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" 317 | 318 | diff@^4.0.1: 319 | version "4.0.1" 320 | resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.1.tgz#0c667cb467ebbb5cea7f14f135cc2dba7780a8ff" 321 | integrity sha512-s2+XdvhPCOF01LRQBC8hf4vhbVmI2CGS5aZnxLJlT5FtdhPCDFq80q++zK2KlrVorVDdL5BOGZ/VfLrVtYNF+Q== 322 | 323 | domexception@^1.0.1: 324 | version "1.0.1" 325 | resolved "https://registry.yarnpkg.com/domexception/-/domexception-1.0.1.tgz#937442644ca6a31261ef36e3ec677fe805582c90" 326 | dependencies: 327 | webidl-conversions "^4.0.2" 328 | 329 | ecc-jsbn@~0.1.1: 330 | version "0.1.2" 331 | resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" 332 | dependencies: 333 | jsbn "~0.1.0" 334 | safer-buffer "^2.1.0" 335 | 336 | ecstatic@^3.0.0: 337 | version "3.3.0" 338 | resolved "https://registry.yarnpkg.com/ecstatic/-/ecstatic-3.3.0.tgz#91cd417d152abf85b37b1ab3ebf3bd25cdc64e80" 339 | dependencies: 340 | he "^1.1.1" 341 | mime "^1.6.0" 342 | minimist "^1.1.0" 343 | url-join "^2.0.5" 344 | 345 | editorconfig@^0.15.2: 346 | version "0.15.2" 347 | resolved "https://registry.yarnpkg.com/editorconfig/-/editorconfig-0.15.2.tgz#047be983abb9ab3c2eefe5199cb2b7c5689f0702" 348 | dependencies: 349 | "@types/node" "^10.11.7" 350 | "@types/semver" "^5.5.0" 351 | commander "^2.19.0" 352 | lru-cache "^4.1.3" 353 | semver "^5.6.0" 354 | sigmund "^1.0.1" 355 | 356 | error-ex@^1.2.0: 357 | version "1.3.2" 358 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 359 | dependencies: 360 | is-arrayish "^0.2.1" 361 | 362 | es6-promise@^4.0.3: 363 | version "4.2.8" 364 | resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" 365 | integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== 366 | 367 | es6-promisify@^5.0.0: 368 | version "5.0.0" 369 | resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" 370 | integrity sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM= 371 | dependencies: 372 | es6-promise "^4.0.3" 373 | 374 | escodegen@^1.11.0: 375 | version "1.11.0" 376 | resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.11.0.tgz#b27a9389481d5bfd5bec76f7bb1eb3f8f4556589" 377 | dependencies: 378 | esprima "^3.1.3" 379 | estraverse "^4.2.0" 380 | esutils "^2.0.2" 381 | optionator "^0.8.1" 382 | optionalDependencies: 383 | source-map "~0.6.1" 384 | 385 | esprima@^3.1.3: 386 | version "3.1.3" 387 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" 388 | 389 | estraverse@^4.2.0: 390 | version "4.2.0" 391 | resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" 392 | 393 | esutils@^2.0.2: 394 | version "2.0.2" 395 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 396 | 397 | eventemitter3@^3.0.0: 398 | version "3.1.0" 399 | resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.0.tgz#090b4d6cdbd645ed10bf750d4b5407942d7ba163" 400 | 401 | execa@^0.7.0: 402 | version "0.7.0" 403 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" 404 | dependencies: 405 | cross-spawn "^5.0.1" 406 | get-stream "^3.0.0" 407 | is-stream "^1.1.0" 408 | npm-run-path "^2.0.0" 409 | p-finally "^1.0.0" 410 | signal-exit "^3.0.0" 411 | strip-eof "^1.0.0" 412 | 413 | extend@~3.0.2: 414 | version "3.0.2" 415 | resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" 416 | 417 | extract-zip@^1.6.6: 418 | version "1.6.7" 419 | resolved "https://registry.yarnpkg.com/extract-zip/-/extract-zip-1.6.7.tgz#a840b4b8af6403264c8db57f4f1a74333ef81fe9" 420 | integrity sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k= 421 | dependencies: 422 | concat-stream "1.6.2" 423 | debug "2.6.9" 424 | mkdirp "0.5.1" 425 | yauzl "2.4.1" 426 | 427 | extsprintf@1.3.0: 428 | version "1.3.0" 429 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" 430 | 431 | extsprintf@^1.2.0: 432 | version "1.4.0" 433 | resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" 434 | 435 | fast-deep-equal@^2.0.1: 436 | version "2.0.1" 437 | resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" 438 | 439 | fast-json-stable-stringify@^2.0.0: 440 | version "2.0.0" 441 | resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" 442 | 443 | fast-levenshtein@~2.0.4: 444 | version "2.0.6" 445 | resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" 446 | 447 | fd-slicer@~1.0.1: 448 | version "1.0.1" 449 | resolved "https://registry.yarnpkg.com/fd-slicer/-/fd-slicer-1.0.1.tgz#8b5bcbd9ec327c5041bf9ab023fd6750f1177e65" 450 | integrity sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU= 451 | dependencies: 452 | pend "~1.2.0" 453 | 454 | find-up@^2.0.0: 455 | version "2.1.0" 456 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" 457 | dependencies: 458 | locate-path "^2.0.0" 459 | 460 | follow-redirects@^1.0.0: 461 | version "1.6.1" 462 | resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.6.1.tgz#514973c44b5757368bad8bddfe52f81f015c94cb" 463 | dependencies: 464 | debug "=3.1.0" 465 | 466 | forever-agent@~0.6.1: 467 | version "0.6.1" 468 | resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" 469 | 470 | form-data@~2.3.2: 471 | version "2.3.3" 472 | resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" 473 | dependencies: 474 | asynckit "^0.4.0" 475 | combined-stream "^1.0.6" 476 | mime-types "^2.1.12" 477 | 478 | fs-extra@^7.0.1: 479 | version "7.0.1" 480 | resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-7.0.1.tgz#4f189c44aa123b895f722804f55ea23eadc348e9" 481 | dependencies: 482 | graceful-fs "^4.1.2" 483 | jsonfile "^4.0.0" 484 | universalify "^0.1.0" 485 | 486 | fs.realpath@^1.0.0: 487 | version "1.0.0" 488 | resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" 489 | integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= 490 | 491 | fs@^0.0.1-security: 492 | version "0.0.1-security" 493 | resolved "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4" 494 | 495 | fse@^4.0.1: 496 | version "4.0.1" 497 | resolved "https://registry.yarnpkg.com/fse/-/fse-4.0.1.tgz#9e1db80203933cbe59ed75507f35adf2689ce1e9" 498 | 499 | get-caller-file@^1.0.1: 500 | version "1.0.3" 501 | resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.3.tgz#f978fa4c90d1dfe7ff2d6beda2a515e713bdcf4a" 502 | 503 | get-stream@^3.0.0: 504 | version "3.0.0" 505 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 506 | 507 | getpass@^0.1.1: 508 | version "0.1.7" 509 | resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" 510 | dependencies: 511 | assert-plus "^1.0.0" 512 | 513 | glob@^7.1.1: 514 | version "7.1.3" 515 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" 516 | dependencies: 517 | fs.realpath "^1.0.0" 518 | inflight "^1.0.4" 519 | inherits "2" 520 | minimatch "^3.0.4" 521 | once "^1.3.0" 522 | path-is-absolute "^1.0.0" 523 | 524 | glob@^7.1.3: 525 | version "7.1.4" 526 | resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" 527 | integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== 528 | dependencies: 529 | fs.realpath "^1.0.0" 530 | inflight "^1.0.4" 531 | inherits "2" 532 | minimatch "^3.0.4" 533 | once "^1.3.0" 534 | path-is-absolute "^1.0.0" 535 | 536 | graceful-fs@^4.1.2, graceful-fs@^4.1.6: 537 | version "4.1.15" 538 | resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00" 539 | 540 | "graceful-readlink@>= 1.0.0": 541 | version "1.0.1" 542 | resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" 543 | 544 | har-schema@^2.0.0: 545 | version "2.0.0" 546 | resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" 547 | 548 | har-validator@~5.1.0: 549 | version "5.1.3" 550 | resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" 551 | dependencies: 552 | ajv "^6.5.5" 553 | har-schema "^2.0.0" 554 | 555 | he@^1.1.1: 556 | version "1.2.0" 557 | resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" 558 | 559 | hosted-git-info@^2.1.4: 560 | version "2.7.1" 561 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" 562 | 563 | html-encoding-sniffer@^1.0.2: 564 | version "1.0.2" 565 | resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.2.tgz#e70d84b94da53aa375e11fe3a351be6642ca46f8" 566 | dependencies: 567 | whatwg-encoding "^1.0.1" 568 | 569 | http-proxy@^1.8.1: 570 | version "1.17.0" 571 | resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.17.0.tgz#7ad38494658f84605e2f6db4436df410f4e5be9a" 572 | dependencies: 573 | eventemitter3 "^3.0.0" 574 | follow-redirects "^1.0.0" 575 | requires-port "^1.0.0" 576 | 577 | http-server@^0.11.1: 578 | version "0.11.1" 579 | resolved "https://registry.yarnpkg.com/http-server/-/http-server-0.11.1.tgz#2302a56a6ffef7f9abea0147d838a5e9b6b6a79b" 580 | dependencies: 581 | colors "1.0.3" 582 | corser "~2.0.0" 583 | ecstatic "^3.0.0" 584 | http-proxy "^1.8.1" 585 | opener "~1.4.0" 586 | optimist "0.6.x" 587 | portfinder "^1.0.13" 588 | union "~0.4.3" 589 | 590 | http-signature@~1.2.0: 591 | version "1.2.0" 592 | resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" 593 | dependencies: 594 | assert-plus "^1.0.0" 595 | jsprim "^1.2.2" 596 | sshpk "^1.7.0" 597 | 598 | https-proxy-agent@^2.2.1: 599 | version "2.2.4" 600 | resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" 601 | integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg== 602 | dependencies: 603 | agent-base "^4.3.0" 604 | debug "^3.1.0" 605 | 606 | iconv-lite@0.4.24: 607 | version "0.4.24" 608 | resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" 609 | dependencies: 610 | safer-buffer ">= 2.1.2 < 3" 611 | 612 | inflight@^1.0.4: 613 | version "1.0.6" 614 | resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" 615 | integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= 616 | dependencies: 617 | once "^1.3.0" 618 | wrappy "1" 619 | 620 | inherits@2, inherits@^2.0.3, inherits@~2.0.3: 621 | version "2.0.4" 622 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" 623 | integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== 624 | 625 | inherits@2.0.3: 626 | version "2.0.3" 627 | resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" 628 | 629 | ini@^1.3.4: 630 | version "1.3.5" 631 | resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" 632 | 633 | invert-kv@^1.0.0: 634 | version "1.0.0" 635 | resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" 636 | 637 | ip-regex@^3.0.0: 638 | version "3.0.0" 639 | resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-3.0.0.tgz#0a934694b4066558c46294244a23cc33116bf732" 640 | 641 | is-arrayish@^0.2.1: 642 | version "0.2.1" 643 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 644 | 645 | is-builtin-module@^1.0.0: 646 | version "1.0.0" 647 | resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" 648 | dependencies: 649 | builtin-modules "^1.0.0" 650 | 651 | is-fullwidth-code-point@^1.0.0: 652 | version "1.0.0" 653 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" 654 | dependencies: 655 | number-is-nan "^1.0.0" 656 | 657 | is-fullwidth-code-point@^2.0.0: 658 | version "2.0.0" 659 | resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" 660 | 661 | is-stream@^1.1.0: 662 | version "1.1.0" 663 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 664 | 665 | is-typedarray@~1.0.0: 666 | version "1.0.0" 667 | resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" 668 | 669 | isarray@~1.0.0: 670 | version "1.0.0" 671 | resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" 672 | integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= 673 | 674 | isexe@^2.0.0: 675 | version "2.0.0" 676 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 677 | 678 | isstream@~0.1.2: 679 | version "0.1.2" 680 | resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" 681 | 682 | js-beautify@^1.9.0-beta5: 683 | version "1.9.0-beta5" 684 | resolved "https://registry.yarnpkg.com/js-beautify/-/js-beautify-1.9.0-beta5.tgz#6e5aad65c51ba00be391047578518a14acf18191" 685 | dependencies: 686 | config-chain "^1.1.12" 687 | editorconfig "^0.15.2" 688 | glob "^7.1.3" 689 | mkdirp "~0.5.0" 690 | nopt "~4.0.1" 691 | 692 | jsbn@~0.1.0: 693 | version "0.1.1" 694 | resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" 695 | 696 | jsdom@^13.2.0: 697 | version "13.2.0" 698 | resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-13.2.0.tgz#b1a0dbdadc255435262be8ea3723d2dba0d7eb3a" 699 | dependencies: 700 | abab "^2.0.0" 701 | acorn "^6.0.4" 702 | acorn-globals "^4.3.0" 703 | array-equal "^1.0.0" 704 | cssom "^0.3.4" 705 | cssstyle "^1.1.1" 706 | data-urls "^1.1.0" 707 | domexception "^1.0.1" 708 | escodegen "^1.11.0" 709 | html-encoding-sniffer "^1.0.2" 710 | nwsapi "^2.0.9" 711 | parse5 "5.1.0" 712 | pn "^1.1.0" 713 | request "^2.88.0" 714 | request-promise-native "^1.0.5" 715 | saxes "^3.1.5" 716 | symbol-tree "^3.2.2" 717 | tough-cookie "^2.5.0" 718 | w3c-hr-time "^1.0.1" 719 | w3c-xmlserializer "^1.0.1" 720 | webidl-conversions "^4.0.2" 721 | whatwg-encoding "^1.0.5" 722 | whatwg-mimetype "^2.3.0" 723 | whatwg-url "^7.0.0" 724 | ws "^6.1.2" 725 | xml-name-validator "^3.0.0" 726 | 727 | json-schema-traverse@^0.4.1: 728 | version "0.4.1" 729 | resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" 730 | 731 | json-schema@0.2.3: 732 | version "0.2.3" 733 | resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" 734 | 735 | json-stringify-safe@~5.0.1: 736 | version "5.0.1" 737 | resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" 738 | 739 | jsonfile@^4.0.0: 740 | version "4.0.0" 741 | resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" 742 | optionalDependencies: 743 | graceful-fs "^4.1.6" 744 | 745 | jsprim@^1.2.2: 746 | version "1.4.1" 747 | resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" 748 | dependencies: 749 | assert-plus "1.0.0" 750 | extsprintf "1.3.0" 751 | json-schema "0.2.3" 752 | verror "1.10.0" 753 | 754 | lcid@^1.0.0: 755 | version "1.0.0" 756 | resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" 757 | dependencies: 758 | invert-kv "^1.0.0" 759 | 760 | levn@~0.3.0: 761 | version "0.3.0" 762 | resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" 763 | dependencies: 764 | prelude-ls "~1.1.2" 765 | type-check "~0.3.2" 766 | 767 | load-json-file@^2.0.0: 768 | version "2.0.0" 769 | resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" 770 | dependencies: 771 | graceful-fs "^4.1.2" 772 | parse-json "^2.2.0" 773 | pify "^2.0.0" 774 | strip-bom "^3.0.0" 775 | 776 | locate-path@^2.0.0: 777 | version "2.0.0" 778 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" 779 | dependencies: 780 | p-locate "^2.0.0" 781 | path-exists "^3.0.0" 782 | 783 | lodash.sortby@^4.7.0: 784 | version "4.7.0" 785 | resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" 786 | 787 | lodash@^4.13.1: 788 | version "4.17.19" 789 | resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" 790 | integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== 791 | 792 | lru-cache@^4.0.1, lru-cache@^4.1.3: 793 | version "4.1.5" 794 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" 795 | dependencies: 796 | pseudomap "^1.0.2" 797 | yallist "^2.1.2" 798 | 799 | mem@^1.1.0: 800 | version "1.1.0" 801 | resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" 802 | dependencies: 803 | mimic-fn "^1.0.0" 804 | 805 | mime-db@~1.37.0: 806 | version "1.37.0" 807 | resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.37.0.tgz#0b6a0ce6fdbe9576e25f1f2d2fde8830dc0ad0d8" 808 | 809 | mime-types@^2.1.12, mime-types@~2.1.19: 810 | version "2.1.21" 811 | resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.21.tgz#28995aa1ecb770742fe6ae7e58f9181c744b3f96" 812 | dependencies: 813 | mime-db "~1.37.0" 814 | 815 | mime@^1.6.0: 816 | version "1.6.0" 817 | resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" 818 | 819 | mime@^2.0.3: 820 | version "2.4.4" 821 | resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.4.tgz#bd7b91135fc6b01cde3e9bae33d659b63d8857e5" 822 | integrity sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA== 823 | 824 | mimic-fn@^1.0.0: 825 | version "1.2.0" 826 | resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" 827 | 828 | minimatch@^3.0.4: 829 | version "3.0.4" 830 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 831 | integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== 832 | dependencies: 833 | brace-expansion "^1.1.7" 834 | 835 | minimist@0.0.8: 836 | version "0.0.8" 837 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" 838 | integrity sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0= 839 | 840 | minimist@^1.1.0, minimist@^1.2.0: 841 | version "1.2.0" 842 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" 843 | 844 | minimist@~0.0.1: 845 | version "0.0.10" 846 | resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.10.tgz#de3f98543dbf96082be48ad1a0c7cda836301dcf" 847 | 848 | mkdirp@0.5.1, mkdirp@0.5.x, mkdirp@^0.5.1, mkdirp@~0.5.0: 849 | version "0.5.1" 850 | resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" 851 | dependencies: 852 | minimist "0.0.8" 853 | 854 | ms@2.0.0: 855 | version "2.0.0" 856 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" 857 | integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= 858 | 859 | ms@^2.1.1: 860 | version "2.1.2" 861 | resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" 862 | integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== 863 | 864 | nopt@~4.0.1: 865 | version "4.0.1" 866 | resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" 867 | dependencies: 868 | abbrev "1" 869 | osenv "^0.1.4" 870 | 871 | normalize-package-data@^2.3.2: 872 | version "2.4.2" 873 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.2.tgz#6b2abd85774e51f7936f1395e45acb905dc849b2" 874 | dependencies: 875 | hosted-git-info "^2.1.4" 876 | is-builtin-module "^1.0.0" 877 | semver "2 || 3 || 4 || 5" 878 | validate-npm-package-license "^3.0.1" 879 | 880 | npm-run-path@^2.0.0: 881 | version "2.0.2" 882 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 883 | dependencies: 884 | path-key "^2.0.0" 885 | 886 | number-is-nan@^1.0.0: 887 | version "1.0.1" 888 | resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" 889 | 890 | nwsapi@^2.0.9: 891 | version "2.0.9" 892 | resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.0.9.tgz#77ac0cdfdcad52b6a1151a84e73254edc33ed016" 893 | 894 | oauth-sign@~0.9.0: 895 | version "0.9.0" 896 | resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" 897 | 898 | once@^1.3.0: 899 | version "1.4.0" 900 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 901 | integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= 902 | dependencies: 903 | wrappy "1" 904 | 905 | opener@~1.4.0: 906 | version "1.4.3" 907 | resolved "https://registry.yarnpkg.com/opener/-/opener-1.4.3.tgz#5c6da2c5d7e5831e8ffa3964950f8d6674ac90b8" 908 | 909 | optimist@0.6.x: 910 | version "0.6.1" 911 | resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" 912 | dependencies: 913 | minimist "~0.0.1" 914 | wordwrap "~0.0.2" 915 | 916 | optionator@^0.8.1: 917 | version "0.8.2" 918 | resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" 919 | dependencies: 920 | deep-is "~0.1.3" 921 | fast-levenshtein "~2.0.4" 922 | levn "~0.3.0" 923 | prelude-ls "~1.1.2" 924 | type-check "~0.3.2" 925 | wordwrap "~1.0.0" 926 | 927 | os-homedir@^1.0.0: 928 | version "1.0.2" 929 | resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" 930 | 931 | os-locale@^2.0.0: 932 | version "2.1.0" 933 | resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" 934 | dependencies: 935 | execa "^0.7.0" 936 | lcid "^1.0.0" 937 | mem "^1.1.0" 938 | 939 | os-tmpdir@^1.0.0: 940 | version "1.0.2" 941 | resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" 942 | 943 | osenv@^0.1.4: 944 | version "0.1.5" 945 | resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" 946 | dependencies: 947 | os-homedir "^1.0.0" 948 | os-tmpdir "^1.0.0" 949 | 950 | p-finally@^1.0.0: 951 | version "1.0.0" 952 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 953 | 954 | p-limit@^1.1.0: 955 | version "1.3.0" 956 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" 957 | dependencies: 958 | p-try "^1.0.0" 959 | 960 | p-locate@^2.0.0: 961 | version "2.0.0" 962 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" 963 | dependencies: 964 | p-limit "^1.1.0" 965 | 966 | p-try@^1.0.0: 967 | version "1.0.0" 968 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" 969 | 970 | parse-json@^2.2.0: 971 | version "2.2.0" 972 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" 973 | dependencies: 974 | error-ex "^1.2.0" 975 | 976 | parse5@5.1.0: 977 | version "5.1.0" 978 | resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.0.tgz#c59341c9723f414c452975564c7c00a68d58acd2" 979 | 980 | path-exists@^3.0.0: 981 | version "3.0.0" 982 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 983 | 984 | path-is-absolute@^1.0.0: 985 | version "1.0.1" 986 | resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" 987 | integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= 988 | 989 | path-key@^2.0.0: 990 | version "2.0.1" 991 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 992 | 993 | path-type@^2.0.0: 994 | version "2.0.0" 995 | resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" 996 | dependencies: 997 | pify "^2.0.0" 998 | 999 | path@^0.12.7: 1000 | version "0.12.7" 1001 | resolved "https://registry.yarnpkg.com/path/-/path-0.12.7.tgz#d4dc2a506c4ce2197eb481ebfcd5b36c0140b10f" 1002 | dependencies: 1003 | process "^0.11.1" 1004 | util "^0.10.3" 1005 | 1006 | pend@~1.2.0: 1007 | version "1.2.0" 1008 | resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" 1009 | integrity sha1-elfrVQpng/kRUzH89GY9XI4AelA= 1010 | 1011 | performance-now@^2.1.0: 1012 | version "2.1.0" 1013 | resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" 1014 | 1015 | pify@^2.0.0: 1016 | version "2.3.0" 1017 | resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" 1018 | 1019 | pixelmatch@^5.0.2: 1020 | version "5.0.2" 1021 | resolved "https://registry.yarnpkg.com/pixelmatch/-/pixelmatch-5.0.2.tgz#b1349c3b544e20107a4dd7e532b01291946258cd" 1022 | integrity sha512-b65UpTI40rGFY8QwN6IYuCbpmwAOL6M8d6voX4F3zR99UmDqh7r2QWLxoeHOazBRgEmDUdqNVESDREqFxQS7rQ== 1023 | dependencies: 1024 | pngjs "^3.4.0" 1025 | 1026 | pn@^1.1.0: 1027 | version "1.1.0" 1028 | resolved "https://registry.yarnpkg.com/pn/-/pn-1.1.0.tgz#e2f4cef0e219f463c179ab37463e4e1ecdccbafb" 1029 | 1030 | pngjs@^3.4.0: 1031 | version "3.4.0" 1032 | resolved "https://registry.yarnpkg.com/pngjs/-/pngjs-3.4.0.tgz#99ca7d725965fb655814eaf65f38f12bbdbf555f" 1033 | integrity sha512-NCrCHhWmnQklfH4MtJMRjZ2a8c80qXeMlQMv2uVp9ISJMTt562SbGd6n2oq0PaPgKm7Z6pL9E2UlLIhC+SHL3w== 1034 | 1035 | portfinder@^1.0.13: 1036 | version "1.0.20" 1037 | resolved "https://registry.yarnpkg.com/portfinder/-/portfinder-1.0.20.tgz#bea68632e54b2e13ab7b0c4775e9b41bf270e44a" 1038 | dependencies: 1039 | async "^1.5.2" 1040 | debug "^2.2.0" 1041 | mkdirp "0.5.x" 1042 | 1043 | prelude-ls@~1.1.2: 1044 | version "1.1.2" 1045 | resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" 1046 | 1047 | process-nextick-args@~2.0.0: 1048 | version "2.0.1" 1049 | resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" 1050 | integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== 1051 | 1052 | process@^0.11.1: 1053 | version "0.11.10" 1054 | resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" 1055 | 1056 | progress@^2.0.1: 1057 | version "2.0.3" 1058 | resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" 1059 | integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== 1060 | 1061 | promise@7.1.1: 1062 | version "7.1.1" 1063 | resolved "https://registry.yarnpkg.com/promise/-/promise-7.1.1.tgz#489654c692616b8aa55b0724fa809bb7db49c5bf" 1064 | dependencies: 1065 | asap "~2.0.3" 1066 | 1067 | proto-list@~1.2.1: 1068 | version "1.2.4" 1069 | resolved "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849" 1070 | 1071 | proxy-from-env@^1.0.0: 1072 | version "1.0.0" 1073 | resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee" 1074 | integrity sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4= 1075 | 1076 | pseudomap@^1.0.2: 1077 | version "1.0.2" 1078 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 1079 | 1080 | psl@^1.1.24, psl@^1.1.28: 1081 | version "1.1.31" 1082 | resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.31.tgz#e9aa86d0101b5b105cbe93ac6b784cd547276184" 1083 | 1084 | punycode@^1.4.1: 1085 | version "1.4.1" 1086 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" 1087 | 1088 | punycode@^2.1.0, punycode@^2.1.1: 1089 | version "2.1.1" 1090 | resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" 1091 | 1092 | puppeteer@^1.11.0: 1093 | version "1.18.1" 1094 | resolved "https://registry.yarnpkg.com/puppeteer/-/puppeteer-1.18.1.tgz#4a66f3bdab01115ededf70443ec904c99917a815" 1095 | integrity sha512-luUy0HPSuWPsPZ1wAp6NinE0zgetWtudf5zwZ6dHjMWfYpTQcmKveFRox7VBNhQ98OjNA9PQ9PzQyX8k/KrxTg== 1096 | dependencies: 1097 | debug "^4.1.0" 1098 | extract-zip "^1.6.6" 1099 | https-proxy-agent "^2.2.1" 1100 | mime "^2.0.3" 1101 | progress "^2.0.1" 1102 | proxy-from-env "^1.0.0" 1103 | rimraf "^2.6.1" 1104 | ws "^6.1.0" 1105 | 1106 | purify-css@^1.2.5: 1107 | version "1.2.5" 1108 | resolved "https://registry.yarnpkg.com/purify-css/-/purify-css-1.2.5.tgz#c4b9ec90735765f3e247ba6a3b49f132f3482500" 1109 | dependencies: 1110 | clean-css "^4.0.12" 1111 | glob "^7.1.1" 1112 | rework "^1.0.1" 1113 | uglify-js "^3.0.6" 1114 | yargs "^8.0.1" 1115 | 1116 | qs@~2.3.3: 1117 | version "2.3.3" 1118 | resolved "https://registry.yarnpkg.com/qs/-/qs-2.3.3.tgz#e9e85adbe75da0bbe4c8e0476a086290f863b404" 1119 | 1120 | qs@~6.5.2: 1121 | version "6.5.2" 1122 | resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" 1123 | 1124 | read-pkg-up@^2.0.0: 1125 | version "2.0.0" 1126 | resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" 1127 | dependencies: 1128 | find-up "^2.0.0" 1129 | read-pkg "^2.0.0" 1130 | 1131 | read-pkg@^2.0.0: 1132 | version "2.0.0" 1133 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" 1134 | dependencies: 1135 | load-json-file "^2.0.0" 1136 | normalize-package-data "^2.3.2" 1137 | path-type "^2.0.0" 1138 | 1139 | readable-stream@^2.2.2: 1140 | version "2.3.6" 1141 | resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" 1142 | integrity sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw== 1143 | dependencies: 1144 | core-util-is "~1.0.0" 1145 | inherits "~2.0.3" 1146 | isarray "~1.0.0" 1147 | process-nextick-args "~2.0.0" 1148 | safe-buffer "~5.1.1" 1149 | string_decoder "~1.1.1" 1150 | util-deprecate "~1.0.1" 1151 | 1152 | request-promise-core@1.1.1: 1153 | version "1.1.1" 1154 | resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.1.tgz#3eee00b2c5aa83239cfb04c5700da36f81cd08b6" 1155 | dependencies: 1156 | lodash "^4.13.1" 1157 | 1158 | request-promise-native@^1.0.5: 1159 | version "1.0.5" 1160 | resolved "https://registry.yarnpkg.com/request-promise-native/-/request-promise-native-1.0.5.tgz#5281770f68e0c9719e5163fd3fab482215f4fda5" 1161 | dependencies: 1162 | request-promise-core "1.1.1" 1163 | stealthy-require "^1.1.0" 1164 | tough-cookie ">=2.3.3" 1165 | 1166 | request@^2.88.0: 1167 | version "2.88.0" 1168 | resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" 1169 | dependencies: 1170 | aws-sign2 "~0.7.0" 1171 | aws4 "^1.8.0" 1172 | caseless "~0.12.0" 1173 | combined-stream "~1.0.6" 1174 | extend "~3.0.2" 1175 | forever-agent "~0.6.1" 1176 | form-data "~2.3.2" 1177 | har-validator "~5.1.0" 1178 | http-signature "~1.2.0" 1179 | is-typedarray "~1.0.0" 1180 | isstream "~0.1.2" 1181 | json-stringify-safe "~5.0.1" 1182 | mime-types "~2.1.19" 1183 | oauth-sign "~0.9.0" 1184 | performance-now "^2.1.0" 1185 | qs "~6.5.2" 1186 | safe-buffer "^5.1.2" 1187 | tough-cookie "~2.4.3" 1188 | tunnel-agent "^0.6.0" 1189 | uuid "^3.3.2" 1190 | 1191 | require-directory@^2.1.1: 1192 | version "2.1.1" 1193 | resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" 1194 | 1195 | require-main-filename@^1.0.1: 1196 | version "1.0.1" 1197 | resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" 1198 | 1199 | requires-port@^1.0.0: 1200 | version "1.0.0" 1201 | resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" 1202 | 1203 | resolve-url@^0.2.1: 1204 | version "0.2.1" 1205 | resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" 1206 | 1207 | rework@^1.0.1: 1208 | version "1.0.1" 1209 | resolved "https://registry.yarnpkg.com/rework/-/rework-1.0.1.tgz#30806a841342b54510aa4110850cd48534144aa7" 1210 | dependencies: 1211 | convert-source-map "^0.3.3" 1212 | css "^2.0.0" 1213 | 1214 | rimraf@^2.6.1, rimraf@^2.6.3: 1215 | version "2.6.3" 1216 | resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" 1217 | dependencies: 1218 | glob "^7.1.3" 1219 | 1220 | safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: 1221 | version "5.1.2" 1222 | resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" 1223 | 1224 | "safer-buffer@>= 2.1.2 < 3", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: 1225 | version "2.1.2" 1226 | resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" 1227 | 1228 | saxes@^3.1.5: 1229 | version "3.1.6" 1230 | resolved "https://registry.yarnpkg.com/saxes/-/saxes-3.1.6.tgz#2d948a47b54918516c5a64096f08865deb5bd8cd" 1231 | dependencies: 1232 | xmlchars "^1.3.1" 1233 | 1234 | "semver@2 || 3 || 4 || 5", semver@^5.6.0: 1235 | version "5.6.0" 1236 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" 1237 | 1238 | set-blocking@^2.0.0: 1239 | version "2.0.0" 1240 | resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" 1241 | 1242 | shebang-command@^1.2.0: 1243 | version "1.2.0" 1244 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 1245 | dependencies: 1246 | shebang-regex "^1.0.0" 1247 | 1248 | shebang-regex@^1.0.0: 1249 | version "1.0.0" 1250 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 1251 | 1252 | sigmund@^1.0.1: 1253 | version "1.0.1" 1254 | resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590" 1255 | 1256 | signal-exit@^3.0.0: 1257 | version "3.0.2" 1258 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 1259 | 1260 | source-map-resolve@^0.5.2: 1261 | version "0.5.2" 1262 | resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.2.tgz#72e2cc34095543e43b2c62b2c4c10d4a9054f259" 1263 | dependencies: 1264 | atob "^2.1.1" 1265 | decode-uri-component "^0.2.0" 1266 | resolve-url "^0.2.1" 1267 | source-map-url "^0.4.0" 1268 | urix "^0.1.0" 1269 | 1270 | source-map-url@^0.4.0: 1271 | version "0.4.0" 1272 | resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" 1273 | 1274 | source-map@^0.6.1, source-map@~0.6.0, source-map@~0.6.1: 1275 | version "0.6.1" 1276 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" 1277 | 1278 | spdx-correct@^3.0.0: 1279 | version "3.1.0" 1280 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" 1281 | dependencies: 1282 | spdx-expression-parse "^3.0.0" 1283 | spdx-license-ids "^3.0.0" 1284 | 1285 | spdx-exceptions@^2.1.0: 1286 | version "2.2.0" 1287 | resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" 1288 | 1289 | spdx-expression-parse@^3.0.0: 1290 | version "3.0.0" 1291 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" 1292 | dependencies: 1293 | spdx-exceptions "^2.1.0" 1294 | spdx-license-ids "^3.0.0" 1295 | 1296 | spdx-license-ids@^3.0.0: 1297 | version "3.0.3" 1298 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz#81c0ce8f21474756148bbb5f3bfc0f36bf15d76e" 1299 | 1300 | sshpk@^1.7.0: 1301 | version "1.16.1" 1302 | resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" 1303 | dependencies: 1304 | asn1 "~0.2.3" 1305 | assert-plus "^1.0.0" 1306 | bcrypt-pbkdf "^1.0.0" 1307 | dashdash "^1.12.0" 1308 | ecc-jsbn "~0.1.1" 1309 | getpass "^0.1.1" 1310 | jsbn "~0.1.0" 1311 | safer-buffer "^2.0.2" 1312 | tweetnacl "~0.14.0" 1313 | 1314 | stealthy-require@^1.1.0: 1315 | version "1.1.1" 1316 | resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" 1317 | 1318 | string-width@^1.0.1: 1319 | version "1.0.2" 1320 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" 1321 | dependencies: 1322 | code-point-at "^1.0.0" 1323 | is-fullwidth-code-point "^1.0.0" 1324 | strip-ansi "^3.0.0" 1325 | 1326 | string-width@^2.0.0: 1327 | version "2.1.1" 1328 | resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" 1329 | dependencies: 1330 | is-fullwidth-code-point "^2.0.0" 1331 | strip-ansi "^4.0.0" 1332 | 1333 | string_decoder@~1.1.1: 1334 | version "1.1.1" 1335 | resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" 1336 | integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== 1337 | dependencies: 1338 | safe-buffer "~5.1.0" 1339 | 1340 | strip-ansi@^3.0.0, strip-ansi@^3.0.1: 1341 | version "3.0.1" 1342 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" 1343 | dependencies: 1344 | ansi-regex "^2.0.0" 1345 | 1346 | strip-ansi@^4.0.0: 1347 | version "4.0.0" 1348 | resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-4.0.0.tgz#a8479022eb1ac368a871389b635262c505ee368f" 1349 | dependencies: 1350 | ansi-regex "^3.0.0" 1351 | 1352 | strip-bom@^3.0.0: 1353 | version "3.0.0" 1354 | resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" 1355 | 1356 | strip-eof@^1.0.0: 1357 | version "1.0.0" 1358 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 1359 | 1360 | symbol-tree@^3.2.2: 1361 | version "3.2.2" 1362 | resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" 1363 | 1364 | tough-cookie@>=2.3.3: 1365 | version "3.0.0" 1366 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-3.0.0.tgz#d2bceddebde633153ff20a52fa844a0dc71dacef" 1367 | dependencies: 1368 | ip-regex "^3.0.0" 1369 | psl "^1.1.28" 1370 | punycode "^2.1.1" 1371 | 1372 | tough-cookie@^2.5.0: 1373 | version "2.5.0" 1374 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" 1375 | dependencies: 1376 | psl "^1.1.28" 1377 | punycode "^2.1.1" 1378 | 1379 | tough-cookie@~2.4.3: 1380 | version "2.4.3" 1381 | resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" 1382 | dependencies: 1383 | psl "^1.1.24" 1384 | punycode "^1.4.1" 1385 | 1386 | tr46@^1.0.1: 1387 | version "1.0.1" 1388 | resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" 1389 | dependencies: 1390 | punycode "^2.1.0" 1391 | 1392 | tunnel-agent@^0.6.0: 1393 | version "0.6.0" 1394 | resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" 1395 | dependencies: 1396 | safe-buffer "^5.0.1" 1397 | 1398 | tweetnacl@^0.14.3, tweetnacl@~0.14.0: 1399 | version "0.14.5" 1400 | resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" 1401 | 1402 | type-check@~0.3.2: 1403 | version "0.3.2" 1404 | resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" 1405 | dependencies: 1406 | prelude-ls "~1.1.2" 1407 | 1408 | typedarray@^0.0.6: 1409 | version "0.0.6" 1410 | resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" 1411 | integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= 1412 | 1413 | uglify-js@^3.0.6: 1414 | version "3.4.9" 1415 | resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-3.4.9.tgz#af02f180c1207d76432e473ed24a28f4a782bae3" 1416 | dependencies: 1417 | commander "~2.17.1" 1418 | source-map "~0.6.1" 1419 | 1420 | union@~0.4.3: 1421 | version "0.4.6" 1422 | resolved "https://registry.yarnpkg.com/union/-/union-0.4.6.tgz#198fbdaeba254e788b0efcb630bc11f24a2959e0" 1423 | dependencies: 1424 | qs "~2.3.3" 1425 | 1426 | universalify@^0.1.0: 1427 | version "0.1.2" 1428 | resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" 1429 | 1430 | uri-js@^4.2.2: 1431 | version "4.2.2" 1432 | resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" 1433 | dependencies: 1434 | punycode "^2.1.0" 1435 | 1436 | urix@^0.1.0: 1437 | version "0.1.0" 1438 | resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" 1439 | 1440 | url-join@^2.0.5: 1441 | version "2.0.5" 1442 | resolved "https://registry.yarnpkg.com/url-join/-/url-join-2.0.5.tgz#5af22f18c052a000a48d7b82c5e9c2e2feeda728" 1443 | 1444 | util-deprecate@~1.0.1: 1445 | version "1.0.2" 1446 | resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" 1447 | integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= 1448 | 1449 | util@^0.10.3: 1450 | version "0.10.4" 1451 | resolved "https://registry.yarnpkg.com/util/-/util-0.10.4.tgz#3aa0125bfe668a4672de58857d3ace27ecb76901" 1452 | dependencies: 1453 | inherits "2.0.3" 1454 | 1455 | uuid@^3.3.2: 1456 | version "3.3.2" 1457 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" 1458 | 1459 | validate-npm-package-license@^3.0.1: 1460 | version "3.0.4" 1461 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" 1462 | dependencies: 1463 | spdx-correct "^3.0.0" 1464 | spdx-expression-parse "^3.0.0" 1465 | 1466 | verror@1.10.0: 1467 | version "1.10.0" 1468 | resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" 1469 | dependencies: 1470 | assert-plus "^1.0.0" 1471 | core-util-is "1.0.2" 1472 | extsprintf "^1.2.0" 1473 | 1474 | w3c-hr-time@^1.0.1: 1475 | version "1.0.1" 1476 | resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.1.tgz#82ac2bff63d950ea9e3189a58a65625fedf19045" 1477 | dependencies: 1478 | browser-process-hrtime "^0.1.2" 1479 | 1480 | w3c-xmlserializer@^1.0.1: 1481 | version "1.0.1" 1482 | resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-1.0.1.tgz#054cdcd359dc5d1f3ec9be4e272c756af4b21d39" 1483 | dependencies: 1484 | domexception "^1.0.1" 1485 | webidl-conversions "^4.0.2" 1486 | xml-name-validator "^3.0.0" 1487 | 1488 | webidl-conversions@^4.0.2: 1489 | version "4.0.2" 1490 | resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" 1491 | 1492 | whatwg-encoding@^1.0.1, whatwg-encoding@^1.0.5: 1493 | version "1.0.5" 1494 | resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" 1495 | dependencies: 1496 | iconv-lite "0.4.24" 1497 | 1498 | whatwg-mimetype@^2.2.0, whatwg-mimetype@^2.3.0: 1499 | version "2.3.0" 1500 | resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" 1501 | 1502 | whatwg-url@^7.0.0: 1503 | version "7.0.0" 1504 | resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-7.0.0.tgz#fde926fa54a599f3adf82dff25a9f7be02dc6edd" 1505 | dependencies: 1506 | lodash.sortby "^4.7.0" 1507 | tr46 "^1.0.1" 1508 | webidl-conversions "^4.0.2" 1509 | 1510 | which-module@^2.0.0: 1511 | version "2.0.0" 1512 | resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" 1513 | 1514 | which@^1.2.9: 1515 | version "1.3.1" 1516 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" 1517 | dependencies: 1518 | isexe "^2.0.0" 1519 | 1520 | wordwrap@~0.0.2: 1521 | version "0.0.3" 1522 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" 1523 | 1524 | wordwrap@~1.0.0: 1525 | version "1.0.0" 1526 | resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" 1527 | 1528 | wrap-ansi@^2.0.0: 1529 | version "2.1.0" 1530 | resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" 1531 | dependencies: 1532 | string-width "^1.0.1" 1533 | strip-ansi "^3.0.1" 1534 | 1535 | wrappy@1: 1536 | version "1.0.2" 1537 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 1538 | integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= 1539 | 1540 | ws@^6.1.0: 1541 | version "6.2.1" 1542 | resolved "https://registry.yarnpkg.com/ws/-/ws-6.2.1.tgz#442fdf0a47ed64f59b6a5d8ff130f4748ed524fb" 1543 | integrity sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA== 1544 | dependencies: 1545 | async-limiter "~1.0.0" 1546 | 1547 | ws@^6.1.2: 1548 | version "6.1.3" 1549 | resolved "https://registry.yarnpkg.com/ws/-/ws-6.1.3.tgz#d2d2e5f0e3c700ef2de89080ebc0ac6e1bf3a72d" 1550 | dependencies: 1551 | async-limiter "~1.0.0" 1552 | 1553 | xml-name-validator@^3.0.0: 1554 | version "3.0.0" 1555 | resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" 1556 | 1557 | xmlchars@^1.3.1: 1558 | version "1.3.1" 1559 | resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-1.3.1.tgz#1dda035f833dbb4f86a0c28eaa6ca769214793cf" 1560 | 1561 | y18n@^3.2.1: 1562 | version "3.2.1" 1563 | resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" 1564 | 1565 | yallist@^2.1.2: 1566 | version "2.1.2" 1567 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 1568 | 1569 | yargs-parser@^7.0.0: 1570 | version "7.0.0" 1571 | resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" 1572 | dependencies: 1573 | camelcase "^4.1.0" 1574 | 1575 | yargs@^8.0.1: 1576 | version "8.0.2" 1577 | resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" 1578 | dependencies: 1579 | camelcase "^4.1.0" 1580 | cliui "^3.2.0" 1581 | decamelize "^1.1.1" 1582 | get-caller-file "^1.0.1" 1583 | os-locale "^2.0.0" 1584 | read-pkg-up "^2.0.0" 1585 | require-directory "^2.1.1" 1586 | require-main-filename "^1.0.1" 1587 | set-blocking "^2.0.0" 1588 | string-width "^2.0.0" 1589 | which-module "^2.0.0" 1590 | y18n "^3.2.1" 1591 | yargs-parser "^7.0.0" 1592 | 1593 | yauzl@2.4.1: 1594 | version "2.4.1" 1595 | resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.4.1.tgz#9528f442dab1b2284e58b4379bb194e22e0c4005" 1596 | integrity sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU= 1597 | dependencies: 1598 | fd-slicer "~1.0.1" 1599 | --------------------------------------------------------------------------------