browserless 10.7.4 → 10.7.6
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 +6 -6
- package/src/index.js +10 -2
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": "10.7.
|
|
5
|
+
"version": "10.7.6",
|
|
6
6
|
"main": "src/index.js",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@browserless/errors": "^10.7.1",
|
|
35
|
-
"@browserless/goto": "^10.7.
|
|
36
|
-
"@browserless/pdf": "^10.7.
|
|
37
|
-
"@browserless/screenshot": "^10.7.
|
|
35
|
+
"@browserless/goto": "^10.7.6",
|
|
36
|
+
"@browserless/pdf": "^10.7.6",
|
|
37
|
+
"@browserless/screenshot": "^10.7.6",
|
|
38
38
|
"debug-logfmt": "~1.2.3",
|
|
39
39
|
"kill-process-group": "~1.0.11",
|
|
40
40
|
"p-reflect": "~2.1.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"superlock": "~1.2.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@browserless/test": "^10.7.
|
|
47
|
+
"@browserless/test": "^10.7.6",
|
|
48
48
|
"ava": "5",
|
|
49
49
|
"ps-list": "7",
|
|
50
50
|
"tinyspawn": "latest"
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"timeout": "2m",
|
|
65
65
|
"workerThreads": false
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "c13e129a1a20b78a0391aedc349dad90136adb6e"
|
|
68
68
|
}
|
package/src/index.js
CHANGED
|
@@ -84,7 +84,11 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
|
|
|
84
84
|
getBrowserContext()
|
|
85
85
|
])
|
|
86
86
|
const page = await browserContext.newPage()
|
|
87
|
-
debug('createPage', {
|
|
87
|
+
debug('createPage', {
|
|
88
|
+
id: page._client().id(),
|
|
89
|
+
contextId: browserContext.id,
|
|
90
|
+
browserPid: driver.pid(browserProcess)
|
|
91
|
+
})
|
|
88
92
|
return page
|
|
89
93
|
}
|
|
90
94
|
|
|
@@ -95,7 +99,11 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
|
|
|
95
99
|
getBrowserContext(),
|
|
96
100
|
pReflect(page.close())
|
|
97
101
|
])
|
|
98
|
-
debug('closePage', {
|
|
102
|
+
debug('closePage', {
|
|
103
|
+
id: page._client().id(),
|
|
104
|
+
contextId: browserContext.id,
|
|
105
|
+
browserPid: driver.pid(browserProcess)
|
|
106
|
+
})
|
|
99
107
|
}
|
|
100
108
|
}
|
|
101
109
|
|