mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(types): upgrade node types to 8.10.34 (#3341)
This commit is contained in:
parent
c9657f8819
commit
cd54ce388e
@ -164,7 +164,6 @@ class Launcher {
|
|||||||
const transport = await WebSocketTransport.create(browserWSEndpoint);
|
const transport = await WebSocketTransport.create(browserWSEndpoint);
|
||||||
connection = new Connection(browserWSEndpoint, transport, slowMo);
|
connection = new Connection(browserWSEndpoint, transport, slowMo);
|
||||||
} else {
|
} else {
|
||||||
// @ts-ignore - TypeScript incorrectly thinks stdio can't go above 2
|
|
||||||
const transport = new PipeTransport(/** @type {!NodeJS.WritableStream} */(chromeProcess.stdio[3]), /** @type {!NodeJS.ReadableStream} */ (chromeProcess.stdio[4]));
|
const transport = new PipeTransport(/** @type {!NodeJS.WritableStream} */(chromeProcess.stdio[3]), /** @type {!NodeJS.ReadableStream} */ (chromeProcess.stdio[4]));
|
||||||
connection = new Connection('', transport, slowMo);
|
connection = new Connection('', transport, slowMo);
|
||||||
}
|
}
|
||||||
|
@ -430,10 +430,8 @@ class Request {
|
|||||||
}
|
}
|
||||||
if (response.contentType)
|
if (response.contentType)
|
||||||
responseHeaders['content-type'] = response.contentType;
|
responseHeaders['content-type'] = response.contentType;
|
||||||
if (responseBody && !('content-length' in responseHeaders)) {
|
if (responseBody && !('content-length' in responseHeaders))
|
||||||
// @ts-ignore
|
|
||||||
responseHeaders['content-length'] = Buffer.byteLength(responseBody);
|
responseHeaders['content-length'] = Buffer.byteLength(responseBody);
|
||||||
}
|
|
||||||
|
|
||||||
const statusCode = response.status || 200;
|
const statusCode = response.status || 200;
|
||||||
const statusText = statusTexts[statusCode] || '';
|
const statusText = statusTexts[statusCode] || '';
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
"@types/debug": "0.0.30",
|
"@types/debug": "0.0.30",
|
||||||
"@types/extract-zip": "^1.6.2",
|
"@types/extract-zip": "^1.6.2",
|
||||||
"@types/mime": "^2.0.0",
|
"@types/mime": "^2.0.0",
|
||||||
"@types/node": "^8.10.32",
|
"@types/node": "^8.10.34",
|
||||||
"@types/rimraf": "^2.0.2",
|
"@types/rimraf": "^2.0.2",
|
||||||
"@types/ws": "^3.0.2",
|
"@types/ws": "^3.0.2",
|
||||||
"commonmark": "^0.27.0",
|
"commonmark": "^0.27.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user