From b7d1d6a632c7679a4c8e9a940b234fdef1092ceb Mon Sep 17 00:00:00 2001 From: Jon Buckley Date: Wed, 19 Dec 2018 11:41:25 -0500 Subject: [PATCH] Update to puppeteer@1.11.0 --- package-lock.json | 35 ++++++++++++++++++++++++++--------- package.json | 2 +- test/frontend/runner.js | 7 ++++++- 3 files changed, 33 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9f5b72fc..6e67aa43 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14408,19 +14408,36 @@ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" }, "puppeteer": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-1.10.0.tgz", - "integrity": "sha512-3i28X/ucX8t3eL4TZA60FLMOQNKqudFSOGDHr0cT7T4dE027CrcS885aAqjdxNybhMPliM5yImNsKJ6SQrPzhw==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-1.11.0.tgz", + "integrity": "sha512-iG4iMOHixc2EpzqRV+pv7o3GgmU2dNYEMkvKwSaQO/vMZURakwSOn/EYJ6OIRFYOque1qorzIBvrytPIQB3YzQ==", "dev": true, "requires": { - "debug": "^3.1.0", + "debug": "^4.1.0", "extract-zip": "^1.6.6", "https-proxy-agent": "^2.2.1", "mime": "^2.0.3", - "progress": "^2.0.0", + "progress": "^2.0.1", "proxy-from-env": "^1.0.0", "rimraf": "^2.6.1", - "ws": "^5.1.1" + "ws": "^6.1.0" + }, + "dependencies": { + "debug": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.0.tgz", + "integrity": "sha512-heNPJUJIqC+xB6ayLAMHaIrmN9HKa7aQO8MGqKpvCA+uJYVcvR6l5kgdrhRuwPFHU7P5/A1w0BjByPHwpfTDKg==", + "dev": true, + "requires": { + "ms": "^2.1.1" + } + }, + "ms": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", + "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", + "dev": true + } } }, "q": { @@ -17664,9 +17681,9 @@ } }, "ws": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.2.tgz", - "integrity": "sha512-jaHFD6PFv6UgoIVda6qZllptQsMlDEJkTQcybzzXDYM1XO9Y8em691FGMPmM46WGyLU4z9KMgQN+qrux/nhlHA==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-6.1.2.tgz", + "integrity": "sha512-rfUqzvz0WxmSXtJpPMX2EeASXabOrSMk1ruMOV3JBTBjo4ac2lDjGGsbQSyxj8Odhw5fBib8ZKEjDNvgouNKYw==", "dev": true, "requires": { "async-limiter": "~1.0.0" diff --git a/package.json b/package.json index 39e9c6b7..7e4338ea 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "postcss-loader": "^2.1.6", "prettier": "^1.15.2", "proxyquire": "^1.8.0", - "puppeteer": "^1.10.0", + "puppeteer": "^1.11.0", "raven-js": "^3.27.0", "redis-mock": "^0.21.0", "require-from-string": "^2.0.2", diff --git a/test/frontend/runner.js b/test/frontend/runner.js index d474b2d8..236e3722 100644 --- a/test/frontend/runner.js +++ b/test/frontend/runner.js @@ -23,7 +23,12 @@ function onConsole(msg) { const server = app.listen(async function() { let exitCode = -1; - const browser = await puppeteer.launch(); + const browser = await puppeteer.launch({ + args: [ + // puppeteer >= 1.10.0 crashes on Circle CI without this flag set + '--no-sandbox' + ] + }); try { const page = await browser.newPage(); page.on('console', onConsole);