diff options
Diffstat (limited to 'node_modules/semver-diff')
-rw-r--r-- | node_modules/semver-diff/index.js | 27 | ||||
-rw-r--r-- | node_modules/semver-diff/license | 21 | ||||
-rw-r--r-- | node_modules/semver-diff/package.json | 66 | ||||
-rw-r--r-- | node_modules/semver-diff/readme.md | 52 |
4 files changed, 0 insertions, 166 deletions
diff --git a/node_modules/semver-diff/index.js b/node_modules/semver-diff/index.js deleted file mode 100644 index 92c9c97..0000000 --- a/node_modules/semver-diff/index.js +++ /dev/null @@ -1,27 +0,0 @@ -'use strict'; -var semver = require('semver'); - -module.exports = function (a, b) { - if (semver.gt(a, b)) { - return null; - } - - a = semver.parse(a); - b = semver.parse(b); - - for (var key in a) { - if (key === 'major' || key === 'minor' || key === 'patch') { - if (a[key] !== b[key]) { - return key; - } - } - - if (key === 'prerelease' || key === 'build') { - if (JSON.stringify(a[key]) !== JSON.stringify(b[key])) { - return key; - } - } - } - - return null; -}; diff --git a/node_modules/semver-diff/license b/node_modules/semver-diff/license deleted file mode 100644 index 654d0bf..0000000 --- a/node_modules/semver-diff/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -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. diff --git a/node_modules/semver-diff/package.json b/node_modules/semver-diff/package.json deleted file mode 100644 index 6247608..0000000 --- a/node_modules/semver-diff/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "_from": "semver-diff@^2.0.0", - "_id": "semver-diff@2.1.0", - "_inBundle": false, - "_integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", - "_location": "/semver-diff", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "registry": true, - "raw": "semver-diff@^2.0.0", - "name": "semver-diff", - "escapedName": "semver-diff", - "rawSpec": "^2.0.0", - "saveSpec": null, - "fetchSpec": "^2.0.0" - }, - "_requiredBy": [ - "/update-notifier" - ], - "_resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", - "_shasum": "4bbb8437c8d37e4b0cf1a68fd726ec6d645d6d36", - "_spec": "semver-diff@^2.0.0", - "_where": "/home/pruss/Dev/3-minute-website/node_modules/update-notifier", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/semver-diff/issues" - }, - "bundleDependencies": false, - "dependencies": { - "semver": "^5.0.3" - }, - "deprecated": false, - "description": "Get the diff type of two semver versions: 0.0.1 0.0.2 → patch", - "devDependencies": { - "mocha": "*" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/semver-diff#readme", - "keywords": [ - "semver", - "version", - "semantic", - "diff", - "difference" - ], - "license": "MIT", - "name": "semver-diff", - "repository": { - "type": "git", - "url": "git+https://github.com/sindresorhus/semver-diff.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "2.1.0" -} diff --git a/node_modules/semver-diff/readme.md b/node_modules/semver-diff/readme.md deleted file mode 100644 index 06a172f..0000000 --- a/node_modules/semver-diff/readme.md +++ /dev/null @@ -1,52 +0,0 @@ -# semver-diff [](https://travis-ci.org/sindresorhus/semver-diff) - -> Get the diff type of two [semver](https://github.com/isaacs/node-semver) versions: `0.0.1 0.0.2` → `patch` - - -## Install - -```sh -$ npm install --save semver-diff -``` - - -## Usage - -```js -var semverDiff = require('semver-diff'); - -semverDiff('1.1.1', '1.1.2'); -//=> 'patch' - -semverDiff('0.0.1', '1.0.0'); -//=> 'major' - -semverDiff('0.0.1', '0.1.0'); -//=> 'minor' - -semverDiff('0.0.1-foo', '0.0.1-foo.bar'); -//=> 'prerelease' - -semverDiff('0.1.0', '0.1.0+foo'); -//=> 'build' - -semverDiff('0.0.1', '0.0.1'); -//=> null - -semverDiff('0.0.2', '0.0.1'); -//=> null -``` - - -## API - -### semverDiff(versionA, versionB) - -Returns the difference type between two semver versions, or `null` if they're identical or the second one is lower than the first. - -Possible values: `'major'`, `'minor'`, `'patch'`, `'prerelease'`, `'build'`, `null`. - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) |