Verified Commit 17a6a393 authored by Aral Balkan's avatar Aral Balkan
Browse files

Detects and gracefully handles browser disconnection

  - Current behaviour: exit on disconnection
  - Upgraded Puppeteer to ^0.13.0 to support disconnection event
parent 6d7bfa13
......@@ -315,6 +315,11 @@ prepareInspections = if isLocalInquiry then prepareInspectionsForLocalInquiry()
# TODO: look into this.
#
(puppeteer.launch args: ['--remote-debugging-port=9222']).then (browser) ->
browser.on "disconnected", ->
console.log "\n\n\n\n\n 💀 Browser disconnected. Exiting.\n\n"
process.exit 1
prepareInspections.then (inspections) ->
Promise.mapSeries(inspections, ((inspection) -> return inspection().reflect()), {concurrency: 1})
.then (inspection) ->
......
......@@ -25,9 +25,9 @@
"integrity": "sha1-VWJRm8eWPKyoq/fxKMrjtZTUHQY="
},
"agent-base": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.1.1.tgz",
"integrity": "sha512-yWGUUmCZD/33IRjG2It94PzixT8lX+47Uq8fjmd0cgQWITCMrJuXFaVIMnGDmDnZGGKAGdwTx8UGeU8lMR2urA==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.1.2.tgz",
"integrity": "sha512-VE6QoEdaugY86BohRtfGmTDabxdU5sCKOkbcPA6PXKJsRzEi/7A3RCTxJal1ft/4qSfPht5/iQLhMh/wzSkkNw==",
"requires": {
"es6-promisify": "5.0.0"
}
......@@ -197,24 +197,16 @@
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ="
},
"extract-zip": {
"version": "1.6.5",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.5.tgz",
"integrity": "sha1-maBnNbbqIOqbcF13ms/8yHz/BEA=",
"version": "1.6.6",
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.6.tgz",
"integrity": "sha1-EpDt6NINCHK0Kf0/NRyhKOxe+Fw=",
"requires": {
"concat-stream": "1.6.0",
"debug": "2.2.0",
"debug": "2.6.9",
"mkdirp": "0.5.0",
"yauzl": "2.4.1"
},
"dependencies": {
"debug": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz",
"integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=",
"requires": {
"ms": "0.7.1"
}
},
"minimist": {
"version": "0.0.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
......@@ -227,11 +219,6 @@
"requires": {
"minimist": "0.0.8"
}
},
"ms": {
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz",
"integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg="
}
}
},
......@@ -409,12 +396,22 @@
}
},
"https-proxy-agent": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.1.0.tgz",
"integrity": "sha512-/DTVSUCbRc6AiyOV4DBRvPDpKKCJh4qQJNaCgypX0T41quD9hp/PB5iUyx/60XobuMPQa9ce1jNV9UOUq6PnTg==",
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.1.1.tgz",
"integrity": "sha512-LK6tQUR/VOkTI6ygAfWUKKP95I+e6M1h7N3PncGu1CATHCnex+CAv9ttR0lbHu1Uk2PXm/WoAHFo6JCGwMjVMw==",
"requires": {
"agent-base": "4.1.1",
"debug": "2.6.9"
"agent-base": "4.1.2",
"debug": "3.1.0"
},
"dependencies": {
"debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "2.0.0"
}
}
}
},
"inflight": {
......@@ -465,9 +462,9 @@
}
},
"mime": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
"integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ=="
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
"integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="
},
"minimatch": {
"version": "3.0.4",
......@@ -636,14 +633,14 @@
"integrity": "sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4="
},
"puppeteer": {
"version": "0.12.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-0.12.0.tgz",
"integrity": "sha512-H/bylN7FccwbN7JZoSP+xRozxgJEDNy4uC4p727cyttKUVNXYjFuEMueJYHW0pblnrfLEH341SyFJVWhJMLxKQ==",
"version": "0.13.0",
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-0.13.0.tgz",
"integrity": "sha512-M52SA/WmW54YMLzFtCLGslhr9tntzfTgJIZnx3QnaDXn9F5q2BlTosywSBEKj8aVVd6al0WNfiu14MUQW3wjaw==",
"requires": {
"debug": "2.6.9",
"extract-zip": "1.6.5",
"https-proxy-agent": "2.1.0",
"mime": "1.4.1",
"extract-zip": "1.6.6",
"https-proxy-agent": "2.1.1",
"mime": "1.6.0",
"progress": "2.0.0",
"proxy-from-env": "1.0.0",
"rimraf": "2.6.2",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment