Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: bundle pwt deps (#13622)
Pavel Feldman007e908cd992
diff --git a/package-lock.json b/package-lock.jsonindex 3786a9e49f..dbe16f0727 100644--- a/package-lock.json+++ b/package-lock.json@@ -22,14 +22,10 @@"@babel/plugin-transform-typescript": "^7.16.8","@babel/preset-react": "^7.16.7","@types/formidable": "^2.0.4",- "@types/minimatch": "^3.0.5",- "@types/ms": "^0.7.31","@types/node": "=14.17.15","@types/react": "^17.0.38","@types/react-dom": "^17.0.11","@types/resize-observer-browser": "^0.1.6",- "@types/source-map-support": "^0.5.4",- "@types/stack-utils": "^2.0.1","@types/xml2js": "^0.4.9","@typescript-eslint/eslint-plugin": "^5.10.2","@typescript-eslint/parser": "^5.10.2",@@ -985,18 +981,6 @@"integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==","dev": true},- "node_modules/@types/minimatch": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",- "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==",- "dev": true- },- "node_modules/@types/ms": {- "version": "0.7.31",- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz",- "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==",- "dev": true- },"node_modules/@types/node": {"version": "14.17.15","resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.15.tgz",@@ -1047,30 +1031,6 @@"integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==","dev": true},- "node_modules/@types/source-map-support": {- "version": "0.5.4",- "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.4.tgz",- "integrity": "sha512-9zGujX1sOPg32XLyfgEB/0G9ZnrjthL/Iv1ZfuAjj8LEilHZEpQSQs1scpRXPhHzGYgWiLz9ldF1cI8JhL+yMw==",- "dev": true,- "dependencies": {- "source-map": "^0.6.0"- }- },- "node_modules/@types/source-map-support/node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/@types/stack-utils": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz",- "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==",- "dev": true- },"node_modules/@types/xml2js": {"version": "0.4.9","resolved": "https://registry.npmjs.org/@types/xml2js/-/xml2js-0.4.9.tgz",@@ -1470,7 +1430,8 @@"node_modules/balanced-match": {"version": "1.0.2","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true},"node_modules/basic-auth-parser": {"version": "0.0.2",@@ -1489,6 +1450,7 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,"dependencies": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -1802,7 +1764,8 @@"node_modules/concat-map": {"version": "0.0.1","resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",+ "dev": true},"node_modules/concat-stream": {"version": "1.6.2",@@ -2075,14 +2038,6 @@"integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==","dev": true},- "node_modules/define-lazy-prop": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",- "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",- "engines": {- "node": ">=8"- }- },"node_modules/define-properties": {"version": "1.1.3","resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",@@ -3548,20 +3503,6 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/is-docker": {- "version": "2.2.1",- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",- "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",- "bin": {- "is-docker": "cli.js"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/is-extglob": {"version": "2.1.1","resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",@@ -3684,6 +3625,7 @@"version": "2.2.1","resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz","integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",+ "dev": true,"bin": {"json5": "lib/cli.js"},@@ -3928,6 +3870,7 @@"version": "3.0.4","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz","integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",+ "dev": true,"dependencies": {"brace-expansion": "^1.1.7"},@@ -4141,33 +4084,6 @@"wrappy": "1"}},- "node_modules/open": {- "version": "8.4.0",- "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz",- "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==",- "dependencies": {- "define-lazy-prop": "^2.0.0",- "is-docker": "^2.1.1",- "is-wsl": "^2.2.0"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/open/node_modules/is-wsl": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",- "dependencies": {- "is-docker": "^2.0.0"- },- "engines": {- "node": ">=8"- }- },"node_modules/optionator": {"version": "0.9.1","resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",@@ -4921,6 +4837,7 @@"version": "0.5.7","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz","integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",+ "dev": true,"engines": {"node": ">=0.10.0"}@@ -5681,15 +5598,6 @@"name": "@playwright/test","version": "1.22.0-next","license": "Apache-2.0",- "dependencies": {- "json5": "2.2.1",- "minimatch": "3.0.4",- "ms": "2.1.3",- "open": "8.4.0",- "pirates": "4.0.4",- "playwright-core": "1.22.0-next",- "source-map-support": "0.4.18"- },"bin": {"playwright": "cli.js"},@@ -5697,27 +5605,6 @@"node": ">=12"}},- "packages/playwright-test/node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="- },- "packages/playwright-test/node_modules/pirates": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz",- "integrity": "sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw==",- "engines": {- "node": ">= 6"- }- },- "packages/playwright-test/node_modules/source-map-support": {- "version": "0.4.18",- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",- "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==",- "dependencies": {- "source-map": "^0.5.6"- }- },"packages/playwright-webkit": {"version": "1.22.0-next","hasInstallScript": true,@@ -6374,36 +6261,7 @@}},"@playwright/test": {- "version": "file:packages/playwright-test",- "requires": {- "json5": "2.2.1",- "minimatch": "3.0.4",- "ms": "2.1.3",- "open": "8.4.0",- "pirates": "4.0.4",- "playwright-core": "1.22.0-next",- "source-map-support": "0.4.18"- },- "dependencies": {- "ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="- },- "pirates": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz",- "integrity": "sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw=="- },- "source-map-support": {- "version": "0.4.18",- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",- "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==",- "requires": {- "source-map": "^0.5.6"- }- }- }+ "version": "file:packages/playwright-test"},"@rollup/pluginutils": {"version": "4.2.0",@@ -6445,18 +6303,6 @@"integrity": "sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ==","dev": true},- "@types/minimatch": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",- "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==",- "dev": true- },- "@types/ms": {- "version": "0.7.31",- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz",- "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==",- "dev": true- },"@types/node": {"version": "14.17.15","resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.15.tgz",@@ -6507,29 +6353,6 @@"integrity": "sha512-EaCxbanVeyxDRTQBkdLb3Bvl/HK7PBK6UJjsSixB0iHKoWxE5uu2Q/DgtpOhPIojN0Zl1whvOd7PoHs2P0s5eA==","dev": true},- "@types/source-map-support": {- "version": "0.5.4",- "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.4.tgz",- "integrity": "sha512-9zGujX1sOPg32XLyfgEB/0G9ZnrjthL/Iv1ZfuAjj8LEilHZEpQSQs1scpRXPhHzGYgWiLz9ldF1cI8JhL+yMw==",- "dev": true,- "requires": {- "source-map": "^0.6.0"- },- "dependencies": {- "source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true- }- }- },- "@types/stack-utils": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz",- "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==",- "dev": true- },"@types/xml2js": {"version": "0.4.9","resolved": "https://registry.npmjs.org/@types/xml2js/-/xml2js-0.4.9.tgz",@@ -6793,7 +6616,8 @@"balanced-match": {"version": "1.0.2","resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",+ "dev": true},"basic-auth-parser": {"version": "0.0.2",@@ -6812,6 +6636,7 @@"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz","integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",+ "dev": true,"requires": {"balanced-match": "^1.0.0","concat-map": "0.0.1"@@ -7054,7 +6879,8 @@"concat-map": {"version": "0.0.1","resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",+ "dev": true},"concat-stream": {"version": "1.6.2",@@ -7254,11 +7080,6 @@"integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==","dev": true},- "define-lazy-prop": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",- "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="- },"define-properties": {"version": "1.1.3","resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz",@@ -8287,11 +8108,6 @@"has": "^1.0.3"}},- "is-docker": {- "version": "2.2.1",- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",- "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="- },"is-extglob": {"version": "2.1.1","resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",@@ -8392,7 +8208,8 @@"json5": {"version": "2.2.1","resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",- "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA=="+ "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",+ "dev": true},"jsonfile": {"version": "4.0.0",@@ -8586,6 +8403,7 @@"version": "3.0.4","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz","integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",+ "dev": true,"requires": {"brace-expansion": "^1.1.7"}@@ -8748,26 +8566,6 @@"wrappy": "1"}},- "open": {- "version": "8.4.0",- "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz",- "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==",- "requires": {- "define-lazy-prop": "^2.0.0",- "is-docker": "^2.1.1",- "is-wsl": "^2.2.0"- },- "dependencies": {- "is-wsl": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",- "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",- "requires": {- "is-docker": "^2.0.0"- }- }- }- },"optionator": {"version": "0.9.1","resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz",@@ -9330,7 +9128,8 @@"source-map": {"version": "0.5.7","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",- "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",+ "dev": true},"source-map-js": {"version": "1.0.2",diff --git a/package.json b/package.jsonindex 76490a22db..3459d27afc 100644--- a/package.json+++ b/package.json@@ -54,14 +54,10 @@"@babel/plugin-transform-typescript": "^7.16.8","@babel/preset-react": "^7.16.7","@types/formidable": "^2.0.4",- "@types/minimatch": "^3.0.5",- "@types/ms": "^0.7.31","@types/node": "=14.17.15","@types/react": "^17.0.38","@types/react-dom": "^17.0.11","@types/resize-observer-browser": "^0.1.6",- "@types/source-map-support": "^0.5.4",- "@types/stack-utils": "^2.0.1","@types/xml2js": "^0.4.9","@typescript-eslint/eslint-plugin": "^5.10.2","@typescript-eslint/parser": "^5.10.2",diff --git a/packages/playwright-core/ThirdPartyNotices.txt b/packages/playwright-core/ThirdPartyNotices.txtindex be2374b012..2a627417d9 100644--- a/packages/playwright-core/ThirdPartyNotices.txt+++ b/packages/playwright-core/ThirdPartyNotices.txt@@ -10,7 +10,7 @@ This project incorporates components from the projects listed below. The origina4. [email protected] (https://github.com/Marak/colors.js)5. [email protected] (https://github.com/tj/commander.js)6. [email protected] (https://github.com/substack/node-concat-map)-7. [email protected] (https://github.com/debug-js/debug)+7. [email protected] (https://github.com/debug-js/debug)8. [email protected] (https://github.com/sindresorhus/escape-string-regexp)9. [email protected] (https://github.com/isaacs/fs.realpath)10. [email protected] (https://github.com/isaacs/node-glob)@@ -41,15 +41,14 @@ This project incorporates components from the projects listed below. The origina35. @types/[email protected] (https://github.com/DefinitelyTyped/DefinitelyTyped)36. @types/[email protected] (https://github.com/DefinitelyTyped/DefinitelyTyped)37. [email protected] (https://github.com/brianloveswords/buffer-crc32)-38. [email protected] (https://github.com/debug-js/debug)-39. [email protected] (https://github.com/mafintosh/end-of-stream)-40. [email protected] (https://github.com/maxogden/extract-zip)-41. [email protected] (https://github.com/andrewrk/node-fd-slicer)-42. [email protected] (https://github.com/sindresorhus/get-stream)-43. [email protected] (https://github.com/andrewrk/node-pend)-44. [email protected] (https://github.com/mafintosh/pump)-45. [email protected] (https://github.com/thejoshwolfe/yauzl)-46. [email protected] (https://github.com/thejoshwolfe/yazl)+38. [email protected] (https://github.com/mafintosh/end-of-stream)+39. [email protected] (https://github.com/maxogden/extract-zip)+40. [email protected] (https://github.com/andrewrk/node-fd-slicer)+41. [email protected] (https://github.com/sindresorhus/get-stream)+42. [email protected] (https://github.com/andrewrk/node-pend)+43. [email protected] (https://github.com/mafintosh/pump)+44. [email protected] (https://github.com/thejoshwolfe/yauzl)+45. [email protected] (https://github.com/thejoshwolfe/yazl)%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================@@ -333,7 +332,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.=========================================END OF [email protected] AND INFORMATION-%% [email protected] NOTICES AND INFORMATION BEGIN HERE+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================(The MIT License)@@ -355,7 +354,7 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THESOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.=========================================-END OF [email protected] AND INFORMATION+END OF [email protected] AND INFORMATION%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================@@ -1413,30 +1412,6 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEAL=========================================END OF [email protected] AND INFORMATION-%% [email protected] NOTICES AND INFORMATION BEGIN HERE-=========================================-(The MIT License)--Copyright (c) 2014-2017 TJ Holowaychuk <[email protected]>-Copyright (c) 2018-2021 Josh Junon--Permission is hereby granted, free of charge, to any person obtaining a copy of this software-and associated documentation files (the 'Software'), to deal in the Software without restriction,-including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,-and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,-subject to the following conditions:--The above copyright notice and this permission notice shall be included in all copies or substantial-portions of the Software.--THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT-LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,-WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.-=========================================-END OF [email protected] AND INFORMATION-%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================The MIT License (MIT)diff --git a/packages/playwright-core/bundles/utils/package-lock.json b/packages/playwright-core/bundles/utils/package-lock.jsonindex 768936a9ca..a9307f4cdb 100644--- a/packages/playwright-core/bundles/utils/package-lock.json+++ b/packages/playwright-core/bundles/utils/package-lock.json@@ -10,10 +10,12 @@"dependencies": {"colors": "1.4.0","commander": "8.3.0",- "debug": "4.3.3",+ "debug": "^4.3.4","https-proxy-agent": "5.0.0","jpeg-js": "0.4.3","mime": "^3.0.0",+ "minimatch": "^3.1.2",+ "ms": "^2.1.2","pngjs": "6.0.0","progress": "2.0.3","proper-lockfile": "4.1.2",@@ -26,6 +28,8 @@"devDependencies": {"@types/debug": "^4.1.7","@types/mime": "^2.0.3",+ "@types/minimatch": "^3.0.5",+ "@types/ms": "^0.7.31","@types/pngjs": "^6.0.1","@types/progress": "^2.0.5","@types/proper-lockfile": "^4.1.2",@@ -192,9 +196,9 @@"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="},"node_modules/debug": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",- "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",+ "version": "4.3.4",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==","dependencies": {"ms": "2.1.2"},@@ -602,9 +606,9 @@"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="},"debug": {- "version": "4.3.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz",- "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==",+ "version": "4.3.4",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",+ "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==","requires": {"ms": "2.1.2"}diff --git a/packages/playwright-core/bundles/utils/package.json b/packages/playwright-core/bundles/utils/package.jsonindex f117fffca5..43ecc086ea 100644--- a/packages/playwright-core/bundles/utils/package.json+++ b/packages/playwright-core/bundles/utils/package.json@@ -11,10 +11,12 @@"dependencies": {"colors": "1.4.0","commander": "8.3.0",- "debug": "4.3.3",+ "debug": "^4.3.4","https-proxy-agent": "5.0.0","jpeg-js": "0.4.3","mime": "^3.0.0",+ "minimatch": "^3.1.2",+ "ms": "^2.1.2","pngjs": "6.0.0","progress": "2.0.3","proper-lockfile": "4.1.2",@@ -27,6 +29,8 @@"devDependencies": {"@types/debug": "^4.1.7","@types/mime": "^2.0.3",+ "@types/minimatch": "^3.0.5",+ "@types/ms": "^0.7.31","@types/pngjs": "^6.0.1","@types/progress": "^2.0.5","@types/proper-lockfile": "^4.1.2",diff --git a/packages/playwright-core/bundles/utils/src/utilsBundleImpl.ts b/packages/playwright-core/bundles/utils/src/utilsBundleImpl.tsindex e0c8d4f519..6ce937ae20 100644--- a/packages/playwright-core/bundles/utils/src/utilsBundleImpl.ts+++ b/packages/playwright-core/bundles/utils/src/utilsBundleImpl.ts@@ -33,6 +33,12 @@ export const lockfile = lockfileLibrary;import mimeLibrary from 'mime';export const mime = mimeLibrary;+import minimatchLibrary from 'minimatch';+export const minimatch = minimatchLibrary;++import msLibrary from 'ms';+export const ms = msLibrary;+export { PNG } from 'pngjs';export { program } from 'commander';diff --git a/packages/playwright-core/src/utilsBundle.ts b/packages/playwright-core/src/utilsBundle.tsindex b5d8b892bc..db4b457ddb 100644--- a/packages/playwright-core/src/utilsBundle.ts+++ b/packages/playwright-core/src/utilsBundle.ts@@ -21,6 +21,8 @@ export const HttpsProxyAgent: typeof import('../bundles/utils/node_modules/httpsexport const jpegjs: typeof import('../bundles/utils/node_modules/jpeg-js') = require('./utilsBundleImpl').jpegjs;export const lockfile: typeof import('../bundles/utils/node_modules/@types/proper-lockfile') = require('./utilsBundleImpl').lockfile;export const mime: typeof import('../bundles/utils/node_modules/@types/mime') = require('./utilsBundleImpl').mime;+export const minimatch: typeof import('../bundles/utils/node_modules/@types/minimatch') = require('./utilsBundleImpl').minimatch;+export const ms: typeof import('../bundles/utils/node_modules/@types/ms') = require('./utilsBundleImpl').ms;export const PNG: typeof import('../bundles/utils/node_modules/@types/pngjs').PNG = require('./utilsBundleImpl').PNG;export const program: typeof import('../bundles/utils/node_modules/commander').program = require('./utilsBundleImpl').program;export const progress: typeof import('../bundles/utils/node_modules/@types/progress') = require('./utilsBundleImpl').progress;diff --git a/packages/playwright-test/ThirdPartyNotices.txt b/packages/playwright-test/ThirdPartyNotices.txtindex 2facc65c24..f224d4817f 100644--- a/packages/playwright-test/ThirdPartyNotices.txt+++ b/packages/playwright-test/ThirdPartyNotices.txt@@ -125,6 +125,12 @@ This project incorporates components from the projects listed below. The origina119. [email protected] (https://github.com/tapjs/stack-utils)120. [email protected] (https://github.com/chalk/supports-color)121. [email protected] (https://github.com/micromatch/to-regex-range)+122. [email protected] (https://github.com/sindresorhus/define-lazy-prop)+123. [email protected] (https://github.com/sindresorhus/is-docker)+124. [email protected] (https://github.com/sindresorhus/is-wsl)+125. [email protected] (https://github.com/sindresorhus/open)+126. [email protected] (https://github.com/danez/pirates)+127. [email protected] (https://github.com/evanw/node-source-map-support)%% @babel/[email protected] NOTICES AND INFORMATION BEGIN HERE=========================================@@ -3442,4 +3448,112 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS INTHE SOFTWARE.=========================================-END OF [email protected] AND INFORMATION\ No newline at end of file+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+MIT License++Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)++Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+MIT License++Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)++Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+MIT License++Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)++Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+MIT License++Copyright (c) Sindre Sorhus <[email protected]> (https://sindresorhus.com)++Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+MIT License++Copyright (c) 2016-2018 Ari Porad++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION++%% [email protected] NOTICES AND INFORMATION BEGIN HERE+=========================================+The MIT License (MIT)++Copyright (c) 2014 Evan Wallace++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.+=========================================+END OF [email protected] AND INFORMATION\ No newline at end of filediff --git a/packages/playwright-test/bundles/utils/package-lock.json b/packages/playwright-test/bundles/utils/package-lock.jsonnew file mode 100644index 0000000000..2567b627d4--- /dev/null+++ b/packages/playwright-test/bundles/utils/package-lock.json@@ -0,0 +1,193 @@+{+ "name": "utils-bundle",+ "version": "0.0.1",+ "lockfileVersion": 2,+ "requires": true,+ "packages": {+ "": {+ "name": "utils-bundle",+ "version": "0.0.1",+ "dependencies": {+ "json5": "2.2.1",+ "open": "8.4.0",+ "pirates": "4.0.4",+ "source-map-support": "0.4.18"+ },+ "devDependencies": {+ "@types/source-map-support": "^0.5.4"+ }+ },+ "node_modules/@types/source-map-support": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.4.tgz",+ "integrity": "sha512-9zGujX1sOPg32XLyfgEB/0G9ZnrjthL/Iv1ZfuAjj8LEilHZEpQSQs1scpRXPhHzGYgWiLz9ldF1cI8JhL+yMw==",+ "dev": true,+ "dependencies": {+ "source-map": "^0.6.0"+ }+ },+ "node_modules/define-lazy-prop": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og==",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "dependencies": {+ "is-docker": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/json5": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",+ "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==",+ "bin": {+ "json5": "lib/cli.js"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/open": {+ "version": "8.4.0",+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz",+ "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==",+ "dependencies": {+ "define-lazy-prop": "^2.0.0",+ "is-docker": "^2.1.1",+ "is-wsl": "^2.2.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/pirates": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz",+ "integrity": "sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw==",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/source-map-support": {+ "version": "0.4.18",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",+ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==",+ "dependencies": {+ "source-map": "^0.5.6"+ }+ },+ "node_modules/source-map-support/node_modules/source-map": {+ "version": "0.5.7",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=",+ "engines": {+ "node": ">=0.10.0"+ }+ }+ },+ "dependencies": {+ "@types/source-map-support": {+ "version": "0.5.4",+ "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.4.tgz",+ "integrity": "sha512-9zGujX1sOPg32XLyfgEB/0G9ZnrjthL/Iv1ZfuAjj8LEilHZEpQSQs1scpRXPhHzGYgWiLz9ldF1cI8JhL+yMw==",+ "dev": true,+ "requires": {+ "source-map": "^0.6.0"+ }+ },+ "define-lazy-prop": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz",+ "integrity": "sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og=="+ },+ "is-docker": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ=="+ },+ "is-wsl": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",+ "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",+ "requires": {+ "is-docker": "^2.0.0"+ }+ },+ "json5": {+ "version": "2.2.1",+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz",+ "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA=="+ },+ "open": {+ "version": "8.4.0",+ "resolved": "https://registry.npmjs.org/open/-/open-8.4.0.tgz",+ "integrity": "sha512-XgFPPM+B28FtCCgSb9I+s9szOC1vZRSwgWsRUA5ylIxRTgKozqjOCrVOqGsYABPYK5qnfqClxZTFBa8PKt2v6Q==",+ "requires": {+ "define-lazy-prop": "^2.0.0",+ "is-docker": "^2.1.1",+ "is-wsl": "^2.2.0"+ }+ },+ "pirates": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz",+ "integrity": "sha512-ZIrVPH+A52Dw84R0L3/VS9Op04PuQ2SEoJL6bkshmiTic/HldyW9Tf7oH5mhJZBK7NmDx27vSMrYEXPXclpDKw=="+ },+ "source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true+ },+ "source-map-support": {+ "version": "0.4.18",+ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz",+ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==",+ "requires": {+ "source-map": "^0.5.6"+ },+ "dependencies": {+ "source-map": {+ "version": "0.5.7",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz",+ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w="+ }+ }+ }+ }+}diff --git a/packages/playwright-test/bundles/utils/package.json b/packages/playwright-test/bundles/utils/package.jsonnew file mode 100644index 0000000000..de8cbe143e--- /dev/null+++ b/packages/playwright-test/bundles/utils/package.json@@ -0,0 +1,20 @@+{+ "name": "utils-bundle",+ "version": "0.0.1",+ "private": true,+ "scripts": {+ "esbuild": "esbuild ./src/utilsBundleImpl.ts --bundle --outdir=../../lib --format=cjs --platform=node --target=ES2019",+ "build": "npm ci && npm run esbuild -- --minify",+ "watch": "npm ci && npm run esbuild -- --watch --sourcemap",+ "generate-license": "node ../../../../utils/generate_third_party_notice.js"+ },+ "dependencies": {+ "json5": "2.2.1",+ "open": "8.4.0",+ "pirates": "4.0.4",+ "source-map-support": "0.4.18"+ },+ "devDependencies": {+ "@types/source-map-support": "^0.5.4"+ }+}diff --git a/packages/playwright-test/bundles/utils/src/utilsBundleImpl.ts b/packages/playwright-test/bundles/utils/src/utilsBundleImpl.tsnew file mode 100644index 0000000000..aed02ee179--- /dev/null+++ b/packages/playwright-test/bundles/utils/src/utilsBundleImpl.ts@@ -0,0 +1,27 @@+/**+ * Copyright (c) Microsoft Corporation.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++import json5Library from 'json5';+export const json5 = json5Library;++import openLibrary from 'open';+export const open = openLibrary;++import * as piratesLibrary from 'pirates';+export const pirates = piratesLibrary;++import sourceMapSupportLibrary from 'source-map-support';+export const sourceMapSupport = sourceMapSupportLibrary;diff --git a/packages/playwright-test/package.json b/packages/playwright-test/package.jsonindex 5d3dc237e4..fb643de5fb 100644--- a/packages/playwright-test/package.json+++ b/packages/playwright-test/package.json@@ -27,14 +27,5 @@"author": {"name": "Microsoft Corporation"},- "license": "Apache-2.0",- "dependencies": {- "json5": "2.2.1",- "minimatch": "3.0.4",- "ms": "2.1.3",- "open": "8.4.0",- "pirates": "4.0.4",- "playwright-core": "1.22.0-next",- "source-map-support": "0.4.18"- }+ "license": "Apache-2.0"}diff --git a/packages/playwright-test/src/DEPS b/packages/playwright-test/src/DEPSdeleted file mode 100644index 655e5f1a84..0000000000--- a/packages/playwright-test/src/DEPS+++ /dev/null@@ -1,20 +0,0 @@-module.exports = {- '/': [- '../types/testReporter.d.ts',- 'matchers/',- 'reporters/',- 'third_party/',- ],- 'matchers': [- 'expect.ts',- 'globals.ts',- 'testInfo.ts',- 'types.ts',- 'util.ts',- ],- 'reporters': [- '../types/testReporter.d.ts',- './types.ts',- 'util.ts',- ],-};diff --git a/packages/playwright-test/src/DEPS.list b/packages/playwright-test/src/DEPS.listindex cb17b649b3..5408da9b82 100644--- a/packages/playwright-test/src/DEPS.list+++ b/packages/playwright-test/src/DEPS.list@@ -1,4 +1,5 @@[*]+./utilsBundle.tsmatchers/reporters/third_party/diff --git a/packages/playwright-test/src/reporters/DEPS.list b/packages/playwright-test/src/reporters/DEPS.listindex 7b0a857451..b9a2866feb 100644--- a/packages/playwright-test/src/reporters/DEPS.list+++ b/packages/playwright-test/src/reporters/DEPS.list@@ -1,3 +1,4 @@[*]../util.ts../babelBundle.ts+../utilsBundle.tsdiff --git a/packages/playwright-test/src/reporters/base.ts b/packages/playwright-test/src/reporters/base.tsindex 10173171dd..2cef3f2c11 100644--- a/packages/playwright-test/src/reporters/base.ts+++ b/packages/playwright-test/src/reporters/base.ts@@ -14,9 +14,8 @@* limitations under the License.*/-import { colors } from 'playwright-core/lib/utilsBundle';+import { colors, ms as milliseconds } from 'playwright-core/lib/utilsBundle';import fs from 'fs';-import milliseconds from 'ms';import path from 'path';import { StackUtils } from 'playwright-core/lib/utilsBundle';import type { FullConfig, TestCase, Suite, TestResult, TestError, Reporter, FullResult, TestStep, Location } from '../../types/testReporter';diff --git a/packages/playwright-test/src/reporters/github.ts b/packages/playwright-test/src/reporters/github.tsindex 5071ec63df..bc1e2a4ea4 100644--- a/packages/playwright-test/src/reporters/github.ts+++ b/packages/playwright-test/src/reporters/github.ts@@ -14,7 +14,7 @@* limitations under the License.*/-import milliseconds from 'ms';+import { ms as milliseconds } from 'playwright-core/lib/utilsBundle';import path from 'path';import { BaseReporter, formatError, formatFailure, stripAnsiEscapes } from './base';import type { TestCase, FullResult, TestError } from '../../types/testReporter';diff --git a/packages/playwright-test/src/reporters/html.ts b/packages/playwright-test/src/reporters/html.tsindex b5c9b4a3bd..7607e86a95 100644--- a/packages/playwright-test/src/reporters/html.ts+++ b/packages/playwright-test/src/reporters/html.ts@@ -16,7 +16,7 @@import { colors } from 'playwright-core/lib/utilsBundle';import fs from 'fs';-import open from 'open';+import { open } from '../utilsBundle';import path from 'path';import type { TransformCallback } from 'stream';import { Transform } from 'stream';diff --git a/packages/playwright-test/src/reporters/list.ts b/packages/playwright-test/src/reporters/list.tsindex 918478a4ff..c94db74aa4 100644--- a/packages/playwright-test/src/reporters/list.ts+++ b/packages/playwright-test/src/reporters/list.ts@@ -15,8 +15,7 @@*//* eslint-disable no-console */-import { colors } from 'playwright-core/lib/utilsBundle';-import milliseconds from 'ms';+import { colors, ms as milliseconds } from 'playwright-core/lib/utilsBundle';import { BaseReporter, formatTestTitle } from './base';import type { FullConfig, FullResult, Suite, TestCase, TestResult, TestStep } from '../../types/testReporter';diff --git a/packages/playwright-test/src/runner.ts b/packages/playwright-test/src/runner.tsindex 3532309431..0176de5800 100644--- a/packages/playwright-test/src/runner.ts+++ b/packages/playwright-test/src/runner.ts@@ -15,7 +15,7 @@* limitations under the License.*/-import { rimraf } from 'playwright-core/lib/utilsBundle';+import { rimraf, minimatch } from 'playwright-core/lib/utilsBundle';import * as fs from 'fs';import * as path from 'path';import { promisify } from 'util';@@ -38,7 +38,6 @@ import JUnitReporter from './reporters/junit';import EmptyReporter from './reporters/empty';import HtmlReporter from './reporters/html';import type { ProjectImpl } from './project';-import { Minimatch } from 'minimatch';import type { Config } from './types';import type { FullConfigInternal } from './types';import { WebServer } from './webServer';@@ -575,7 +574,7 @@ async function collectFiles(testDir: string): Promise<string[]> {if (!s)return;// Use flipNegate, because we handle negation ourselves.- const rule = new Minimatch(s, { matchBase: true, dot: true, flipNegate: true }) as any;+ const rule = new minimatch.Minimatch(s, { matchBase: true, dot: true, flipNegate: true }) as any;if (rule.comment)return;rule.dir = dir;diff --git a/packages/playwright-test/src/third_party/tsconfig-loader.ts b/packages/playwright-test/src/third_party/tsconfig-loader.tsindex e7d9d99e10..348c4a620d 100644--- a/packages/playwright-test/src/third_party/tsconfig-loader.ts+++ b/packages/playwright-test/src/third_party/tsconfig-loader.ts@@ -26,7 +26,7 @@import * as path from 'path';import * as fs from 'fs';-import JSON5 from 'json5';+import { json5 } from '../utilsBundle';/*** Typing for the parts of tsconfig that we care about@@ -149,7 +149,7 @@ export function loadTsconfig(const configString = readFileSync(configFilePath);const cleanedJson = StripBom(configString);- const config: Tsconfig = JSON5.parse(cleanedJson);+ const config: Tsconfig = json5.parse(cleanedJson);let extendedConfig = config.extends;if (extendedConfig) {diff --git a/packages/playwright-test/src/transform.ts b/packages/playwright-test/src/transform.tsindex 4a73f042ea..cb6781280b 100644--- a/packages/playwright-test/src/transform.ts+++ b/packages/playwright-test/src/transform.ts@@ -14,13 +14,12 @@* limitations under the License.*/-import * as crypto from 'crypto';-import * as os from 'os';-import * as path from 'path';-import * as fs from 'fs';-import * as pirates from 'pirates';-import * as sourceMapSupport from 'source-map-support';-import * as url from 'url';+import crypto from 'crypto';+import os from 'os';+import path from 'path';+import fs from 'fs';+import { sourceMapSupport, pirates } from './utilsBundle';+import url from 'url';import type { Location } from './types';import type { TsConfigLoaderResult } from './third_party/tsconfig-loader';import { tsConfigLoader } from './third_party/tsconfig-loader';diff --git a/packages/playwright-test/src/util.ts b/packages/playwright-test/src/util.tsindex 21360e3a8f..24053127a2 100644--- a/packages/playwright-test/src/util.ts+++ b/packages/playwright-test/src/util.ts@@ -19,9 +19,8 @@ import { mime } from 'playwright-core/lib/utilsBundle';import util from 'util';import path from 'path';import url from 'url';-import { colors, debug } from 'playwright-core/lib/utilsBundle';+import { colors, debug, minimatch } from 'playwright-core/lib/utilsBundle';import type { TestError, Location } from './types';-import { default as minimatch } from 'minimatch';import { calculateSha1, isRegExp } from 'playwright-core/lib/utils';import { isInternalFileName } from 'playwright-core/lib/utils/stackTrace';import { currentTestInfo } from './globals';diff --git a/packages/playwright-test/src/utilsBundle.ts b/packages/playwright-test/src/utilsBundle.tsnew file mode 100644index 0000000000..780bc4fe33--- /dev/null+++ b/packages/playwright-test/src/utilsBundle.ts@@ -0,0 +1,20 @@+/**+ * Copyright (c) Microsoft Corporation.+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++export const json5: typeof import('../bundles/utils/node_modules/json5') = require('./utilsBundleImpl').json5;+export const open: typeof import('../bundles/utils/node_modules/open') = require('./utilsBundleImpl').open;+export const pirates: typeof import('../bundles/utils/node_modules/pirates') = require('./utilsBundleImpl').pirates;+export const sourceMapSupport: typeof import('../bundles/utils/node_modules/@types/source-map-support') = require('./utilsBundleImpl').sourceMapSupport;