Skip to content

Commit

Permalink
Merge pull request #1203 from qtomlinson/qt/update_spdx
Browse files Browse the repository at this point in the history
Update to @clearlydefined/spdx v0.1.8
  • Loading branch information
qtomlinson authored Oct 17, 2024
2 parents 0787868 + 9cfb615 commit d2eb6b6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 37 deletions.
45 changes: 13 additions & 32 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"url": "git+https://github.com/clearlydefined/service.git"
},
"dependencies": {
"@clearlydefined/spdx": "^0.1.7",
"@clearlydefined/spdx": "github:clearlydefined/spdx#v0.1.8",
"@gitbeaker/node": "^29.2.4",
"@octokit/rest": "^14.0.9",
"ajv": "^6.12.3",
Expand Down
4 changes: 1 addition & 3 deletions test/business/aggregatorTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ describe('Aggregation service', () => {
name: 'slog',
version: '2.7.0',
tools: [['clearlydefined', 'licensee', 'scancode']],
// Ideally this would be declared without any parentheses, but currently
// the SPDX normalization adds them.
expected: 'MPL-2.0 OR (MIT OR Apache-2.0)'
expected: 'MPL-2.0 OR MIT OR Apache-2.0'
},
{
name: 'quote',
Expand Down
6 changes: 5 additions & 1 deletion test/lib/spdx.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('SPDX utility functions', () => {
right: { left: { license: 'BSD-3-Clause' }, conjunction: 'and', right: { license: 'Unlicense' } }
}
},
'MIT OR (BSD-2-Clause OR BSD-3-Clause AND Unlicense)'
'MIT OR BSD-2-Clause OR BSD-3-Clause AND Unlicense'
],
[
{
Expand Down Expand Up @@ -217,13 +217,17 @@ describe('SPDX utility functions', () => {
'NOASSERTION': 'NOASSERTION',
'See license': 'NOASSERTION',
'MIT OR Apache-2.0': 'MIT OR Apache-2.0',
'MIT or Apache-2.0': 'NOASSERTION',
'mit AND apache-2.0': 'MIT AND Apache-2.0',
'MIT AND LGPL-2.1+ AND BSD-3-Clause': 'MIT AND LGPL-2.1+ AND BSD-3-Clause',
'(MIT AND BSD-3-Clause WITH GCC-exception-3.1) OR (CC-BY-4.0 AND Apache-2.0)': 'MIT AND BSD-3-Clause WITH GCC-exception-3.1 OR CC-BY-4.0 AND Apache-2.0',
'MIT AND BSD-3-Clause AND CC-BY-4.0': 'MIT AND BSD-3-Clause AND CC-BY-4.0',
'MIT OR Junk': 'MIT OR NOASSERTION',
'mit OR Junk': 'MIT OR NOASSERTION',
'Commercial AND Apache-2.0': 'NOASSERTION AND Apache-2.0',
'Junk1 OR Junk 2': 'NOASSERTION',
'LGPL-2.1-only OR MIT OR BSD-3-Clause': 'LGPL-2.1-only OR MIT OR BSD-3-Clause',
'LGPL-2.1-only OR BSD-3-Clause AND MIT': 'LGPL-2.1-only OR BSD-3-Clause AND MIT',
' ': null,
null: null
}
Expand Down

0 comments on commit d2eb6b6

Please sign in to comment.