mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: pin production dependencies (#11793)
This commit is contained in:
parent
b0daa7754f
commit
c752b28516
228
package-lock.json
generated
228
package-lock.json
generated
@ -7516,7 +7516,7 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@ -7530,7 +7530,7 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@ -7543,22 +7543,22 @@
|
|||||||
"version": "1.19.0-next",
|
"version": "1.19.0-next",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^8.3.0",
|
"commander": "8.3.0",
|
||||||
"debug": "^4.3.3",
|
"debug": "4.3.3",
|
||||||
"extract-zip": "^2.0.1",
|
"extract-zip": "2.0.1",
|
||||||
"https-proxy-agent": "^5.0.0",
|
"https-proxy-agent": "5.0.0",
|
||||||
"jpeg-js": "^0.4.3",
|
"jpeg-js": "0.4.3",
|
||||||
"mime": "^3.0.0",
|
"mime": "3.0.0",
|
||||||
"pngjs": "^6.0.0",
|
"pngjs": "6.0.0",
|
||||||
"progress": "^2.0.3",
|
"progress": "2.0.3",
|
||||||
"proper-lockfile": "^4.1.2",
|
"proper-lockfile": "4.1.2",
|
||||||
"proxy-from-env": "^1.1.0",
|
"proxy-from-env": "1.1.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"socks-proxy-agent": "^6.1.1",
|
"socks-proxy-agent": "6.1.1",
|
||||||
"stack-utils": "^2.0.5",
|
"stack-utils": "2.0.5",
|
||||||
"ws": "^8.4.2",
|
"ws": "8.4.2",
|
||||||
"yauzl": "^2.10.0",
|
"yauzl": "2.10.0",
|
||||||
"yazl": "^2.5.1"
|
"yazl": "2.5.1"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@ -7580,7 +7580,7 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@ -7594,44 +7594,44 @@
|
|||||||
"version": "1.19.0-next",
|
"version": "1.19.0-next",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.16.7",
|
"@babel/code-frame": "7.16.7",
|
||||||
"@babel/core": "^7.16.12",
|
"@babel/core": "7.16.12",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "7.16.7",
|
||||||
"@babel/plugin-proposal-dynamic-import": "^7.16.7",
|
"@babel/plugin-proposal-dynamic-import": "7.16.7",
|
||||||
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
|
"@babel/plugin-proposal-export-namespace-from": "7.16.7",
|
||||||
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
|
"@babel/plugin-proposal-logical-assignment-operators": "7.16.7",
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
|
||||||
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
"@babel/plugin-proposal-numeric-separator": "7.16.7",
|
||||||
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
||||||
"@babel/plugin-proposal-private-methods": "^7.16.11",
|
"@babel/plugin-proposal-private-methods": "7.16.11",
|
||||||
"@babel/plugin-proposal-private-property-in-object": "^7.16.7",
|
"@babel/plugin-proposal-private-property-in-object": "7.16.7",
|
||||||
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
"@babel/plugin-syntax-async-generators": "7.8.4",
|
||||||
"@babel/plugin-syntax-json-strings": "^7.8.3",
|
"@babel/plugin-syntax-json-strings": "7.8.3",
|
||||||
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
|
||||||
"@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
|
"@babel/plugin-syntax-optional-catch-binding": "7.8.3",
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
|
"@babel/plugin-transform-modules-commonjs": "7.16.8",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
"@babel/plugin-transform-react-jsx": "7.16.7",
|
||||||
"@babel/preset-typescript": "^7.16.7",
|
"@babel/preset-typescript": "7.16.7",
|
||||||
"babel-plugin-module-resolver": "^4.1.0",
|
"babel-plugin-module-resolver": "4.1.0",
|
||||||
"colors": "1.4.0",
|
"colors": "1.4.0",
|
||||||
"commander": "^8.3.0",
|
"commander": "8.3.0",
|
||||||
"debug": "^4.3.3",
|
"debug": "4.3.3",
|
||||||
"expect": "=27.2.5",
|
"expect": "27.2.5",
|
||||||
"jest-matcher-utils": "=27.2.5",
|
"jest-matcher-utils": "27.2.5",
|
||||||
"jpeg-js": "^0.4.3",
|
"jpeg-js": "0.4.3",
|
||||||
"json5": "^2.2.0",
|
"json5": "2.2.0",
|
||||||
"mime": "^3.0.0",
|
"mime": "3.0.0",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "3.0.4",
|
||||||
"ms": "^2.1.3",
|
"ms": "2.1.3",
|
||||||
"open": "^8.4.0",
|
"open": "8.4.0",
|
||||||
"pirates": "=4.0.4",
|
"pirates": "4.0.4",
|
||||||
"pixelmatch": "^5.2.1",
|
"pixelmatch": "5.2.1",
|
||||||
"playwright-core": "=1.19.0-next",
|
"playwright-core": "1.19.0-next",
|
||||||
"pngjs": "^6.0.0",
|
"pngjs": "6.0.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "0.5.21",
|
||||||
"stack-utils": "^2.0.5",
|
"stack-utils": "2.0.5",
|
||||||
"yazl": "^2.5.1"
|
"yazl": "2.5.1"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@ -7666,7 +7666,7 @@
|
|||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
@ -8403,44 +8403,44 @@
|
|||||||
"@playwright/test": {
|
"@playwright/test": {
|
||||||
"version": "file:packages/playwright-test",
|
"version": "file:packages/playwright-test",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@babel/code-frame": "^7.16.7",
|
"@babel/code-frame": "7.16.7",
|
||||||
"@babel/core": "^7.16.12",
|
"@babel/core": "7.16.12",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "7.16.7",
|
||||||
"@babel/plugin-proposal-dynamic-import": "^7.16.7",
|
"@babel/plugin-proposal-dynamic-import": "7.16.7",
|
||||||
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
|
"@babel/plugin-proposal-export-namespace-from": "7.16.7",
|
||||||
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
|
"@babel/plugin-proposal-logical-assignment-operators": "7.16.7",
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
|
||||||
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
"@babel/plugin-proposal-numeric-separator": "7.16.7",
|
||||||
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
||||||
"@babel/plugin-proposal-private-methods": "^7.16.11",
|
"@babel/plugin-proposal-private-methods": "7.16.11",
|
||||||
"@babel/plugin-proposal-private-property-in-object": "^7.16.7",
|
"@babel/plugin-proposal-private-property-in-object": "7.16.7",
|
||||||
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
"@babel/plugin-syntax-async-generators": "7.8.4",
|
||||||
"@babel/plugin-syntax-json-strings": "^7.8.3",
|
"@babel/plugin-syntax-json-strings": "7.8.3",
|
||||||
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
|
||||||
"@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
|
"@babel/plugin-syntax-optional-catch-binding": "7.8.3",
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
|
"@babel/plugin-transform-modules-commonjs": "7.16.8",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
"@babel/plugin-transform-react-jsx": "7.16.7",
|
||||||
"@babel/preset-typescript": "^7.16.7",
|
"@babel/preset-typescript": "7.16.7",
|
||||||
"babel-plugin-module-resolver": "^4.1.0",
|
"babel-plugin-module-resolver": "4.1.0",
|
||||||
"colors": "1.4.0",
|
"colors": "1.4.0",
|
||||||
"commander": "^8.3.0",
|
"commander": "8.3.0",
|
||||||
"debug": "^4.3.3",
|
"debug": "4.3.3",
|
||||||
"expect": "=27.2.5",
|
"expect": "27.2.5",
|
||||||
"jest-matcher-utils": "=27.2.5",
|
"jest-matcher-utils": "27.2.5",
|
||||||
"jpeg-js": "^0.4.3",
|
"jpeg-js": "0.4.3",
|
||||||
"json5": "^2.2.0",
|
"json5": "2.2.0",
|
||||||
"mime": "^3.0.0",
|
"mime": "3.0.0",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "3.0.4",
|
||||||
"ms": "^2.1.3",
|
"ms": "2.1.3",
|
||||||
"open": "^8.4.0",
|
"open": "8.4.0",
|
||||||
"pirates": "=4.0.4",
|
"pirates": "4.0.4",
|
||||||
"pixelmatch": "^5.2.1",
|
"pixelmatch": "5.2.1",
|
||||||
"playwright-core": "=1.19.0-next",
|
"playwright-core": "1.19.0-next",
|
||||||
"pngjs": "^6.0.0",
|
"pngjs": "6.0.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "0.5.21",
|
||||||
"stack-utils": "^2.0.5",
|
"stack-utils": "2.0.5",
|
||||||
"yazl": "^2.5.1"
|
"yazl": "2.5.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": {
|
"commander": {
|
||||||
@ -12100,34 +12100,34 @@
|
|||||||
"playwright": {
|
"playwright": {
|
||||||
"version": "file:packages/playwright",
|
"version": "file:packages/playwright",
|
||||||
"requires": {
|
"requires": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"playwright-chromium": {
|
"playwright-chromium": {
|
||||||
"version": "file:packages/playwright-chromium",
|
"version": "file:packages/playwright-chromium",
|
||||||
"requires": {
|
"requires": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"playwright-core": {
|
"playwright-core": {
|
||||||
"version": "file:packages/playwright-core",
|
"version": "file:packages/playwright-core",
|
||||||
"requires": {
|
"requires": {
|
||||||
"commander": "^8.3.0",
|
"commander": "8.3.0",
|
||||||
"debug": "^4.3.3",
|
"debug": "4.3.3",
|
||||||
"extract-zip": "^2.0.1",
|
"extract-zip": "2.0.1",
|
||||||
"https-proxy-agent": "^5.0.0",
|
"https-proxy-agent": "5.0.0",
|
||||||
"jpeg-js": "^0.4.3",
|
"jpeg-js": "0.4.3",
|
||||||
"mime": "^3.0.0",
|
"mime": "3.0.0",
|
||||||
"pngjs": "^6.0.0",
|
"pngjs": "6.0.0",
|
||||||
"progress": "^2.0.3",
|
"progress": "2.0.3",
|
||||||
"proper-lockfile": "^4.1.2",
|
"proper-lockfile": "4.1.2",
|
||||||
"proxy-from-env": "^1.1.0",
|
"proxy-from-env": "1.1.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"socks-proxy-agent": "^6.1.1",
|
"socks-proxy-agent": "6.1.1",
|
||||||
"stack-utils": "^2.0.5",
|
"stack-utils": "2.0.5",
|
||||||
"ws": "^8.4.2",
|
"ws": "8.4.2",
|
||||||
"yauzl": "^2.10.0",
|
"yauzl": "2.10.0",
|
||||||
"yazl": "^2.5.1"
|
"yazl": "2.5.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": {
|
"commander": {
|
||||||
@ -12140,13 +12140,13 @@
|
|||||||
"playwright-firefox": {
|
"playwright-firefox": {
|
||||||
"version": "file:packages/playwright-firefox",
|
"version": "file:packages/playwright-firefox",
|
||||||
"requires": {
|
"requires": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"playwright-webkit": {
|
"playwright-webkit": {
|
||||||
"version": "file:packages/playwright-webkit",
|
"version": "file:packages/playwright-webkit",
|
||||||
"requires": {
|
"requires": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"pngjs": {
|
"pngjs": {
|
||||||
|
|||||||
@ -26,6 +26,6 @@
|
|||||||
"install": "node install.js"
|
"install": "node install.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,21 +37,21 @@
|
|||||||
"playwright": "./cli.js"
|
"playwright": "./cli.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"commander": "^8.3.0",
|
"commander": "8.3.0",
|
||||||
"debug": "^4.3.3",
|
"debug": "4.3.3",
|
||||||
"extract-zip": "^2.0.1",
|
"extract-zip": "2.0.1",
|
||||||
"https-proxy-agent": "^5.0.0",
|
"https-proxy-agent": "5.0.0",
|
||||||
"jpeg-js": "^0.4.3",
|
"jpeg-js": "0.4.3",
|
||||||
"mime": "^3.0.0",
|
"mime": "3.0.0",
|
||||||
"pngjs": "^6.0.0",
|
"pngjs": "6.0.0",
|
||||||
"progress": "^2.0.3",
|
"progress": "2.0.3",
|
||||||
"proper-lockfile": "^4.1.2",
|
"proper-lockfile": "4.1.2",
|
||||||
"proxy-from-env": "^1.1.0",
|
"proxy-from-env": "1.1.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"socks-proxy-agent": "^6.1.1",
|
"socks-proxy-agent": "6.1.1",
|
||||||
"stack-utils": "^2.0.5",
|
"stack-utils": "2.0.5",
|
||||||
"ws": "^8.4.2",
|
"ws": "8.4.2",
|
||||||
"yauzl": "^2.10.0",
|
"yauzl": "2.10.0",
|
||||||
"yazl": "^2.5.1"
|
"yazl": "2.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,12 +20,12 @@ import { fork } from 'child_process';
|
|||||||
import { getPlaywrightVersion } from '../utils/utils';
|
import { getPlaywrightVersion } from '../utils/utils';
|
||||||
|
|
||||||
export function launchGridAgent(agentId: string, gridURL: string) {
|
export function launchGridAgent(agentId: string, gridURL: string) {
|
||||||
const log = debug(`[agent ${agentId}]`);
|
const log = debug(`pw:grid:agent:${agentId}`);
|
||||||
log('created');
|
log('created');
|
||||||
const params = new URLSearchParams();
|
const params = new URLSearchParams();
|
||||||
params.set('pwVersion', getPlaywrightVersion(true /* majorMinorOnly */));
|
params.set('pwVersion', getPlaywrightVersion(true /* majorMinorOnly */));
|
||||||
params.set('agentId', agentId);
|
params.set('agentId', agentId);
|
||||||
const ws = new WebSocket(gridURL + `/registerAgent?` + params.toString());
|
const ws = new WebSocket(gridURL.replace('http://', 'ws://') + `/registerAgent?` + params.toString());
|
||||||
ws.on('message', (workerId: string) => {
|
ws.on('message', (workerId: string) => {
|
||||||
log('Worker requested ' + workerId);
|
log('Worker requested ' + workerId);
|
||||||
fork(require.resolve('./gridWorker.js'), [gridURL, agentId, workerId], { detached: true });
|
fork(require.resolve('./gridWorker.js'), [gridURL, agentId, workerId], { detached: true });
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class GridWorker extends EventEmitter {
|
|||||||
|
|
||||||
constructor(clientSocket: WebSocket) {
|
constructor(clientSocket: WebSocket) {
|
||||||
super();
|
super();
|
||||||
this._log = debug(`[worker ${this.workerId}]`);
|
this._log = debug(`pw:grid:worker${this.workerId}`);
|
||||||
this._clientSocket = clientSocket;
|
this._clientSocket = clientSocket;
|
||||||
clientSocket.on('close', (code: number, reason: string) => this.closeWorker(WSErrors.NO_ERROR));
|
clientSocket.on('close', (code: number, reason: string) => this.closeWorker(WSErrors.NO_ERROR));
|
||||||
clientSocket.on('error', (error: Error) => this.closeWorker(WSErrors.CLIENT_SOCKET_ERROR));
|
clientSocket.on('error', (error: Error) => this.closeWorker(WSErrors.CLIENT_SOCKET_ERROR));
|
||||||
@ -110,7 +110,7 @@ class GridAgent extends EventEmitter {
|
|||||||
constructor(capacity = Infinity, creationTimeout = 5 * 60000, retireTimeout = 30000) {
|
constructor(capacity = Infinity, creationTimeout = 5 * 60000, retireTimeout = 30000) {
|
||||||
super();
|
super();
|
||||||
this._capacity = capacity;
|
this._capacity = capacity;
|
||||||
this._log = debug(`[agent ${this.agentId}]`);
|
this._log = debug(`pw:grid:agent${this.agentId}`);
|
||||||
this.setStatus('created');
|
this.setStatus('created');
|
||||||
this._retireTimeout = retireTimeout;
|
this._retireTimeout = retireTimeout;
|
||||||
this._agentCreationTimeoutId = setTimeout(() => {
|
this._agentCreationTimeoutId = setTimeout(() => {
|
||||||
@ -196,7 +196,7 @@ export class GridServer {
|
|||||||
private _pwVersion: string;
|
private _pwVersion: string;
|
||||||
|
|
||||||
constructor(factory: GridFactory, authToken: string = '') {
|
constructor(factory: GridFactory, authToken: string = '') {
|
||||||
this._log = debug(`[grid]`);
|
this._log = debug(`pw:grid:server`);
|
||||||
this._authToken = authToken || '';
|
this._authToken = authToken || '';
|
||||||
this._server = new HttpServer();
|
this._server = new HttpServer();
|
||||||
this._factory = factory;
|
this._factory = factory;
|
||||||
|
|||||||
@ -22,9 +22,9 @@ import { createPlaywright } from '../server/playwright';
|
|||||||
import { gracefullyCloseAll } from '../utils/processLauncher';
|
import { gracefullyCloseAll } from '../utils/processLauncher';
|
||||||
|
|
||||||
function launchGridWorker(gridURL: string, agentId: string, workerId: string) {
|
function launchGridWorker(gridURL: string, agentId: string, workerId: string) {
|
||||||
const log = debug(`[worker ${workerId}]`);
|
const log = debug(`pw:grid:worker${workerId}`);
|
||||||
log('created');
|
log('created');
|
||||||
const ws = new WebSocket(gridURL + `/registerWorker?agentId=${agentId}&workerId=${workerId}`);
|
const ws = new WebSocket(gridURL.replace('http://', 'ws://') + `/registerWorker?agentId=${agentId}&workerId=${workerId}`);
|
||||||
const dispatcherConnection = new DispatcherConnection();
|
const dispatcherConnection = new DispatcherConnection();
|
||||||
dispatcherConnection.onmessage = message => ws.send(JSON.stringify(message));
|
dispatcherConnection.onmessage = message => ws.send(JSON.stringify(message));
|
||||||
ws.once('open', () => {
|
ws.once('open', () => {
|
||||||
|
|||||||
@ -26,6 +26,6 @@
|
|||||||
"install": "node install.js"
|
"install": "node install.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -27,43 +27,43 @@
|
|||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/code-frame": "^7.16.7",
|
"@babel/code-frame": "7.16.7",
|
||||||
"@babel/core": "^7.16.12",
|
"@babel/core": "7.16.12",
|
||||||
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
"@babel/plugin-proposal-class-properties": "7.16.7",
|
||||||
"@babel/plugin-proposal-dynamic-import": "^7.16.7",
|
"@babel/plugin-proposal-dynamic-import": "7.16.7",
|
||||||
"@babel/plugin-proposal-export-namespace-from": "^7.16.7",
|
"@babel/plugin-proposal-export-namespace-from": "7.16.7",
|
||||||
"@babel/plugin-proposal-logical-assignment-operators": "^7.16.7",
|
"@babel/plugin-proposal-logical-assignment-operators": "7.16.7",
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.7",
|
"@babel/plugin-proposal-nullish-coalescing-operator": "7.16.7",
|
||||||
"@babel/plugin-proposal-numeric-separator": "^7.16.7",
|
"@babel/plugin-proposal-numeric-separator": "7.16.7",
|
||||||
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
||||||
"@babel/plugin-proposal-private-methods": "^7.16.11",
|
"@babel/plugin-proposal-private-methods": "7.16.11",
|
||||||
"@babel/plugin-proposal-private-property-in-object": "^7.16.7",
|
"@babel/plugin-proposal-private-property-in-object": "7.16.7",
|
||||||
"@babel/plugin-syntax-async-generators": "^7.8.4",
|
"@babel/plugin-syntax-async-generators": "7.8.4",
|
||||||
"@babel/plugin-syntax-json-strings": "^7.8.3",
|
"@babel/plugin-syntax-json-strings": "7.8.3",
|
||||||
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
"@babel/plugin-syntax-object-rest-spread": "7.8.3",
|
||||||
"@babel/plugin-syntax-optional-catch-binding": "^7.8.3",
|
"@babel/plugin-syntax-optional-catch-binding": "7.8.3",
|
||||||
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
|
"@babel/plugin-transform-modules-commonjs": "7.16.8",
|
||||||
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
"@babel/plugin-transform-react-jsx": "7.16.7",
|
||||||
"@babel/preset-typescript": "^7.16.7",
|
"@babel/preset-typescript": "7.16.7",
|
||||||
"babel-plugin-module-resolver": "^4.1.0",
|
"babel-plugin-module-resolver": "4.1.0",
|
||||||
"colors": "1.4.0",
|
"colors": "1.4.0",
|
||||||
"commander": "^8.3.0",
|
"commander": "8.3.0",
|
||||||
"debug": "^4.3.3",
|
"debug": "4.3.3",
|
||||||
"expect": "=27.2.5",
|
"expect": "27.2.5",
|
||||||
"jest-matcher-utils": "=27.2.5",
|
"jest-matcher-utils": "27.2.5",
|
||||||
"jpeg-js": "^0.4.3",
|
"jpeg-js": "0.4.3",
|
||||||
"json5": "^2.2.0",
|
"json5": "2.2.0",
|
||||||
"mime": "^3.0.0",
|
"mime": "3.0.0",
|
||||||
"minimatch": "^3.0.4",
|
"minimatch": "3.0.4",
|
||||||
"ms": "^2.1.3",
|
"ms": "2.1.3",
|
||||||
"open": "^8.4.0",
|
"open": "8.4.0",
|
||||||
"pirates": "=4.0.4",
|
"pirates": "4.0.4",
|
||||||
"pixelmatch": "^5.2.1",
|
"pixelmatch": "5.2.1",
|
||||||
"playwright-core": "=1.19.0-next",
|
"playwright-core": "1.19.0-next",
|
||||||
"pngjs": "^6.0.0",
|
"pngjs": "6.0.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "3.0.2",
|
||||||
"source-map-support": "^0.5.21",
|
"source-map-support": "0.5.21",
|
||||||
"stack-utils": "^2.0.5",
|
"stack-utils": "2.0.5",
|
||||||
"yazl": "^2.5.1"
|
"yazl": "2.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,6 +25,6 @@
|
|||||||
"install": "node install.js"
|
"install": "node install.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,6 @@
|
|||||||
"install": "node install.js"
|
"install": "node install.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"playwright-core": "=1.19.0-next"
|
"playwright-core": "1.19.0-next"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,12 +44,12 @@ export class ServiceTestMode implements TestMode {
|
|||||||
private _gridClient: GridClient;
|
private _gridClient: GridClient;
|
||||||
|
|
||||||
async setup() {
|
async setup() {
|
||||||
this._gridClient = await GridClient.connect('http://localhost:3333');
|
this._gridClient = await GridClient.connect('ws://localhost:3333');
|
||||||
return this._gridClient.playwright();
|
return this._gridClient.playwright();
|
||||||
}
|
}
|
||||||
|
|
||||||
async teardown() {
|
async teardown() {
|
||||||
await this._gridClient.close();
|
this._gridClient.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,7 @@ const { packages, packagesToPublish } = require('./list_packages.js');
|
|||||||
if (publicPackages.has(package))
|
if (publicPackages.has(package))
|
||||||
playwrightCorePackages.version = version;
|
playwrightCorePackages.version = version;
|
||||||
if (playwrightCorePackages.dependencies && playwrightCorePackages.dependencies['playwright-core'])
|
if (playwrightCorePackages.dependencies && playwrightCorePackages.dependencies['playwright-core'])
|
||||||
packageLock['packages']['packages/playwright-test']['dependencies']['playwright-core'] = '=' + version;
|
packageLock['packages']['packages/playwright-test']['dependencies']['playwright-core'] = version;
|
||||||
}
|
}
|
||||||
fs.writeFileSync(packageLockPath, JSON.stringify(packageLock, null, 2) + '\n');
|
fs.writeFileSync(packageLockPath, JSON.stringify(packageLock, null, 2) + '\n');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -105,7 +105,7 @@ async function lintPackage(packageName) {
|
|||||||
currentPackageJSON.license = pwInternalJSON.license;
|
currentPackageJSON.license = pwInternalJSON.license;
|
||||||
for (const name of Object.keys(currentPackageJSON.dependencies || {})) {
|
for (const name of Object.keys(currentPackageJSON.dependencies || {})) {
|
||||||
if (name in PACKAGES)
|
if (name in PACKAGES)
|
||||||
currentPackageJSON.dependencies[name] = `=${pwInternalJSON.version}`;
|
currentPackageJSON.dependencies[name] = pwInternalJSON.version;
|
||||||
}
|
}
|
||||||
await writeToPackage('package.json', JSON.stringify(currentPackageJSON, null, 2) + '\n');
|
await writeToPackage('package.json', JSON.stringify(currentPackageJSON, null, 2) + '\n');
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user