Pushing changes
This commit is contained in:
3
node_modules/spdx-expression-parse/AUTHORS
generated
vendored
Normal file
3
node_modules/spdx-expression-parse/AUTHORS
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
C. Scott Ananian <cscott@cscott.net> (http://cscott.net)
|
||||
Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)
|
||||
Shinnosuke Watanabe <snnskwtnb@gmail.com>
|
22
node_modules/spdx-expression-parse/LICENSE
generated
vendored
Normal file
22
node_modules/spdx-expression-parse/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2015 Kyle E. Mitchell & other authors listed in AUTHORS
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
83
node_modules/spdx-expression-parse/README.md
generated
vendored
Normal file
83
node_modules/spdx-expression-parse/README.md
generated
vendored
Normal file
@ -0,0 +1,83 @@
|
||||
This package parses SPDX license expression 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.
|
||||
|
||||
In a nutshell:
|
||||
|
||||
```javascript
|
||||
var parse = require('spdx-expression-parse')
|
||||
var assert = require('assert')
|
||||
|
||||
assert.deepEqual(
|
||||
// Licensed under the terms of the Two-Clause BSD License.
|
||||
parse('BSD-2-Clause'),
|
||||
{license: 'BSD-2-Clause'}
|
||||
)
|
||||
|
||||
assert.throws(function () {
|
||||
// An invalid SPDX license expression.
|
||||
// Should be `Apache-2.0`.
|
||||
parse('Apache 2')
|
||||
})
|
||||
|
||||
assert.deepEqual(
|
||||
// Dual licensed under LGPL 2.1 or a combination of the Three-Clause
|
||||
// BSD License and the MIT License.
|
||||
parse('(LGPL-2.1 OR BSD-3-Clause AND MIT)'),
|
||||
{
|
||||
left: {license: 'LGPL-2.1'},
|
||||
conjunction: 'or',
|
||||
right: {
|
||||
left: {license: 'BSD-3-Clause'},
|
||||
conjunction: 'and',
|
||||
right: {license: 'MIT'}
|
||||
}
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
The syntax comes from the [Software Package Data eXchange (SPDX)](https://spdx.org/), a standard from the [Linux Foundation](https://www.linuxfoundation.org) for shareable data about software package license terms. SPDX aims to make sharing and auditing license data easy, especially for users of open-source software.
|
||||
|
||||
The bulk of the SPDX standard describes syntax and semantics of XML metadata files. This package implements two lightweight, plain-text components of that larger standard:
|
||||
|
||||
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. They are development dependencies of this package.
|
||||
|
||||
Any license identifier from the license list is a valid license expression:
|
||||
|
||||
```javascript
|
||||
require('spdx-license-ids').forEach(function (id) {
|
||||
assert.deepEqual(parse(id), {license: id})
|
||||
})
|
||||
```
|
||||
|
||||
So is any license identifier `WITH` a standardized license exception:
|
||||
|
||||
```javascript
|
||||
require('spdx-license-ids').forEach(function (id) {
|
||||
require('spdx-exceptions').forEach(function (e) {
|
||||
assert.deepEqual(
|
||||
parse(id + ' WITH ' + e),
|
||||
{license: id, exception: e}
|
||||
)
|
||||
})
|
||||
})
|
||||
```
|
||||
|
||||
2. The license expression language, for describing simple and complex license terms, like `MIT` for MIT-licensed and `(GPL-2.0 OR Apache-2.0)` for dual-licensing under GPL 2.0 and Apache 2.0. This package implements the license expression language.
|
||||
|
||||
```javascript
|
||||
assert.deepEqual(
|
||||
// Licensed under a combination of the MIT License and a combination
|
||||
// of LGPL 2.1 (or a later version) and the Three-Clause BSD License.
|
||||
parse('(MIT AND (LGPL-2.1+ AND BSD-3-Clause))'),
|
||||
{
|
||||
left: {license: 'MIT'},
|
||||
conjunction: 'and',
|
||||
right: {
|
||||
left: {license: 'LGPL-2.1', plus: true},
|
||||
conjunction: 'and',
|
||||
right: {license: 'BSD-3-Clause'}
|
||||
}
|
||||
}
|
||||
)
|
||||
```
|
||||
|
||||
The Linux Foundation and its contributors license the SPDX standard under the terms of [the Creative Commons Attribution License 3.0 Unported (SPDX: "CC-BY-3.0")](http://spdx.org/licenses/CC-BY-3.0). "SPDX" is a United States federally registered trademark of the Linux Foundation. The authors of this package license their work under the terms of the MIT License.
|
5
node_modules/spdx-expression-parse/index.js
generated
vendored
Normal file
5
node_modules/spdx-expression-parse/index.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
var parser = require('./parser').parser
|
||||
|
||||
module.exports = function (argument) {
|
||||
return parser.parse(argument)
|
||||
}
|
125
node_modules/spdx-expression-parse/package.json
generated
vendored
Normal file
125
node_modules/spdx-expression-parse/package.json
generated
vendored
Normal file
@ -0,0 +1,125 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "spdx-expression-parse@~1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "spdx-expression-parse",
|
||||
"name": "spdx-expression-parse",
|
||||
"rawSpec": "~1.0.0",
|
||||
"spec": ">=1.0.0 <1.1.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/home/burchettm/statsbot/node_modules/validate-npm-package-license"
|
||||
]
|
||||
],
|
||||
"_from": "spdx-expression-parse@>=1.0.0 <1.1.0",
|
||||
"_id": "spdx-expression-parse@1.0.4",
|
||||
"_inCache": true,
|
||||
"_location": "/spdx-expression-parse",
|
||||
"_nodeVersion": "4.6.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/spdx-expression-parse-1.0.4.tgz_1475698361593_0.7478717286139727"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "kemitchell",
|
||||
"email": "kyle@kemitchell.com"
|
||||
},
|
||||
"_npmVersion": "3.10.8",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "spdx-expression-parse@~1.0.0",
|
||||
"scope": null,
|
||||
"escapedName": "spdx-expression-parse",
|
||||
"name": "spdx-expression-parse",
|
||||
"rawSpec": "~1.0.0",
|
||||
"spec": ">=1.0.0 <1.1.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/validate-npm-package-license"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz",
|
||||
"_shasum": "9bdf2f20e1f40ed447fbe273266191fced51626c",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "spdx-expression-parse@~1.0.0",
|
||||
"_where": "/home/burchettm/statsbot/node_modules/validate-npm-package-license",
|
||||
"author": {
|
||||
"name": "Kyle E. Mitchell",
|
||||
"email": "kyle@kemitchell.com",
|
||||
"url": "http://kemitchell.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/kemitchell/spdx-expression-parse.js/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "C. Scott Ananian",
|
||||
"email": "cscott@cscott.net",
|
||||
"url": "http://cscott.net"
|
||||
},
|
||||
{
|
||||
"name": "Kyle E. Mitchell",
|
||||
"email": "kyle@kemitchell.com",
|
||||
"url": "https://kemitchell.com"
|
||||
},
|
||||
{
|
||||
"name": "Shinnosuke Watanabe",
|
||||
"email": "snnskwtnb@gmail.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {},
|
||||
"description": "parse SPDX license expressions",
|
||||
"devDependencies": {
|
||||
"defence-cli": "^1.0.1",
|
||||
"jison": "^0.4.15",
|
||||
"replace-require-self": "^1.0.0",
|
||||
"spdx-exceptions": "^1.0.4",
|
||||
"spdx-license-ids": "^1.0.0",
|
||||
"standard": "^8.0.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "9bdf2f20e1f40ed447fbe273266191fced51626c",
|
||||
"tarball": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz"
|
||||
},
|
||||
"files": [
|
||||
"AUTHORS",
|
||||
"index.js",
|
||||
"parser.js"
|
||||
],
|
||||
"gitHead": "326b222ed9e89e9ef472656e9970649b9ee4e8f3",
|
||||
"homepage": "https://github.com/kemitchell/spdx-expression-parse.js#readme",
|
||||
"keywords": [
|
||||
"SPDX",
|
||||
"law",
|
||||
"legal",
|
||||
"license",
|
||||
"metadata",
|
||||
"package",
|
||||
"package.json",
|
||||
"standards"
|
||||
],
|
||||
"license": "(MIT AND CC-BY-3.0)",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "kemitchell",
|
||||
"email": "kyle@kemitchell.com"
|
||||
}
|
||||
],
|
||||
"name": "spdx-expression-parse",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/kemitchell/spdx-expression-parse.js.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "standard",
|
||||
"prepublish": "node generate-parser.js > parser.js",
|
||||
"pretest": "npm run prepublish",
|
||||
"test": "defence -i javascript README.md | replace-require-self | node"
|
||||
},
|
||||
"version": "1.0.4"
|
||||
}
|
1357
node_modules/spdx-expression-parse/parser.js
generated
vendored
Normal file
1357
node_modules/spdx-expression-parse/parser.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user