conventional-changelog-atom
Advanced tools
Comparing version 2.0.3 to 2.0.7
@@ -6,2 +6,10 @@ # Change Log | ||
## [2.0.7](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-atom@2.0.3...conventional-changelog-atom@2.0.7) (2020-05-08) | ||
**Note:** Version bump only for package conventional-changelog-atom | ||
## [2.0.2](https://github.com/conventional-changelog/conventional-changelog/compare/conventional-changelog-atom@2.0.1...conventional-changelog-atom@2.0.2) (2019-10-02) | ||
@@ -8,0 +16,0 @@ |
'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') | ||
@@ -7,0 +7,0 @@ module.exports = Q.all([parserOpts, writerOpts]) |
'use strict' | ||
const parserOpts = require(`./parser-opts`) | ||
const parserOpts = require('./parser-opts') | ||
@@ -17,3 +17,3 @@ module.exports = { | ||
level = 0 | ||
} else if (commit.type === `feat`) { | ||
} else if (commit.type === 'feat') { | ||
features += 1 | ||
@@ -20,0 +20,0 @@ if (level === 2) { |
10
index.js
'use strict' | ||
const Q = require(`q`) | ||
const conventionalChangelog = require(`./conventional-changelog`) | ||
const parserOpts = require(`./parser-opts`) | ||
const recommendedBumpOpts = require(`./conventional-recommended-bump`) | ||
const writerOpts = require(`./writer-opts`) | ||
const Q = require('q') | ||
const conventionalChangelog = require('./conventional-changelog') | ||
const parserOpts = require('./parser-opts') | ||
const recommendedBumpOpts = require('./conventional-recommended-bump') | ||
const writerOpts = require('./writer-opts') | ||
@@ -8,0 +8,0 @@ module.exports = presetOpts |
{ | ||
"name": "conventional-changelog-atom", | ||
"version": "2.0.3", | ||
"version": "2.0.7", | ||
"description": "conventional-changelog atom preset", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"engines": { | ||
"node": ">=6.9.0" | ||
"node": ">=10" | ||
}, | ||
@@ -39,3 +39,3 @@ "license": "ISC", | ||
}, | ||
"gitHead": "7c1c8ad819b05c12c7d58c92ac386b45ada6f6a8" | ||
"gitHead": "83643c5a0d2c4d7c9ba14cbf990ffbc577a51e8c" | ||
} |
@@ -6,5 +6,5 @@ 'use strict' | ||
headerCorrespondence: [ | ||
`emoji`, | ||
`shortDesc` | ||
'emoji', | ||
'shortDesc' | ||
] | ||
} |
'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 | ||
module.exports = Q.all([ | ||
readFile(resolve(__dirname, `./templates/template.hbs`), `utf-8`), | ||
readFile(resolve(__dirname, `./templates/header.hbs`), `utf-8`), | ||
readFile(resolve(__dirname, `./templates/commit.hbs`), `utf-8`) | ||
readFile(resolve(__dirname, './templates/template.hbs'), 'utf-8'), | ||
readFile(resolve(__dirname, './templates/header.hbs'), 'utf-8'), | ||
readFile(resolve(__dirname, './templates/commit.hbs'), 'utf-8') | ||
]) | ||
@@ -25,5 +25,3 @@ .spread((template, header, commit) => { | ||
transform: (commit) => { | ||
let emojiLength | ||
if (!commit.emoji || typeof commit.emoji !== `string`) { | ||
if (!commit.emoji || typeof commit.emoji !== 'string') { | ||
return | ||
@@ -33,9 +31,9 @@ } | ||
commit.emoji = commit.emoji.substring(0, 72) | ||
emojiLength = commit.emoji.length | ||
const emojiLength = commit.emoji.length | ||
if (typeof commit.hash === `string`) { | ||
if (typeof commit.hash === 'string') { | ||
commit.shortHash = commit.hash.substring(0, 7) | ||
} | ||
if (typeof commit.shortDesc === `string`) { | ||
if (typeof commit.shortDesc === 'string') { | ||
commit.shortDesc = commit.shortDesc.substring(0, 72 - emojiLength) | ||
@@ -46,6 +44,6 @@ } | ||
}, | ||
groupBy: `emoji`, | ||
commitGroupsSort: `title`, | ||
commitsSort: [`emoji`, `shortDesc`] | ||
groupBy: 'emoji', | ||
commitGroupsSort: 'title', | ||
commitsSort: ['emoji', 'shortDesc'] | ||
} | ||
} |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
15067
1
0
91