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

conventional-changelog-codemirror

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

conventional-changelog-codemirror - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

<a name="0.3.5"></a>
## [0.3.5](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-codemirror@0.3.4...conventional-changelog-codemirror@0.3.5) (2018-03-22)
**Note:** Version bump only for package conventional-changelog-codemirror
<a name="0.3.4"></a>

@@ -8,0 +16,0 @@ ## [0.3.4](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-codemirror@0.3.3...conventional-changelog-codemirror@0.3.4) (2018-02-24)

12

conventional-changelog.js

@@ -1,10 +0,10 @@

'use strict';
'use strict'
const Q = require(`q`);
const parserOpts = require(`./parser-opts`);
const writerOpts = require(`./writer-opts`);
const Q = require(`q`)
const parserOpts = require(`./parser-opts`)
const writerOpts = require(`./writer-opts`)
module.exports = Q.all([parserOpts, writerOpts])
.spread((parserOpts, writerOpts) => {
return {parserOpts, writerOpts};
});
return {parserOpts, writerOpts}
})

@@ -1,20 +0,20 @@

'use strict';
'use strict'
module.exports = {
whatBump: (commits) => {
let level = 2;
let breakings = 0;
let features = 0;
let level = 2
let breakings = 0
let features = 0
commits.forEach(commit => {
if (commit.notes.length > 0) {
breakings += commit.notes.length;
level = 0;
breakings += commit.notes.length
level = 0
} else if (commit.type === `feat`) {
features += 1;
features += 1
if (level === 2) {
level = 1;
level = 1
}
}
});
})

@@ -24,6 +24,6 @@ return {

reason: `There are ${breakings} BREAKING CHANGES and ${features} features`
};
}
},
parserOpts: {
headerPattern: /^(\w*)(?:\((.*)\))?\: (.*)$/,
headerPattern: /^(\w*)(?:\((.*)\))?: (.*)$/,
headerCorrespondence: [

@@ -38,2 +38,2 @@ `type`,

}
};
}

@@ -1,15 +0,15 @@

'use strict';
var Q = require(`q`);
const conventionalChangelog = require(`./conventional-changelog`);
const parserOpts = require(`./parser-opts`);
const recommendedBumpOpts = require(`./conventional-recommended-bump`);
const writerOpts = require(`./writer-opts`);
'use strict'
var Q = require(`q`)
const conventionalChangelog = require(`./conventional-changelog`)
const parserOpts = require(`./parser-opts`)
const recommendedBumpOpts = require(`./conventional-recommended-bump`)
const writerOpts = require(`./writer-opts`)
module.exports = presetOpts;
module.exports = presetOpts
function presetOpts(cb) {
function presetOpts (cb) {
Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts])
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => {
cb(null, {conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts});
});
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => {
cb(null, {conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts})
})
}
{
"name": "conventional-changelog-codemirror",
"version": "0.3.4",
"version": "0.3.5",
"description": "conventional-changelog CodeMirror preset",
"main": "index.js",
"scripts": {
"lint": "jshint *.js --exclude node_modules && jscs *.js",
"lint": "eslint --fix .",
"test": "mocha --timeout 30000 && npm run-script lint",

@@ -9,0 +9,0 @@ "test-windows": "echo 'make work on windows'"

@@ -1,2 +0,2 @@

'use strict';
'use strict'

@@ -10,2 +10,2 @@ module.exports = {

]
};
}

@@ -1,6 +0,6 @@

'use strict';
'use strict'
const Q = require(`q`);
const readFile = Q.denodeify(require(`fs`).readFile);
const resolve = require(`path`).resolve;
const Q = require(`q`)
const readFile = Q.denodeify(require(`fs`).readFile)
const resolve = require(`path`).resolve

@@ -12,29 +12,29 @@ module.exports = Q.all([

])
.spread((template, header, commit) => {
const writerOpts = getWriterOpts();
.spread((template, header, commit) => {
const writerOpts = getWriterOpts()
writerOpts.mainTemplate = template;
writerOpts.headerPartial = header;
writerOpts.commitPartial = commit;
writerOpts.mainTemplate = template
writerOpts.headerPartial = header
writerOpts.commitPartial = commit
return writerOpts;
});
return writerOpts
})
function getWriterOpts() {
function getWriterOpts () {
return {
transform: (commit) => {
if (!commit.language) {
return;
return
}
if (typeof commit.hash === `string`) {
commit.hash = commit.hash.substring(0, 7);
commit.hash = commit.hash.substring(0, 7)
}
return commit;
return commit
},
groupBy: `language`,
commitGroupsSort: `title`,
commitsSort: [`language`, `type`, `message`],
};
commitsSort: [`language`, `type`, `message`]
}
}
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