Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

21
node_modules/spdx-correct/index.js generated vendored
View File

@@ -49,6 +49,7 @@ var transpositions = [
['GNU GENERAL PUBLIC LICENSE', 'GPL'],
['MTI', 'MIT'],
['Mozilla Public License', 'MPL'],
['Universal Permissive License', 'UPL'],
['WTH', 'WTF'],
['-License', '']
]
@@ -138,6 +139,26 @@ var transforms = [
function (argument) {
return argument.replace(/(-| )clause(-| )(\d)/, '-$3-Clause')
},
// e.g. 'New BSD license'
function (argument) {
return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, 'BSD-3-Clause')
},
// e.g. 'Simplified BSD license'
function (argument) {
return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, 'BSD-2-Clause')
},
// e.g. 'Free BSD license'
function (argument) {
return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, 'BSD-2-Clause-$1BSD')
},
// e.g. 'Clear BSD license'
function (argument) {
return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, 'BSD-3-Clause-Clear')
},
// e.g. 'Old BSD License'
function (argument) {
return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, 'BSD-4-Clause')
},
// e.g. 'BY-NC-4.0'
function (argument) {
return 'CC-' + argument