mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-28 09:23:42 +03:00
chore: bump dev dependencies (#11779)
This commit is contained in:
parent
c82f2641d7
commit
e0c4e66272
@ -108,6 +108,10 @@ function test_screencast {
|
||||
function test_typescript_types {
|
||||
initialize_test "${FUNCNAME[0]}"
|
||||
copy_test_scripts
|
||||
# @types/node@14.18.9 is the last version which is compatibel with typescript@3.7.5.
|
||||
# After @types/node@14.18.9 URLSearchParams from @types/node conflicts with typescript's
|
||||
# shipped types and it results in a type error / build failure.
|
||||
npm install -D @types/node@14.18.9
|
||||
|
||||
# install all packages.
|
||||
npm install ${PLAYWRIGHT_CORE_TGZ}
|
||||
|
4868
package-lock.json
generated
4868
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
79
package.json
79
package.json
@ -42,61 +42,62 @@
|
||||
"packages/*"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@babel/cli": "^7.14.8",
|
||||
"@babel/plugin-transform-typescript": "^7.14.6",
|
||||
"@babel/preset-react": "^7.14.5",
|
||||
"@babel/cli": "^7.16.8",
|
||||
"@babel/plugin-transform-typescript": "^7.16.8",
|
||||
"@babel/preset-react": "^7.16.7",
|
||||
"@types/babel__code-frame": "^7.0.3",
|
||||
"@types/babel__core": "^7.1.15",
|
||||
"@types/debug": "^4.1.5",
|
||||
"@types/extract-zip": "^1.6.2",
|
||||
"@types/babel__core": "^7.1.18",
|
||||
"@types/debug": "^4.1.7",
|
||||
"@types/formidable": "^2.0.4",
|
||||
"@types/mime": "^2.0.3",
|
||||
"@types/minimatch": "^3.0.3",
|
||||
"@types/minimatch": "^3.0.5",
|
||||
"@types/ms": "^0.7.31",
|
||||
"@types/node": "^14.17.15",
|
||||
"@types/pixelmatch": "^5.2.1",
|
||||
"@types/pngjs": "^3.4.2",
|
||||
"@types/progress": "^2.0.3",
|
||||
"@types/proper-lockfile": "^4.1.1",
|
||||
"@types/node": "=14.17.15",
|
||||
"@types/pixelmatch": "^5.2.4",
|
||||
"@types/pngjs": "^6.0.1",
|
||||
"@types/progress": "^2.0.5",
|
||||
"@types/proper-lockfile": "^4.1.2",
|
||||
"@types/proxy-from-env": "^1.0.1",
|
||||
"@types/react": "^17.0.0",
|
||||
"@types/react-dom": "^17.0.0",
|
||||
"@types/resize-observer-browser": "^0.1.4",
|
||||
"@types/rimraf": "^3.0.0",
|
||||
"@types/source-map-support": "^0.4.2",
|
||||
"@types/react": "^17.0.38",
|
||||
"@types/react-dom": "^17.0.11",
|
||||
"@types/resize-observer-browser": "^0.1.6",
|
||||
"@types/rimraf": "^3.0.2",
|
||||
"@types/source-map-support": "^0.5.4",
|
||||
"@types/webpack": "^5.28.0",
|
||||
"@types/ws": "7.2.6",
|
||||
"@types/xml2js": "^0.4.5",
|
||||
"@types/xml2js": "^0.4.9",
|
||||
"@types/yazl": "^2.4.2",
|
||||
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
||||
"@typescript-eslint/parser": "^5.4.0",
|
||||
"@zip.js/zip.js": "^2.3.17",
|
||||
"ansi-to-html": "^0.7.1",
|
||||
"babel-loader": "^8.2.2",
|
||||
"chokidar": "^3.5.0",
|
||||
"commonmark": "^0.29.1",
|
||||
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
||||
"@typescript-eslint/parser": "^5.10.2",
|
||||
"@zip.js/zip.js": "^2.4.2",
|
||||
"ansi-to-html": "^0.7.2",
|
||||
"babel-loader": "^8.2.3",
|
||||
"chokidar": "^3.5.3",
|
||||
"commonmark": "^0.30.0",
|
||||
"concurrently": "^6.2.1",
|
||||
"copy-webpack-plugin": "^9.0.1",
|
||||
"cross-env": "^7.0.2",
|
||||
"css-loader": "^6.4.0",
|
||||
"copy-webpack-plugin": "^9.1.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"css-loader": "^6.5.1",
|
||||
"electron": "^12.2.1",
|
||||
"enquirer": "^2.3.6",
|
||||
"eslint": "^8.2.0",
|
||||
"eslint": "^8.8.0",
|
||||
"eslint-plugin-notice": "^0.9.10",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"formidable": "^1.2.2",
|
||||
"html-webpack-plugin": "^5.3.2",
|
||||
"formidable": "^2.0.1",
|
||||
"html-webpack-plugin": "^5.5.0",
|
||||
"mime": "^2.4.6",
|
||||
"ncp": "^2.0.0",
|
||||
"node-stream-zip": "^1.11.3",
|
||||
"node-stream-zip": "^1.15.0",
|
||||
"proxy": "^1.0.2",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1",
|
||||
"react": "^17.0.2",
|
||||
"react-dom": "^17.0.2",
|
||||
"socksv5": "0.0.6",
|
||||
"style-loader": "^3.3.0",
|
||||
"typescript": "^4.4.3",
|
||||
"webpack": "^5.58.2",
|
||||
"webpack-cli": "^4.9.0",
|
||||
"style-loader": "^3.3.1",
|
||||
"typescript": "^4.5.5",
|
||||
"webpack": "^5.68.0",
|
||||
"webpack-cli": "^4.9.2",
|
||||
"xml2js": "^0.4.23",
|
||||
"yaml": "^1.10.0"
|
||||
"yaml": "^1.10.2"
|
||||
}
|
||||
}
|
||||
|
@ -776,13 +776,13 @@ it('should encode to application/json by default', async function({ context, pag
|
||||
expect(json).toEqual(data);
|
||||
});
|
||||
|
||||
it('should support multipart/form-data', async function({ context, page, server }) {
|
||||
const formReceived = new Promise<any>(resolve => {
|
||||
it('should support multipart/form-data', async function({ context, server }) {
|
||||
const formReceived = new Promise<{error: any, fields: formidable.Fields, files: Record<string, formidable.File>, serverRequest: http.IncomingMessage}>(resolve => {
|
||||
server.setRoute('/empty.html', async (serverRequest, res) => {
|
||||
const form = new formidable.IncomingForm();
|
||||
form.parse(serverRequest, (error, fields, files) => {
|
||||
server.serveFile(serverRequest, res);
|
||||
resolve({ error, fields, files, serverRequest });
|
||||
resolve({ error, fields, files: files as Record<string, formidable.File>, serverRequest });
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -807,19 +807,19 @@ it('should support multipart/form-data', async function({ context, page, server
|
||||
expect(serverRequest.headers['content-type']).toContain('multipart/form-data');
|
||||
expect(fields['firstName']).toBe('John');
|
||||
expect(fields['lastName']).toBe('Doe');
|
||||
expect(files['file'].name).toBe(file.name);
|
||||
expect(files['file'].type).toBe(file.mimeType);
|
||||
expect(fs.readFileSync(files['file'].path).toString()).toBe(file.buffer.toString('utf8'));
|
||||
expect(files['file'].originalFilename).toBe(file.name);
|
||||
expect(files['file'].mimetype).toBe(file.mimeType);
|
||||
expect(fs.readFileSync(files['file'].filepath).toString()).toBe(file.buffer.toString('utf8'));
|
||||
expect(response.status()).toBe(200);
|
||||
});
|
||||
|
||||
it('should support multipart/form-data with ReadSream values', async function({ context, page, asset, server }) {
|
||||
const formReceived = new Promise<any>(resolve => {
|
||||
const formReceived = new Promise<{error: any, fields: formidable.Fields, files: Record<string, formidable.File>, serverRequest: http.IncomingMessage}>(resolve => {
|
||||
server.setRoute('/empty.html', async (serverRequest, res) => {
|
||||
const form = new formidable.IncomingForm();
|
||||
form.parse(serverRequest, (error, fields, files) => {
|
||||
server.serveFile(serverRequest, res);
|
||||
resolve({ error, fields, files, serverRequest });
|
||||
resolve({ error, fields, files: files as Record<string, formidable.File>, serverRequest });
|
||||
});
|
||||
});
|
||||
});
|
||||
@ -840,9 +840,9 @@ it('should support multipart/form-data with ReadSream values', async function({
|
||||
expect(serverRequest.headers['content-length']).toContain('5498');
|
||||
expect(fields['firstName']).toBe('John');
|
||||
expect(fields['lastName']).toBe('Doe');
|
||||
expect(files['readStream'].name).toBe('simplezip.json');
|
||||
expect(files['readStream'].type).toBe('application/json');
|
||||
expect(fs.readFileSync(files['readStream'].path).toString()).toBe(fs.readFileSync(asset('simplezip.json')).toString());
|
||||
expect(files['readStream'].originalFilename).toBe('simplezip.json');
|
||||
expect(files['readStream'].mimetype).toBe('application/json');
|
||||
expect(fs.readFileSync(files['readStream'].filepath).toString()).toBe(fs.readFileSync(asset('simplezip.json')).toString());
|
||||
expect(response.status()).toBe(200);
|
||||
});
|
||||
|
||||
|
@ -246,11 +246,11 @@ it('should accept single file', async ({ page, asset }) => {
|
||||
it('should detect mime type', async ({ page, server, asset, isAndroid }) => {
|
||||
it.fixme(isAndroid);
|
||||
|
||||
let files;
|
||||
let files: Record<string, formidable.File>;
|
||||
server.setRoute('/upload', async (req, res) => {
|
||||
const form = new formidable.IncomingForm();
|
||||
form.parse(req, function(err, fields, f) {
|
||||
files = f;
|
||||
files = f as Record<string, formidable.File>;
|
||||
res.end();
|
||||
});
|
||||
});
|
||||
@ -268,13 +268,13 @@ it('should detect mime type', async ({ page, server, asset, isAndroid }) => {
|
||||
server.waitForRequest('/upload'),
|
||||
]);
|
||||
const { file1, file2 } = files;
|
||||
expect(file1.name).toBe('file-to-upload.txt');
|
||||
expect(file1.type).toBe('text/plain');
|
||||
expect(fs.readFileSync(file1.path).toString()).toBe(
|
||||
expect(file1.originalFilename).toBe('file-to-upload.txt');
|
||||
expect(file1.mimetype).toBe('text/plain');
|
||||
expect(fs.readFileSync(file1.filepath).toString()).toBe(
|
||||
fs.readFileSync(asset('file-to-upload.txt')).toString());
|
||||
expect(file2.name).toBe('pptr.png');
|
||||
expect(file2.type).toBe('image/png');
|
||||
expect(fs.readFileSync(file2.path).toString()).toBe(
|
||||
expect(file2.originalFilename).toBe('pptr.png');
|
||||
expect(file2.mimetype).toBe('image/png');
|
||||
expect(fs.readFileSync(file2.filepath).toString()).toBe(
|
||||
fs.readFileSync(asset('pptr.png')).toString());
|
||||
});
|
||||
|
||||
@ -282,11 +282,11 @@ it('should detect mime type', async ({ page, server, asset, isAndroid }) => {
|
||||
it('should not trim big uploaded files', async ({ page, server, asset, isAndroid }) => {
|
||||
it.fixme(isAndroid);
|
||||
|
||||
let files;
|
||||
let files: Record<string, formidable.File>;
|
||||
server.setRoute('/upload', async (req, res) => {
|
||||
const form = new formidable.IncomingForm();
|
||||
form.parse(req, function(err, fields, f) {
|
||||
files = f;
|
||||
files = f as Record<string, formidable.File>;
|
||||
res.end();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user