Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const ignores = [
"output/",
"**/playwright-report/",
"packages/*/lib/",
"packages/playwright-core/bundles/zip/src/third_party/",
"packages/playwright-core/src/generated/*",
"packages/playwright-core/src/third_party/",
"packages/playwright-core/types/*",
Expand Down
176 changes: 59 additions & 117 deletions packages/playwright-core/ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION

This project incorporates components from the projects listed below. The original copyright notices and the licenses under which Microsoft received such components are set forth below. Microsoft reserves all rights not expressly granted herein, whether by implication, estoppel or otherwise.

- @types/[email protected] (https://github.com/DefinitelyTyped/DefinitelyTyped)
- @types/[email protected] (https://github.com/DefinitelyTyped/DefinitelyTyped)
- [email protected] (https://github.com/TooTallNate/node-agent-base)
- [email protected] (https://github.com/juliangruber/balanced-match)
- [email protected] (https://github.com/juliangruber/brace-expansion)
Expand All @@ -15,12 +13,11 @@ This project incorporates components from the projects listed below. The origina
- [email protected] (https://github.com/tj/commander.js)
- [email protected] (https://github.com/substack/node-concat-map)
- [email protected] (https://github.com/debug-js/debug)
- [email protected] (https://github.com/debug-js/debug)
- [email protected] (https://github.com/sindresorhus/define-lazy-prop)
- [email protected] (https://github.com/kpdecker/jsdiff)
- [email protected] (https://github.com/motdotla/dotenv)
- [email protected] (https://github.com/mafintosh/end-of-stream)
- [email protected] (https://github.com/maxogden/extract-zip)
- [email protected] (https://github.com/andrewrk/node-fd-slicer)
- [email protected] (https://github.com/sindresorhus/get-stream)
- [email protected] (https://github.com/isaacs/node-graceful-fs)
- [email protected] (https://github.com/TooTallNate/node-https-proxy-agent)
Expand All @@ -32,13 +29,14 @@ This project incorporates components from the projects listed below. The origina
- [email protected] (https://github.com/broofa/mime)
- [email protected] (https://github.com/isaacs/minimatch)
- [email protected] (https://github.com/zeit/ms)
- [email protected] (https://github.com/vercel/ms)
- [email protected] (https://github.com/isaacs/once)
- [email protected] (https://github.com/sindresorhus/open)
- [email protected] (https://github.com/andrewrk/node-pend)
- [email protected] (https://github.com/lukeapage/pngjs)
- [email protected] (https://github.com/visionmedia/node-progress)
- [email protected] (https://github.com/Rob--W/proxy-from-env)
- [email protected].0 (https://github.com/mafintosh/pump)
- [email protected].2 (https://github.com/mafintosh/pump)
- [email protected] (https://github.com/tim-kos/node-retry)
- [email protected] (https://github.com/tapjs/signal-exit)
- [email protected] (https://github.com/JoshGlazebrook/smart-buffer)
Expand All @@ -48,61 +46,9 @@ This project incorporates components from the projects listed below. The origina
- [email protected] (https://github.com/npm/wrappy)
- [email protected] (https://github.com/websockets/ws)
- [email protected] (https://github.com/eemeli/yaml)
- yauzl@2.10.0 (https://github.com/thejoshwolfe/yauzl)
- yauzl@3.2.0 (https://github.com/thejoshwolfe/yauzl)
- [email protected] (https://github.com/thejoshwolfe/yazl)

%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License

Copyright (c) Microsoft Corporation.

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 @types/[email protected] AND INFORMATION

%% @types/[email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
MIT License

Copyright (c) Microsoft Corporation.

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 @types/[email protected] AND INFORMATION

%% [email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
agent-base
Expand Down Expand Up @@ -459,6 +405,30 @@ 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)

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
=========================================
MIT License
Expand Down Expand Up @@ -561,60 +531,6 @@ THE SOFTWARE.
=========================================
END OF [email protected] AND INFORMATION

%% [email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
Copyright (c) 2014 Max Ogden and other contributors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
=========================================
END OF [email protected] AND INFORMATION

%% [email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
Copyright (c) 2014 Andrew Kelley

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
Expand Down Expand Up @@ -990,6 +906,32 @@ SOFTWARE.
=========================================
END OF [email protected] AND INFORMATION

%% [email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
The MIT License (MIT)

Copyright (c) 2020 Vercel, Inc.

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 ISC License
Expand Down Expand Up @@ -1129,7 +1071,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
=========================================
END OF [email protected] AND INFORMATION

%% [email protected].0 NOTICES AND INFORMATION BEGIN HERE
%% [email protected].2 NOTICES AND INFORMATION BEGIN HERE
=========================================
The MIT License (MIT)

Expand All @@ -1153,7 +1095,7 @@ 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].0 AND INFORMATION
END OF [email protected].2 AND INFORMATION

%% [email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
Expand Down Expand Up @@ -1501,7 +1443,7 @@ THIS SOFTWARE.
=========================================
END OF [email protected] AND INFORMATION

%% yauzl@2.10.0 NOTICES AND INFORMATION BEGIN HERE
%% yauzl@3.2.0 NOTICES AND INFORMATION BEGIN HERE
=========================================
The MIT License (MIT)

Expand All @@ -1525,7 +1467,7 @@ 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 yauzl@2.10.0 AND INFORMATION
END OF yauzl@3.2.0 AND INFORMATION

%% [email protected] NOTICES AND INFORMATION BEGIN HERE
=========================================
Expand Down Expand Up @@ -1555,6 +1497,6 @@ END OF [email protected] AND INFORMATION

SUMMARY BEGIN HERE
=========================================
Total Packages: 46
Total Packages: 44
=========================================
END OF SUMMARY
18 changes: 0 additions & 18 deletions packages/playwright-core/bundles/zip/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,13 @@

// @ts-check
const path = require('path');
const fs = require('fs');
const esbuild = require('esbuild');

// Can be removed once https://github.com/thejoshwolfe/yauzl/issues/114 is fixed.
/** @type{import('esbuild').Plugin} */
let patchFdSlicerToHideBufferDeprecationWarning = {
name: 'patch-fd-slicer-deprecation',
setup(build) {
build.onResolve({ filter: /^fd-slicer$/ }, () => {
const originalPath = require.resolve('fd-slicer');
const patchedPath = path.join(path.dirname(originalPath), path.basename(originalPath, '.js') + '.pw-patched.js');
let sourceFileContent = fs.readFileSync(originalPath, 'utf8')
sourceFileContent = sourceFileContent.replace(/new Buffer\(toRead\)/g, 'Buffer.alloc(toRead)');
fs.writeFileSync(patchedPath, sourceFileContent);
return { path: patchedPath }
});
},
};

(async () => {
const ctx = await esbuild.context({
entryPoints: [path.join(__dirname, 'src/zipBundleImpl.ts')],
bundle: true,
outdir: path.join(__dirname, '../../lib'),
plugins: [patchFdSlicerToHideBufferDeprecationWarning],
format: 'cjs',
platform: 'node',
target: 'ES2019',
Expand Down
Loading
Loading