browserless 9.12.1 → 9.12.2

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.12.1",
5
+ "version": "9.12.2",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -45,7 +45,8 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@browserless/test": "^9.11.0",
48
- "ava": "latest"
48
+ "ava": "latest",
49
+ "ps-list": "7"
49
50
  },
50
51
  "engines": {
51
52
  "node": ">= 12"
@@ -53,14 +54,14 @@
53
54
  "files": [
54
55
  "src"
55
56
  ],
57
+ "scripts": {
58
+ "test": "ava"
59
+ },
56
60
  "license": "MIT",
57
61
  "ava": {
58
62
  "serial": true,
59
63
  "timeout": "30s",
60
64
  "workerThreads": false
61
65
  },
62
- "gitHead": "5c0063a7426efea722a67aa6e43f0e988a3c8957",
63
- "scripts": {
64
- "test": "ava"
65
- }
66
+ "gitHead": "39fe018b091749f5132a70d2644d500696878172"
66
67
  }
package/src/index.js CHANGED
@@ -24,7 +24,9 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
24
24
 
25
25
  const close = opts => {
26
26
  isClosed = true
27
- return browserProcessPromise.then(browserProcess => driver.close(browserProcess, opts))
27
+ return browserProcessPromise
28
+ .then(browserProcess => driver.close(browserProcess, opts))
29
+ .catch(() => {})
28
30
  }
29
31
 
30
32
  const respawn = () =>