browserless 12.0.0 → 13.0.7
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 +0 -0
- package/package.json +11 -11
- package/src/index.js +2 -1
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 driver on top of Puppeteer. Take screenshots, generate PDFs, extract text and HTML with a production-ready API.",
|
|
4
4
|
"homepage": "https://browserless.js.org",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "13.0.7",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"main": "src/index.js",
|
|
8
8
|
"author": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"web-scraping"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@browserless/errors": "^
|
|
39
|
-
"@browserless/goto": "^
|
|
40
|
-
"@browserless/pdf": "^
|
|
41
|
-
"@browserless/screenshot": "^
|
|
38
|
+
"@browserless/errors": "^13.0.0",
|
|
39
|
+
"@browserless/goto": "^13.0.7",
|
|
40
|
+
"@browserless/pdf": "^13.0.7",
|
|
41
|
+
"@browserless/screenshot": "^13.0.7",
|
|
42
42
|
"debug-logfmt": "~1.4.10",
|
|
43
43
|
"kill-process-group": "~1.0.13",
|
|
44
44
|
"p-reflect": "~2.1.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"superlock": "~1.2.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@browserless/test": "
|
|
51
|
+
"@browserless/test": "13.0.7",
|
|
52
52
|
"ava": "5",
|
|
53
53
|
"ps-list": "7",
|
|
54
54
|
"puppeteer": "25",
|
|
@@ -61,14 +61,14 @@
|
|
|
61
61
|
"index.d.ts",
|
|
62
62
|
"src"
|
|
63
63
|
],
|
|
64
|
+
"scripts": {
|
|
65
|
+
"test": "ava"
|
|
66
|
+
},
|
|
64
67
|
"license": "MIT",
|
|
65
68
|
"ava": {
|
|
66
69
|
"serial": true,
|
|
67
70
|
"timeout": "2m",
|
|
68
71
|
"workerThreads": false
|
|
69
72
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
-
|
|
72
|
-
"test": "ava"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
73
|
+
"gitHead": "c655760210b1ed828c40ac52c1c0b6a9f7d66362"
|
|
74
|
+
}
|
package/src/index.js
CHANGED
|
@@ -147,7 +147,8 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
|
|
|
147
147
|
debug('onFailedAttempt', { name: error.name, code: error.code, isRejected })
|
|
148
148
|
if (error.name === 'AbortError') throw error
|
|
149
149
|
if (isRejected || isDestroyedForced) throw new AbortError()
|
|
150
|
-
const isRetryable =
|
|
150
|
+
const isRetryable =
|
|
151
|
+
error.code === 'EBRWSRCONTEXTCONNRESET' || error.code === 'EPROTOCOL'
|
|
151
152
|
if (!isRetryable) throw error
|
|
152
153
|
_contextPromise = createBrowserContext(contextOpts)
|
|
153
154
|
const { message, attemptNumber, retriesLeft } = error
|