browserless 9.11.0 → 9.11.1-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/package.json +1 -2
- package/src/index.js +1 -1
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.11.0",
|
|
5
|
+
"version": "9.11.1-0",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -60,7 +60,6 @@
|
|
|
60
60
|
"timeout": "30s",
|
|
61
61
|
"workerThreads": false
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "9e24768346df1dda9df4be065137deb1783c37c3",
|
|
64
63
|
"scripts": {
|
|
65
64
|
"test": "ava"
|
|
66
65
|
}
|
package/src/index.js
CHANGED
|
@@ -119,7 +119,7 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
|
|
|
119
119
|
try {
|
|
120
120
|
page = await createPage(args)
|
|
121
121
|
const close = () => closePage(page)
|
|
122
|
-
onCancel(close)
|
|
122
|
+
if (!isRejected) onCancel(close)
|
|
123
123
|
setTimeout(close, timeout).unref()
|
|
124
124
|
const value = await fn(page)(...args)
|
|
125
125
|
await closePage(page)
|