├── lighthouse ├── default.json ├── package.json ├── index.js └── package-lock.json ├── .prettierrc ├── .eslintrc ├── bot ├── package-lock.json ├── package.json ├── README.md └── index.js ├── now ├── proxy.js ├── util │ ├── delegate.js │ └── auth.js ├── run.js └── index.js ├── .gitignore ├── app ├── settings.js ├── comments.js ├── status.js ├── report.js ├── configuration.js ├── runner.js ├── util │ └── index.js ├── index.js ├── budgets.js └── session.js ├── configuration ├── lightkeeper(custom).json └── lightkeeper.json ├── now.json ├── package.json ├── README.md └── LICENSE /lighthouse/default.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "lighthouse:full" 3 | } 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | printWidth: 100, 3 | singleQuote: true, 4 | useTabs: false, 5 | } 6 | -------------------------------------------------------------------------------- /lighthouse/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "chrome-aws-lambda": "^1.15.1", 4 | "lighthouse": "^5.1.0", 5 | "micro": "^9.3.4", 6 | "puppeteer-core": "^1.15.0" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": [ 3 | "airbnb-base", 4 | "prettier" 5 | ], 6 | "env": { 7 | "node": true, 8 | "es6": true 9 | }, 10 | "rules": { 11 | "no-bitwise": ["error", { "int32Hint": true }], 12 | "camelcase": "off", 13 | "no-param-reassign": "off", 14 | "import/no-extraneous-dependencies": "off" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /bot/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lightkeeperbot", 3 | "version": "1.0.4", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "minimist": { 8 | "version": "1.2.0", 9 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 10 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /now/proxy.js: -------------------------------------------------------------------------------- 1 | const { createWebhookProxy } = require('probot/lib/webhook-proxy') 2 | const { logger } = require('probot/lib/logger') 3 | const { config } = require('dotenv'); 4 | 5 | // read .env 6 | config(); 7 | 8 | const { 9 | PORT: port = 3000, 10 | WEBHOOK_PATH: path = '/', 11 | WEBHOOK_PROXY_URL: url 12 | } = process.env; 13 | 14 | // start proxy 15 | createWebhookProxy({ 16 | logger, 17 | path, 18 | port, 19 | url 20 | }); 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | *.pid.lock 11 | 12 | # Directory for instrumented libs generated by jscoverage/JSCover 13 | lib-cov 14 | 15 | # Coverage directory used by tools like istanbul 16 | coverage 17 | 18 | # nyc test coverage 19 | .nyc_output 20 | 21 | # Dependency directories 22 | node_modules/ 23 | 24 | # Optional eslint cache 25 | .eslintcache 26 | 27 | # dotenv environment variables file 28 | .env 29 | 30 | # private app key 31 | *.pem 32 | -------------------------------------------------------------------------------- /now/util/delegate.js: -------------------------------------------------------------------------------- 1 | const https = require('https'); 2 | 3 | module.exports = async (host, body = {}) => { 4 | const data = JSON.stringify(body); 5 | const options = { 6 | hostname: host, 7 | method: 'POST', 8 | path: '/', 9 | headers: { 10 | 'Content-Type': 'application/json', 11 | 'Content-Length': data.length 12 | } 13 | }; 14 | await new Promise((resolve, reject) => { 15 | const req = https.request(options); 16 | req.on('error', reject); 17 | req.write(data); 18 | req.end(resolve); 19 | }); 20 | }; 21 | -------------------------------------------------------------------------------- /now/run.js: -------------------------------------------------------------------------------- 1 | const delegate = require('./util/delegate'); 2 | 3 | const { error } = console; 4 | 5 | module.exports = async (req, res) => { 6 | const host = req.headers['x-now-deployment-url']; 7 | try { 8 | await delegate(host, req.body); 9 | res.status(200).send({ 10 | message: 'The request has been sent to Lightkeeper.' 11 | }); 12 | } catch (err) { 13 | const errorText = 'There was a problem with the request'; 14 | error(`${errorText}: ${err.message}`); 15 | res.status(400).send({ 16 | message: errorText, 17 | error: err.message 18 | }); 19 | } 20 | }; 21 | -------------------------------------------------------------------------------- /bot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lightkeeperbot", 3 | "version": "1.0.4", 4 | "description": "Lightkeeper Bot (CI) Runner", 5 | "main": "index.js", 6 | "bin": { 7 | "lightkeeperbot": "index.js" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/lfre/lightkeeper.git" 12 | }, 13 | "keywords": [ 14 | "lighthouse", 15 | "tests", 16 | "budgets", 17 | "ci", 18 | "deployments" 19 | ], 20 | "author": "Alfredo Lopez ", 21 | "license": "MIT", 22 | "bugs": { 23 | "url": "https://github.com/lfre/lightkeeper/issues" 24 | }, 25 | "homepage": "https://github.com/lfre/lightkeeper/tree/master/bot", 26 | "dependencies": { 27 | "minimist": "^1.2.0" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/settings.js: -------------------------------------------------------------------------------- 1 | const merge = require('lodash.merge'); 2 | 3 | function extendFromSettings(baseSettings, sharedSettings) { 4 | return function extender({ extends: ext, ...routeSettings }) { 5 | if (ext === true) { 6 | return merge({}, baseSettings, routeSettings); 7 | } 8 | if (typeof ext === 'string') { 9 | // attempts to get the shared setting, fallback to global 10 | // TODO: Throw error instead of fallback 11 | const { extends: globalExtend, ...sharedSetting } = sharedSettings[ext] || baseSettings; 12 | if (globalExtend === true) { 13 | return merge({}, baseSettings, sharedSetting, routeSettings); 14 | } 15 | return merge({}, sharedSetting, routeSettings); 16 | } 17 | 18 | return routeSettings; 19 | }; 20 | } 21 | 22 | module.exports = extendFromSettings; 23 | -------------------------------------------------------------------------------- /configuration/lightkeeper(custom).json: -------------------------------------------------------------------------------- 1 | { 2 | "baseUrl": "https://example.com", 3 | "ci": "[ci]", 4 | "type": "[type]", 5 | "settings": { 6 | "categories": { 7 | "pwa": { 8 | "target": 90, 9 | "threshold": 40, 10 | "warning": 10 11 | } 12 | } 13 | }, 14 | "sharedSettings": { 15 | "galleries": { 16 | "extends": true, 17 | "categories": { 18 | "pwa": { 19 | "threshold": 20 20 | } 21 | }, 22 | "lighthouse": { 23 | "options": { 24 | "emulatedFormFactor": "desktop", 25 | "extraHeaders": { 26 | "X-CUSTOM-HEADER": "gallery-header" 27 | } 28 | } 29 | } 30 | } 31 | }, 32 | "routes": [ 33 | "/article/1/", 34 | { 35 | "url": "gallery/1", 36 | "settings": "galleries" 37 | }, 38 | { 39 | "url": "gallery/2", 40 | "settings": { 41 | "extends": "galleries", 42 | "categories": { 43 | "pwa": { 44 | "target": 80 45 | } 46 | } 47 | } 48 | } 49 | ] 50 | } 51 | -------------------------------------------------------------------------------- /configuration/lightkeeper.json: -------------------------------------------------------------------------------- 1 | { 2 | "baseUrl": "https://example.com", 3 | "ci": "[ci]", 4 | "type": "[type]", 5 | "settings": { 6 | "categories": { 7 | "performance": 70, 8 | "accessibility": 70, 9 | "best-practices": 70, 10 | "pwa": 70 11 | }, 12 | "budgets": [ 13 | { 14 | "resourceSizes": [ 15 | { 16 | "resourceType": "script", 17 | "budget": 300 18 | }, 19 | { 20 | "resourceType": "image", 21 | "budget": 100 22 | }, 23 | { 24 | "resourceType": "third-party", 25 | "budget": 200 26 | }, 27 | { 28 | "resourceType": "total", 29 | "budget": 1000 30 | } 31 | ], 32 | "resourceCounts": [ 33 | { 34 | "resourceType": "third-party", 35 | "budget": 50 36 | }, 37 | { 38 | "resourceType": "total", 39 | "budget": 50 40 | } 41 | ] 42 | } 43 | ] 44 | }, 45 | "routes": [ 46 | "/" 47 | ] 48 | } 49 | -------------------------------------------------------------------------------- /app/comments.js: -------------------------------------------------------------------------------- 1 | const { BOT_NAME: botName } = process.env; 2 | const { passCommentText } = require('./report'); 3 | 4 | /** 5 | * Attempts to update a previous comment or creates a new one 6 | * @param {object} context The github context 7 | * @param {integer} issue_number The pull request number 8 | * @param {string} body The comment body 9 | */ 10 | async function processComment(context, issue_number, body) { 11 | const { data = [] } = await context.github.issues.listComments( 12 | context.repo({ 13 | issue_number 14 | }) 15 | ); 16 | 17 | let method = 'createComment'; 18 | let params = { 19 | issue_number, 20 | body 21 | }; 22 | let previousComment; 23 | 24 | data.some(({ id: comment_id, user: { login = '' }, body: commentBody = '' }) => { 25 | if (login === `${botName}[bot]`) { 26 | params = { ...params, comment_id }; 27 | previousComment = commentBody; 28 | method = 'updateComment'; 29 | return true; 30 | } 31 | return false; 32 | }); 33 | 34 | // If all tests passed, and either a comment has not been posted 35 | // or the previous comment update, was also succesful, skip update 36 | if (body === passCommentText && (!previousComment || previousComment === passCommentText)) { 37 | return true; 38 | } 39 | 40 | await context.github.issues[method](context.repo(params)); 41 | 42 | return true; 43 | } 44 | 45 | module.exports = processComment; 46 | -------------------------------------------------------------------------------- /now/index.js: -------------------------------------------------------------------------------- 1 | const { createProbot } = require('probot'); 2 | const auth = require('./util/auth'); 3 | 4 | const { APP_ID: appId, PRIVATE_KEY: privateKey, WEBHOOK_SECRET: secret } = process.env; 5 | 6 | const buffer = Buffer.from(privateKey, 'base64'); 7 | const cert = buffer.toString('ascii'); 8 | const appSource = require('../app/'); 9 | 10 | const serverless = appFunc => { 11 | const probot = createProbot({ id: appId, cert, secret }); 12 | const probotApp = probot.load(appFunc); 13 | 14 | return async (req, res) => { 15 | // attempt to read body params 16 | const { pr, config, macros = {}, repo: { name, owner: login } = {} } = req.body || {}; 17 | // If this is a manual request, authenticate 18 | if (pr && name && login) { 19 | const { runLightkeeper } = probotApp; 20 | const pullNumber = +pr; 21 | const { context, headBranch, headSha } = await auth( 22 | probotApp, 23 | pullNumber, 24 | { login, name }, 25 | res 26 | ); 27 | if (!context) return false; 28 | try { 29 | await runLightkeeper(context, config, { pullNumber, headBranch, headSha }, true, macros); 30 | return res.status(200).send({ 31 | message: 'Process ran succesfully' 32 | }); 33 | } catch (error) { 34 | return res.status(400).send({ 35 | message: 'An error was found processing the request', 36 | error 37 | }); 38 | } 39 | } 40 | // process as github webhook reponse 41 | return probot.server(req, res); 42 | }; 43 | }; 44 | 45 | module.exports = serverless(appSource); 46 | -------------------------------------------------------------------------------- /now/util/auth.js: -------------------------------------------------------------------------------- 1 | const { Context } = require('probot/lib/context'); 2 | const request = require('@octokit/request'); 3 | 4 | module.exports = async function auth(probotApp, pullNumber, { login, name }, res) { 5 | const { app, log } = probotApp; 6 | const jwt = app.getSignedJsonWebToken(); 7 | const { 8 | data: { id } 9 | } = await request('GET /repos/:owner/:repo/installation', { 10 | owner: login, 11 | repo: name, 12 | headers: { 13 | authorization: `Bearer ${jwt}`, 14 | accept: 'application/vnd.github.machine-man-preview+json' 15 | } 16 | }); 17 | 18 | if (!id) { 19 | return res.status(400).send('Failed to retrieve installation id'); 20 | } 21 | 22 | const event = { 23 | payload: { 24 | installation: { id }, 25 | repository: { 26 | name, 27 | owner: { 28 | login 29 | } 30 | } 31 | } 32 | }; 33 | 34 | let github; 35 | let headBranch; 36 | let headSha; 37 | let state; 38 | let context; 39 | 40 | try { 41 | github = await probotApp.authenticateEvent(event, log); 42 | context = new Context(event, github, log); 43 | // get the branch name 44 | let response = await github.pullRequests.get(context.repo({ pull_number: pullNumber })); 45 | ({ state, ...response } = response.data); 46 | ({ ref: headBranch, sha: headSha } = response.head); 47 | } catch (error) { 48 | return res.status(error.code || 400).send({ 49 | message: 'Failed to authenticate' 50 | }); 51 | } 52 | if (state !== 'open') { 53 | return res.status(404).send('Pull Request is closed'); 54 | } 55 | return { context, headBranch, headSha }; 56 | }; 57 | -------------------------------------------------------------------------------- /now.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "name": "lightkeeper", 4 | "alias": [ 5 | "app.lightkeeper.dev" 6 | ], 7 | "env": { 8 | "APP_ID": "@app_id", 9 | "APP_NAME": "Lightkeeper", 10 | "BOT_NAME": "lightkeeper-ci", 11 | "EXEC_PATH": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", 12 | "LIGHTHOUSE_URL": "@lighthouse_url", 13 | "LOG_LEVEL": "error", 14 | "NODE_ENV": "production", 15 | "PRIVATE_KEY": "@private_key", 16 | "WEBHOOK_SECRET": "@webhook_secret" 17 | }, 18 | "builds": [ 19 | { 20 | "src": "lighthouse/index.js", 21 | "use": "@nkzawa/now-node-raw", 22 | "config": { 23 | "includeFiles": [ 24 | "lighthouse/node_modules/**" 25 | ], 26 | "maxLambdaSize": "100mb" 27 | } 28 | }, 29 | { 30 | "src": "now/index.js", 31 | "use": "@now/node" 32 | }, 33 | { 34 | "src": "now/run.js", 35 | "use": "@now/node" 36 | } 37 | ], 38 | "routes": [ 39 | { 40 | "src": "^/lighthouse(/)?", 41 | "dest": "lighthouse/index.js", 42 | "methods": [ 43 | "POST" 44 | ] 45 | }, 46 | { 47 | "src": "^/.*", 48 | "status": 301, 49 | "headers": { 50 | "Location": "https://lightkeeper.dev/" 51 | }, 52 | "methods": [ 53 | "GET" 54 | ] 55 | }, 56 | { 57 | "src": "^/$", 58 | "dest": "now/index.js", 59 | "methods": [ 60 | "POST" 61 | ] 62 | }, 63 | { 64 | "src": "^/run(/)?", 65 | "dest": "now/run.js", 66 | "methods": [ 67 | "POST" 68 | ] 69 | }, 70 | { 71 | "src": "^/.*", 72 | "status": 403, 73 | "methods": [ 74 | "POST" 75 | ] 76 | } 77 | ] 78 | } 79 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "lightkeeper", 3 | "version": "1.0.0", 4 | "description": "Github App to run Lighthouse tests in CI", 5 | "main": "app/index.js", 6 | "engines": { 7 | "node": "10.x" 8 | }, 9 | "scripts": { 10 | "eslint-check": "eslint --print-config . | eslint-config-prettier-check", 11 | "dev": "nodemon", 12 | "start": "probot run ./app/index.js", 13 | "test": "nyc --require esm ava", 14 | "lint": "eslint app/**/*.js" 15 | }, 16 | "husky": { 17 | "hooks": { 18 | "pre-commit": "lint-staged" 19 | } 20 | }, 21 | "lint-staged": { 22 | "*.js": [ 23 | "prettier-eslint --write", 24 | "eslint", 25 | "git add" 26 | ] 27 | }, 28 | "repository": { 29 | "type": "git", 30 | "url": "git+https://github.com/lfre/lightkeeper.git" 31 | }, 32 | "keywords": [ 33 | "lighthouse", 34 | "tests", 35 | "budgets", 36 | "ci", 37 | "deployments" 38 | ], 39 | "author": "Alfredo Lopez ", 40 | "license": "MIT", 41 | "bugs": { 42 | "url": "https://github.com/lfre/lightkeeper/issues" 43 | }, 44 | "homepage": "https://github.com/lfre/lightkeeper", 45 | "dependencies": { 46 | "@sindresorhus/slugify": "^0.9.1", 47 | "axios": "^0.19.0", 48 | "bytes": "^3.1.0", 49 | "handlebars": "^4.3.0", 50 | "lodash.find": "^4.6.0", 51 | "lodash.merge": "^4.6.2", 52 | "probot": "^9.3.1" 53 | }, 54 | "devDependencies": { 55 | "dotenv": "^8.0.0", 56 | "eslint": "^6.0.1", 57 | "eslint-config-airbnb-base": "^13.2.0", 58 | "eslint-config-prettier": "^6.0.0", 59 | "eslint-plugin-import": "^2.18.0", 60 | "husky": "^3.0.0", 61 | "lint-staged": "^9.0.2", 62 | "nodemon": "^1.19.0", 63 | "nyc": "^14.1.1", 64 | "prettier-eslint": "^9.0.0", 65 | "prettier-eslint-cli": "^5.0.0", 66 | "smee-client": "^1.1.0" 67 | }, 68 | "nodemonConfig": { 69 | "exec": "npm start", 70 | "watch": [ 71 | ".env", 72 | "." 73 | ] 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /bot/README.md: -------------------------------------------------------------------------------- 1 | # Lightkeeper Bot 2 | 3 | [![version](https://img.shields.io/badge/version-1.0.4-green.svg)](https://semver.org) 4 | 5 | The Lightkeeper Bot is an extension wrapper for [Lightkeeper](https://github.com/lfre/lightkeeper). 6 | 7 | By default, it provides a _fire-and-forget_ mechanism to trigger a manual event in the application (if installed), without stalling the build. 8 | 9 | This is helpful for custom build pipelines that perform many tasks, and creating the Pull Request URL is one of them. In that case, the app's default behavior of waiting until the overall build finishes would be unnecesary. 10 | 11 | ## Customization 12 | 13 | The hostname can be modifed through the `LIGHTKEEPER_HOST` environment variable. 14 | Additionally, a `LIGHTKEEPER_API_KEY` is sent as an `Authentication` header. 15 | 16 | **NOTE:** Lightkeeper does not currently require an API key, but will be eventually enforced. 17 | 18 | ## Usage 19 | 20 | ``` 21 | lightkeeperbot [--pr=123] [--repo=owner/name] [--config-path=config/lightkeeper.(js|json)] 22 | ``` 23 | 24 | | Option | Type | Description | Required | Default | 25 | | --------- | ---- | ----------- | -------- | ------- | 26 | | pr | `Number` | The Pull Request Number | ✅ | `TRAVIS_PULL_REQUEST` | 27 | | repo | `String` | The repo's owner/name | ✅ | `TRAVIS_PULL_REQUEST_SLUG` | 28 | | config-path | `String` | The configuration path | — | `.github/lightkeeper.json` | 29 | 30 | ## Configuration File 31 | 32 | See Lightkeeper's [configuration](https://github.com/lfre/lightkeeper#configuration). 33 | 34 | Use the following values: 35 | 36 | | baseUrl | ci | type | 37 | | ------- | -- | ---- | 38 | | `{base_url}` | `lightkeeperbot` | `event` 39 | 40 | Lightkeeper will replace `{base_url}` with the provided ``. 41 | 42 | **NOTE:** The configuration file can be either `json` or `js`. 43 | 44 | ### Javascript Configuration: 45 | 46 | - The default export can be an object or (async)function. 47 | - If a function, the `baseUrl` option is passed as a parameter. 48 | - It needs to return a JSON-like object. 49 | 50 | ## Using a Private Lighthouse Instance: 51 | 52 | - Use a `js` config file, read API keys from environment 53 | - Pass a `headers` object in `settings.lighthouse` 54 | -------------------------------------------------------------------------------- /app/status.js: -------------------------------------------------------------------------------- 1 | class Status { 2 | constructor(params) { 3 | this.params = params; 4 | } 5 | 6 | /** 7 | * Creates a status run, and returns a function for updating it 8 | * @param {object} params The status parameters 9 | * @param {object} checkRun A previous optional check-run e.g re-request 10 | */ 11 | async create(params, checkRun = {}) { 12 | const { 13 | data: { id: check_run_id, html_url: details_url } 14 | } = await this.run( 15 | { 16 | status: 'in_progress', 17 | ...params, 18 | ...checkRun 19 | }, 20 | Object.keys(checkRun).length ? 'update' : undefined 21 | ); 22 | 23 | return async runParams => { 24 | await this.run( 25 | { 26 | ...runParams, 27 | check_run_id, 28 | details_url 29 | }, 30 | 'update' 31 | ); 32 | }; 33 | } 34 | 35 | /** 36 | * Finds an existing check run from this application 37 | */ 38 | async find() { 39 | const { appName, context, github, headSha: ref } = this.params; 40 | const { 41 | data: { check_runs: checkRuns = [] } 42 | } = await github.checks.listForRef( 43 | context.repo({ 44 | ref 45 | }) 46 | ); 47 | 48 | let checkRunOutput = {}; 49 | 50 | checkRuns.some(({ name, ...checkRun }) => { 51 | if (name === appName) { 52 | checkRunOutput = checkRun; 53 | return true; 54 | } 55 | return false; 56 | }); 57 | 58 | return checkRunOutput; 59 | } 60 | 61 | /** 62 | * Adds/updates a check run. 63 | * @param {object} data The status options 64 | * @param {string} method The check method 65 | */ 66 | run(options = {}, method = 'create') { 67 | const { 68 | appName: name, 69 | context, 70 | github, 71 | headBranch: head_branch, 72 | headSha: head_sha 73 | } = this.params; 74 | 75 | const params = { 76 | head_branch, 77 | head_sha, 78 | name, 79 | status: 'completed', 80 | ...options 81 | }; 82 | const date = new Date(); 83 | 84 | if (params.status === 'completed') { 85 | params.completed_at = date; 86 | } else { 87 | params.started_at = date; 88 | } 89 | 90 | return github.checks[method](context.repo(params)); 91 | } 92 | } 93 | 94 | module.exports = Status; 95 | -------------------------------------------------------------------------------- /app/report.js: -------------------------------------------------------------------------------- 1 | const { detailsSummary } = require('./util'); 2 | 3 | const reportHeader = '# 🚢 Lightkeeper Report'; 4 | const passCommentText = `${reportHeader}\n### All tests passed! 🎉`; 5 | 6 | function prepareReport(order, reports) { 7 | let reportSummary = ''; 8 | let warningsFound = false; 9 | const commentStats = { 10 | '⬆️': { 11 | body: '', 12 | count: 0, 13 | summary: 'Improvements: {text} 🚀', 14 | options: { 15 | detailTag: '
' 16 | } 17 | }, 18 | '⚠️': { body: '', count: 0, summary: 'Warnings: {text}' }, 19 | '❌': { body: '', count: 0, summary: 'Errors: {text}' } 20 | }; 21 | 22 | order.forEach(route => { 23 | const result = reports.get(route); 24 | if (!result) return; 25 | const { stats = {}, report = '' } = result; 26 | reportSummary += report; 27 | Object.entries(stats).forEach(([icon, { output = '' }]) => { 28 | const comment = commentStats[icon]; 29 | if (!comment || !output) return; 30 | comment.count += 1; 31 | comment.body += output; 32 | if (icon === '⚠️') { 33 | warningsFound = true; 34 | } 35 | }); 36 | }); 37 | 38 | let commentSummary = Object.values(commentStats).reduce( 39 | (output, { summary, body, count, options = {} }) => { 40 | if (!body) return output; 41 | const text = `${count} URL${count > 1 ? 's' : ''}`; 42 | output += detailsSummary(summary.replace('{text}', text), body, { 43 | includeLineBreak: false, 44 | ...options 45 | }); 46 | return output; 47 | }, 48 | '' 49 | ); 50 | 51 | commentSummary = commentSummary ? `${reportHeader}\n${commentSummary}` : passCommentText; 52 | 53 | const getTitle = (conclusion, errors, warnings) => { 54 | let title = ''; 55 | const urlText = `${order.length} URL${order.length > 1 ? 's' : ''}`; 56 | const errorsFound = `${errors} error${errors > 1 ? 's' : ''}`; 57 | 58 | switch (conclusion) { 59 | case 'failure': 60 | title = `Found ${errorsFound} across ${urlText}.`; 61 | break; 62 | case 'neutral': 63 | title = warnings && !errors ? '⚠️ Passed with warnings.' : '⚠️ Non-critical errors found.'; 64 | break; 65 | default: 66 | title = 'All tests passed! See the full report. ➡️'; 67 | } 68 | return title; 69 | }; 70 | 71 | return { 72 | reportSummary, 73 | commentSummary, 74 | getTitle, 75 | warningsFound 76 | }; 77 | } 78 | 79 | module.exports = { prepareReport, passCommentText }; 80 | -------------------------------------------------------------------------------- /app/configuration.js: -------------------------------------------------------------------------------- 1 | const { CONFIG_FILE_PATH = '.github/lightkeeper.json' } = process.env; 2 | 3 | class Configuration { 4 | constructor(params, status, detailsUrl) { 5 | this.params = params; 6 | this.status = status; 7 | this.detailsUrl = detailsUrl; 8 | this.requiredKeys = ['baseUrl', 'ci', 'type']; 9 | } 10 | 11 | /** 12 | * Gets the configuration file contents from the PR or base branch 13 | */ 14 | async getConfigFile() { 15 | const { context, github, headBranch: ref, pullNumber: pull_number } = this.params; 16 | const { owner, repo } = context.repo(); 17 | const { data: prFiles } = await github.pullRequests.listFiles(context.repo({ pull_number })); 18 | let prFile = false; 19 | 20 | prFiles.some(({ filename, status }) => { 21 | if (filename === CONFIG_FILE_PATH) { 22 | // If a PR is removing the config 23 | // prevent fallback 24 | if (status === 'removed') { 25 | const error = new Error(); 26 | error.status = 404; 27 | throw error; 28 | } 29 | prFile = true; 30 | return prFile; 31 | } 32 | return prFile; 33 | }); 34 | 35 | // If a PR is adding/modifying a config, use that 36 | if (prFile) { 37 | return github.repos.getContents({ 38 | owner, 39 | repo, 40 | path: CONFIG_FILE_PATH, 41 | ref 42 | }); 43 | } 44 | 45 | return github.repos.getContents({ 46 | owner, 47 | repo, 48 | path: CONFIG_FILE_PATH 49 | }); 50 | } 51 | 52 | /** 53 | * Gets and validates the configuration file 54 | */ 55 | async getConfiguration() { 56 | let configuration = {}; 57 | let missingKeys = this.requiredKeys; 58 | let parseError = false; 59 | try { 60 | const { 61 | data: { content } 62 | } = await this.getConfigFile(); 63 | configuration = JSON.parse(Buffer.from(content, 'base64').toString()); 64 | } catch (error) { 65 | // Exit early if config was not found 66 | // A neutral check used to be here, 67 | // but since it could be confusing to other repos in the same org 68 | // it was removed. See the history of the lines below. 69 | if (error.status === 404) { 70 | return configuration; 71 | } 72 | parseError = error.message; 73 | } 74 | // Check for required keys 75 | if (configuration) { 76 | missingKeys = missingKeys.filter( 77 | key => !(configuration[key] && typeof configuration[key] === 'string') 78 | ); 79 | if (missingKeys.length) { 80 | let outputTitle = `Missing required keys or invalid types: ${missingKeys.join(', ')}`; 81 | if (parseError) { 82 | outputTitle = parseError; 83 | } 84 | const { output: { title = '' } = {} } = await this.status.find(); 85 | if (title === outputTitle) { 86 | return {}; 87 | } 88 | this.status.run({ 89 | conclusion: 'action_required', 90 | output: { 91 | title: outputTitle, 92 | summary: this.detailsUrl 93 | } 94 | }); 95 | return {}; 96 | } 97 | // standardize CI name 98 | configuration.ci = configuration.ci.toLowerCase(); 99 | } 100 | return configuration; 101 | } 102 | } 103 | 104 | module.exports = Configuration; 105 | -------------------------------------------------------------------------------- /app/runner.js: -------------------------------------------------------------------------------- 1 | const axios = require('axios'); 2 | const merge = require('lodash.merge'); 3 | const { parseConfig } = require('./util'); 4 | 5 | const { LIGHTHOUSE_URL: lighthouseUrl, WEBHOOK_SECRET: secret } = process.env; 6 | 7 | class Runner { 8 | constructor() { 9 | this.lighthouseUrl = lighthouseUrl; 10 | this.lighthouseAuth = secret; 11 | this.installationNode = ''; 12 | this.options = {}; 13 | } 14 | 15 | /** 16 | * Sets up the global lighthouse options 17 | * @param {object} config The global lighthouse config 18 | * @param {string} installationNode The installation node 19 | */ 20 | setup(config = {}, installationNode) { 21 | // If lighthouse options have been passed, override defaults 22 | const { lhUrl, lhOptions } = parseConfig(config); 23 | 24 | this.options = lhOptions; 25 | this.installationNode = installationNode; 26 | 27 | /* 28 | If a custom lighthouse url was provided, 29 | we use the installation `node_id` as auth by default. 30 | This will be passed as an `Authorization` header. 31 | You can also find it using the Github API: 32 | https://developer.github.com/v3/apps/#get-an-installation 33 | To "rotate" keys, uninstall and install the app again. 34 | */ 35 | if (lhUrl && lhUrl !== lighthouseUrl) { 36 | this.lighthouseUrl = lhUrl; 37 | this.lighthouseAuth = this.installationNode; 38 | } else { 39 | this.options = this.filterOptions(); 40 | } 41 | 42 | if (!this.lighthouseUrl) { 43 | throw new Error('The Lighthouse endpoint is required'); 44 | } 45 | } 46 | 47 | /** 48 | * Filters the request body if using the default LH endpoint. 49 | * This helps reduce body length and other shenanigans. 50 | */ 51 | filterOptions(source) { 52 | const options = source || this.options; 53 | const keys = ['options', 'config', 'puppeteerConfig']; 54 | const validated = {}; 55 | keys.forEach(key => { 56 | const obj = options[key]; 57 | if (obj !== null && typeof obj === 'object' && Object.keys(obj).length) { 58 | validated[key] = obj; 59 | } 60 | }); 61 | return validated; 62 | } 63 | 64 | /** 65 | * Sends a request to a Lighthouse endpoint 66 | * @param {string} url The url to test 67 | * @param {array} budgets Performance budgets 68 | * @param {obbject} config Route LH config 69 | */ 70 | async run(url, budgets, config) { 71 | let endpointUrl = this.lighthouseUrl; 72 | let auth = this.lighthouseAuth; 73 | let requestOptions = { ...{}, ...this.options }; 74 | 75 | // If this run has specific lighthouse options, override base 76 | if (config && typeof config === 'object' && Object.keys(config).length) { 77 | const { lhUrl, lhOptions } = parseConfig(config); 78 | requestOptions = merge(requestOptions, lhOptions); 79 | // This allows a progressive switch to a custom LH endpoint 80 | if (lhUrl && lhUrl !== lighthouseUrl) { 81 | endpointUrl = lhUrl; 82 | auth = this.installationNode; 83 | } else { 84 | requestOptions = this.filterOptions(requestOptions); 85 | } 86 | } 87 | let headers = { 88 | Authorization: auth 89 | }; 90 | // attempt to get optional headers 91 | ({ headers = headers, ...requestOptions } = requestOptions); 92 | // add performance-bugets 93 | if (Array.isArray(budgets) && budgets.length) { 94 | const settings = { budgets }; 95 | requestOptions.config = { ...(requestOptions.config && {}), settings }; 96 | } 97 | 98 | return axios({ 99 | url: endpointUrl, 100 | method: 'post', 101 | data: { 102 | ...requestOptions, 103 | url // this is the url to test 104 | }, 105 | timeout: 60000, 106 | headers 107 | }); 108 | } 109 | } 110 | 111 | module.exports = Runner; 112 | -------------------------------------------------------------------------------- /app/util/index.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable */ 2 | const { resolve } = require('url'); 3 | 4 | /** 5 | * 6 | * @param {string} summary The dropdown summary 7 | * @param {string} content The content of the dropdown 8 | * @param {object} settings Optional settings 9 | */ 10 | function detailsSummary( 11 | summary, 12 | content, 13 | { reportUrl, includeLineBreak = true, detailTag = '
' } = {} 14 | ) { 15 | const report = reportUrl ? `\n${reportUrl}\n` : ''; 16 | const linebreak = includeLineBreak === true ? `\n---\n` : ''; 17 | return `${detailTag} 18 | ${summary} 19 |
20 | 21 | ${content} 22 | ${report} 23 |
24 | ${linebreak} 25 | `; 26 | } 27 | 28 | /** 29 | * Finds the pull request number from a commit hash 30 | * @param {object} context The github event contextt 31 | * @param {string} headSha The commit hash in the PR 32 | */ 33 | async function getPullRequestNumber(context, headSha) { 34 | const { 35 | data: pullRequests = [] 36 | } = await context.github.repos.listPullRequestsAssociatedWithCommit( 37 | context.repo({ 38 | commit_sha: headSha, 39 | per_page: 100 40 | }) 41 | ); 42 | 43 | let pullNumber = null; 44 | 45 | pullRequests.some(({ state, number }) => { 46 | if (state === 'closed') return false; 47 | pullNumber = number; 48 | return true; 49 | }); 50 | 51 | return pullNumber; 52 | } 53 | 54 | /** 55 | * Compares multiple names against the name provided in config 56 | * @param {array} namesToCheck The list of possible CI name 57 | * @param {string} typeCheck The string to check against 58 | * @param {function} checkFunction An optional function to override the equal check 59 | */ 60 | function isValidCheck(namesToCheck = [], typeCheck = '', checkFunction) { 61 | const checker = typeof checkFunction === 'function' ? checkFunction : false; 62 | return (type, ciNames) => { 63 | const valid = namesToCheck.filter(checkName => { 64 | const nameToCheck = checkName.toLowerCase(); 65 | return checker ? checker(nameToCheck, ciNames) : ciNames.includes(nameToCheck); 66 | }); 67 | // Return if this a different type or check 68 | if (type !== typeCheck || !valid.length) { 69 | return false; 70 | } 71 | return true; 72 | }; 73 | } 74 | 75 | /** 76 | * Replaces dynamic values in urls 77 | * @param {object} keyMap The key/value macros 78 | */ 79 | function replaceMacros(keyMap) { 80 | const regexKeys = Object.keys(keyMap); 81 | regexKeys.push('{commit_hash:(\\d)}'); 82 | 83 | return url => { 84 | const rgxp = new RegExp(regexKeys.join('|'), 'gi'); 85 | return url.replace(rgxp, function replacer(matched, capture) { 86 | if (capture) { 87 | // forms the regular string 88 | const match = `${matched.split(':').shift()}}`; 89 | const replace = keyMap[match]; 90 | return replace.substr(0, +capture); 91 | } 92 | return keyMap[matched]; 93 | }); 94 | }; 95 | } 96 | 97 | /** 98 | * Parses the global lighthouse options 99 | * 100 | * @param {object} config The lighthouse config 101 | */ 102 | function parseConfig(config = {}) { 103 | let lhUrl; 104 | let lhOptions = {}; 105 | 106 | // If lighthouse options have been passed, override defaults 107 | if (typeof config === 'string') { 108 | lhUrl = config; 109 | } else if (typeof config === 'object') { 110 | ({ url: lhUrl, ...lhOptions } = config); 111 | } 112 | 113 | return { lhUrl, lhOptions }; 114 | } 115 | 116 | function urlFormatter(baseUrl, macros = {}) { 117 | const macroReplacer = replaceMacros(macros); 118 | const { href: base, pathname: basePath = '' } = new URL(macroReplacer(baseUrl)); 119 | return url => { 120 | if (!url || url === base) return base; 121 | 122 | if (url.startsWith('http')) { 123 | return new URL(macroReplacer(url)).href; 124 | } 125 | return macroReplacer(resolve(base, resolve(basePath, url.replace(/^\/+/, '')))); 126 | }; 127 | } 128 | 129 | module.exports = { 130 | detailsSummary, 131 | getPullRequestNumber, 132 | isValidCheck, 133 | parseConfig, 134 | replaceMacros, 135 | urlFormatter 136 | }; 137 | -------------------------------------------------------------------------------- /lighthouse/index.js: -------------------------------------------------------------------------------- 1 | // This is a fix for Node v.8 2 | // Remove when v.10 is supported in chrome-aws-lamdba 3 | // https://github.com/alixaxel/chrome-aws-lambda#usage 4 | // https://github.com/alixaxel/chrome-aws-lambda/issues/37 5 | global.URL = require('url').URL; 6 | 7 | const { createHmac, pseudoRandomBytes, timingSafeEqual } = require('crypto'); 8 | const chrome = require('chrome-aws-lambda'); 9 | const puppeteer = require('puppeteer-core'); 10 | const lighthouse = require('lighthouse'); 11 | const { parse } = require('url'); 12 | const { send } = require('micro'); 13 | const defaultConfig = require('./default.json'); 14 | 15 | const { log, time, timeEnd } = console; 16 | const label = 'Lighthouse'; 17 | 18 | const { WEBHOOK_SECRET: secret, EXEC_PATH: execPath } = process.env; 19 | 20 | let args; 21 | let executablePath; 22 | 23 | if (process.platform === 'darwin') { 24 | args = chrome.args.filter(a => a !== '--single-process'); 25 | executablePath = Promise.resolve(execPath); 26 | } else { 27 | ({ args, executablePath } = chrome); 28 | } 29 | 30 | /** 31 | * Runs a Lighthouse test 32 | * @param {string} url The url to run 33 | * @param {object} options The lighthouse options 34 | * @param {object} config The lighthouse config 35 | * @param {object} pupConfig The puppeteer config 36 | */ 37 | async function lh(url, options = {}, config = {}, pupConfig = {}) { 38 | let browser; 39 | 40 | try { 41 | browser = await puppeteer.launch({ 42 | ...pupConfig, 43 | args, 44 | executablePath: await executablePath 45 | }); 46 | const { port } = parse(browser.wsEndpoint()); 47 | return await lighthouse(url, { ...options, port, output: 'html', logLevel: 'error' }, config); 48 | } finally { 49 | if (browser) { 50 | await browser.close(); 51 | } 52 | } 53 | } 54 | 55 | /** 56 | * Please don't hack this 😊 57 | * @param {string} a Header 58 | * @param {string} b Value to compare 59 | */ 60 | function timeSafeCompare(a, b) { 61 | const sa = String(a); 62 | const sb = String(b); 63 | const key = pseudoRandomBytes(32); 64 | const ah = createHmac('sha256', key) 65 | .update(sa) 66 | .digest(); 67 | const bh = createHmac('sha256', key) 68 | .update(sb) 69 | .digest(); 70 | 71 | return timingSafeEqual(ah, bh) && a === b; 72 | } 73 | 74 | /** 75 | * Parses the body data 76 | * @param {object} req The request object 77 | * @param {object} res The response oject 78 | */ 79 | async function json(req, res) { 80 | return new Promise(resolve => { 81 | let body = ''; 82 | 83 | req.on('data', function onData(data) { 84 | body += data; 85 | if (body.length > 1e6) { 86 | send(res, 413, { 87 | error: 'Request too large' 88 | }); 89 | } 90 | }); 91 | 92 | req.on('end', function onEnd() { 93 | resolve(JSON.parse(body)); 94 | }); 95 | }); 96 | } 97 | 98 | module.exports = async (req, res) => { 99 | let result; 100 | let error; 101 | 102 | if (!timeSafeCompare(req.headers.authorization, secret)) { 103 | send(res, 403, { 104 | error: 'Sorry! This only accepts requests from Lightkeeper' 105 | }); 106 | return; 107 | } 108 | // TODO: Switch to `req.body` when either Ligthouse work on now/node or raw node supports it. 109 | const { url, options = {}, config = {}, puppeteerConfig = {} } = await json(req, res); 110 | 111 | if (!url) { 112 | send(res, 400, { 113 | error: 'The URL is missing' 114 | }); 115 | return; 116 | } 117 | 118 | if (!url.startsWith('http')) { 119 | send(res, 400, { 120 | error: 'The URL must start with http' 121 | }); 122 | return; 123 | } 124 | 125 | log(`Started running Lighthouse tests for: ${url}`); 126 | time(label); 127 | 128 | try { 129 | result = await lh(url, options, { ...defaultConfig, ...config }, puppeteerConfig); 130 | } catch (err) { 131 | error = err.friendlyMessage || err.message; 132 | send(res, error.code || 400, { error }); 133 | log(`There was a Lighthouse error for: ${url}`, error); 134 | timeEnd(label); 135 | return; 136 | } 137 | 138 | log(`Finished running Lighthouse test for: ${url}`); 139 | timeEnd(label); 140 | 141 | const { 142 | lhr: { categories: lhCategories, audits, lighthouseVersion }, 143 | report // eslint-disable-line 144 | } = result; 145 | 146 | // Compile the scores 147 | const categories = Object.values(lhCategories).reduce((output, { id, title, score }) => { 148 | output[id] = { id, score, title }; 149 | return output; 150 | }, {}); 151 | 152 | const { details: { items: budgets = [] } = {} } = audits['performance-budget']; 153 | 154 | send(res, 200, { categories, budgets, lighthouseVersion }); 155 | }; 156 | -------------------------------------------------------------------------------- /bot/index.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | const minimist = require('minimist'); 3 | const https = require('https'); 4 | 5 | const { 6 | LIGHTKEEPER_HOST: lkHost = 'app.lightkeeper.dev', 7 | LIGHTKEEPER_API_KEY: apiKey = '', 8 | TRAVIS_PULL_REQUEST: travisPR, 9 | TRAVIS_PULL_REQUEST_SLUG: travisPRSlug 10 | } = process.env; 11 | const cwd = process.cwd(); 12 | const args = process.argv.slice(2); 13 | 14 | const { 15 | _: [baseUrl], 16 | help, 17 | pr, 18 | repo: repoSlug, 19 | 'config-path': configPath 20 | } = minimist(args, { 21 | boolean: ['help'], 22 | string: ['repo', 'config-path'], 23 | number: ['pr'], 24 | default: { 25 | pr: ~~travisPR, // eslint-disable-line 26 | repo: travisPRSlug, 27 | 'config-path': '.github/lightkeeper.json' 28 | }, 29 | alias: { help: 'h' } 30 | }); 31 | const { error, log } = console; 32 | 33 | function printUsageAndExit() { 34 | const usage = ` 35 | LightkeeperBot requires the Github App to be installed. 36 | https://github.com/apps/lightkeeper-ci. 37 | 38 | Set a LIGHTKEEPER_HOST environment variable to override. 39 | 40 | Usage: 41 | 42 | lightkeeperbot [--pr=123] [--repo=owner/name] [--config-path=config/lightkeeper.(js|json)] 43 | 44 | Options: 45 | --pr [Number] The Pull Request number. 46 | Default: TRAVIS_PULL_REQUEST. 47 | --repo [String] The repo's owner and name joined by a slash (owner/repo). 48 | E.g: https://github.com/[owner]/[name]. 49 | Default: TRAVIS_PULL_REQUEST_SLUG. 50 | --config [String] The configuration path. 51 | Default: .github/lightkeeper.json. 52 | --help Prints help. 53 | 54 | Examples: 55 | Runs Lightkeeper with default values: 56 | lightkeeperbot https://example.com 57 | Pass a custom configuration: 58 | lightkeeperbot https://example.com --config-path=.github/lightkeeper.js 59 | If using .json, set the "ci" property to "lightkeeperbot" to prevent 60 | double runs, or failing the app's validation process. 61 | If the file is .js and exports a function, the URL will be sent as an argument. 62 | Expects to return a JSON-like object. 63 | `; 64 | log(usage); 65 | process.exit(1); 66 | } 67 | 68 | if (help) { 69 | printUsageAndExit(); 70 | } 71 | 72 | if (!pr) { 73 | log('Lightkeeper is only for Pull Requests. Empty --pr found.'); 74 | process.exit(); 75 | } 76 | 77 | if (!repoSlug) { 78 | log('--repo is required.'); 79 | printUsageAndExit(); 80 | } 81 | 82 | if (typeof pr !== 'number') { 83 | log('--pr needs to be a number'); 84 | printUsageAndExit(); 85 | } else if ( 86 | typeof config !== 'string' && 87 | !(configPath.endsWith('.js') || configPath.endsWith('.json')) 88 | ) { 89 | log('--config-path needs to be a .js or .json file path'); 90 | printUsageAndExit(); 91 | } else if (typeof repoSlug !== 'string' && !repoSlug.includes('/')) { 92 | log('--repo needs to be a string, and joined by a slash'); 93 | } 94 | 95 | const configFilePath = `${cwd}/${configPath}`; 96 | const [owner, name] = repoSlug.split('/'); 97 | 98 | function sendRequest(body = {}) { 99 | const requestBody = JSON.stringify(body); 100 | const options = { 101 | hostname: lkHost, 102 | method: 'POST', 103 | path: '/run', 104 | headers: { 105 | Authorization: apiKey, 106 | 'Content-Type': 'application/json', 107 | 'Content-Length': requestBody.length 108 | } 109 | }; 110 | return new Promise((resolve, reject) => { 111 | let response = ''; 112 | const req = https.request(options, res => { 113 | res.on('data', function onData(data) { 114 | response += data; 115 | }); 116 | res.on('end', function onEnd() { 117 | resolve(JSON.parse(response)); 118 | }); 119 | }); 120 | req.on('error', reject); 121 | req.write(requestBody); 122 | req.end(); 123 | }); 124 | } 125 | 126 | async function run() { 127 | let config; 128 | try { 129 | config = require(configFilePath); // eslint-disable-line 130 | } catch (err) { 131 | error('Configuration missing or with errors in:\n', configFilePath, '\n\n', err); 132 | process.exit(1); 133 | } 134 | if (typeof config === 'function') { 135 | try { 136 | config = await config(baseUrl); 137 | } catch (err) { 138 | error(`Errors found in configuration:\n\n`, err); 139 | process.exit(1); 140 | } 141 | } 142 | if (!config && typeof config !== 'object') { 143 | log('The configuration needs to be a JSON-like object'); 144 | process.exit(1); 145 | } 146 | const requestParams = { 147 | pr, 148 | config, 149 | repo: { 150 | owner, 151 | name 152 | } 153 | }; 154 | 155 | if (baseUrl) { 156 | requestParams.macros = { 157 | '{base_url}': baseUrl 158 | }; 159 | } 160 | 161 | let message = 'Process ran succesfully'; 162 | 163 | try { 164 | ({ message = message } = await sendRequest(requestParams)); 165 | } catch (err) { 166 | error(`There was a problem with the request: ${err.message}`); 167 | process.exit(1); 168 | } 169 | 170 | log(message); 171 | } 172 | 173 | run(); 174 | -------------------------------------------------------------------------------- /app/index.js: -------------------------------------------------------------------------------- 1 | const Session = require('./session'); 2 | const { getPullRequestNumber, isValidCheck } = require('./util'); 3 | 4 | const { APP_NAME: appName = 'Lightkeeper' } = process.env; 5 | 6 | // stores the app logger 7 | let logger; 8 | 9 | /** 10 | * Starts a new session 11 | * @param {object} context The github context 12 | * @param {config} config A pre-processed config 13 | * @param {mixed} params A validator function or boolean 14 | * @param {object} macros An optional macro config 15 | */ 16 | async function run(...args) { 17 | // starts a new session, so multiple webhooks can run in parallel 18 | const session = new Session(appName, logger); 19 | await session.start(...args); 20 | } 21 | 22 | /** 23 | * Runs when a check is finished 24 | * @param {object} context The webhook payload 25 | */ 26 | async function onCompletedCheck(context) { 27 | const { 28 | check_run: { 29 | app: { 30 | owner: { login }, 31 | name: checkAppName 32 | }, 33 | name, 34 | conclusion, 35 | check_suite: { head_branch: headBranch, head_sha: headSha }, 36 | pull_requests 37 | }, 38 | installation: { node_id: installationNode } 39 | } = context.payload; 40 | 41 | // Prevent recursion by exiting early from the check_run of this app 42 | // Additionally, prevent running on unsuccesful builds 43 | if (name === appName || conclusion !== 'success') return; 44 | // Exit if this is not a Pull Request check 45 | if (!pull_requests.length) return; 46 | 47 | const { number: pullNumber } = pull_requests[0]; 48 | 49 | await run( 50 | context, 51 | null, 52 | { pullNumber, headBranch, headSha, installationNode }, 53 | isValidCheck([name, checkAppName, login], 'check') 54 | ); 55 | } 56 | 57 | /** 58 | * Runs when a check is re-requested 59 | * @param {object} The github context 60 | */ 61 | async function onRequestedCheck(context) { 62 | const { 63 | check_run: { 64 | id: check_run_id, 65 | html_url: details_url, 66 | name, 67 | check_suite: { head_branch: headBranch, head_sha: headSha }, 68 | pull_requests 69 | }, 70 | installation: { node_id: installationNode } 71 | } = context.payload; 72 | 73 | // Only allow re-request for this app on Pull Requests 74 | if (name !== appName || !pull_requests.length) return; 75 | // Exit if this is not a Pull Request check 76 | const { number: pullNumber } = pull_requests[0]; 77 | const checkRun = { check_run_id, details_url }; 78 | await run(context, null, { pullNumber, headBranch, headSha, installationNode, checkRun }, true); 79 | } 80 | 81 | /** 82 | * Runs tests when a Pull Request deployment is succesful 83 | * @param {object} context The github context 84 | */ 85 | async function onDeployment(context) { 86 | const { 87 | deployment_status: { 88 | id: status_id, 89 | state, 90 | creator: { login }, 91 | target_url, 92 | environment 93 | }, 94 | deployment: { id: deployment_id, sha: headSha }, 95 | installation: { node_id: installationNode } 96 | } = context.payload; 97 | 98 | // skip for started or failed statuses 99 | if (state !== 'success' || !headSha || environment !== 'staging') return; 100 | 101 | const pullNumber = await getPullRequestNumber(context, headSha); 102 | 103 | if (!pullNumber) return; 104 | 105 | // get the branch name 106 | const { 107 | data: { 108 | head: { ref: headBranch } 109 | } 110 | } = await context.github.pullRequests.get( 111 | context.repo({ 112 | pull_number: pullNumber 113 | }) 114 | ); 115 | 116 | // retrieve the `environment_url` 117 | // TODO: Switch to `repos.getDeploymentStatus` when correct header is added 118 | const { 119 | data: { environment_url } 120 | } = await context.github.request( 121 | 'GET /repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id ', 122 | context.repo({ 123 | deployment_id, 124 | status_id, 125 | headers: { 126 | accept: 'application/vnd.github.ant-man-preview+json' 127 | } 128 | }) 129 | ); 130 | 131 | await run( 132 | context, 133 | null, 134 | { pullNumber, headBranch, headSha, installationNode }, 135 | isValidCheck([login], 'deployment'), 136 | { 137 | '{target_url}': target_url, 138 | '{environment_url}': environment_url 139 | } 140 | ); 141 | } 142 | 143 | /** 144 | * Runs when a status is posted 145 | * @param {object} context The github context 146 | */ 147 | async function onStatus(context) { 148 | const { 149 | target_url, 150 | context: name, 151 | state, 152 | commit: { sha: headSha }, 153 | branches: [{ name: headBranch }], 154 | sender: { login }, 155 | installation: { node_id: installationNode } 156 | } = context.payload; 157 | 158 | if (state !== 'success' || !headSha) return; 159 | 160 | const pullNumber = await getPullRequestNumber(context, headSha); 161 | 162 | if (!pullNumber) return; 163 | 164 | await run( 165 | context, 166 | null, 167 | { pullNumber, headBranch, headSha, installationNode }, 168 | isValidCheck([name, login], 'status'), 169 | { '{target_url}': target_url } 170 | ); 171 | } 172 | 173 | function Lightkeeper(app) { 174 | // bind events once to the app 175 | if (app.runLightkeeper) return run; 176 | app.runLightkeeper = run; 177 | logger = app.log.child({ name: appName }); 178 | // start listening for events 179 | app.on('check_run.completed', onCompletedCheck); 180 | app.on('check_run.rerequested', onRequestedCheck); 181 | app.on('deployment_status', onDeployment); 182 | app.on('status', onStatus); 183 | } 184 | 185 | module.exports = Lightkeeper; 186 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 | ![](https://raw.githubusercontent.com/wiki/lfre/lightkeeper/images/lightkeeper-header-250.png) 4 | 5 | # ⚓ _Lightkeeper_ (alpha) 6 | 7 | ![](https://badgen.net/github/status/lfre/lightkeeper/master) 8 | [![License: AGPL v3](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://raw.githubusercontent.com/lfre/lightkeeper/master/LICENSE) 9 | [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/alfredolo/5) 10 | 11 | Run [Lighthouse](https://developers.google.com/web/tools/lighthouse/) tests in Pull Request URLs with multiple routes. Prevent regressions through custom budgets in a flexible and extensible configuration. 12 | 13 | [![](https://img.shields.io/static/v1.svg?label=INSTALL&message=GITHUB&color=brightgreen&link=https://github.com/apps/lightkeeper-ci&style=for-the-badge)](https://github.com/apps/lightkeeper-ci) 14 | 15 | ![](https://raw.githubusercontent.com/wiki/lfre/lightkeeper/images/lightkeeper-status.gif) 16 | ![](https://raw.githubusercontent.com/wiki/lfre/lightkeeper/images/warnings.png) ![](https://raw.githubusercontent.com/wiki/lfre/lightkeeper/images/failures.png) 17 | --- 18 | ## It works with: 19 | 20 | _Any Github Check Run, Deployment or Status, including:_ 21 | 22 | ![](https://raw.githubusercontent.com/wiki/lfre/lightkeeper/images/logos/supported-ci.jpg) 23 | 24 |
25 | 26 | ## The Problem 27 | 28 | There is a disconnect between the state of performance tooling, and the desire teams have to move faster but safer. 29 | 30 | On one side, there are several tools to monitor production/staging environments, but on the other side, teams are looking to have full CI/CD integrated where Pull Requests go live upon merge. 31 | 32 | This requires that all testing must happen at the Pull Request level on a unique URL per branch and/or commit, and while there are tools that support these types of Performance tests, they all suffer from common problems: 33 | 34 | * **Single URL.** 35 | * A site is not a single URL. For several sites the most important page is a dynamic route **not** the homepage. 36 | 37 | * **Run and block the CI build process.** 38 | * When all tests run on every Pull Request, their intention is to block merging if any issues are found, but during the different stages of development, the single most important task is to get an URL preview. Failing a build on another stage might require a dive into the build dashboard or logs to distinguish errors. Sending a notification, or posting a comment at the end of a specific task can help with this, but it requires additional effort. 39 | 40 | * **If used for multiple URLs manually, there is no consolidated report.** 41 | * Pull Request pages can be overwhelming at times. From Peer Reviews to comments added by other tools, posting a comment per URL is too noisy. 42 | 43 | ## This Solution 44 | 45 | Lightkeeper attempts to solve each one of these issues: 🤞 46 | 47 | * **Multiple URL support.** 48 | * Configure 1 to many URL routes, from separate domains or extending a base URL. 49 | 50 | * **Decoupled from the CI build process.** 51 | * It runs when the CI build finishes and is successful. For complex build set ups, the [Lightkeeper Bot](#lightkeeper-bot) is available to trigger an event. This allows the build to continue without stalling waiting for a response. 52 | 53 | * **Consolidated reports, and expandable comments.** 54 | * It posts a consolidated report of all tests, and includes only relevant information in the comment. 55 | ![](https://raw.githubusercontent.com/wiki/lfre/lightkeeper/images/comment.gif) 56 | 57 | Most importantly, Lightkeeper provides granular control of settings per route, from budgets to the Lighthouse endpoint and its options, including chrome flags in the puppeteer configuration. 58 | 59 | See [Motivation](https://github.com/lfre/lightkeeper/wiki/Motivation). 60 | 61 | ## Getting Started 62 | 63 | Add a `lightkeeper.json` file in a `.github` folder. Start from the [default configuration](/configuration/lightkeeper.json). 64 | 65 | > This is the only file Lightkeeper has access in your code. 66 | 67 | There are 3 required fields: `baseUrl`, `ci`, and `type`. Lightkeeper is a budgeting tool, so at least a single type of budget is needed to run sucessfully. 68 | 69 | - Replace the `baseUrl` with a valid URL. Since Pull Request URLs are dynamic, macros are available: 70 | 71 | | Macro | Details | 72 | | ---- | ------ | 73 | | `{pr_number}` | The Pull Request Number. | 74 | | `{repo}` | A _slugified_ repo name. | 75 | | `{branch}` | A _slugified_ branch name. | 76 | | `{commit_hash}` | The full commit SHA. | 77 | | `{commit_hash:n}` | A trimmed SHA, where `n` is a digit. | 78 | | *`{target_url}` | The target url from the Github Response. | 79 | | **`{environment_url}` | The url from the Deployment status. | 80 | 81 | \* Available for statuses and deployments. 82 | 83 | \** Available for deployments only. 84 | 85 | - Replace `ci` and `type` for your CI tool. Examples: 86 | 87 |
88 | Circle CI 89 | 90 | ```json 91 | { 92 | "ci": "circleci", 93 | "type": "check" 94 | } 95 | ``` 96 | > CircleCI uses statuses by default, but also provide a [Github Checks integration](https://github.com/apps/circleci-checks). 97 | 98 | If multiple checks are running (e.g: Integration Tests, Mobile Tests, etc) 99 | 100 | Use the full name of the specific workflow as it appears in Github, instead of `circleci`. 101 |
102 |
103 | Netlify 104 | 105 | ```json 106 | { 107 | "baseUrl": "{target_url}", 108 | "ci": "netlify", 109 | "type": "status" 110 | } 111 | ``` 112 |
113 |
114 | Travis CI 115 | 116 | ```json 117 | { 118 | "ci": "travis-ci", 119 | "type": "check" 120 | } 121 | ``` 122 |
123 |
124 | Zeit Now 125 | 126 | ```json 127 | { 128 | "baseUrl": "{environment_url}", 129 | "ci": "now", 130 | "type": "deployment" 131 | } 132 | ``` 133 |
134 | 135 | > If you're unsure about the name of your CI tool, it's the name displayed under `Developer` in the application page: 136 | > https://github.com/apps/[app-name] 137 | 138 | **NOTE:** These providers and their settings can change. If the provided `ci` name above does not work, use the full visible name: 139 | 140 | ![](https://raw.githubusercontent.com/wiki/lfre/lightkeeper/images/full-ci-name.png) 141 | 142 | ## Configuration 143 | 144 | Visit the [wiki](https://github.com/lfre/lightkeeper/wiki/Configuration-Options) for a full list of configuration options. 145 | 146 | Additionally, there is a [custom configuration](/configuration/lightkeeper(custom).json) example. 147 | 148 | ## Lightkeeper Bot 🤖 149 | 150 | Do you have a complex build pipeline that performs several tasks internally? 151 | Using the [Lightkeeper Bot](https://www.npmjs.com/package/lightkeeperbot) with the app installed, you can start the process manually without stalling the build: 152 | 153 | - Install: 154 | 155 | `npm i --save-dev lightkeeperbot` 156 | 157 | - In your CI tool, run: 158 | 159 | `npx lightkeeperbot [--options]` 160 | > Lightkeeper Bot defaults to Travis CI environment variables. 161 | 162 | See the [full docs](https://www.npmjs.com/package/lightkeeperbot). 163 | 164 | --- 165 | 166 | ## Tools 167 | 168 | - [probot](https://probot.github.io/) 169 | - [lighthouse](https://github.com/GoogleChrome/lighthouse) 170 | - [chrome-aws-lambda](https://github.com/alixaxel/chrome-aws-lambda) 171 | - [puppeteer](https://github.com/GoogleChrome/puppeteer) 172 | 173 | ## Inspiration 174 | 175 | - [Lighthouse Bot](https://github.com/GoogleChromeLabs/lighthousebot) 176 | - [Lighthouse GH Reporter](https://github.com/carlesnunez/lighthouse-gh-reporter) 177 | 178 | ## FAQ 179 | 180 | - **Why isn't this part of the Lighthouse Bot?** 181 | - That was my original intention after reading their [FAQ](https://github.com/GoogleChromeLabs/lighthousebot#why-not-a-github-webhook), but after I realized the best format is a Github App along with other features, it was clear the changes would be too drastic. However, `Lightkeeper` is compatible with their Ligthouse server located at https://builder-dot-lighthouse-ci.appspot.com/ci, if you choose to continue using it. 182 | 183 | - **Why isn't this a Github Action?** 184 | - I wanted it to be and still do. However, besides the fact that Github Actions are (at the time of writing) Private Beta; it can lead to visual noise when skipping a check.
![](https://pbs.twimg.com/media/D-9aZn2WwAUv6Em?format=jpg&name=small)
185 | If in the future, Github could allow a subset level of notifications per event (e.g: check run starts vs check run complete), and possibly a filter on `status` (only run action when a check run completes and is succesful); I'd be more than happy to switch since it removes the need for a server, and allows for securely sharing secrets. 186 | 187 | - **I'm getting a Lighthouse error in my reports.** 188 | - If your page fails in [Page Speed Insights](https://developers.google.com/speed/pagespeed/insights/), it will most likely fail in Lightkeeper too. Consider changing the Lighthouse `throttling` options, or device emulation. 189 | 190 | ## Related Projects 191 | 192 | - [Performance Budgets (Docker)](https://github.com/boyney123/performance-budgets) 193 | - [Zeit Integrations Platform](https://zeit.co/blog/zeit-now-integrations-platform) 194 | 195 | ## Contributing 196 | 197 | Please open an issue if you have any questions, feature requests or problems, an example configuration for reproduction is deeply appreciatted. 👍 198 | 199 | ## Donating 200 | 201 | If you find this tool useful, and want me to spend more time on it. Consider **[Donating](https://www.paypal.me/alfredolo/5)**. 202 | 203 | --- 204 | 205 | AGPL, Copyright (c) 2019 Alfredo Lopez 206 | 207 | 208 | -------------------------------------------------------------------------------- /app/budgets.js: -------------------------------------------------------------------------------- 1 | const bytes = require('bytes'); 2 | const find = require('lodash.find'); 3 | const { detailsSummary } = require('./util'); 4 | 5 | const icons = ['⬆️', '✅', '⚠️', '❌']; 6 | 7 | /** 8 | * Returns a stats object keyed by icon type 9 | */ 10 | function getStats() { 11 | return icons.reduce((collection, icon) => { 12 | collection[icon] = { 13 | total: 0, 14 | outputs: { 15 | categories: { output: '' }, 16 | sizes: { output: '' }, 17 | counts: { output: '' } 18 | } 19 | }; 20 | return collection; 21 | }, {}); 22 | } 23 | 24 | /** 25 | * Adds the line dividers for tables 26 | * @param {number} count The length of the table 27 | */ 28 | function tableDividers(count) { 29 | let lines = ''; 30 | for (let i = 0; i < count; i += 1) { 31 | lines += '| - '; 32 | } 33 | if (lines) lines += '|'; 34 | return lines; 35 | } 36 | 37 | /** 38 | * Creates a table row or header 39 | * @param {array} headings The row contents 40 | * @param {boolean} header If true, adds a divider 41 | */ 42 | function addRow(headings = [], header = false) { 43 | let output = `| ${headings.join(' | ')} |\n`; 44 | if (header) { 45 | output += `${tableDividers(headings.length)}\n`; 46 | } 47 | return output; 48 | } 49 | 50 | function checkFailure(score, target, asc) { 51 | return asc ? score < target : score > target; 52 | } 53 | 54 | function checkWarning(score, target, warning, asc) { 55 | return asc ? score <= target + warning : score >= target - warning; 56 | } 57 | 58 | function checkImprove(score, target, asc) { 59 | return asc ? score > target : score < target; 60 | } 61 | 62 | function runBudgets( 63 | score, 64 | { target, threshold, thresholdTarget, warning }, 65 | handleFailure, 66 | asc = true 67 | ) { 68 | let pass = '✅'; 69 | 70 | if (typeof warning !== 'number') { 71 | // set warning by default to 25% of threshold 72 | warning = Math.round((25 / 100) * threshold); 73 | } 74 | 75 | if (checkFailure(score, thresholdTarget, asc)) { 76 | pass = '❌'; 77 | handleFailure(); 78 | // add to error changes 79 | } else if (threshold && checkWarning(score, thresholdTarget, warning)) { 80 | pass = '⚠️'; 81 | // add to warning changes 82 | } else if (checkImprove(score, target, asc)) { 83 | // add to improvements on changes 84 | pass = '⬆️'; 85 | } 86 | 87 | return pass; 88 | } 89 | 90 | function addToStats(row, type, pass, stats, header) { 91 | const stat = stats[pass]; 92 | const group = stat.outputs[type]; 93 | const { hasHeader = false } = group; 94 | stat.total += 1; 95 | group.output += hasHeader ? row : `${header}${row}`; 96 | if (!hasHeader) { 97 | group.hasHeader = true; 98 | } 99 | } 100 | 101 | /** 102 | * Compares the response category scores against the budgets 103 | * @param {object} response The response object 104 | * @param {object} budgets The budgets object 105 | * @param {function} handleFailures The failure handler 106 | */ 107 | function processCategories(response, budgets, handleFailures) { 108 | if (typeof response !== 'object' || typeof budgets !== 'object') return ''; 109 | 110 | return stats => { 111 | let output = ''; 112 | const header = addRow(['Category', 'Score', 'Threshold', 'Target', 'Pass'], true); 113 | 114 | Object.values(response).forEach(({ id, score: sc, title }) => { 115 | const cat = budgets[id]; 116 | if (!cat) return; 117 | let target = 0; 118 | let threshold = 0; 119 | let warning = null; 120 | if (typeof cat === 'number') { 121 | target = cat; 122 | } 123 | if (typeof cat === 'object') { 124 | ({ target = 0, warning, threshold = 0 } = cat); 125 | } 126 | if (!target || typeof target !== 'number') return; 127 | const thresholdTarget = target - threshold; 128 | 129 | if (thresholdTarget < 0) return; 130 | 131 | const score = Math.floor(sc * 100); 132 | const pass = runBudgets( 133 | score, 134 | { 135 | target, 136 | threshold, 137 | thresholdTarget, 138 | warning 139 | }, 140 | handleFailures 141 | ); 142 | 143 | const thresholdOutput = thresholdTarget === target ? '—' : thresholdTarget; 144 | const row = addRow([title, score, thresholdOutput, target, pass]); 145 | addToStats(row, 'categories', pass, stats, header); 146 | // add row to output 147 | output += row; 148 | }); 149 | 150 | return output ? `${header}${output}` : ''; 151 | }; 152 | } 153 | 154 | /** 155 | * Joins all the different budget types 156 | * @param {string} type The budget type 157 | * @param {} 158 | */ 159 | function joinBudgetTypes(type, collection = {}) { 160 | return ({ resourceType, budget = 0, threshold = 0, warning = 0 }) => { 161 | const resource = collection[resourceType]; 162 | if (!resource) { 163 | collection[resourceType] = { [type]: { budget, threshold, warning } }; 164 | return; 165 | } 166 | collection[resourceType][type] = { budget, threshold, warning }; 167 | }; 168 | } 169 | 170 | /** 171 | * Compares the lightwallet response against the budgets 172 | * @param {object} response The response object 173 | * @param {object} budgets The budgets object 174 | * @param {function} handleFailures The failure handler 175 | */ 176 | function processLightWallet(response, budgets, handleFailures) { 177 | if (!Array.isArray(response) || !budgets.length) return ''; 178 | const resourceOutputs = { 179 | sizes: { 180 | header: addRow(['Resource', 'Size', 'Threshold', 'Budget', 'Over Budget', 'Pass'], true), 181 | output: '' 182 | }, 183 | counts: { 184 | header: addRow( 185 | ['Resource', 'Request Count', 'Threshold', 'Budget', 'Over Budget', 'Pass'], 186 | true 187 | ), 188 | output: '' 189 | } 190 | }; 191 | 192 | const collection = {}; 193 | budgets.forEach(({ resourceSizes = [], resourceCounts = [] }) => { 194 | // groups both type of budgets so it can be compared together 195 | resourceSizes.forEach(joinBudgetTypes('sizeBudgets', collection)); 196 | resourceCounts.forEach(joinBudgetTypes('countBudgets', collection)); 197 | }); 198 | return stats => { 199 | Object.entries(collection).forEach(([resourceType, { sizeBudgets, countBudgets }]) => { 200 | const { label, size: responseSize, requestCount } = find(response, { resourceType }); 201 | [[responseSize, sizeBudgets, 'sizes'], [requestCount, countBudgets, 'counts']].forEach( 202 | ([score, resourceBudget, type]) => { 203 | if (score && resourceBudget) { 204 | const { budget: target, threshold, warning } = resourceBudget; 205 | const thresholdTarget = target + threshold; 206 | if (thresholdTarget < 0) return; 207 | 208 | let suffix = ''; 209 | let rowScore = score; 210 | let over = ''; 211 | 212 | if (type === 'sizes') { 213 | // convert to correct unit for display 214 | rowScore = bytes(score); 215 | // convert to kb for comparisons 216 | score = Math.floor(score / 1024 ** 1); 217 | suffix = 'kb'; 218 | } 219 | over = score - target; 220 | if (over < 0) { 221 | over = 0; 222 | } 223 | const pass = runBudgets( 224 | score, 225 | { 226 | target, 227 | thresholdTarget, 228 | threshold, 229 | warning 230 | }, 231 | handleFailures, 232 | false 233 | ); 234 | 235 | const thresholdOutput = 236 | thresholdTarget === target ? '—' : `${thresholdTarget}${suffix}`; 237 | const row = addRow([ 238 | label, 239 | rowScore, 240 | thresholdOutput, 241 | `${target}${suffix}`, 242 | `${over}${suffix}`, 243 | pass 244 | ]); 245 | const { header } = resourceOutputs[type]; 246 | addToStats(row, type, pass, stats, header); 247 | // add row to output 248 | resourceOutputs[type].output += row; 249 | } 250 | } 251 | ); 252 | }); 253 | return Object.values(resourceOutputs).reduce((result, { header, output }) => { 254 | if (result && output) { 255 | result += `\n${header}${output}`; 256 | } else if (output) { 257 | result += `${header}${output}`; 258 | } 259 | return result; 260 | }, ''); 261 | }; 262 | } 263 | 264 | function processBudgets(urlRoute, stats, budgets = []) { 265 | let reportOutput = ''; 266 | budgets.forEach(runBudget => { 267 | if (!runBudget) return; 268 | const output = runBudget(stats); 269 | if (reportOutput && output) { 270 | reportOutput += `\n${output}`; 271 | } else if (output) { 272 | reportOutput += output; 273 | } 274 | }); 275 | // process the stats to generate the summary 276 | // and process the body for comments 277 | const statsOutput = Object.entries(stats).reduce((statsSummary, [icon, { total, outputs }]) => { 278 | // add up the different outputs from budgets 279 | const output = Object.values(outputs).reduce((accOutput, { output: budgetOutput }) => { 280 | if (accOutput && budgetOutput) { 281 | accOutput += `\n${budgetOutput}`; 282 | } else if (budgetOutput) { 283 | accOutput += budgetOutput; 284 | } 285 | return accOutput; 286 | }, ''); 287 | // clear raw outputs 288 | delete stats[icon].outputs; 289 | const iconSummary = ` ${total} ${icon}`; 290 | if (total > 0) { 291 | statsSummary += iconSummary; 292 | } 293 | if (!output) return statsSummary; 294 | stats[icon].output = detailsSummary( 295 | `URL - ${urlRoute}

    Summary — ${iconSummary}`, 296 | output 297 | ); 298 | return statsSummary; 299 | }, ''); 300 | 301 | return { 302 | reportOutput, 303 | stats, 304 | statsOutput 305 | }; 306 | } 307 | 308 | module.exports = { 309 | getStats, 310 | processBudgets, 311 | processCategories, 312 | processLightWallet 313 | }; 314 | -------------------------------------------------------------------------------- /app/session.js: -------------------------------------------------------------------------------- 1 | const slugify = require('@sindresorhus/slugify'); 2 | const { homepage } = require('../package.json'); 3 | const { getStats, processBudgets, processCategories, processLightWallet } = require('./budgets'); 4 | const Status = require('./status'); 5 | const Configuration = require('./configuration'); 6 | const extendFromSettings = require('./settings'); 7 | const processComment = require('./comments'); 8 | const Runner = require('./runner'); // 🏃 9 | const { prepareReport } = require('./report'); 10 | const { detailsSummary, urlFormatter } = require('./util'); 11 | 12 | class Session { 13 | constructor(appName, logger) { 14 | this.appParams = { appName }; 15 | this.logger = logger; 16 | this.status = new Status(this.appParams); 17 | this.configHelp = `See [Configuration](${homepage}/#configuration) for help.`; 18 | this.configuration = new Configuration(this.appParams, this.status, this.configHelp); 19 | } 20 | 21 | setVariables() { 22 | this.conclusion = 'success'; 23 | this.errorsFound = 0; 24 | this.order = []; 25 | this.reports = new Map(); 26 | this.runner = new Runner(); 27 | this.urlFormatter = null; 28 | } 29 | 30 | /** 31 | * Starts a new session 32 | * @param {object} context The github context 33 | * @param {config} config A pre-processed config 34 | * @param {mixed} params A validator function or boolean 35 | * @param {object} macros An optional macro config 36 | */ 37 | async start(context, config, params = {}, isValid, macros = {}) { 38 | const { headBranch, headSha, pullNumber, installationNode, checkRun = {} } = params; 39 | 40 | // add to parameters 41 | Object.assign(this.appParams, { 42 | context, 43 | github: context.github, 44 | headBranch, 45 | headSha, 46 | pullNumber 47 | }); 48 | 49 | const { 50 | baseUrl, 51 | ci: ciName, 52 | type = '', 53 | routes = [], 54 | settings = {}, 55 | sharedSettings = {} 56 | } = await (config || this.configuration.getConfiguration()); 57 | 58 | // return early if the config targets a different type 59 | // this allows targeting deployments, or older `status` workflows from the same provider. 60 | if (typeof isValid === 'function') { 61 | if (ciName && type) { 62 | const ciAppName = ciName.toLowerCase(); 63 | isValid = await isValid(type, [ciAppName, `${ciAppName}[bot]`]); 64 | } else { 65 | isValid = false; 66 | } 67 | } 68 | 69 | if (!baseUrl || !isValid) return; 70 | 71 | // prepare variables since it's a valid run 72 | this.setVariables(); 73 | 74 | // Setup the runner, and exit if the url or token are empty 75 | try { 76 | this.runner.setup(settings.lighthouse, installationNode); 77 | } catch (err) { 78 | this.logger.error('Runner setup failed', err); 79 | return; 80 | } 81 | 82 | const { repo } = context.repo(); 83 | 84 | // set up the url formatter 85 | try { 86 | this.urlFormatter = urlFormatter(baseUrl, { 87 | '{repo}': slugify(repo), 88 | '{branch}': slugify(headBranch), 89 | '{commit_hash}': headSha, 90 | '{pr_number}': pullNumber, 91 | ...macros 92 | }); 93 | } catch (error) { 94 | await this.status.run({ 95 | conclusion: 'failure', 96 | output: { 97 | title: error.message, 98 | summary: this.configHelp 99 | } 100 | }); 101 | return; 102 | } 103 | 104 | // Setup routes or only run the baseUrl 105 | const urlRoutes = 106 | Array.isArray(routes) && routes.length 107 | ? routes 108 | : [ 109 | this.urlFormatter() // returns the formatted baseUrl 110 | ]; 111 | 112 | // stores curried function to update status 113 | let status; 114 | 115 | try { 116 | status = await this.status.create( 117 | { 118 | output: { 119 | title: `Attempting to run tests for ${urlRoutes.length} url${ 120 | urlRoutes.length > 1 ? 's' : '' 121 | }`, 122 | summary: 'This is in progress. Please do not re-run until it has finished.' 123 | } 124 | }, 125 | checkRun 126 | ); 127 | this.logger.info('Posted an `in_progress` check to Github'); 128 | } catch (err) { 129 | this.logger.error('Failed to create `in_progress` status', err); 130 | return; 131 | } 132 | 133 | this.logger.info('Started processing URLs...'); 134 | 135 | this.settings = settings; 136 | this.extendSettings = extendFromSettings(settings, sharedSettings); 137 | 138 | // Process each route and send a request 139 | await Promise.all(this.processRoutes(urlRoutes)); 140 | 141 | this.logger.info('Finished processing URLs'); 142 | 143 | const { reportSummary = '', commentSummary = '', getTitle, warningsFound } = prepareReport( 144 | this.order, 145 | this.reports 146 | ); 147 | 148 | if (!reportSummary) { 149 | this.logger.error('Tests came out with empty reports', this.order.join('\n')); 150 | await status({ 151 | status: 'completed', 152 | conclusion: 'neutral', 153 | output: { 154 | title: 'The tests did not generate any reports', 155 | summary: `Ran tests for the following URLs:\n${this.order.join('/n')}` 156 | } 157 | }); 158 | return; 159 | } 160 | 161 | if (warningsFound && this.conclusion === 'success') { 162 | this.conclusion = 'neutral'; 163 | } 164 | 165 | // Attempt to post check and comment to Github 166 | try { 167 | await Promise.all([ 168 | // github check 169 | status({ 170 | conclusion: this.conclusion, 171 | output: { 172 | title: getTitle(this.conclusion, this.errorsFound, warningsFound), 173 | summary: reportSummary 174 | } 175 | }), 176 | // comment 177 | commentSummary && processComment(context, pullNumber, commentSummary) 178 | ]); 179 | } catch (err) { 180 | this.logger.error('Failed to post to Github', err); 181 | return; 182 | } 183 | 184 | this.logger.info('Sucessfully posted to Github'); 185 | } 186 | 187 | /** 188 | * Loops through all routes and runs a lighthouse test 189 | * @param {array} urlRoutes The routes to test 190 | */ 191 | processRoutes(urlRoutes = []) { 192 | // filter invalid route types 193 | const filter = route => 194 | (typeof route === 'string' && route) || (route && typeof route === 'object' && route.url); 195 | 196 | return urlRoutes.filter(filter).map(this.processRoute.bind(this)); 197 | } 198 | 199 | /** 200 | * Process an individual route 201 | * @param {mixed} route The route string or object 202 | */ 203 | async processRoute(route) { 204 | const urlRoute = this.urlFormatter(typeof route === 'string' ? route : route.url); 205 | let routeSettings = 206 | typeof route === 'object' && typeof route.settings === 'object' ? route.settings : false; 207 | 208 | // convert a string into a extend object 209 | if (!routeSettings && typeof route.settings === 'string' && route.settings.length > 0) { 210 | routeSettings = { extends: route.settings }; 211 | } 212 | 213 | if (routeSettings) { 214 | try { 215 | routeSettings = this.extendSettings(routeSettings); 216 | } catch (err) { 217 | this.logger.error('There was an error processing the route settings', err); 218 | // push route, and add route to report 219 | this.order.push(urlRoute); 220 | this.reports.set(urlRoute, { 221 | report: detailsSummary( 222 | `❌ There was an error processing — ${urlRoute}`, 223 | 'Please check your configuration values' 224 | ) 225 | }); 226 | this.conclusion = 'failure'; 227 | this.errorsFound += 1; 228 | return; 229 | } 230 | } 231 | 232 | // URLs must be unique after processing, 233 | // if you need to support multiple runs/budgets, add query params 234 | if (this.order.includes(urlRoute)) { 235 | return; 236 | } 237 | 238 | this.order.push(urlRoute); 239 | 240 | const { categories, budgets, lighthouse, reportOnly } = routeSettings || this.settings; 241 | 242 | // Skip if no thresholds or budgets have been passed 243 | // Kinda defeats the purpose of the tool 244 | if (!categories && !budgets) { 245 | this.logger.error('No budgets were found in config'); 246 | this.reports.set(urlRoute, { 247 | report: detailsSummary( 248 | `❌ No budgets were found in config for — ${urlRoute}`, 249 | `Please include categories or budgets in settings.\n${this.configHelp}` 250 | ) 251 | }); 252 | this.conclusion = 'failure'; 253 | this.errorsFound += 1; 254 | return; 255 | } 256 | 257 | let data; 258 | 259 | try { 260 | ({ data } = await this.runner.run(urlRoute, budgets, lighthouse)); 261 | } catch (err) { 262 | const { 263 | response: { data: { error: responseMessage } = {} } = {}, 264 | message: errorMessage = 'There was a problem with the Lighthouse request' 265 | } = err; 266 | const outputError = responseMessage || errorMessage; 267 | this.logger.error('Lighthouse request failed:', outputError); 268 | this.reports.set(urlRoute, { 269 | report: detailsSummary( 270 | `❌ Lighthouse request failed on — ${urlRoute}`, 271 | `\`\`\`\n${outputError}\n\`\`\`\n` 272 | ) 273 | }); 274 | this.conclusion = 'failure'; 275 | this.errorsFound += 1; 276 | return; 277 | } 278 | 279 | // generate the stats object 280 | const stats = getStats(); 281 | 282 | const handleFailures = this.handleFailures(reportOnly); 283 | const { reportOutput, statsOutput } = processBudgets(urlRoute, stats, [ 284 | data.categories && 285 | categories && 286 | processCategories(data.categories, categories, handleFailures), 287 | Array.isArray(budgets) && processLightWallet(data.budgets, budgets, handleFailures) 288 | ]); 289 | 290 | const lhVersion = `_Tested with Lighthouse Version: ${data.lighthouseVersion}_`; 291 | const reportUrl = data.reportUrl ? `Full Report: ${data.reportUrl}\n${lhVersion}` : lhVersion; 292 | // process the full report 293 | const report = detailsSummary( 294 | `URL — ${urlRoute}

    Summary — ${statsOutput}`, 295 | `${reportOutput}`, 296 | { reportUrl } 297 | ); 298 | 299 | // add to report 300 | this.reports.set(urlRoute, { report, stats }); 301 | } 302 | 303 | /** 304 | * Adds error to global count, changes the conclusion based on settings 305 | * @param {boolean} reportOnly Denotes if the URL should fail the check run. 306 | */ 307 | handleFailures(reportOnly) { 308 | return () => { 309 | this.errorsFound += 1; 310 | // if this URL is meant to reportOnly 311 | // turn status to `neutral` 312 | // only if a previous URL has not failed already 313 | // the next URL will override it too. 314 | if (reportOnly && this.conclusion !== 'failure') { 315 | this.conclusion = 'neutral'; 316 | } else if (this.conclusion !== 'failure') { 317 | this.conclusion = 'failure'; 318 | } 319 | }; 320 | } 321 | } 322 | 323 | module.exports = Session; 324 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU AFFERO GENERAL PUBLIC LICENSE 2 | Version 3, 19 November 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU Affero General Public License is a free, copyleft license for 11 | software and other kinds of works, specifically designed to ensure 12 | cooperation with the community in the case of network server software. 13 | 14 | The licenses for most software and other practical works are designed 15 | to take away your freedom to share and change the works. By contrast, 16 | our General Public Licenses are intended to guarantee your freedom to 17 | share and change all versions of a program--to make sure it remains free 18 | software for all its users. 19 | 20 | When we speak of free software, we are referring to freedom, not 21 | price. Our General Public Licenses are designed to make sure that you 22 | have the freedom to distribute copies of free software (and charge for 23 | them if you wish), that you receive source code or can get it if you 24 | want it, that you can change the software or use pieces of it in new 25 | free programs, and that you know you can do these things. 26 | 27 | Developers that use our General Public Licenses protect your rights 28 | with two steps: (1) assert copyright on the software, and (2) offer 29 | you this License which gives you legal permission to copy, distribute 30 | and/or modify the software. 31 | 32 | A secondary benefit of defending all users' freedom is that 33 | improvements made in alternate versions of the program, if they 34 | receive widespread use, become available for other developers to 35 | incorporate. Many developers of free software are heartened and 36 | encouraged by the resulting cooperation. However, in the case of 37 | software used on network servers, this result may fail to come about. 38 | The GNU General Public License permits making a modified version and 39 | letting the public access it on a server without ever releasing its 40 | source code to the public. 41 | 42 | The GNU Affero General Public License is designed specifically to 43 | ensure that, in such cases, the modified source code becomes available 44 | to the community. It requires the operator of a network server to 45 | provide the source code of the modified version running there to the 46 | users of that server. Therefore, public use of a modified version, on 47 | a publicly accessible server, gives the public access to the source 48 | code of the modified version. 49 | 50 | An older license, called the Affero General Public License and 51 | published by Affero, was designed to accomplish similar goals. This is 52 | a different license, not a version of the Affero GPL, but Affero has 53 | released a new version of the Affero GPL which permits relicensing under 54 | this license. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | TERMS AND CONDITIONS 60 | 61 | 0. Definitions. 62 | 63 | "This License" refers to version 3 of the GNU Affero General Public License. 64 | 65 | "Copyright" also means copyright-like laws that apply to other kinds of 66 | works, such as semiconductor masks. 67 | 68 | "The Program" refers to any copyrightable work licensed under this 69 | License. Each licensee is addressed as "you". "Licensees" and 70 | "recipients" may be individuals or organizations. 71 | 72 | To "modify" a work means to copy from or adapt all or part of the work 73 | in a fashion requiring copyright permission, other than the making of an 74 | exact copy. The resulting work is called a "modified version" of the 75 | earlier work or a work "based on" the earlier work. 76 | 77 | A "covered work" means either the unmodified Program or a work based 78 | on the Program. 79 | 80 | To "propagate" a work means to do anything with it that, without 81 | permission, would make you directly or secondarily liable for 82 | infringement under applicable copyright law, except executing it on a 83 | computer or modifying a private copy. Propagation includes copying, 84 | distribution (with or without modification), making available to the 85 | public, and in some countries other activities as well. 86 | 87 | To "convey" a work means any kind of propagation that enables other 88 | parties to make or receive copies. Mere interaction with a user through 89 | a computer network, with no transfer of a copy, is not conveying. 90 | 91 | An interactive user interface displays "Appropriate Legal Notices" 92 | to the extent that it includes a convenient and prominently visible 93 | feature that (1) displays an appropriate copyright notice, and (2) 94 | tells the user that there is no warranty for the work (except to the 95 | extent that warranties are provided), that licensees may convey the 96 | work under this License, and how to view a copy of this License. If 97 | the interface presents a list of user commands or options, such as a 98 | menu, a prominent item in the list meets this criterion. 99 | 100 | 1. Source Code. 101 | 102 | The "source code" for a work means the preferred form of the work 103 | for making modifications to it. "Object code" means any non-source 104 | form of a work. 105 | 106 | A "Standard Interface" means an interface that either is an official 107 | standard defined by a recognized standards body, or, in the case of 108 | interfaces specified for a particular programming language, one that 109 | is widely used among developers working in that language. 110 | 111 | The "System Libraries" of an executable work include anything, other 112 | than the work as a whole, that (a) is included in the normal form of 113 | packaging a Major Component, but which is not part of that Major 114 | Component, and (b) serves only to enable use of the work with that 115 | Major Component, or to implement a Standard Interface for which an 116 | implementation is available to the public in source code form. A 117 | "Major Component", in this context, means a major essential component 118 | (kernel, window system, and so on) of the specific operating system 119 | (if any) on which the executable work runs, or a compiler used to 120 | produce the work, or an object code interpreter used to run it. 121 | 122 | The "Corresponding Source" for a work in object code form means all 123 | the source code needed to generate, install, and (for an executable 124 | work) run the object code and to modify the work, including scripts to 125 | control those activities. However, it does not include the work's 126 | System Libraries, or general-purpose tools or generally available free 127 | programs which are used unmodified in performing those activities but 128 | which are not part of the work. For example, Corresponding Source 129 | includes interface definition files associated with source files for 130 | the work, and the source code for shared libraries and dynamically 131 | linked subprograms that the work is specifically designed to require, 132 | such as by intimate data communication or control flow between those 133 | subprograms and other parts of the work. 134 | 135 | The Corresponding Source need not include anything that users 136 | can regenerate automatically from other parts of the Corresponding 137 | Source. 138 | 139 | The Corresponding Source for a work in source code form is that 140 | same work. 141 | 142 | 2. Basic Permissions. 143 | 144 | All rights granted under this License are granted for the term of 145 | copyright on the Program, and are irrevocable provided the stated 146 | conditions are met. This License explicitly affirms your unlimited 147 | permission to run the unmodified Program. The output from running a 148 | covered work is covered by this License only if the output, given its 149 | content, constitutes a covered work. This License acknowledges your 150 | rights of fair use or other equivalent, as provided by copyright law. 151 | 152 | You may make, run and propagate covered works that you do not 153 | convey, without conditions so long as your license otherwise remains 154 | in force. You may convey covered works to others for the sole purpose 155 | of having them make modifications exclusively for you, or provide you 156 | with facilities for running those works, provided that you comply with 157 | the terms of this License in conveying all material for which you do 158 | not control copyright. Those thus making or running the covered works 159 | for you must do so exclusively on your behalf, under your direction 160 | and control, on terms that prohibit them from making any copies of 161 | your copyrighted material outside their relationship with you. 162 | 163 | Conveying under any other circumstances is permitted solely under 164 | the conditions stated below. Sublicensing is not allowed; section 10 165 | makes it unnecessary. 166 | 167 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 168 | 169 | No covered work shall be deemed part of an effective technological 170 | measure under any applicable law fulfilling obligations under article 171 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 172 | similar laws prohibiting or restricting circumvention of such 173 | measures. 174 | 175 | When you convey a covered work, you waive any legal power to forbid 176 | circumvention of technological measures to the extent such circumvention 177 | is effected by exercising rights under this License with respect to 178 | the covered work, and you disclaim any intention to limit operation or 179 | modification of the work as a means of enforcing, against the work's 180 | users, your or third parties' legal rights to forbid circumvention of 181 | technological measures. 182 | 183 | 4. Conveying Verbatim Copies. 184 | 185 | You may convey verbatim copies of the Program's source code as you 186 | receive it, in any medium, provided that you conspicuously and 187 | appropriately publish on each copy an appropriate copyright notice; 188 | keep intact all notices stating that this License and any 189 | non-permissive terms added in accord with section 7 apply to the code; 190 | keep intact all notices of the absence of any warranty; and give all 191 | recipients a copy of this License along with the Program. 192 | 193 | You may charge any price or no price for each copy that you convey, 194 | and you may offer support or warranty protection for a fee. 195 | 196 | 5. Conveying Modified Source Versions. 197 | 198 | You may convey a work based on the Program, or the modifications to 199 | produce it from the Program, in the form of source code under the 200 | terms of section 4, provided that you also meet all of these conditions: 201 | 202 | a) The work must carry prominent notices stating that you modified 203 | it, and giving a relevant date. 204 | 205 | b) The work must carry prominent notices stating that it is 206 | released under this License and any conditions added under section 207 | 7. This requirement modifies the requirement in section 4 to 208 | "keep intact all notices". 209 | 210 | c) You must license the entire work, as a whole, under this 211 | License to anyone who comes into possession of a copy. This 212 | License will therefore apply, along with any applicable section 7 213 | additional terms, to the whole of the work, and all its parts, 214 | regardless of how they are packaged. This License gives no 215 | permission to license the work in any other way, but it does not 216 | invalidate such permission if you have separately received it. 217 | 218 | d) If the work has interactive user interfaces, each must display 219 | Appropriate Legal Notices; however, if the Program has interactive 220 | interfaces that do not display Appropriate Legal Notices, your 221 | work need not make them do so. 222 | 223 | A compilation of a covered work with other separate and independent 224 | works, which are not by their nature extensions of the covered work, 225 | and which are not combined with it such as to form a larger program, 226 | in or on a volume of a storage or distribution medium, is called an 227 | "aggregate" if the compilation and its resulting copyright are not 228 | used to limit the access or legal rights of the compilation's users 229 | beyond what the individual works permit. Inclusion of a covered work 230 | in an aggregate does not cause this License to apply to the other 231 | parts of the aggregate. 232 | 233 | 6. Conveying Non-Source Forms. 234 | 235 | You may convey a covered work in object code form under the terms 236 | of sections 4 and 5, provided that you also convey the 237 | machine-readable Corresponding Source under the terms of this License, 238 | in one of these ways: 239 | 240 | a) Convey the object code in, or embodied in, a physical product 241 | (including a physical distribution medium), accompanied by the 242 | Corresponding Source fixed on a durable physical medium 243 | customarily used for software interchange. 244 | 245 | b) Convey the object code in, or embodied in, a physical product 246 | (including a physical distribution medium), accompanied by a 247 | written offer, valid for at least three years and valid for as 248 | long as you offer spare parts or customer support for that product 249 | model, to give anyone who possesses the object code either (1) a 250 | copy of the Corresponding Source for all the software in the 251 | product that is covered by this License, on a durable physical 252 | medium customarily used for software interchange, for a price no 253 | more than your reasonable cost of physically performing this 254 | conveying of source, or (2) access to copy the 255 | Corresponding Source from a network server at no charge. 256 | 257 | c) Convey individual copies of the object code with a copy of the 258 | written offer to provide the Corresponding Source. This 259 | alternative is allowed only occasionally and noncommercially, and 260 | only if you received the object code with such an offer, in accord 261 | with subsection 6b. 262 | 263 | d) Convey the object code by offering access from a designated 264 | place (gratis or for a charge), and offer equivalent access to the 265 | Corresponding Source in the same way through the same place at no 266 | further charge. You need not require recipients to copy the 267 | Corresponding Source along with the object code. If the place to 268 | copy the object code is a network server, the Corresponding Source 269 | may be on a different server (operated by you or a third party) 270 | that supports equivalent copying facilities, provided you maintain 271 | clear directions next to the object code saying where to find the 272 | Corresponding Source. Regardless of what server hosts the 273 | Corresponding Source, you remain obligated to ensure that it is 274 | available for as long as needed to satisfy these requirements. 275 | 276 | e) Convey the object code using peer-to-peer transmission, provided 277 | you inform other peers where the object code and Corresponding 278 | Source of the work are being offered to the general public at no 279 | charge under subsection 6d. 280 | 281 | A separable portion of the object code, whose source code is excluded 282 | from the Corresponding Source as a System Library, need not be 283 | included in conveying the object code work. 284 | 285 | A "User Product" is either (1) a "consumer product", which means any 286 | tangible personal property which is normally used for personal, family, 287 | or household purposes, or (2) anything designed or sold for incorporation 288 | into a dwelling. In determining whether a product is a consumer product, 289 | doubtful cases shall be resolved in favor of coverage. For a particular 290 | product received by a particular user, "normally used" refers to a 291 | typical or common use of that class of product, regardless of the status 292 | of the particular user or of the way in which the particular user 293 | actually uses, or expects or is expected to use, the product. A product 294 | is a consumer product regardless of whether the product has substantial 295 | commercial, industrial or non-consumer uses, unless such uses represent 296 | the only significant mode of use of the product. 297 | 298 | "Installation Information" for a User Product means any methods, 299 | procedures, authorization keys, or other information required to install 300 | and execute modified versions of a covered work in that User Product from 301 | a modified version of its Corresponding Source. The information must 302 | suffice to ensure that the continued functioning of the modified object 303 | code is in no case prevented or interfered with solely because 304 | modification has been made. 305 | 306 | If you convey an object code work under this section in, or with, or 307 | specifically for use in, a User Product, and the conveying occurs as 308 | part of a transaction in which the right of possession and use of the 309 | User Product is transferred to the recipient in perpetuity or for a 310 | fixed term (regardless of how the transaction is characterized), the 311 | Corresponding Source conveyed under this section must be accompanied 312 | by the Installation Information. But this requirement does not apply 313 | if neither you nor any third party retains the ability to install 314 | modified object code on the User Product (for example, the work has 315 | been installed in ROM). 316 | 317 | The requirement to provide Installation Information does not include a 318 | requirement to continue to provide support service, warranty, or updates 319 | for a work that has been modified or installed by the recipient, or for 320 | the User Product in which it has been modified or installed. Access to a 321 | network may be denied when the modification itself materially and 322 | adversely affects the operation of the network or violates the rules and 323 | protocols for communication across the network. 324 | 325 | Corresponding Source conveyed, and Installation Information provided, 326 | in accord with this section must be in a format that is publicly 327 | documented (and with an implementation available to the public in 328 | source code form), and must require no special password or key for 329 | unpacking, reading or copying. 330 | 331 | 7. Additional Terms. 332 | 333 | "Additional permissions" are terms that supplement the terms of this 334 | License by making exceptions from one or more of its conditions. 335 | Additional permissions that are applicable to the entire Program shall 336 | be treated as though they were included in this License, to the extent 337 | that they are valid under applicable law. If additional permissions 338 | apply only to part of the Program, that part may be used separately 339 | under those permissions, but the entire Program remains governed by 340 | this License without regard to the additional permissions. 341 | 342 | When you convey a copy of a covered work, you may at your option 343 | remove any additional permissions from that copy, or from any part of 344 | it. (Additional permissions may be written to require their own 345 | removal in certain cases when you modify the work.) You may place 346 | additional permissions on material, added by you to a covered work, 347 | for which you have or can give appropriate copyright permission. 348 | 349 | Notwithstanding any other provision of this License, for material you 350 | add to a covered work, you may (if authorized by the copyright holders of 351 | that material) supplement the terms of this License with terms: 352 | 353 | a) Disclaiming warranty or limiting liability differently from the 354 | terms of sections 15 and 16 of this License; or 355 | 356 | b) Requiring preservation of specified reasonable legal notices or 357 | author attributions in that material or in the Appropriate Legal 358 | Notices displayed by works containing it; or 359 | 360 | c) Prohibiting misrepresentation of the origin of that material, or 361 | requiring that modified versions of such material be marked in 362 | reasonable ways as different from the original version; or 363 | 364 | d) Limiting the use for publicity purposes of names of licensors or 365 | authors of the material; or 366 | 367 | e) Declining to grant rights under trademark law for use of some 368 | trade names, trademarks, or service marks; or 369 | 370 | f) Requiring indemnification of licensors and authors of that 371 | material by anyone who conveys the material (or modified versions of 372 | it) with contractual assumptions of liability to the recipient, for 373 | any liability that these contractual assumptions directly impose on 374 | those licensors and authors. 375 | 376 | All other non-permissive additional terms are considered "further 377 | restrictions" within the meaning of section 10. If the Program as you 378 | received it, or any part of it, contains a notice stating that it is 379 | governed by this License along with a term that is a further 380 | restriction, you may remove that term. If a license document contains 381 | a further restriction but permits relicensing or conveying under this 382 | License, you may add to a covered work material governed by the terms 383 | of that license document, provided that the further restriction does 384 | not survive such relicensing or conveying. 385 | 386 | If you add terms to a covered work in accord with this section, you 387 | must place, in the relevant source files, a statement of the 388 | additional terms that apply to those files, or a notice indicating 389 | where to find the applicable terms. 390 | 391 | Additional terms, permissive or non-permissive, may be stated in the 392 | form of a separately written license, or stated as exceptions; 393 | the above requirements apply either way. 394 | 395 | 8. Termination. 396 | 397 | You may not propagate or modify a covered work except as expressly 398 | provided under this License. Any attempt otherwise to propagate or 399 | modify it is void, and will automatically terminate your rights under 400 | this License (including any patent licenses granted under the third 401 | paragraph of section 11). 402 | 403 | However, if you cease all violation of this License, then your 404 | license from a particular copyright holder is reinstated (a) 405 | provisionally, unless and until the copyright holder explicitly and 406 | finally terminates your license, and (b) permanently, if the copyright 407 | holder fails to notify you of the violation by some reasonable means 408 | prior to 60 days after the cessation. 409 | 410 | Moreover, your license from a particular copyright holder is 411 | reinstated permanently if the copyright holder notifies you of the 412 | violation by some reasonable means, this is the first time you have 413 | received notice of violation of this License (for any work) from that 414 | copyright holder, and you cure the violation prior to 30 days after 415 | your receipt of the notice. 416 | 417 | Termination of your rights under this section does not terminate the 418 | licenses of parties who have received copies or rights from you under 419 | this License. If your rights have been terminated and not permanently 420 | reinstated, you do not qualify to receive new licenses for the same 421 | material under section 10. 422 | 423 | 9. Acceptance Not Required for Having Copies. 424 | 425 | You are not required to accept this License in order to receive or 426 | run a copy of the Program. Ancillary propagation of a covered work 427 | occurring solely as a consequence of using peer-to-peer transmission 428 | to receive a copy likewise does not require acceptance. However, 429 | nothing other than this License grants you permission to propagate or 430 | modify any covered work. These actions infringe copyright if you do 431 | not accept this License. Therefore, by modifying or propagating a 432 | covered work, you indicate your acceptance of this License to do so. 433 | 434 | 10. Automatic Licensing of Downstream Recipients. 435 | 436 | Each time you convey a covered work, the recipient automatically 437 | receives a license from the original licensors, to run, modify and 438 | propagate that work, subject to this License. You are not responsible 439 | for enforcing compliance by third parties with this License. 440 | 441 | An "entity transaction" is a transaction transferring control of an 442 | organization, or substantially all assets of one, or subdividing an 443 | organization, or merging organizations. If propagation of a covered 444 | work results from an entity transaction, each party to that 445 | transaction who receives a copy of the work also receives whatever 446 | licenses to the work the party's predecessor in interest had or could 447 | give under the previous paragraph, plus a right to possession of the 448 | Corresponding Source of the work from the predecessor in interest, if 449 | the predecessor has it or can get it with reasonable efforts. 450 | 451 | You may not impose any further restrictions on the exercise of the 452 | rights granted or affirmed under this License. For example, you may 453 | not impose a license fee, royalty, or other charge for exercise of 454 | rights granted under this License, and you may not initiate litigation 455 | (including a cross-claim or counterclaim in a lawsuit) alleging that 456 | any patent claim is infringed by making, using, selling, offering for 457 | sale, or importing the Program or any portion of it. 458 | 459 | 11. Patents. 460 | 461 | A "contributor" is a copyright holder who authorizes use under this 462 | License of the Program or a work on which the Program is based. The 463 | work thus licensed is called the contributor's "contributor version". 464 | 465 | A contributor's "essential patent claims" are all patent claims 466 | owned or controlled by the contributor, whether already acquired or 467 | hereafter acquired, that would be infringed by some manner, permitted 468 | by this License, of making, using, or selling its contributor version, 469 | but do not include claims that would be infringed only as a 470 | consequence of further modification of the contributor version. For 471 | purposes of this definition, "control" includes the right to grant 472 | patent sublicenses in a manner consistent with the requirements of 473 | this License. 474 | 475 | Each contributor grants you a non-exclusive, worldwide, royalty-free 476 | patent license under the contributor's essential patent claims, to 477 | make, use, sell, offer for sale, import and otherwise run, modify and 478 | propagate the contents of its contributor version. 479 | 480 | In the following three paragraphs, a "patent license" is any express 481 | agreement or commitment, however denominated, not to enforce a patent 482 | (such as an express permission to practice a patent or covenant not to 483 | sue for patent infringement). To "grant" such a patent license to a 484 | party means to make such an agreement or commitment not to enforce a 485 | patent against the party. 486 | 487 | If you convey a covered work, knowingly relying on a patent license, 488 | and the Corresponding Source of the work is not available for anyone 489 | to copy, free of charge and under the terms of this License, through a 490 | publicly available network server or other readily accessible means, 491 | then you must either (1) cause the Corresponding Source to be so 492 | available, or (2) arrange to deprive yourself of the benefit of the 493 | patent license for this particular work, or (3) arrange, in a manner 494 | consistent with the requirements of this License, to extend the patent 495 | license to downstream recipients. "Knowingly relying" means you have 496 | actual knowledge that, but for the patent license, your conveying the 497 | covered work in a country, or your recipient's use of the covered work 498 | in a country, would infringe one or more identifiable patents in that 499 | country that you have reason to believe are valid. 500 | 501 | If, pursuant to or in connection with a single transaction or 502 | arrangement, you convey, or propagate by procuring conveyance of, a 503 | covered work, and grant a patent license to some of the parties 504 | receiving the covered work authorizing them to use, propagate, modify 505 | or convey a specific copy of the covered work, then the patent license 506 | you grant is automatically extended to all recipients of the covered 507 | work and works based on it. 508 | 509 | A patent license is "discriminatory" if it does not include within 510 | the scope of its coverage, prohibits the exercise of, or is 511 | conditioned on the non-exercise of one or more of the rights that are 512 | specifically granted under this License. You may not convey a covered 513 | work if you are a party to an arrangement with a third party that is 514 | in the business of distributing software, under which you make payment 515 | to the third party based on the extent of your activity of conveying 516 | the work, and under which the third party grants, to any of the 517 | parties who would receive the covered work from you, a discriminatory 518 | patent license (a) in connection with copies of the covered work 519 | conveyed by you (or copies made from those copies), or (b) primarily 520 | for and in connection with specific products or compilations that 521 | contain the covered work, unless you entered into that arrangement, 522 | or that patent license was granted, prior to 28 March 2007. 523 | 524 | Nothing in this License shall be construed as excluding or limiting 525 | any implied license or other defenses to infringement that may 526 | otherwise be available to you under applicable patent law. 527 | 528 | 12. No Surrender of Others' Freedom. 529 | 530 | If conditions are imposed on you (whether by court order, agreement or 531 | otherwise) that contradict the conditions of this License, they do not 532 | excuse you from the conditions of this License. If you cannot convey a 533 | covered work so as to satisfy simultaneously your obligations under this 534 | License and any other pertinent obligations, then as a consequence you may 535 | not convey it at all. For example, if you agree to terms that obligate you 536 | to collect a royalty for further conveying from those to whom you convey 537 | the Program, the only way you could satisfy both those terms and this 538 | License would be to refrain entirely from conveying the Program. 539 | 540 | 13. Remote Network Interaction; Use with the GNU General Public License. 541 | 542 | Notwithstanding any other provision of this License, if you modify the 543 | Program, your modified version must prominently offer all users 544 | interacting with it remotely through a computer network (if your version 545 | supports such interaction) an opportunity to receive the Corresponding 546 | Source of your version by providing access to the Corresponding Source 547 | from a network server at no charge, through some standard or customary 548 | means of facilitating copying of software. This Corresponding Source 549 | shall include the Corresponding Source for any work covered by version 3 550 | of the GNU General Public License that is incorporated pursuant to the 551 | following paragraph. 552 | 553 | Notwithstanding any other provision of this License, you have 554 | permission to link or combine any covered work with a work licensed 555 | under version 3 of the GNU General Public License into a single 556 | combined work, and to convey the resulting work. The terms of this 557 | License will continue to apply to the part which is the covered work, 558 | but the work with which it is combined will remain governed by version 559 | 3 of the GNU General Public License. 560 | 561 | 14. Revised Versions of this License. 562 | 563 | The Free Software Foundation may publish revised and/or new versions of 564 | the GNU Affero General Public License from time to time. Such new versions 565 | will be similar in spirit to the present version, but may differ in detail to 566 | address new problems or concerns. 567 | 568 | Each version is given a distinguishing version number. If the 569 | Program specifies that a certain numbered version of the GNU Affero General 570 | Public License "or any later version" applies to it, you have the 571 | option of following the terms and conditions either of that numbered 572 | version or of any later version published by the Free Software 573 | Foundation. If the Program does not specify a version number of the 574 | GNU Affero General Public License, you may choose any version ever published 575 | by the Free Software Foundation. 576 | 577 | If the Program specifies that a proxy can decide which future 578 | versions of the GNU Affero General Public License can be used, that proxy's 579 | public statement of acceptance of a version permanently authorizes you 580 | to choose that version for the Program. 581 | 582 | Later license versions may give you additional or different 583 | permissions. However, no additional obligations are imposed on any 584 | author or copyright holder as a result of your choosing to follow a 585 | later version. 586 | 587 | 15. Disclaimer of Warranty. 588 | 589 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 590 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 591 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 592 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 593 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 594 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 595 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 596 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 597 | 598 | 16. Limitation of Liability. 599 | 600 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 601 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 602 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 603 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 604 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 605 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 606 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 607 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 608 | SUCH DAMAGES. 609 | 610 | 17. Interpretation of Sections 15 and 16. 611 | 612 | If the disclaimer of warranty and limitation of liability provided 613 | above cannot be given local legal effect according to their terms, 614 | reviewing courts shall apply local law that most closely approximates 615 | an absolute waiver of all civil liability in connection with the 616 | Program, unless a warranty or assumption of liability accompanies a 617 | copy of the Program in return for a fee. 618 | 619 | END OF TERMS AND CONDITIONS 620 | 621 | How to Apply These Terms to Your New Programs 622 | 623 | If you develop a new program, and you want it to be of the greatest 624 | possible use to the public, the best way to achieve this is to make it 625 | free software which everyone can redistribute and change under these terms. 626 | 627 | To do so, attach the following notices to the program. It is safest 628 | to attach them to the start of each source file to most effectively 629 | state the exclusion of warranty; and each file should have at least 630 | the "copyright" line and a pointer to where the full notice is found. 631 | 632 | 633 | Copyright (C) 634 | 635 | This program is free software: you can redistribute it and/or modify 636 | it under the terms of the GNU Affero General Public License as published 637 | by the Free Software Foundation, either version 3 of the License, or 638 | (at your option) any later version. 639 | 640 | This program is distributed in the hope that it will be useful, 641 | but WITHOUT ANY WARRANTY; without even the implied warranty of 642 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 643 | GNU Affero General Public License for more details. 644 | 645 | You should have received a copy of the GNU Affero General Public License 646 | along with this program. If not, see . 647 | 648 | Also add information on how to contact you by electronic and paper mail. 649 | 650 | If your software can interact with users remotely through a computer 651 | network, you should also make sure that it provides a way for users to 652 | get its source. For example, if your program is a web application, its 653 | interface could display a "Source" link that leads users to an archive 654 | of the code. There are many ways you could offer source, and different 655 | solutions will be better for different programs; see section 13 for the 656 | specific requirements. 657 | 658 | You should also get your employer (if you work as a programmer) or school, 659 | if any, to sign a "copyright disclaimer" for the program, if necessary. 660 | For more information on this, and how to apply and follow the GNU AGPL, see 661 | . 662 | -------------------------------------------------------------------------------- /lighthouse/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "requires": true, 3 | "lockfileVersion": 1, 4 | "dependencies": { 5 | "@types/node": { 6 | "version": "12.0.10", 7 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.0.10.tgz", 8 | "integrity": "sha512-LcsGbPomWsad6wmMNv7nBLw7YYYyfdYcz6xryKYQhx89c3XXan+8Q6AJ43G5XDIaklaVkK3mE4fCb0SBvMiPSQ==" 9 | }, 10 | "JSV": { 11 | "version": "4.0.2", 12 | "resolved": "https://registry.npmjs.org/JSV/-/JSV-4.0.2.tgz", 13 | "integrity": "sha1-0Hf2glVx+CEy+d/67Vh7QCn+/1c=" 14 | }, 15 | "agent-base": { 16 | "version": "4.3.0", 17 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", 18 | "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", 19 | "requires": { 20 | "es6-promisify": "^5.0.0" 21 | } 22 | }, 23 | "ajv": { 24 | "version": "6.10.0", 25 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 26 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 27 | "requires": { 28 | "fast-deep-equal": "^2.0.1", 29 | "fast-json-stable-stringify": "^2.0.0", 30 | "json-schema-traverse": "^0.4.1", 31 | "uri-js": "^4.2.2" 32 | } 33 | }, 34 | "ansi-align": { 35 | "version": "2.0.0", 36 | "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", 37 | "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", 38 | "requires": { 39 | "string-width": "^2.0.0" 40 | } 41 | }, 42 | "ansi-escapes": { 43 | "version": "3.2.0", 44 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", 45 | "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==" 46 | }, 47 | "ansi-regex": { 48 | "version": "3.0.0", 49 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 50 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" 51 | }, 52 | "ansi-styles": { 53 | "version": "3.2.1", 54 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 55 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 56 | "requires": { 57 | "color-convert": "^1.9.0" 58 | } 59 | }, 60 | "arg": { 61 | "version": "4.1.0", 62 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.0.tgz", 63 | "integrity": "sha512-ZWc51jO3qegGkVh8Hwpv636EkbesNV5ZNQPCtRa+0qytRYPEs9IYT9qITY9buezqUH5uqyzlWLcufrzU2rffdg==" 64 | }, 65 | "asn1": { 66 | "version": "0.2.4", 67 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 68 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 69 | "requires": { 70 | "safer-buffer": "~2.1.0" 71 | } 72 | }, 73 | "assert-plus": { 74 | "version": "1.0.0", 75 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 76 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" 77 | }, 78 | "async-limiter": { 79 | "version": "1.0.0", 80 | "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", 81 | "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==" 82 | }, 83 | "asynckit": { 84 | "version": "0.4.0", 85 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 86 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" 87 | }, 88 | "aws-sign2": { 89 | "version": "0.7.0", 90 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 91 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" 92 | }, 93 | "aws4": { 94 | "version": "1.8.0", 95 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", 96 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==" 97 | }, 98 | "axe-core": { 99 | "version": "3.2.2", 100 | "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-3.2.2.tgz", 101 | "integrity": "sha512-gAy4kMSPpuRJV3mwictJqlg5LhE84Vw2CydKdC4tvrLhR6+G3KW51zbL/vYujcLA2jvWOq3HMHrVeNuw+mrLVA==" 102 | }, 103 | "balanced-match": { 104 | "version": "1.0.0", 105 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 106 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" 107 | }, 108 | "bcrypt-pbkdf": { 109 | "version": "1.0.2", 110 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 111 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 112 | "requires": { 113 | "tweetnacl": "^0.14.3" 114 | } 115 | }, 116 | "boxen": { 117 | "version": "1.3.0", 118 | "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", 119 | "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", 120 | "requires": { 121 | "ansi-align": "^2.0.0", 122 | "camelcase": "^4.0.0", 123 | "chalk": "^2.0.1", 124 | "cli-boxes": "^1.0.0", 125 | "string-width": "^2.0.0", 126 | "term-size": "^1.2.0", 127 | "widest-line": "^2.0.0" 128 | } 129 | }, 130 | "brace-expansion": { 131 | "version": "1.1.11", 132 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 133 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 134 | "requires": { 135 | "balanced-match": "^1.0.0", 136 | "concat-map": "0.0.1" 137 | } 138 | }, 139 | "buffer-from": { 140 | "version": "1.1.1", 141 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 142 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" 143 | }, 144 | "bytes": { 145 | "version": "3.0.0", 146 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", 147 | "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" 148 | }, 149 | "camelcase": { 150 | "version": "4.1.0", 151 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", 152 | "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=" 153 | }, 154 | "capture-stack-trace": { 155 | "version": "1.0.1", 156 | "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.1.tgz", 157 | "integrity": "sha512-mYQLZnx5Qt1JgB1WEiMCf2647plpGeQ2NMR/5L0HNZzGQo4fuSPnK+wjfPnKZV0aiJDgzmWqqkV/g7JD+DW0qw==" 158 | }, 159 | "caseless": { 160 | "version": "0.12.0", 161 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 162 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" 163 | }, 164 | "chalk": { 165 | "version": "2.4.2", 166 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 167 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 168 | "requires": { 169 | "ansi-styles": "^3.2.1", 170 | "escape-string-regexp": "^1.0.5", 171 | "supports-color": "^5.3.0" 172 | } 173 | }, 174 | "chardet": { 175 | "version": "0.4.2", 176 | "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz", 177 | "integrity": "sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I=" 178 | }, 179 | "charenc": { 180 | "version": "0.0.2", 181 | "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", 182 | "integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=" 183 | }, 184 | "chrome-aws-lambda": { 185 | "version": "1.15.1", 186 | "resolved": "https://registry.npmjs.org/chrome-aws-lambda/-/chrome-aws-lambda-1.15.1.tgz", 187 | "integrity": "sha512-DtQCqQNWV+15Cb1nkXNUMsyN0EtvL6hM0qaai2jjNPDUHygEcMn/4JV2N/FmyvtQnDoS0VoSDEmqtxDz4jrZ3w==" 188 | }, 189 | "chrome-launcher": { 190 | "version": "0.10.7", 191 | "resolved": "https://registry.npmjs.org/chrome-launcher/-/chrome-launcher-0.10.7.tgz", 192 | "integrity": "sha512-IoQLp64s2n8OQuvKZwt77CscVj3UlV2Dj7yZtd1EBMld9mSdGcsGy9fN5hd/r4vJuWZR09it78n1+A17gB+AIQ==", 193 | "requires": { 194 | "@types/node": "*", 195 | "is-wsl": "^1.1.0", 196 | "lighthouse-logger": "^1.0.0", 197 | "mkdirp": "0.5.1", 198 | "rimraf": "^2.6.1" 199 | } 200 | }, 201 | "ci-info": { 202 | "version": "1.6.0", 203 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.6.0.tgz", 204 | "integrity": "sha512-vsGdkwSCDpWmP80ncATX7iea5DWQemg1UgCW5J8tqjU3lYw4FBYuj89J0CTVomA7BEfvSZd84GmHko+MxFQU2A==" 205 | }, 206 | "cli-boxes": { 207 | "version": "1.0.0", 208 | "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", 209 | "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=" 210 | }, 211 | "cli-cursor": { 212 | "version": "2.1.0", 213 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", 214 | "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", 215 | "requires": { 216 | "restore-cursor": "^2.0.0" 217 | } 218 | }, 219 | "cli-width": { 220 | "version": "2.2.0", 221 | "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", 222 | "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=" 223 | }, 224 | "cliui": { 225 | "version": "3.2.0", 226 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", 227 | "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", 228 | "requires": { 229 | "string-width": "^1.0.1", 230 | "strip-ansi": "^3.0.1", 231 | "wrap-ansi": "^2.0.0" 232 | }, 233 | "dependencies": { 234 | "ansi-regex": { 235 | "version": "2.1.1", 236 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 237 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 238 | }, 239 | "is-fullwidth-code-point": { 240 | "version": "1.0.0", 241 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 242 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 243 | "requires": { 244 | "number-is-nan": "^1.0.0" 245 | } 246 | }, 247 | "string-width": { 248 | "version": "1.0.2", 249 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 250 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 251 | "requires": { 252 | "code-point-at": "^1.0.0", 253 | "is-fullwidth-code-point": "^1.0.0", 254 | "strip-ansi": "^3.0.0" 255 | } 256 | }, 257 | "strip-ansi": { 258 | "version": "3.0.1", 259 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 260 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 261 | "requires": { 262 | "ansi-regex": "^2.0.0" 263 | } 264 | } 265 | } 266 | }, 267 | "code-point-at": { 268 | "version": "1.1.0", 269 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 270 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" 271 | }, 272 | "color-convert": { 273 | "version": "1.9.3", 274 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 275 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 276 | "requires": { 277 | "color-name": "1.1.3" 278 | } 279 | }, 280 | "color-name": { 281 | "version": "1.1.3", 282 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 283 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 284 | }, 285 | "combined-stream": { 286 | "version": "1.0.8", 287 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 288 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 289 | "requires": { 290 | "delayed-stream": "~1.0.0" 291 | } 292 | }, 293 | "concat-map": { 294 | "version": "0.0.1", 295 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 296 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" 297 | }, 298 | "concat-stream": { 299 | "version": "1.6.2", 300 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 301 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 302 | "requires": { 303 | "buffer-from": "^1.0.0", 304 | "inherits": "^2.0.3", 305 | "readable-stream": "^2.2.2", 306 | "typedarray": "^0.0.6" 307 | } 308 | }, 309 | "configstore": { 310 | "version": "3.1.2", 311 | "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.2.tgz", 312 | "integrity": "sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw==", 313 | "requires": { 314 | "dot-prop": "^4.1.0", 315 | "graceful-fs": "^4.1.2", 316 | "make-dir": "^1.0.0", 317 | "unique-string": "^1.0.0", 318 | "write-file-atomic": "^2.0.0", 319 | "xdg-basedir": "^3.0.0" 320 | } 321 | }, 322 | "content-type": { 323 | "version": "1.0.4", 324 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.4.tgz", 325 | "integrity": "sha512-hIP3EEPs8tB9AT1L+NUqtwOAps4mk2Zob89MWXMHjHWg9milF/j4osnnQLXBCBFBk/tvIG/tUc9mOUJiPBhPXA==" 326 | }, 327 | "cookie": { 328 | "version": "0.3.1", 329 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", 330 | "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=" 331 | }, 332 | "core-util-is": { 333 | "version": "1.0.2", 334 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 335 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" 336 | }, 337 | "create-error-class": { 338 | "version": "3.0.2", 339 | "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", 340 | "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", 341 | "requires": { 342 | "capture-stack-trace": "^1.0.0" 343 | } 344 | }, 345 | "cross-spawn": { 346 | "version": "5.1.0", 347 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", 348 | "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", 349 | "requires": { 350 | "lru-cache": "^4.0.1", 351 | "shebang-command": "^1.2.0", 352 | "which": "^1.2.9" 353 | } 354 | }, 355 | "crypt": { 356 | "version": "0.0.2", 357 | "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", 358 | "integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=" 359 | }, 360 | "crypto-random-string": { 361 | "version": "1.0.0", 362 | "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", 363 | "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=" 364 | }, 365 | "cssom": { 366 | "version": "0.3.6", 367 | "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.6.tgz", 368 | "integrity": "sha512-DtUeseGk9/GBW0hl0vVPpU22iHL6YB5BUX7ml1hB+GMpo0NX5G4voX3kdWiMSEguFtcW3Vh3djqNF4aIe6ne0A==" 369 | }, 370 | "cssstyle": { 371 | "version": "1.2.1", 372 | "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-1.2.1.tgz", 373 | "integrity": "sha512-7DYm8qe+gPx/h77QlCyFmX80+fGaE/6A/Ekl0zaszYOubvySO2saYFdQ78P29D0UsULxFKCetDGNaNRUdSF+2A==", 374 | "requires": { 375 | "cssom": "0.3.x" 376 | } 377 | }, 378 | "dashdash": { 379 | "version": "1.14.1", 380 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 381 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 382 | "requires": { 383 | "assert-plus": "^1.0.0" 384 | } 385 | }, 386 | "debug": { 387 | "version": "2.6.9", 388 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 389 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 390 | "requires": { 391 | "ms": "2.0.0" 392 | } 393 | }, 394 | "decamelize": { 395 | "version": "1.2.0", 396 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 397 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" 398 | }, 399 | "deep-extend": { 400 | "version": "0.6.0", 401 | "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", 402 | "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" 403 | }, 404 | "delayed-stream": { 405 | "version": "1.0.0", 406 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 407 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" 408 | }, 409 | "depd": { 410 | "version": "1.1.1", 411 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.1.tgz", 412 | "integrity": "sha1-V4O04cRZ8G+lyif5kfPQbnoxA1k=" 413 | }, 414 | "details-element-polyfill": { 415 | "version": "2.2.0", 416 | "resolved": "https://registry.npmjs.org/details-element-polyfill/-/details-element-polyfill-2.2.0.tgz", 417 | "integrity": "sha512-Sjg+A4q3Mrn2JKQu58zsreuHqAb4M0qe4eK5ZQAIBuch9i8nx6MlKWCxx0z8s59MMen9I4WXavzW5z+BnkIC0A==" 418 | }, 419 | "dot-prop": { 420 | "version": "4.2.0", 421 | "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", 422 | "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", 423 | "requires": { 424 | "is-obj": "^1.0.0" 425 | } 426 | }, 427 | "duplexer3": { 428 | "version": "0.1.4", 429 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 430 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" 431 | }, 432 | "ecc-jsbn": { 433 | "version": "0.1.2", 434 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 435 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 436 | "requires": { 437 | "jsbn": "~0.1.0", 438 | "safer-buffer": "^2.1.0" 439 | } 440 | }, 441 | "es6-promise": { 442 | "version": "4.2.8", 443 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", 444 | "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==" 445 | }, 446 | "es6-promisify": { 447 | "version": "5.0.0", 448 | "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", 449 | "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", 450 | "requires": { 451 | "es6-promise": "^4.0.3" 452 | } 453 | }, 454 | "escape-string-regexp": { 455 | "version": "1.0.5", 456 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 457 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" 458 | }, 459 | "execa": { 460 | "version": "0.7.0", 461 | "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", 462 | "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", 463 | "requires": { 464 | "cross-spawn": "^5.0.1", 465 | "get-stream": "^3.0.0", 466 | "is-stream": "^1.1.0", 467 | "npm-run-path": "^2.0.0", 468 | "p-finally": "^1.0.0", 469 | "signal-exit": "^3.0.0", 470 | "strip-eof": "^1.0.0" 471 | } 472 | }, 473 | "extend": { 474 | "version": "3.0.2", 475 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 476 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" 477 | }, 478 | "external-editor": { 479 | "version": "2.2.0", 480 | "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", 481 | "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", 482 | "requires": { 483 | "chardet": "^0.4.0", 484 | "iconv-lite": "^0.4.17", 485 | "tmp": "^0.0.33" 486 | } 487 | }, 488 | "extract-zip": { 489 | "version": "1.6.7", 490 | "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz", 491 | "integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=", 492 | "requires": { 493 | "concat-stream": "1.6.2", 494 | "debug": "2.6.9", 495 | "mkdirp": "0.5.1", 496 | "yauzl": "2.4.1" 497 | } 498 | }, 499 | "extsprintf": { 500 | "version": "1.3.0", 501 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 502 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" 503 | }, 504 | "fast-deep-equal": { 505 | "version": "2.0.1", 506 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 507 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=" 508 | }, 509 | "fast-json-stable-stringify": { 510 | "version": "2.0.0", 511 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 512 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" 513 | }, 514 | "fd-slicer": { 515 | "version": "1.0.1", 516 | "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", 517 | "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", 518 | "requires": { 519 | "pend": "~1.2.0" 520 | } 521 | }, 522 | "figures": { 523 | "version": "2.0.0", 524 | "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", 525 | "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", 526 | "requires": { 527 | "escape-string-regexp": "^1.0.5" 528 | } 529 | }, 530 | "forever-agent": { 531 | "version": "0.6.1", 532 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 533 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" 534 | }, 535 | "form-data": { 536 | "version": "2.3.3", 537 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 538 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 539 | "requires": { 540 | "asynckit": "^0.4.0", 541 | "combined-stream": "^1.0.6", 542 | "mime-types": "^2.1.12" 543 | } 544 | }, 545 | "fs.realpath": { 546 | "version": "1.0.0", 547 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 548 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" 549 | }, 550 | "get-stream": { 551 | "version": "3.0.0", 552 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", 553 | "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=" 554 | }, 555 | "getpass": { 556 | "version": "0.1.7", 557 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 558 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 559 | "requires": { 560 | "assert-plus": "^1.0.0" 561 | } 562 | }, 563 | "glob": { 564 | "version": "7.1.4", 565 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 566 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 567 | "requires": { 568 | "fs.realpath": "^1.0.0", 569 | "inflight": "^1.0.4", 570 | "inherits": "2", 571 | "minimatch": "^3.0.4", 572 | "once": "^1.3.0", 573 | "path-is-absolute": "^1.0.0" 574 | } 575 | }, 576 | "global-dirs": { 577 | "version": "0.1.1", 578 | "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", 579 | "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", 580 | "requires": { 581 | "ini": "^1.3.4" 582 | } 583 | }, 584 | "got": { 585 | "version": "6.7.1", 586 | "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", 587 | "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", 588 | "requires": { 589 | "create-error-class": "^3.0.0", 590 | "duplexer3": "^0.1.4", 591 | "get-stream": "^3.0.0", 592 | "is-redirect": "^1.0.0", 593 | "is-retry-allowed": "^1.0.0", 594 | "is-stream": "^1.0.0", 595 | "lowercase-keys": "^1.0.0", 596 | "safe-buffer": "^5.0.1", 597 | "timed-out": "^4.0.0", 598 | "unzip-response": "^2.0.1", 599 | "url-parse-lax": "^1.0.0" 600 | } 601 | }, 602 | "graceful-fs": { 603 | "version": "4.2.0", 604 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.0.tgz", 605 | "integrity": "sha512-jpSvDPV4Cq/bgtpndIWbI5hmYxhQGHPC4d4cqBPb4DLniCfhJokdXhwhaDuLBGLQdvvRum/UiX6ECVIPvDXqdg==" 606 | }, 607 | "har-schema": { 608 | "version": "2.0.0", 609 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 610 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" 611 | }, 612 | "har-validator": { 613 | "version": "5.1.3", 614 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", 615 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", 616 | "requires": { 617 | "ajv": "^6.5.5", 618 | "har-schema": "^2.0.0" 619 | } 620 | }, 621 | "has-color": { 622 | "version": "0.1.7", 623 | "resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz", 624 | "integrity": "sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=" 625 | }, 626 | "has-flag": { 627 | "version": "3.0.0", 628 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 629 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" 630 | }, 631 | "http-errors": { 632 | "version": "1.6.2", 633 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.2.tgz", 634 | "integrity": "sha1-CgAsyFcHGSp+eUbO7cERVfYOxzY=", 635 | "requires": { 636 | "depd": "1.1.1", 637 | "inherits": "2.0.3", 638 | "setprototypeof": "1.0.3", 639 | "statuses": ">= 1.3.1 < 2" 640 | } 641 | }, 642 | "http-link-header": { 643 | "version": "0.8.0", 644 | "resolved": "https://registry.npmjs.org/http-link-header/-/http-link-header-0.8.0.tgz", 645 | "integrity": "sha1-oitBoMmx4tj6wb8baXxr1TLV9eQ=" 646 | }, 647 | "http-signature": { 648 | "version": "1.2.0", 649 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 650 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 651 | "requires": { 652 | "assert-plus": "^1.0.0", 653 | "jsprim": "^1.2.2", 654 | "sshpk": "^1.7.0" 655 | } 656 | }, 657 | "https-proxy-agent": { 658 | "version": "2.2.1", 659 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz", 660 | "integrity": "sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==", 661 | "requires": { 662 | "agent-base": "^4.1.0", 663 | "debug": "^3.1.0" 664 | }, 665 | "dependencies": { 666 | "debug": { 667 | "version": "3.2.6", 668 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 669 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 670 | "requires": { 671 | "ms": "^2.1.1" 672 | } 673 | }, 674 | "ms": { 675 | "version": "2.1.2", 676 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 677 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 678 | } 679 | } 680 | }, 681 | "iconv-lite": { 682 | "version": "0.4.24", 683 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 684 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 685 | "requires": { 686 | "safer-buffer": ">= 2.1.2 < 3" 687 | } 688 | }, 689 | "image-ssim": { 690 | "version": "0.2.0", 691 | "resolved": "https://registry.npmjs.org/image-ssim/-/image-ssim-0.2.0.tgz", 692 | "integrity": "sha1-g7Qsei5uS4VQVHf+aRf128VkIOU=" 693 | }, 694 | "import-lazy": { 695 | "version": "2.1.0", 696 | "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", 697 | "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=" 698 | }, 699 | "imurmurhash": { 700 | "version": "0.1.4", 701 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 702 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" 703 | }, 704 | "inflight": { 705 | "version": "1.0.6", 706 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 707 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 708 | "requires": { 709 | "once": "^1.3.0", 710 | "wrappy": "1" 711 | } 712 | }, 713 | "inherits": { 714 | "version": "2.0.3", 715 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 716 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" 717 | }, 718 | "ini": { 719 | "version": "1.3.5", 720 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 721 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" 722 | }, 723 | "inquirer": { 724 | "version": "3.3.0", 725 | "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", 726 | "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", 727 | "requires": { 728 | "ansi-escapes": "^3.0.0", 729 | "chalk": "^2.0.0", 730 | "cli-cursor": "^2.1.0", 731 | "cli-width": "^2.0.0", 732 | "external-editor": "^2.0.4", 733 | "figures": "^2.0.0", 734 | "lodash": "^4.3.0", 735 | "mute-stream": "0.0.7", 736 | "run-async": "^2.2.0", 737 | "rx-lite": "^4.0.8", 738 | "rx-lite-aggregates": "^4.0.8", 739 | "string-width": "^2.1.0", 740 | "strip-ansi": "^4.0.0", 741 | "through": "^2.3.6" 742 | } 743 | }, 744 | "intl-messageformat": { 745 | "version": "2.2.0", 746 | "resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-2.2.0.tgz", 747 | "integrity": "sha1-NFvNRt5jC3aDMwwuUhd/9eq0hPw=", 748 | "requires": { 749 | "intl-messageformat-parser": "1.4.0" 750 | }, 751 | "dependencies": { 752 | "intl-messageformat-parser": { 753 | "version": "1.4.0", 754 | "resolved": "https://registry.npmjs.org/intl-messageformat-parser/-/intl-messageformat-parser-1.4.0.tgz", 755 | "integrity": "sha1-tD1FqXRoytvkQzHXS7Ho3qRPwHU=" 756 | } 757 | } 758 | }, 759 | "intl-messageformat-parser": { 760 | "version": "1.7.0", 761 | "resolved": "https://registry.npmjs.org/intl-messageformat-parser/-/intl-messageformat-parser-1.7.0.tgz", 762 | "integrity": "sha512-k0+kSwoYX7NJ43D1CqrMR9CDuQ8ioTdnmF5w5tyx060SR63aPZO4PaoEegnWNLORvukQhGdykyUIG0ozxGy5Vg==" 763 | }, 764 | "invert-kv": { 765 | "version": "1.0.0", 766 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", 767 | "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" 768 | }, 769 | "is-buffer": { 770 | "version": "1.1.6", 771 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", 772 | "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" 773 | }, 774 | "is-ci": { 775 | "version": "1.2.1", 776 | "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.2.1.tgz", 777 | "integrity": "sha512-s6tfsaQaQi3JNciBH6shVqEDvhGut0SUXr31ag8Pd8BBbVVlcGfWhpPmEOoM6RJ5TFhbypvf5yyRw/VXW1IiWg==", 778 | "requires": { 779 | "ci-info": "^1.5.0" 780 | } 781 | }, 782 | "is-fullwidth-code-point": { 783 | "version": "2.0.0", 784 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 785 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 786 | }, 787 | "is-installed-globally": { 788 | "version": "0.1.0", 789 | "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", 790 | "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", 791 | "requires": { 792 | "global-dirs": "^0.1.0", 793 | "is-path-inside": "^1.0.0" 794 | } 795 | }, 796 | "is-npm": { 797 | "version": "1.0.0", 798 | "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", 799 | "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=" 800 | }, 801 | "is-obj": { 802 | "version": "1.0.1", 803 | "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", 804 | "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=" 805 | }, 806 | "is-path-inside": { 807 | "version": "1.0.1", 808 | "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", 809 | "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", 810 | "requires": { 811 | "path-is-inside": "^1.0.1" 812 | } 813 | }, 814 | "is-promise": { 815 | "version": "2.1.0", 816 | "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", 817 | "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=" 818 | }, 819 | "is-redirect": { 820 | "version": "1.0.0", 821 | "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", 822 | "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=" 823 | }, 824 | "is-retry-allowed": { 825 | "version": "1.1.0", 826 | "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", 827 | "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=" 828 | }, 829 | "is-stream": { 830 | "version": "1.1.0", 831 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 832 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" 833 | }, 834 | "is-typedarray": { 835 | "version": "1.0.0", 836 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 837 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" 838 | }, 839 | "is-wsl": { 840 | "version": "1.1.0", 841 | "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", 842 | "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=" 843 | }, 844 | "isarray": { 845 | "version": "1.0.0", 846 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 847 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" 848 | }, 849 | "isexe": { 850 | "version": "2.0.0", 851 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 852 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" 853 | }, 854 | "isstream": { 855 | "version": "0.1.2", 856 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 857 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" 858 | }, 859 | "jpeg-js": { 860 | "version": "0.1.2", 861 | "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.1.2.tgz", 862 | "integrity": "sha1-E1uZLAV1yYXPoPSUoyJ+0jhYPs4=" 863 | }, 864 | "js-library-detector": { 865 | "version": "5.4.0", 866 | "resolved": "https://registry.npmjs.org/js-library-detector/-/js-library-detector-5.4.0.tgz", 867 | "integrity": "sha512-lSTEC9Q3L/cXOhYIilW3GH/v4tOnPIN40NTIBHRcn2vxTwGhMyySQTQpJ0W68ISGzOgvwVe7KCfQ9PJi6MsOIw==" 868 | }, 869 | "jsbn": { 870 | "version": "0.1.1", 871 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 872 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" 873 | }, 874 | "json-schema": { 875 | "version": "0.2.3", 876 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 877 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" 878 | }, 879 | "json-schema-traverse": { 880 | "version": "0.4.1", 881 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 882 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" 883 | }, 884 | "json-stringify-safe": { 885 | "version": "5.0.1", 886 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 887 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" 888 | }, 889 | "jsonld": { 890 | "version": "1.6.2", 891 | "resolved": "https://registry.npmjs.org/jsonld/-/jsonld-1.6.2.tgz", 892 | "integrity": "sha512-eMzFHqhF2kPMrMUjw8+Lz9IF1QkrxTOIfVndkP/OpuoZs31VdDtfDs8mLa5EOC/ROdemFTQGLdYPZbRtmMe2Yw==", 893 | "requires": { 894 | "rdf-canonize": "^1.0.2", 895 | "request": "^2.88.0", 896 | "semver": "^5.6.0", 897 | "xmldom": "0.1.19" 898 | } 899 | }, 900 | "jsonlint-mod": { 901 | "version": "1.7.4", 902 | "resolved": "https://registry.npmjs.org/jsonlint-mod/-/jsonlint-mod-1.7.4.tgz", 903 | "integrity": "sha512-FYOkwHqiuBbdVCHgXYlmtL+iUOz9AxCgjotzXl+edI0Hc1km1qK6TrBEAyPpO+5R0/IX3XENRp66mfob4jwxow==", 904 | "requires": { 905 | "JSV": ">= 4.0.x", 906 | "nomnom": ">= 1.5.x" 907 | } 908 | }, 909 | "jsprim": { 910 | "version": "1.4.1", 911 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 912 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 913 | "requires": { 914 | "assert-plus": "1.0.0", 915 | "extsprintf": "1.3.0", 916 | "json-schema": "0.2.3", 917 | "verror": "1.10.0" 918 | } 919 | }, 920 | "latest-version": { 921 | "version": "3.1.0", 922 | "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", 923 | "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", 924 | "requires": { 925 | "package-json": "^4.0.0" 926 | } 927 | }, 928 | "lcid": { 929 | "version": "1.0.0", 930 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", 931 | "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", 932 | "requires": { 933 | "invert-kv": "^1.0.0" 934 | } 935 | }, 936 | "lighthouse": { 937 | "version": "5.1.0", 938 | "resolved": "https://registry.npmjs.org/lighthouse/-/lighthouse-5.1.0.tgz", 939 | "integrity": "sha512-T+6VYefgRgSRHCgWhSQzsS1Jyu6JJ5I3cnrH/Q7BvwoJwnMhHME+JQ4ib5Oek2ZTfOakoarLDqrFPDtYNxk0KA==", 940 | "requires": { 941 | "axe-core": "3.2.2", 942 | "chrome-launcher": "^0.10.7", 943 | "configstore": "^3.1.1", 944 | "cssstyle": "1.2.1", 945 | "details-element-polyfill": "2.2.0", 946 | "http-link-header": "^0.8.0", 947 | "inquirer": "^3.3.0", 948 | "intl-messageformat": "^2.2.0", 949 | "intl-messageformat-parser": "^1.4.0", 950 | "jpeg-js": "0.1.2", 951 | "js-library-detector": "^5.4.0", 952 | "jsonld": "^1.5.0", 953 | "jsonlint-mod": "^1.7.4", 954 | "lighthouse-logger": "^1.2.0", 955 | "lodash.isequal": "^4.5.0", 956 | "lookup-closest-locale": "6.0.4", 957 | "metaviewport-parser": "0.2.0", 958 | "mkdirp": "0.5.1", 959 | "opn": "4.0.2", 960 | "parse-cache-control": "1.0.1", 961 | "raven": "^2.2.1", 962 | "rimraf": "^2.6.1", 963 | "robots-parser": "^2.0.1", 964 | "semver": "^5.3.0", 965 | "speedline-core": "1.4.2", 966 | "update-notifier": "^2.5.0", 967 | "ws": "3.3.2", 968 | "yargs": "3.32.0", 969 | "yargs-parser": "7.0.0" 970 | } 971 | }, 972 | "lighthouse-logger": { 973 | "version": "1.2.0", 974 | "resolved": "https://registry.npmjs.org/lighthouse-logger/-/lighthouse-logger-1.2.0.tgz", 975 | "integrity": "sha512-wzUvdIeJZhRsG6gpZfmSCfysaxNEr43i+QT+Hie94wvHDKFLi4n7C2GqZ4sTC+PH5b5iktmXJvU87rWvhP3lHw==", 976 | "requires": { 977 | "debug": "^2.6.8", 978 | "marky": "^1.2.0" 979 | } 980 | }, 981 | "lodash": { 982 | "version": "4.17.15", 983 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", 984 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" 985 | }, 986 | "lodash.isequal": { 987 | "version": "4.5.0", 988 | "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", 989 | "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=" 990 | }, 991 | "lookup-closest-locale": { 992 | "version": "6.0.4", 993 | "resolved": "https://registry.npmjs.org/lookup-closest-locale/-/lookup-closest-locale-6.0.4.tgz", 994 | "integrity": "sha512-bWoFbSGe6f1GvMGzj17LrwMX4FhDXDwZyH04ySVCPbtOJADcSRguZNKewoJ3Ful/MOxD/wRHvFPadk/kYZUbuQ==" 995 | }, 996 | "lowercase-keys": { 997 | "version": "1.0.1", 998 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 999 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" 1000 | }, 1001 | "lru-cache": { 1002 | "version": "4.1.5", 1003 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", 1004 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", 1005 | "requires": { 1006 | "pseudomap": "^1.0.2", 1007 | "yallist": "^2.1.2" 1008 | } 1009 | }, 1010 | "make-dir": { 1011 | "version": "1.3.0", 1012 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", 1013 | "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", 1014 | "requires": { 1015 | "pify": "^3.0.0" 1016 | } 1017 | }, 1018 | "marky": { 1019 | "version": "1.2.1", 1020 | "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz", 1021 | "integrity": "sha512-md9k+Gxa3qLH6sUKpeC2CNkJK/Ld+bEz5X96nYwloqphQE0CKCVEKco/6jxEZixinqNdz5RFi/KaCyfbMDMAXQ==" 1022 | }, 1023 | "md5": { 1024 | "version": "2.2.1", 1025 | "resolved": "https://registry.npmjs.org/md5/-/md5-2.2.1.tgz", 1026 | "integrity": "sha1-U6s41f48iJG6RlMp6iP6wFQBJvk=", 1027 | "requires": { 1028 | "charenc": "~0.0.1", 1029 | "crypt": "~0.0.1", 1030 | "is-buffer": "~1.1.1" 1031 | } 1032 | }, 1033 | "metaviewport-parser": { 1034 | "version": "0.2.0", 1035 | "resolved": "https://registry.npmjs.org/metaviewport-parser/-/metaviewport-parser-0.2.0.tgz", 1036 | "integrity": "sha1-U1w84cz2IjpQJf3cahw2UF9+fbE=" 1037 | }, 1038 | "micro": { 1039 | "version": "9.3.4", 1040 | "resolved": "https://registry.npmjs.org/micro/-/micro-9.3.4.tgz", 1041 | "integrity": "sha512-smz9naZwTG7qaFnEZ2vn248YZq9XR+XoOH3auieZbkhDL4xLOxiE+KqG8qqnBeKfXA9c1uEFGCxPN1D+nT6N7w==", 1042 | "requires": { 1043 | "arg": "4.1.0", 1044 | "content-type": "1.0.4", 1045 | "is-stream": "1.1.0", 1046 | "raw-body": "2.3.2" 1047 | } 1048 | }, 1049 | "mime": { 1050 | "version": "2.4.4", 1051 | "resolved": "https://registry.npmjs.org/mime/-/mime-2.4.4.tgz", 1052 | "integrity": "sha512-LRxmNwziLPT828z+4YkNzloCFC2YM4wrB99k+AV5ZbEyfGNWfG8SO1FUXLmLDBSo89NrJZ4DIWeLjy1CHGhMGA==" 1053 | }, 1054 | "mime-db": { 1055 | "version": "1.40.0", 1056 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", 1057 | "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==" 1058 | }, 1059 | "mime-types": { 1060 | "version": "2.1.24", 1061 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", 1062 | "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", 1063 | "requires": { 1064 | "mime-db": "1.40.0" 1065 | } 1066 | }, 1067 | "mimic-fn": { 1068 | "version": "1.2.0", 1069 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", 1070 | "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==" 1071 | }, 1072 | "minimatch": { 1073 | "version": "3.0.4", 1074 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1075 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1076 | "requires": { 1077 | "brace-expansion": "^1.1.7" 1078 | } 1079 | }, 1080 | "minimist": { 1081 | "version": "0.0.8", 1082 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 1083 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" 1084 | }, 1085 | "mkdirp": { 1086 | "version": "0.5.1", 1087 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 1088 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 1089 | "requires": { 1090 | "minimist": "0.0.8" 1091 | } 1092 | }, 1093 | "ms": { 1094 | "version": "2.0.0", 1095 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1096 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" 1097 | }, 1098 | "mute-stream": { 1099 | "version": "0.0.7", 1100 | "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", 1101 | "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=" 1102 | }, 1103 | "node-forge": { 1104 | "version": "0.8.5", 1105 | "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.8.5.tgz", 1106 | "integrity": "sha512-vFMQIWt+J/7FLNyKouZ9TazT74PRV3wgv9UT4cRjC8BffxFbKXkgIWR42URCPSnHm/QDz6BOlb2Q0U4+VQT67Q==" 1107 | }, 1108 | "nomnom": { 1109 | "version": "1.8.1", 1110 | "resolved": "https://registry.npmjs.org/nomnom/-/nomnom-1.8.1.tgz", 1111 | "integrity": "sha1-IVH3Ikcrp55Qp2/BJbuMjy5Nwqc=", 1112 | "requires": { 1113 | "chalk": "~0.4.0", 1114 | "underscore": "~1.6.0" 1115 | }, 1116 | "dependencies": { 1117 | "ansi-styles": { 1118 | "version": "1.0.0", 1119 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz", 1120 | "integrity": "sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=" 1121 | }, 1122 | "chalk": { 1123 | "version": "0.4.0", 1124 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz", 1125 | "integrity": "sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=", 1126 | "requires": { 1127 | "ansi-styles": "~1.0.0", 1128 | "has-color": "~0.1.0", 1129 | "strip-ansi": "~0.1.0" 1130 | } 1131 | }, 1132 | "strip-ansi": { 1133 | "version": "0.1.1", 1134 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz", 1135 | "integrity": "sha1-OeipjQRNFQZgq+SmgIrPcLt7yZE=" 1136 | } 1137 | } 1138 | }, 1139 | "npm-run-path": { 1140 | "version": "2.0.2", 1141 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 1142 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 1143 | "requires": { 1144 | "path-key": "^2.0.0" 1145 | } 1146 | }, 1147 | "number-is-nan": { 1148 | "version": "1.0.1", 1149 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1150 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" 1151 | }, 1152 | "oauth-sign": { 1153 | "version": "0.9.0", 1154 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 1155 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" 1156 | }, 1157 | "object-assign": { 1158 | "version": "4.1.1", 1159 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1160 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=" 1161 | }, 1162 | "once": { 1163 | "version": "1.4.0", 1164 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1165 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1166 | "requires": { 1167 | "wrappy": "1" 1168 | } 1169 | }, 1170 | "onetime": { 1171 | "version": "2.0.1", 1172 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", 1173 | "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", 1174 | "requires": { 1175 | "mimic-fn": "^1.0.0" 1176 | } 1177 | }, 1178 | "opn": { 1179 | "version": "4.0.2", 1180 | "resolved": "https://registry.npmjs.org/opn/-/opn-4.0.2.tgz", 1181 | "integrity": "sha1-erwi5kTf9jsKltWrfyeQwPAavJU=", 1182 | "requires": { 1183 | "object-assign": "^4.0.1", 1184 | "pinkie-promise": "^2.0.0" 1185 | } 1186 | }, 1187 | "os-locale": { 1188 | "version": "1.4.0", 1189 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", 1190 | "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", 1191 | "requires": { 1192 | "lcid": "^1.0.0" 1193 | } 1194 | }, 1195 | "os-tmpdir": { 1196 | "version": "1.0.2", 1197 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1198 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" 1199 | }, 1200 | "p-finally": { 1201 | "version": "1.0.0", 1202 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 1203 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" 1204 | }, 1205 | "package-json": { 1206 | "version": "4.0.1", 1207 | "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", 1208 | "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", 1209 | "requires": { 1210 | "got": "^6.7.1", 1211 | "registry-auth-token": "^3.0.1", 1212 | "registry-url": "^3.0.3", 1213 | "semver": "^5.1.0" 1214 | } 1215 | }, 1216 | "parse-cache-control": { 1217 | "version": "1.0.1", 1218 | "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz", 1219 | "integrity": "sha1-juqz5U+laSD+Fro493+iGqzC104=" 1220 | }, 1221 | "path-is-absolute": { 1222 | "version": "1.0.1", 1223 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1224 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" 1225 | }, 1226 | "path-is-inside": { 1227 | "version": "1.0.2", 1228 | "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", 1229 | "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=" 1230 | }, 1231 | "path-key": { 1232 | "version": "2.0.1", 1233 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 1234 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" 1235 | }, 1236 | "pend": { 1237 | "version": "1.2.0", 1238 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", 1239 | "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=" 1240 | }, 1241 | "performance-now": { 1242 | "version": "2.1.0", 1243 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 1244 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" 1245 | }, 1246 | "pify": { 1247 | "version": "3.0.0", 1248 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 1249 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" 1250 | }, 1251 | "pinkie": { 1252 | "version": "2.0.4", 1253 | "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", 1254 | "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=" 1255 | }, 1256 | "pinkie-promise": { 1257 | "version": "2.0.1", 1258 | "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", 1259 | "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", 1260 | "requires": { 1261 | "pinkie": "^2.0.0" 1262 | } 1263 | }, 1264 | "prepend-http": { 1265 | "version": "1.0.4", 1266 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", 1267 | "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=" 1268 | }, 1269 | "process-nextick-args": { 1270 | "version": "2.0.1", 1271 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1272 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" 1273 | }, 1274 | "progress": { 1275 | "version": "2.0.3", 1276 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1277 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==" 1278 | }, 1279 | "proxy-from-env": { 1280 | "version": "1.0.0", 1281 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.0.0.tgz", 1282 | "integrity": "sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=" 1283 | }, 1284 | "pseudomap": { 1285 | "version": "1.0.2", 1286 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 1287 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" 1288 | }, 1289 | "psl": { 1290 | "version": "1.1.33", 1291 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.1.33.tgz", 1292 | "integrity": "sha512-LTDP2uSrsc7XCb5lO7A8BI1qYxRe/8EqlRvMeEl6rsnYAqDOl8xHR+8lSAIVfrNaSAlTPTNOCgNjWcoUL3AZsw==" 1293 | }, 1294 | "punycode": { 1295 | "version": "2.1.1", 1296 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1297 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" 1298 | }, 1299 | "puppeteer-core": { 1300 | "version": "1.15.0", 1301 | "resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-1.15.0.tgz", 1302 | "integrity": "sha512-AH82x8Tx0/JkubeF6U12y8SuVB5vFgsw8lt/Ox5MhXaAktREFiotCTq324U2nPtJUnh2A8yJciDnzAmhbHidqQ==", 1303 | "requires": { 1304 | "debug": "^4.1.0", 1305 | "extract-zip": "^1.6.6", 1306 | "https-proxy-agent": "^2.2.1", 1307 | "mime": "^2.0.3", 1308 | "progress": "^2.0.1", 1309 | "proxy-from-env": "^1.0.0", 1310 | "rimraf": "^2.6.1", 1311 | "ws": "^6.1.0" 1312 | }, 1313 | "dependencies": { 1314 | "debug": { 1315 | "version": "4.1.1", 1316 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 1317 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 1318 | "requires": { 1319 | "ms": "^2.1.1" 1320 | } 1321 | }, 1322 | "ms": { 1323 | "version": "2.1.2", 1324 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1325 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" 1326 | }, 1327 | "ws": { 1328 | "version": "6.2.1", 1329 | "resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz", 1330 | "integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==", 1331 | "requires": { 1332 | "async-limiter": "~1.0.0" 1333 | } 1334 | } 1335 | } 1336 | }, 1337 | "qs": { 1338 | "version": "6.5.2", 1339 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 1340 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" 1341 | }, 1342 | "raven": { 1343 | "version": "2.6.4", 1344 | "resolved": "https://registry.npmjs.org/raven/-/raven-2.6.4.tgz", 1345 | "integrity": "sha512-6PQdfC4+DQSFncowthLf+B6Hr0JpPsFBgTVYTAOq7tCmx/kR4SXbeawtPch20+3QfUcQDoJBLjWW1ybvZ4kXTw==", 1346 | "requires": { 1347 | "cookie": "0.3.1", 1348 | "md5": "^2.2.1", 1349 | "stack-trace": "0.0.10", 1350 | "timed-out": "4.0.1", 1351 | "uuid": "3.3.2" 1352 | } 1353 | }, 1354 | "raw-body": { 1355 | "version": "2.3.2", 1356 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.3.2.tgz", 1357 | "integrity": "sha1-vNYMd9Prk83gBQKVw/N5OJvIj4k=", 1358 | "requires": { 1359 | "bytes": "3.0.0", 1360 | "http-errors": "1.6.2", 1361 | "iconv-lite": "0.4.19", 1362 | "unpipe": "1.0.0" 1363 | }, 1364 | "dependencies": { 1365 | "iconv-lite": { 1366 | "version": "0.4.19", 1367 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", 1368 | "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==" 1369 | } 1370 | } 1371 | }, 1372 | "rc": { 1373 | "version": "1.2.8", 1374 | "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", 1375 | "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", 1376 | "requires": { 1377 | "deep-extend": "^0.6.0", 1378 | "ini": "~1.3.0", 1379 | "minimist": "^1.2.0", 1380 | "strip-json-comments": "~2.0.1" 1381 | }, 1382 | "dependencies": { 1383 | "minimist": { 1384 | "version": "1.2.0", 1385 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", 1386 | "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=" 1387 | } 1388 | } 1389 | }, 1390 | "rdf-canonize": { 1391 | "version": "1.0.3", 1392 | "resolved": "https://registry.npmjs.org/rdf-canonize/-/rdf-canonize-1.0.3.tgz", 1393 | "integrity": "sha512-piLMOB5Q6LJSVx2XzmdpHktYVb8TmVTy8coXJBFtdkcMC96DknZOuzpAYqCWx2ERZX7xEW+mMi8/wDuMJS/95w==", 1394 | "requires": { 1395 | "node-forge": "^0.8.1", 1396 | "semver": "^5.6.0" 1397 | } 1398 | }, 1399 | "readable-stream": { 1400 | "version": "2.3.6", 1401 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 1402 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", 1403 | "requires": { 1404 | "core-util-is": "~1.0.0", 1405 | "inherits": "~2.0.3", 1406 | "isarray": "~1.0.0", 1407 | "process-nextick-args": "~2.0.0", 1408 | "safe-buffer": "~5.1.1", 1409 | "string_decoder": "~1.1.1", 1410 | "util-deprecate": "~1.0.1" 1411 | } 1412 | }, 1413 | "registry-auth-token": { 1414 | "version": "3.4.0", 1415 | "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.4.0.tgz", 1416 | "integrity": "sha512-4LM6Fw8eBQdwMYcES4yTnn2TqIasbXuwDx3um+QRs7S55aMKCBKBxvPXl2RiUjHwuJLTyYfxSpmfSAjQpcuP+A==", 1417 | "requires": { 1418 | "rc": "^1.1.6", 1419 | "safe-buffer": "^5.0.1" 1420 | } 1421 | }, 1422 | "registry-url": { 1423 | "version": "3.1.0", 1424 | "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", 1425 | "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", 1426 | "requires": { 1427 | "rc": "^1.0.1" 1428 | } 1429 | }, 1430 | "request": { 1431 | "version": "2.88.0", 1432 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", 1433 | "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", 1434 | "requires": { 1435 | "aws-sign2": "~0.7.0", 1436 | "aws4": "^1.8.0", 1437 | "caseless": "~0.12.0", 1438 | "combined-stream": "~1.0.6", 1439 | "extend": "~3.0.2", 1440 | "forever-agent": "~0.6.1", 1441 | "form-data": "~2.3.2", 1442 | "har-validator": "~5.1.0", 1443 | "http-signature": "~1.2.0", 1444 | "is-typedarray": "~1.0.0", 1445 | "isstream": "~0.1.2", 1446 | "json-stringify-safe": "~5.0.1", 1447 | "mime-types": "~2.1.19", 1448 | "oauth-sign": "~0.9.0", 1449 | "performance-now": "^2.1.0", 1450 | "qs": "~6.5.2", 1451 | "safe-buffer": "^5.1.2", 1452 | "tough-cookie": "~2.4.3", 1453 | "tunnel-agent": "^0.6.0", 1454 | "uuid": "^3.3.2" 1455 | } 1456 | }, 1457 | "restore-cursor": { 1458 | "version": "2.0.0", 1459 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", 1460 | "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", 1461 | "requires": { 1462 | "onetime": "^2.0.0", 1463 | "signal-exit": "^3.0.2" 1464 | } 1465 | }, 1466 | "rimraf": { 1467 | "version": "2.6.3", 1468 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", 1469 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", 1470 | "requires": { 1471 | "glob": "^7.1.3" 1472 | } 1473 | }, 1474 | "robots-parser": { 1475 | "version": "2.1.1", 1476 | "resolved": "https://registry.npmjs.org/robots-parser/-/robots-parser-2.1.1.tgz", 1477 | "integrity": "sha512-6yWEYSdhK3bAEcYY0In3wgSBK70BiQoJArzdjZKCP/35b3gKIYu5Lc0qQqsoxjoLVebVoJiKK4VWGc5+oxvWBQ==" 1478 | }, 1479 | "run-async": { 1480 | "version": "2.3.0", 1481 | "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", 1482 | "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", 1483 | "requires": { 1484 | "is-promise": "^2.1.0" 1485 | } 1486 | }, 1487 | "rx-lite": { 1488 | "version": "4.0.8", 1489 | "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", 1490 | "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=" 1491 | }, 1492 | "rx-lite-aggregates": { 1493 | "version": "4.0.8", 1494 | "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", 1495 | "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", 1496 | "requires": { 1497 | "rx-lite": "*" 1498 | } 1499 | }, 1500 | "safe-buffer": { 1501 | "version": "5.1.2", 1502 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1503 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" 1504 | }, 1505 | "safer-buffer": { 1506 | "version": "2.1.2", 1507 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1508 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" 1509 | }, 1510 | "semver": { 1511 | "version": "5.7.0", 1512 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", 1513 | "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==" 1514 | }, 1515 | "semver-diff": { 1516 | "version": "2.1.0", 1517 | "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", 1518 | "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", 1519 | "requires": { 1520 | "semver": "^5.0.3" 1521 | } 1522 | }, 1523 | "setprototypeof": { 1524 | "version": "1.0.3", 1525 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.3.tgz", 1526 | "integrity": "sha1-ZlZ+NwQ+608E2RvWWMDL77VbjgQ=" 1527 | }, 1528 | "shebang-command": { 1529 | "version": "1.2.0", 1530 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 1531 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 1532 | "requires": { 1533 | "shebang-regex": "^1.0.0" 1534 | } 1535 | }, 1536 | "shebang-regex": { 1537 | "version": "1.0.0", 1538 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 1539 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" 1540 | }, 1541 | "signal-exit": { 1542 | "version": "3.0.2", 1543 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 1544 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" 1545 | }, 1546 | "speedline-core": { 1547 | "version": "1.4.2", 1548 | "resolved": "https://registry.npmjs.org/speedline-core/-/speedline-core-1.4.2.tgz", 1549 | "integrity": "sha512-9/5CApkKKl6bS6jJ2D0DQllwz/1xq3cyJCR6DLgAQnkj5djCuq8NbflEdD2TI01p8qzS9qaKjzxM9cHT11ezmg==", 1550 | "requires": { 1551 | "@types/node": "*", 1552 | "image-ssim": "^0.2.0", 1553 | "jpeg-js": "^0.1.2" 1554 | } 1555 | }, 1556 | "sshpk": { 1557 | "version": "1.16.1", 1558 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", 1559 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", 1560 | "requires": { 1561 | "asn1": "~0.2.3", 1562 | "assert-plus": "^1.0.0", 1563 | "bcrypt-pbkdf": "^1.0.0", 1564 | "dashdash": "^1.12.0", 1565 | "ecc-jsbn": "~0.1.1", 1566 | "getpass": "^0.1.1", 1567 | "jsbn": "~0.1.0", 1568 | "safer-buffer": "^2.0.2", 1569 | "tweetnacl": "~0.14.0" 1570 | } 1571 | }, 1572 | "stack-trace": { 1573 | "version": "0.0.10", 1574 | "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", 1575 | "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=" 1576 | }, 1577 | "statuses": { 1578 | "version": "1.5.0", 1579 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1580 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=" 1581 | }, 1582 | "string-width": { 1583 | "version": "2.1.1", 1584 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 1585 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 1586 | "requires": { 1587 | "is-fullwidth-code-point": "^2.0.0", 1588 | "strip-ansi": "^4.0.0" 1589 | } 1590 | }, 1591 | "string_decoder": { 1592 | "version": "1.1.1", 1593 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1594 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1595 | "requires": { 1596 | "safe-buffer": "~5.1.0" 1597 | } 1598 | }, 1599 | "strip-ansi": { 1600 | "version": "4.0.0", 1601 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 1602 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 1603 | "requires": { 1604 | "ansi-regex": "^3.0.0" 1605 | } 1606 | }, 1607 | "strip-eof": { 1608 | "version": "1.0.0", 1609 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 1610 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" 1611 | }, 1612 | "strip-json-comments": { 1613 | "version": "2.0.1", 1614 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 1615 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" 1616 | }, 1617 | "supports-color": { 1618 | "version": "5.5.0", 1619 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1620 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1621 | "requires": { 1622 | "has-flag": "^3.0.0" 1623 | } 1624 | }, 1625 | "term-size": { 1626 | "version": "1.2.0", 1627 | "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", 1628 | "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", 1629 | "requires": { 1630 | "execa": "^0.7.0" 1631 | } 1632 | }, 1633 | "through": { 1634 | "version": "2.3.8", 1635 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1636 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" 1637 | }, 1638 | "timed-out": { 1639 | "version": "4.0.1", 1640 | "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", 1641 | "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=" 1642 | }, 1643 | "tmp": { 1644 | "version": "0.0.33", 1645 | "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", 1646 | "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", 1647 | "requires": { 1648 | "os-tmpdir": "~1.0.2" 1649 | } 1650 | }, 1651 | "tough-cookie": { 1652 | "version": "2.4.3", 1653 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", 1654 | "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", 1655 | "requires": { 1656 | "psl": "^1.1.24", 1657 | "punycode": "^1.4.1" 1658 | }, 1659 | "dependencies": { 1660 | "punycode": { 1661 | "version": "1.4.1", 1662 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 1663 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" 1664 | } 1665 | } 1666 | }, 1667 | "tunnel-agent": { 1668 | "version": "0.6.0", 1669 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 1670 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 1671 | "requires": { 1672 | "safe-buffer": "^5.0.1" 1673 | } 1674 | }, 1675 | "tweetnacl": { 1676 | "version": "0.14.5", 1677 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 1678 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" 1679 | }, 1680 | "typedarray": { 1681 | "version": "0.0.6", 1682 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 1683 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=" 1684 | }, 1685 | "ultron": { 1686 | "version": "1.1.1", 1687 | "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", 1688 | "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==" 1689 | }, 1690 | "underscore": { 1691 | "version": "1.6.0", 1692 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", 1693 | "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=" 1694 | }, 1695 | "unique-string": { 1696 | "version": "1.0.0", 1697 | "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", 1698 | "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", 1699 | "requires": { 1700 | "crypto-random-string": "^1.0.0" 1701 | } 1702 | }, 1703 | "unpipe": { 1704 | "version": "1.0.0", 1705 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1706 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=" 1707 | }, 1708 | "unzip-response": { 1709 | "version": "2.0.1", 1710 | "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", 1711 | "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=" 1712 | }, 1713 | "update-notifier": { 1714 | "version": "2.5.0", 1715 | "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz", 1716 | "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", 1717 | "requires": { 1718 | "boxen": "^1.2.1", 1719 | "chalk": "^2.0.1", 1720 | "configstore": "^3.0.0", 1721 | "import-lazy": "^2.1.0", 1722 | "is-ci": "^1.0.10", 1723 | "is-installed-globally": "^0.1.0", 1724 | "is-npm": "^1.0.0", 1725 | "latest-version": "^3.0.0", 1726 | "semver-diff": "^2.0.0", 1727 | "xdg-basedir": "^3.0.0" 1728 | } 1729 | }, 1730 | "uri-js": { 1731 | "version": "4.2.2", 1732 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 1733 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 1734 | "requires": { 1735 | "punycode": "^2.1.0" 1736 | } 1737 | }, 1738 | "url-parse-lax": { 1739 | "version": "1.0.0", 1740 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", 1741 | "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", 1742 | "requires": { 1743 | "prepend-http": "^1.0.1" 1744 | } 1745 | }, 1746 | "util-deprecate": { 1747 | "version": "1.0.2", 1748 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1749 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" 1750 | }, 1751 | "uuid": { 1752 | "version": "3.3.2", 1753 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", 1754 | "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==" 1755 | }, 1756 | "verror": { 1757 | "version": "1.10.0", 1758 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 1759 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 1760 | "requires": { 1761 | "assert-plus": "^1.0.0", 1762 | "core-util-is": "1.0.2", 1763 | "extsprintf": "^1.2.0" 1764 | } 1765 | }, 1766 | "which": { 1767 | "version": "1.3.1", 1768 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1769 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1770 | "requires": { 1771 | "isexe": "^2.0.0" 1772 | } 1773 | }, 1774 | "widest-line": { 1775 | "version": "2.0.1", 1776 | "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz", 1777 | "integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==", 1778 | "requires": { 1779 | "string-width": "^2.1.1" 1780 | } 1781 | }, 1782 | "window-size": { 1783 | "version": "0.1.4", 1784 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", 1785 | "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=" 1786 | }, 1787 | "wrap-ansi": { 1788 | "version": "2.1.0", 1789 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 1790 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 1791 | "requires": { 1792 | "string-width": "^1.0.1", 1793 | "strip-ansi": "^3.0.1" 1794 | }, 1795 | "dependencies": { 1796 | "ansi-regex": { 1797 | "version": "2.1.1", 1798 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 1799 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 1800 | }, 1801 | "is-fullwidth-code-point": { 1802 | "version": "1.0.0", 1803 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1804 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1805 | "requires": { 1806 | "number-is-nan": "^1.0.0" 1807 | } 1808 | }, 1809 | "string-width": { 1810 | "version": "1.0.2", 1811 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 1812 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 1813 | "requires": { 1814 | "code-point-at": "^1.0.0", 1815 | "is-fullwidth-code-point": "^1.0.0", 1816 | "strip-ansi": "^3.0.0" 1817 | } 1818 | }, 1819 | "strip-ansi": { 1820 | "version": "3.0.1", 1821 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1822 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 1823 | "requires": { 1824 | "ansi-regex": "^2.0.0" 1825 | } 1826 | } 1827 | } 1828 | }, 1829 | "wrappy": { 1830 | "version": "1.0.2", 1831 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1832 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" 1833 | }, 1834 | "write-file-atomic": { 1835 | "version": "2.4.3", 1836 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz", 1837 | "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", 1838 | "requires": { 1839 | "graceful-fs": "^4.1.11", 1840 | "imurmurhash": "^0.1.4", 1841 | "signal-exit": "^3.0.2" 1842 | } 1843 | }, 1844 | "ws": { 1845 | "version": "3.3.2", 1846 | "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.2.tgz", 1847 | "integrity": "sha512-t+WGpsNxhMR4v6EClXS8r8km5ZljKJzyGhJf7goJz9k5Ye3+b5Bvno5rjqPuIBn5mnn5GBb7o8IrIWHxX1qOLQ==", 1848 | "requires": { 1849 | "async-limiter": "~1.0.0", 1850 | "safe-buffer": "~5.1.0", 1851 | "ultron": "~1.1.0" 1852 | } 1853 | }, 1854 | "xdg-basedir": { 1855 | "version": "3.0.0", 1856 | "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", 1857 | "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=" 1858 | }, 1859 | "xmldom": { 1860 | "version": "0.1.19", 1861 | "resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.19.tgz", 1862 | "integrity": "sha1-Yx/Ad3bv2EEYvyUXGzftTQdaCrw=" 1863 | }, 1864 | "y18n": { 1865 | "version": "3.2.1", 1866 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", 1867 | "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" 1868 | }, 1869 | "yallist": { 1870 | "version": "2.1.2", 1871 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 1872 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" 1873 | }, 1874 | "yargs": { 1875 | "version": "3.32.0", 1876 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", 1877 | "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", 1878 | "requires": { 1879 | "camelcase": "^2.0.1", 1880 | "cliui": "^3.0.3", 1881 | "decamelize": "^1.1.1", 1882 | "os-locale": "^1.4.0", 1883 | "string-width": "^1.0.1", 1884 | "window-size": "^0.1.4", 1885 | "y18n": "^3.2.0" 1886 | }, 1887 | "dependencies": { 1888 | "ansi-regex": { 1889 | "version": "2.1.1", 1890 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 1891 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" 1892 | }, 1893 | "camelcase": { 1894 | "version": "2.1.1", 1895 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", 1896 | "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" 1897 | }, 1898 | "is-fullwidth-code-point": { 1899 | "version": "1.0.0", 1900 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1901 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1902 | "requires": { 1903 | "number-is-nan": "^1.0.0" 1904 | } 1905 | }, 1906 | "string-width": { 1907 | "version": "1.0.2", 1908 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 1909 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 1910 | "requires": { 1911 | "code-point-at": "^1.0.0", 1912 | "is-fullwidth-code-point": "^1.0.0", 1913 | "strip-ansi": "^3.0.0" 1914 | } 1915 | }, 1916 | "strip-ansi": { 1917 | "version": "3.0.1", 1918 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1919 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 1920 | "requires": { 1921 | "ansi-regex": "^2.0.0" 1922 | } 1923 | } 1924 | } 1925 | }, 1926 | "yargs-parser": { 1927 | "version": "7.0.0", 1928 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", 1929 | "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", 1930 | "requires": { 1931 | "camelcase": "^4.1.0" 1932 | } 1933 | }, 1934 | "yauzl": { 1935 | "version": "2.4.1", 1936 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", 1937 | "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", 1938 | "requires": { 1939 | "fd-slicer": "~1.0.1" 1940 | } 1941 | } 1942 | } 1943 | } 1944 | --------------------------------------------------------------------------------