From a2d214f255d1e77300cfe736d47b702a44cb3e82 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 13 Jan 2025 12:07:58 +0100 Subject: [PATCH] add notices --- .../playwright-core/ThirdPartyNotices.txt | 56 ++++++++++++++++++- utils/generate_third_party_notice.js | 8 +++ 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/packages/playwright-core/ThirdPartyNotices.txt b/packages/playwright-core/ThirdPartyNotices.txt index 2dc33e8c8f..e435019138 100644 --- a/packages/playwright-core/ThirdPartyNotices.txt +++ b/packages/playwright-core/ThirdPartyNotices.txt @@ -47,6 +47,8 @@ This project incorporates components from the projects listed below. The origina - socks@2.8.3 (https://github.com/JoshGlazebrook/socks) - sprintf-js@1.1.3 (https://github.com/alexei/sprintf.js) - stack-utils@2.0.5 (https://github.com/tapjs/stack-utils) +- tar-fs (https://github.com/mafintosh/tar-fs) +- tar-stream (https://github.com/mafintosh/tar-stream) - wrappy@1.0.2 (https://github.com/npm/wrappy) - ws@8.17.1 (https://github.com/websockets/ws) - yaml@2.6.0 (https://github.com/eemeli/yaml) @@ -1112,6 +1114,58 @@ THE SOFTWARE. ========================================= END OF stack-utils@2.0.5 AND INFORMATION +%% tar-fs NOTICES AND INFORMATION BEGIN HERE +========================================= +The MIT License (MIT) + +Copyright (c) 2014 Mathias Buus + +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 tar-fs AND INFORMATION + +%% tar-stream NOTICES AND INFORMATION BEGIN HERE +========================================= +The MIT License (MIT) + +Copyright (c) 2014 Mathias Buus + +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 tar-stream AND INFORMATION + %% wrappy@1.0.2 NOTICES AND INFORMATION BEGIN HERE ========================================= The ISC License @@ -1229,6 +1283,6 @@ END OF yazl@2.5.1 AND INFORMATION SUMMARY BEGIN HERE ========================================= -Total Packages: 48 +Total Packages: 50 ========================================= END OF SUMMARY \ No newline at end of file diff --git a/utils/generate_third_party_notice.js b/utils/generate_third_party_notice.js index d9148142f7..66fc07e26b 100644 --- a/utils/generate_third_party_notice.js +++ b/utils/generate_third_party_notice.js @@ -61,6 +61,14 @@ This project incorporates components from the projects listed below. The origina } } + if (project === "playwright-core") { + const tar = path.join(projectDir, 'src', 'utils', 'third_party', 'tar'); + const license = path.join(tar, 'LICENSE'); + const licenseText = fs.readFileSync(license, 'utf8'); + allPackages['tar-fs'] = { licenseText, repository: 'https://github.com/mafintosh/tar-fs' }; + allPackages['tar-stream'] = { licenseText, repository: 'https://github.com/mafintosh/tar-stream' }; + } + const packages = await checkDir('node_modules/codemirror'); for (const [key, value] of Object.entries(packages)) { if (value.licenseText)