conventional-changelog-angular
Advanced tools
Comparing version 5.0.13 to 6.0.0
'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]) => ({ | ||
parserOpts, | ||
writerOpts | ||
})) |
12
index.js
'use strict' | ||
const Q = require('q') | ||
const conventionalChangelog = require('./conventional-changelog') | ||
@@ -8,5 +7,8 @@ const parserOpts = require('./parser-opts') | ||
module.exports = Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => { | ||
return { conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts } | ||
}) | ||
module.exports = Promise.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.then(([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) => ({ | ||
conventionalChangelog, | ||
parserOpts, | ||
recommendedBumpOpts, | ||
writerOpts | ||
})) |
{ | ||
"name": "conventional-changelog-angular", | ||
"version": "5.0.13", | ||
"version": "6.0.0", | ||
"description": "conventional-changelog angular preset", | ||
"main": "index.js", | ||
"scripts": { | ||
"test-windows": "mocha --timeout 30000" | ||
}, | ||
"repository": { | ||
@@ -28,3 +25,3 @@ "type": "git", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=14" | ||
}, | ||
@@ -37,5 +34,7 @@ "license": "ISC", | ||
"dependencies": { | ||
"compare-func": "^2.0.0", | ||
"q": "^1.5.1" | ||
"compare-func": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"test-windows": "mocha --timeout 30000" | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coveralls-image]][coveralls-url] | ||
# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status][coverage-image]][coverage-url] | ||
@@ -102,4 +102,4 @@ > [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [angular](https://github.com/angular/angular) preset | ||
[daviddm-url]: https://david-dm.org/conventional-changelog/conventional-changelog-angular | ||
[coveralls-image]: https://coveralls.io/repos/conventional-changelog/conventional-changelog-angular/badge.svg | ||
[coveralls-url]: https://coveralls.io/r/conventional-changelog/conventional-changelog-angular | ||
[coverage-image]: https://coveralls.io/repos/github/conventional-changelog/conventional-changelog/badge.svg?branch=master | ||
[coverage-url]: https://coveralls.io/github/conventional-changelog/conventional-changelog?branch=master | ||
[commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit# |
'use strict' | ||
const compareFunc = require('compare-func') | ||
const Q = require('q') | ||
const readFile = Q.denodeify(require('fs').readFile) | ||
const resolve = require('path').resolve | ||
const { readFile } = require('fs').promises | ||
const { resolve } = require('path') | ||
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() | ||
@@ -17,0 +16,0 @@ |
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
1
153
0
13120
12