conventional-changelog-sprucelabs
Advanced tools
Comparing version 2.0.1 to 2.0.2
'use strict' | ||
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} | ||
module.exports = Promise.all([parserOpts, writerOpts]) | ||
.then(([parserOpts, writerOpts]) => { | ||
return { parserOpts, writerOpts } | ||
}) |
'use strict' | ||
const Q = require(`q`) | ||
const conventionalChangelog = require(`./conventional-changelog`) | ||
@@ -9,6 +8,6 @@ const parserOpts = require(`./parser-opts`) | ||
module.exports = function () { | ||
return Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => { | ||
return Promise.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.then(([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) => { | ||
return { conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts } | ||
}) | ||
} |
{ | ||
"name": "conventional-changelog-sprucelabs", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "conventional-changelog for sprucelabs based on angular preset", | ||
@@ -54,5 +54,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"compare-func": "^2.0.0", | ||
"q": "^1.5.1" | ||
"compare-func": "^2.0.0" | ||
} | ||
} |
'use strict' | ||
const compareFunc = require(`compare-func`) | ||
const Q = require(`q`) | ||
const readFile = Q.denodeify(require(`fs`).readFile) | ||
const resolve = require(`path`).resolve | ||
module.exports = Q.all([ | ||
module.exports = Promise.all([ | ||
readFile(resolve(__dirname, `./templates/template.hbs`), `utf-8`), | ||
@@ -14,3 +13,3 @@ readFile(resolve(__dirname, `./templates/header.hbs`), `utf-8`), | ||
]) | ||
.spread((template, header, commit, footer) => { | ||
.then(([template, header, commit, footer]) => { | ||
const writerOpts = getWriterOpts() | ||
@@ -26,3 +25,3 @@ | ||
function getWriterOpts () { | ||
function getWriterOpts() { | ||
return { | ||
@@ -29,0 +28,0 @@ transform: (commit, context) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
1
10
9180
171