chore: bump production dependencies (#11787)

This commit is contained in:
Max Schmitt 2022-02-01 21:27:34 +01:00 committed by GitHub
parent a3bc911a3d
commit 028afb167b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 441 additions and 479 deletions

833
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -64,7 +64,7 @@
"@types/rimraf": "^3.0.2",
"@types/source-map-support": "^0.5.4",
"@types/webpack": "^5.28.0",
"@types/ws": "7.2.6",
"@types/ws": "8.2.2",
"@types/xml2js": "^0.4.9",
"@types/yazl": "^2.4.2",
"@typescript-eslint/eslint-plugin": "^5.10.2",
@ -86,7 +86,7 @@
"file-loader": "^6.2.0",
"formidable": "^2.0.1",
"html-webpack-plugin": "^5.5.0",
"mime": "^2.4.6",
"mime": "^3.0.0",
"ncp": "^2.0.0",
"node-stream-zip": "^1.15.0",
"proxy": "^1.0.2",

View file

@ -36,20 +36,20 @@
"playwright": "./cli.js"
},
"dependencies": {
"commander": "^8.2.0",
"debug": "^4.1.1",
"commander": "^8.3.0",
"debug": "^4.3.3",
"extract-zip": "^2.0.1",
"https-proxy-agent": "^5.0.0",
"jpeg-js": "^0.4.2",
"mime": "^2.4.6",
"pngjs": "^5.0.0",
"jpeg-js": "^0.4.3",
"mime": "^3.0.0",
"pngjs": "^6.0.0",
"progress": "^2.0.3",
"proper-lockfile": "^4.1.1",
"proper-lockfile": "^4.1.2",
"proxy-from-env": "^1.1.0",
"rimraf": "^3.0.2",
"socks-proxy-agent": "^6.1.0",
"stack-utils": "^2.0.3",
"ws": "^7.4.6",
"socks-proxy-agent": "^6.1.1",
"stack-utils": "^2.0.5",
"ws": "^8.4.2",
"yauzl": "^2.10.0",
"yazl": "^2.5.1"
}

View file

@ -81,7 +81,7 @@ export class BrowserTypeDispatcher extends Dispatcher<BrowserType, channels.Brow
ws.addEventListener('message', event => {
waitForNextTask(() => {
try {
pipe.dispatch(JSON.parse(event.data));
pipe.dispatch(JSON.parse(event.data as string));
} catch (e) {
ws.close();
}

View file

@ -37,7 +37,7 @@ export class GridClient {
connection.markAsRemote();
connection.onmessage = (message: Object) => ws.send(JSON.stringify(message));
ws.on('message', message => connection.dispatch(JSON.parse(message.toString())));
ws.on('close', (code, reason) => connection.close(reason));
ws.on('close', (code, reason) => connection.close(reason.toString()));
const playwright = await connection.initializePlaywright();
playwright._enablePortForwarding();
return new GridClient(ws, playwright);

View file

@ -50,7 +50,7 @@ export class PlaywrightClient {
playwright = await connection.initializePlaywright();
resolve(new PlaywrightClient(playwright, ws));
});
ws.on('close', (code, reason) => connection.close(reason));
ws.on('close', (code, reason) => connection.close(reason.toString()));
});
let timer: NodeJS.Timeout;
try {

View file

@ -131,8 +131,11 @@ export class PlaywrightServer {
if (!this._wsServer)
return;
debugLog('Closing server');
const waitForClose = new Promise(f => this._wsServer!.close(f));
// First disconnect all remaining clients.
await new Promise(f => this._wsServer!.close(f));
for (const ws of this._wsServer!.clients)
ws.terminate();
await waitForClose;
await new Promise(f => this._wsServer!.options.server!.close(f));
this._wsServer = undefined;
await this._delegate.onClose();

View file

@ -94,7 +94,7 @@ export class WebSocketTransport implements ConnectionTransport {
messageWrap(() => {
try {
if (this.onmessage)
this.onmessage.call(null, JSON.parse(event.data));
this.onmessage.call(null, JSON.parse(event.data as string));
} catch (e) {
this._ws.close();
}

View file

@ -27,43 +27,43 @@
},
"license": "Apache-2.0",
"dependencies": {
"@babel/code-frame": "^7.14.5",
"@babel/core": "^7.14.8",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-dynamic-import": "^7.14.5",
"@babel/plugin-proposal-export-namespace-from": "^7.14.5",
"@babel/plugin-proposal-logical-assignment-operators": "^7.14.5",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.14.5",
"@babel/plugin-proposal-numeric-separator": "^7.14.5",
"@babel/plugin-proposal-optional-chaining": "^7.14.5",
"@babel/plugin-proposal-private-methods": "^7.14.5",
"@babel/plugin-proposal-private-property-in-object": "^7.14.5",
"@babel/code-frame": "^7.16.7",
"@babel/core": "^7.16.12",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-proposal-dynamic-import": "^7.16.7",
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@babel/plugin-proposal-private-methods": "^7.16.11",
"@babel/plugin-proposal-private-property-in-object": "^7.16.7",
"@babel/plugin-syntax-async-generators": "^7.8.4",
"@babel/plugin-syntax-json-strings": "^7.8.3",
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
"@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
"@babel/plugin-transform-modules-commonjs": "^7.14.5",
"@babel/plugin-transform-react-jsx": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
"@babel/plugin-transform-react-jsx": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"babel-plugin-module-resolver": "^4.1.0",
"colors": "1.4.0",
"commander": "^8.2.0",
"debug": "^4.1.1",
"commander": "^8.3.0",
"debug": "^4.3.3",
"expect": "=27.2.5",
"jest-matcher-utils": "=27.2.5",
"jpeg-js": "^0.4.2",
"jpeg-js": "^0.4.3",
"json5": "^2.2.0",
"mime": "^2.4.6",
"minimatch": "^3.0.3",
"ms": "^2.1.2",
"open": "^8.3.0",
"pirates": "^4.0.1",
"mime": "^3.0.0",
"minimatch": "^3.0.4",
"ms": "^2.1.3",
"open": "^8.4.0",
"pirates": "=4.0.4",
"pixelmatch": "^5.2.1",
"playwright-core": "=1.19.0-next",
"pngjs": "^5.0.0",
"pngjs": "^6.0.0",
"rimraf": "^3.0.2",
"source-map-support": "^0.4.18",
"stack-utils": "^2.0.3",
"source-map-support": "^0.5.21",
"stack-utils": "^2.0.5",
"yazl": "^2.5.1"
}
}

View file

@ -67,7 +67,7 @@ async function innerCheckDeps(root, checkDepsFile) {
}
for (const dep of deps) {
const resolved = require.resolve(dep);
const resolved = require.resolve(dep, { paths: [root] });
if (dep === resolved || !resolved.includes('node_modules'))
deps.delete(dep);
}