browserless 9.7.0 → 9.7.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md CHANGED
File without changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "browserless",
3
3
  "description": "The headless Chrome/Chromium performance driver for Node.js",
4
4
  "homepage": "https://browserless.js.org",
5
- "version": "9.7.0",
5
+ "version": "9.7.1-beta.0",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -53,14 +53,13 @@
53
53
  "files": [
54
54
  "src"
55
55
  ],
56
- "scripts": {
57
- "test": "ava"
58
- },
59
56
  "license": "MIT",
60
57
  "ava": {
61
58
  "serial": true,
62
59
  "timeout": "30s",
63
60
  "verbose": true
64
61
  },
65
- "gitHead": "4da0a992dd779d5b7a6cc8a0bb8f9e918808f6e1"
66
- }
62
+ "scripts": {
63
+ "test": "ava"
64
+ }
65
+ }
package/src/index.js CHANGED
@@ -24,8 +24,13 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
24
24
  let isClosed = false
25
25
 
26
26
  const close = opts => {
27
+ debug('close', { isClosed })
27
28
  isClosed = true
28
- return browserProcessPromise.then(browserProcess => driver.close(browserProcess, opts))
29
+ return browserProcessPromise
30
+ .then(browserProcess => driver.close(browserProcess, opts))
31
+ .catch(error => {
32
+ throw ensureError(error)
33
+ })
29
34
  }
30
35
 
31
36
  const respawn = () =>