Update to puppeteer@1.11.0

This commit is contained in:
Jon Buckley 2018-12-19 11:41:25 -05:00
parent a6c78470ea
commit b7d1d6a632
No known key found for this signature in database
GPG Key ID: D2DEBA949CE8654A
3 changed files with 33 additions and 11 deletions

35
package-lock.json generated
View File

@ -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"

View File

@ -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",

View File

@ -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);