Tomasz Nastaly c860861d02
[ACS-8215] Filter out dependencies of dependencies in licenses.ts script (#10241)
* [ACS-8215] Filter out dependencies of dependencies in licenses.ts script

* ACS-8215 filter out wrong deps from license

* ACS-8215 fix license list

* ACS-8215 revert md file

* Updated md file

* ACS-8215 remove mark

* add type

* [ACS-8215] Add missing fix

---------

Co-authored-by: Darya Balvanovich <darya.balvanovich@hyland.com>
Co-authored-by: MichalKinas <michal.kinas@hyland.com>
2024-12-16 08:54:02 +01:00

29 lines
765 B
Plaintext

---
Title: License info, <%= projName %> <%= projVersion %>
---
# License information for <%= projName %> <%= projVersion %>
This page lists all third party libraries the project depends on.
## Libraries
| Name | Version | License |
| --- | --- | --- |
<% for (var packageName in filteredPackages) {
var lastAtSignPos = packageName.lastIndexOf('@');
var name = packageName.substring(0, lastAtSignPos);
var version = packageName.substring(lastAtSignPos + 1);
var pack = filteredPackages[packageName];
var licenses = pack['licenseExp'] || 'N/A';
var repo = pack['repository'];
var linkedName = name;
if (repo) {
linkedName = `[${name}](${repo})`
}
-%>
| <%= linkedName %> | <%= version %> | <%= licenses %> |
<% } %>