spdx-correct
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "spdx-correct", | ||
"description": "correct invalid SPDX identifiers", | ||
"version": "1.0.0", | ||
"author": { | ||
"name": "Kyle E. Mitchell", | ||
"email": "kyle@kemitchell.com", | ||
"url": "http://kemitchell.com" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/kemitchell/spdx-correct.js/issues" | ||
}, | ||
"version": "1.0.1", | ||
"author": "Kyle E. Mitchell <kyle@kemitchell.com> (https://kemitchell.com)", | ||
"dependencies": { | ||
"spdx": "^0.4.0" | ||
"spdx-license-ids": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"jscs": "~1.13.1", | ||
"jshint": "~2.8.0", | ||
"jsmd": "~0.3.0", | ||
"defence-cli": "^1.0.1", | ||
"replace-require-self": "^1.0.0", | ||
"spdx-expression-parse": "^1.0.0", | ||
"tape": "~4.0.0" | ||
}, | ||
"homepage": "https://github.com/kemitchell/spdx-correct.js", | ||
"keywords": [ | ||
@@ -31,12 +23,6 @@ "SPDX", | ||
"license": "Apache-2.0", | ||
"main": "spdx-correct.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/kemitchell/spdx-correct.js" | ||
}, | ||
"repository": "kemitchell/spdx-correct.js", | ||
"scripts": { | ||
"lint": "jshint spdx-correct.js test && jscs spdx-correct.js test", | ||
"precommit": "npm run lint && npm run test", | ||
"test": "jsmd README.md && tape test/*.test.js" | ||
"test": "defence README.md | replace-require-self | node && tape *.test.js" | ||
} | ||
} |
@@ -1,21 +0,10 @@ | ||
spdx-correct.js | ||
=============== | ||
```javascript | ||
var correct = require('spdx-correct'); | ||
var assert = require('assert'); | ||
[![npm version](https://img.shields.io/npm/v/spdx-correct.svg)](https://www.npmjs.com/package/spdx-correct) | ||
[![license](https://img.shields.io/badge/license-Apache--2.0-303284.svg)](http://www.apache.org/licenses/LICENSE-2.0) | ||
[![build status](https://img.shields.io/travis/kemitchell/spdx-correct.js.svg)](http://travis-ci.org/kemitchell/spdx-correct.js) | ||
assert.equal(correct('mit'), 'MIT') | ||
assert.equal(correct('Apache 2'), 'Apache-2.0') | ||
Correct invalid SPDX identifiers. | ||
<!--js | ||
var correct = require('./'); | ||
--> | ||
```js | ||
correct('mit'); // => 'MIT' | ||
correct('Apache 2'); // => 'Apache-2.0' | ||
correct('No idea what license'); // => null | ||
assert(correct('No idea what license') === null) | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
227
6710
3
11
1
+ Addedspdx-license-ids@^1.0.2
- Removedspdx@^0.4.0
- Removedspdx@0.4.3(transitive)