spdx-expression-parse
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "spdx-expression-parse", | ||
"description": "parse SPDX license expressions", | ||
"version": "3.0.0", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (http://kemitchell.com)", | ||
"version": "3.0.1", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)", | ||
"files": [ | ||
@@ -17,6 +17,5 @@ "AUTHORS", | ||
"devDependencies": { | ||
"defence-cli": "^2.0.1", | ||
"mocha": "^3.4.2", | ||
"defence-cli": "^3.0.1", | ||
"replace-require-self": "^1.0.0", | ||
"standard": "^10.0.2" | ||
"standard": "^14.1.0" | ||
}, | ||
@@ -38,5 +37,5 @@ "keywords": [ | ||
"test:readme": "defence -i javascript README.md | replace-require-self | node", | ||
"test:mocha": "mocha test/index.js", | ||
"test": "npm run test:mocha && npm run test:readme" | ||
"test:suite": "node test.js", | ||
"test": "npm run test:suite && npm run test:readme" | ||
} | ||
} |
@@ -63,3 +63,3 @@ 'use strict' | ||
string += 'LicenseRef-' + t.string | ||
return {license: string} | ||
return { license: string } | ||
} | ||
@@ -73,3 +73,3 @@ index = begin | ||
next() | ||
var node = {license: t.string} | ||
var node = { license: t.string } | ||
if (parseOperator('+')) { | ||
@@ -76,0 +76,0 @@ node.plus = true |
@@ -42,3 +42,3 @@ This package parses [SPDX license expression](https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60) strings describing license terms, like [package.json license strings](https://docs.npmjs.com/files/package.json#license), into consistently structured ECMAScript objects. The npm command-line interface depends on this package, as do many automatic license-audit tools. | ||
1. The [license list](https://spdx.org/licenses), a mapping from specific string identifiers, like `Apache-2.0`, to standard form license texts and bolt-on license exceptions. The [spdx-license-ids](https://www.npmjs.com/package/spdx-exceptions) and [spdx-exceptions](https://www.npmjs.com/package/spdx-license-ids) packages implement the license list. `spdx-expression-parse` depends on and `require()`s them. | ||
1. The [license list](https://spdx.org/licenses), a mapping from specific string identifiers, like `Apache-2.0`, to standard form license texts and bolt-on license exceptions. The [spdx-license-ids](https://www.npmjs.com/package/spdx-license-ids) and [spdx-exceptions](https://www.npmjs.com/package/spdx-exceptions) packages implement the license list. `spdx-expression-parse` depends on and `require()`s them. | ||
@@ -45,0 +45,0 @@ Any license identifier from the license list is a valid license expression: |
@@ -73,3 +73,3 @@ 'use strict' | ||
var string = expectIdstring() | ||
return {type: 'DOCUMENTREF', string: string} | ||
return { type: 'DOCUMENTREF', string: string } | ||
} | ||
@@ -81,3 +81,3 @@ } | ||
var string = expectIdstring() | ||
return {type: 'LICENSEREF', string: string} | ||
return { type: 'LICENSEREF', string: string } | ||
} | ||
@@ -84,0 +84,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
11850