Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

conventional-recommended-version

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-recommended-version - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="0.4.2"></a>
## [0.4.2](https://github.com/JamieMason/conventional-recommended-version/compare/0.4.1...0.4.2) (2017-09-13)
### Bug Fixes
* **lint:** fix lint errors ([8d57ca0](https://github.com/JamieMason/conventional-recommended-version/commit/8d57ca0))
<a name="0.4.1"></a>

@@ -2,0 +12,0 @@ ## [0.4.1](https://github.com/JamieMason/conventional-recommended-version/compare/0.4.0...0.4.1) (2017-08-26)

28

dist/index.js

@@ -7,9 +7,7 @@ 'use strict';

var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
var _logservable = require('logservable');
var _logservable2 = _interopRequireDefault(_logservable);
var logservable = _interopRequireWildcard(_logservable);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -19,3 +17,2 @@ var getPostfix = function getPostfix(postfix) {

};
var isBreakingChange = function isBreakingChange(_ref) {

@@ -39,16 +36,9 @@ var body = _ref.body;

var snapToRelease = function snapToRelease(version, _ref5) {
var body = _ref5.body,
subject = _ref5.subject;
var subject = _ref5.subject;
var _subject$split = subject.split(/[ .-]/),
_subject$split2 = _slicedToArray(_subject$split, 4),
_ = _subject$split2[0],
major = _subject$split2[1],
minor = _subject$split2[2],
patch = _subject$split2[3];
var values = subject.split(/[ .-]/);
return {
major: parseInt(major, 10),
minor: parseInt(minor, 10),
patch: parseInt(patch, 10)
major: parseInt(values[1], 10),
minor: parseInt(values[2], 10),
patch: parseInt(values[3], 10)
};

@@ -98,4 +88,4 @@ };

var log$ = (0, _logservable2.default)(directory, ['body', 'subject'], true);
var version$ = log$.fold(getNextVersion, { major: 0, minor: 0, patch: 0 });
var commit$ = logservable.commits(directory, ['body', 'subject'], true);
var version$ = commit$.fold(getNextVersion, { major: 0, minor: 0, patch: 0 });
var nextVersion$ = version$.last();

@@ -102,0 +92,0 @@

{
"name": "conventional-recommended-version",
"description": "Determine the semantic version number of your project",
"version": "0.4.1",
"version": "0.4.2",
"author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",

@@ -17,3 +17,3 @@ "bin": {

"commander": "2.11.0",
"logservable": "0.2.0"
"logservable": "1.0.0"
},

@@ -28,3 +28,3 @@ "devDependencies": {

"fast-async": "6.3.0",
"rimraf": "2.6.1",
"rimraf": "2.6.2",
"xo": "0.18.2"

@@ -31,0 +31,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc