diff --git a/THIRD_PARTY_NOTICES b/THIRD_PARTY_NOTICES index 60cb153cc9..214d049b0c 100644 --- a/THIRD_PARTY_NOTICES +++ b/THIRD_PARTY_NOTICES @@ -250,6 +250,7 @@ This project incorporates components from the projects listed below. The origina 243. @bpmn-io/element-template-chooser@1.0.0 (https://github.com/bpmn-io/element-template-chooser.git) 244. @bpmn-io/element-template-icon-renderer@0.5.1 (git+ssh://git@github.com/bpmn-io/element-template-icon-renderer.git) 245. @camunda/example-data-properties-provider@1.1.1 +246. vscode-windows-ca-certs@0.3.0 (git+https://github.com/Microsoft/vscode-windows-ca-certs.git) %% @sentry/node@7.57.0 NOTICES AND INFORMATION BEGIN HERE @@ -8070,3 +8071,40 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ========================================== END OF @camunda/example-data-properties-provider@1.1.1 NOTICES AND INFORMATION + + +%% vscode-windows-ca-certs@0.3.0 NOTICES AND INFORMATION BEGIN HERE +========================================== +BSD 3-Clause License + +Copyright (c) 2016, Stas Ukolov +Copyright (c) Microsoft Corporation + +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. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +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 vscode-windows-ca-certs@0.3.0 NOTICES AND INFORMATION diff --git a/tasks/license-book-handlers/collect-licenses.js b/tasks/license-book-handlers/collect-licenses.js index b9a065c177..fe2add9fd7 100644 --- a/tasks/license-book-handlers/collect-licenses.js +++ b/tasks/license-book-handlers/collect-licenses.js @@ -10,6 +10,7 @@ const collectAppDependencies = require('./collect-app-dependencies'); const collectClientDependencies = require('./collect-client-dependencies'); +const optionalDependencies = require('./optional-dependencies'); module.exports = async function() { const deps = await Promise.all([ @@ -17,5 +18,11 @@ module.exports = async function() { collectClientDependencies() ]); - return deps.flat(1); + return addIfNotPresent(deps.flat(1), optionalDependencies); }; + +function addIfNotPresent(arr, toAdd) { + const missing = toAdd.filter(d => !arr.find(a => a.packageJson.name === d.packageJson.name)); + + return arr.concat(missing); +} diff --git a/tasks/license-book-handlers/index.js b/tasks/license-book-handlers/index.js index 75c161b8c0..302a2c7cc3 100644 --- a/tasks/license-book-handlers/index.js +++ b/tasks/license-book-handlers/index.js @@ -9,7 +9,6 @@ */ module.exports = { - collectClientDependencies: require('./collect-client-dependencies'), collectLicenses: require('./collect-licenses'), createLicenseBook: require('./create-license-book'), generateSummary: require('./generate-summary'), diff --git a/tasks/license-book-handlers/optional-dependencies.js b/tasks/license-book-handlers/optional-dependencies.js new file mode 100644 index 0000000000..16e7a097ce --- /dev/null +++ b/tasks/license-book-handlers/optional-dependencies.js @@ -0,0 +1,57 @@ +/** + * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH + * under one or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information regarding copyright + * ownership. + * + * Camunda licenses this file to you under the MIT; you may not use this file + * except in compliance with the MIT License. + */ + +/** + * For platform-specific dependencies, we need to collect the information here. + */ +module.exports = [ + { + 'licenseId': 'BSD-3-Clause', + 'licenseText': `BSD 3-Clause License + +Copyright (c) 2016, Stas Ukolov +Copyright (c) Microsoft Corporation + +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. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +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.`, + 'packageJson': { + 'name': 'vscode-windows-ca-certs', + 'repository': { + 'type': 'git', + 'url': 'git+https://github.com/Microsoft/vscode-windows-ca-certs.git' + }, + 'version': '0.3.0' + } + } +]; diff --git a/tasks/send-license-book-summary.js b/tasks/send-license-book-summary.js index 62fac700fc..751e5014b4 100644 --- a/tasks/send-license-book-summary.js +++ b/tasks/send-license-book-summary.js @@ -21,7 +21,6 @@ const { Diff2Html: diff2html } = require('diff2html'); const mri = require('mri'); const { - collectClientDependencies, collectLicenses, generateSummary, processLicenses @@ -141,12 +140,7 @@ function getPreviousVersion() { } async function getSummary() { - const clientDependencies = collectClientDependencies(); - - const combinedLicenses = await collectLicenses( - { name: 'app' }, - { name: 'client', filter: name => clientDependencies[name] } - ); + const combinedLicenses = await collectLicenses(); const { processedLicenses