Socket
Socket
Sign inDemoInstall

spdx-correct

Package Overview
Dependencies
3
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.0 to 3.1.1

21

index.js

@@ -52,2 +52,3 @@ /*

['Mozilla Public License', 'MPL'],
['Universal Permissive License', 'UPL'],
['WTH', 'WTF'],

@@ -142,2 +143,22 @@ ['-License', '']

},
// 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'

@@ -144,0 +165,0 @@ function (argument) {

2

package.json
{
"name": "spdx-correct",
"description": "correct invalid SPDX expressions",
"version": "3.1.0",
"version": "3.1.1",
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc