fix(types): upgrade node types to 8.10.34 (#3341)

This commit is contained in:
Joel Einbinder 2018-10-03 16:59:49 -07:00 committed by Andrey Lushnikov
parent c9657f8819
commit cd54ce388e
3 changed files with 2 additions and 5 deletions

View File

@ -164,7 +164,6 @@ class Launcher {
const transport = await WebSocketTransport.create(browserWSEndpoint);
connection = new Connection(browserWSEndpoint, transport, slowMo);
} 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]));
connection = new Connection('', transport, slowMo);
}

View File

@ -430,10 +430,8 @@ class Request {
}
if (response.contentType)
responseHeaders['content-type'] = response.contentType;
if (responseBody && !('content-length' in responseHeaders)) {
// @ts-ignore
if (responseBody && !('content-length' in responseHeaders))
responseHeaders['content-length'] = Buffer.byteLength(responseBody);
}
const statusCode = response.status || 200;
const statusText = statusTexts[statusCode] || '';

View File

@ -44,7 +44,7 @@
"@types/debug": "0.0.30",
"@types/extract-zip": "^1.6.2",
"@types/mime": "^2.0.0",
"@types/node": "^8.10.32",
"@types/node": "^8.10.34",
"@types/rimraf": "^2.0.2",
"@types/ws": "^3.0.2",
"commonmark": "^0.27.0",