nodejs_chromium 1.1.1 → 1.1.3
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 +2 -2
- package/src/chrome.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodejs_chromium",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"nodejs_patch": ">1.0.5",
|
|
11
|
-
"puppeteer": "
|
|
11
|
+
"puppeteer": ">22.0.0"
|
|
12
12
|
},
|
|
13
13
|
"author": "fazo@qq.com",
|
|
14
14
|
"license": "ISC"
|
package/src/chrome.js
CHANGED
|
@@ -590,6 +590,7 @@ module.exports = class {
|
|
|
590
590
|
// value.redirect = await response.redirectURL();
|
|
591
591
|
if (value.type === 'xhr') value.type = 'AJAX';
|
|
592
592
|
value.url = await response.url();
|
|
593
|
+
value.headers = { request: request.headers(), response: headers };
|
|
593
594
|
value.domain = parseUrl(value.url)['host'];
|
|
594
595
|
value.content = headers['content-type'];
|
|
595
596
|
value.length = headers['content-length'];
|