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: bump 'ip' peer dependency (#15750)
Max Schmitt507e92137189
diff --git a/packages/playwright-core/ThirdPartyNotices.txt b/packages/playwright-core/ThirdPartyNotices.txtindex 1bc2422977..88ddec2d84 100644--- a/packages/playwright-core/ThirdPartyNotices.txt+++ b/packages/playwright-core/ThirdPartyNotices.txt@@ -25,7 +25,7 @@ This project incorporates components from the projects listed below. The origina- [email protected] (https://github.com/TooTallNate/node-https-proxy-agent)- [email protected] (https://github.com/npm/inflight)- [email protected] (https://github.com/isaacs/inherits)-- [email protected] (https://github.com/indutny/node-ip)+- [email protected] (https://github.com/indutny/node-ip)- [email protected] (https://github.com/eugeneware/jpeg-js)- [email protected] (https://github.com/broofa/mime)- [email protected] (https://github.com/isaacs/minimatch)@@ -43,7 +43,7 @@ This project incorporates components from the projects listed below. The origina- [email protected] (https://github.com/tapjs/signal-exit)- [email protected] (https://github.com/JoshGlazebrook/smart-buffer)- [email protected] (https://github.com/TooTallNate/node-socks-proxy-agent)-- [email protected] (https://github.com/JoshGlazebrook/socks)+- [email protected] (https://github.com/JoshGlazebrook/socks)- [email protected] (https://github.com/tapjs/stack-utils)- [email protected] (https://github.com/npm/wrappy)- [email protected] (https://github.com/websockets/ws)@@ -816,7 +816,7 @@ PERFORMANCE OF THIS SOFTWARE.=========================================END OF [email protected] AND INFORMATION-%% [email protected] NOTICES AND INFORMATION BEGIN HERE+%% [email protected] NOTICES AND INFORMATION BEGIN HERE=========================================# IP[](https://www.npmjs.com/package/ip)@@ -909,7 +909,7 @@ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OROTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THEUSE 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=========================================@@ -1465,7 +1465,7 @@ 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 (MIT)@@ -1488,7 +1488,7 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE 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=========================================diff --git a/packages/playwright-core/bundles/utils/build.js b/packages/playwright-core/bundles/utils/build.jsindex c76340ca6a..4c947f73fa 100644--- a/packages/playwright-core/bundles/utils/build.js+++ b/packages/playwright-core/bundles/utils/build.js@@ -16,35 +16,19 @@// @ts-checkconst path = require('path');-const fs = require('fs');const esbuild = require('esbuild');-// Can be removed once https://github.com/JoshGlazebrook/socks/pull/85 is fixed.-/** @type{import('esbuild').Plugin} */-let patchIpToHideBufferDeprecationWarning = {- name: 'patch-ip-deprecation',- setup(build) {- build.onResolve({ filter: /^ip$/ }, () => {- const originalPath = require.resolve('ip');- const patchedPath = path.join(path.dirname(originalPath), path.basename(originalPath, '.js') + '.pw-patched.js');- let sourceFileContent = fs.readFileSync(originalPath, 'utf8')- // all use-cases of new Buffer() pass the length as an arg- sourceFileContent = sourceFileContent.replace(/new Buffer\(/g, 'Buffer.alloc(');- fs.writeFileSync(patchedPath, sourceFileContent);- return { path: patchedPath }- });- },-}-esbuild.build({entryPoints: [path.join(__dirname, 'src/utilsBundleImpl.ts')],bundle: true,outdir: path.join(__dirname, '../../lib'),- plugins: [patchIpToHideBufferDeprecationWarning],format: 'cjs',platform: 'node',target: 'ES2019',watch: process.argv.includes('--watch'),sourcemap: process.argv.includes('--sourcemap'),minify: process.argv.includes('--minify'),-}).catch(() => process.exit(1));+}).catch((error) => {+ console.error(error);+ process.exit(1);+});diff --git a/packages/playwright-core/bundles/utils/package-lock.json b/packages/playwright-core/bundles/utils/package-lock.jsonindex 2128377d25..dedbc4fd01 100644--- a/packages/playwright-core/bundles/utils/package-lock.json+++ b/packages/playwright-core/bundles/utils/package-lock.json@@ -277,9 +277,9 @@"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="},"node_modules/ip": {- "version": "1.1.5",- "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz",- "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo="+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",+ "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ=="},"node_modules/jpeg-js": {"version": "0.4.4",@@ -397,11 +397,11 @@}},"node_modules/socks": {- "version": "2.6.2",- "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.2.tgz",- "integrity": "sha512-zDZhHhZRY9PxRruRMR7kMhnf3I8hDs4S3f9RecfnGxvcBHQcKcIH/oUcEWffsfl1XxdYlA7nnlGbbTvPz9D8gA==",+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.0.tgz",+ "integrity": "sha512-scnOe9y4VuiNUULJN72GrM26BNOjVsfPXI+j+98PkyEfsIXroa5ofyjT+FzGvn/xHs73U2JtoBYAVx9Hl4quSA==","dependencies": {- "ip": "^1.1.5",+ "ip": "^2.0.0","smart-buffer": "^4.2.0"},"engines": {@@ -667,9 +667,9 @@"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="},"ip": {- "version": "1.1.5",- "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz",- "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo="+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",+ "integrity": "sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ=="},"jpeg-js": {"version": "0.4.4",@@ -756,11 +756,11 @@"integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg=="},"socks": {- "version": "2.6.2",- "resolved": "https://registry.npmjs.org/socks/-/socks-2.6.2.tgz",- "integrity": "sha512-zDZhHhZRY9PxRruRMR7kMhnf3I8hDs4S3f9RecfnGxvcBHQcKcIH/oUcEWffsfl1XxdYlA7nnlGbbTvPz9D8gA==",+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/socks/-/socks-2.7.0.tgz",+ "integrity": "sha512-scnOe9y4VuiNUULJN72GrM26BNOjVsfPXI+j+98PkyEfsIXroa5ofyjT+FzGvn/xHs73U2JtoBYAVx9Hl4quSA==","requires": {- "ip": "^1.1.5",+ "ip": "^2.0.0","smart-buffer": "^4.2.0"}},diff --git a/packages/playwright-core/bundles/zip/build.js b/packages/playwright-core/bundles/zip/build.jsindex 6ff564fffd..dba11f4fa0 100644--- a/packages/playwright-core/bundles/zip/build.js+++ b/packages/playwright-core/bundles/zip/build.js@@ -46,4 +46,7 @@ esbuild.build({watch: process.argv.includes('--watch'),sourcemap: process.argv.includes('--sourcemap'),minify: process.argv.includes('--minify'),-}).catch(() => process.exit(1));+}).catch((error) => {+ console.error(error);+ process.exit(1);+});diff --git a/packages/playwright-test/bundles/utils/build.js b/packages/playwright-test/bundles/utils/build.jsindex a7624011ad..df76188218 100644--- a/packages/playwright-test/bundles/utils/build.js+++ b/packages/playwright-test/bundles/utils/build.js@@ -49,4 +49,7 @@ esbuild.build({watch: process.argv.includes('--watch'),sourcemap: process.argv.includes('--sourcemap'),minify: process.argv.includes('--minify'),-}).catch(() => process.exit(1));+}).catch((error) => {+ console.error(error);+ process.exit(1);+});