conventional-changelog-ember
Advanced tools
Comparing version 2.0.9 to 3.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 | ||
})) |
15
index.js
'use strict' | ||
const Q = require('q') | ||
const conventionalChangelog = require('./conventional-changelog') | ||
@@ -11,6 +10,14 @@ const parserOpts = require('./parser-opts') | ||
function presetOpts (cb) { | ||
Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => { | ||
cb(null, { gitRawCommitsOpts: { noMerges: null }, conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts }) | ||
Promise.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.then(([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) => { | ||
cb(null, { | ||
gitRawCommitsOpts: { | ||
noMerges: null | ||
}, | ||
conventionalChangelog, | ||
parserOpts, | ||
recommendedBumpOpts, | ||
writerOpts | ||
}) | ||
}) | ||
} |
{ | ||
"name": "conventional-changelog-ember", | ||
"version": "2.0.9", | ||
"version": "3.0.0", | ||
"description": "conventional-changelog ember preset", | ||
"main": "index.js", | ||
"scripts": { | ||
"test-windows": "mocha --timeout 30000" | ||
}, | ||
"repository": { | ||
@@ -20,3 +17,3 @@ "type": "git", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=14" | ||
}, | ||
@@ -36,6 +33,5 @@ "license": "ISC", | ||
"homepage": "https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-ember#readme", | ||
"dependencies": { | ||
"q": "^1.5.1" | ||
}, | ||
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca" | ||
} | ||
"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] | ||
@@ -62,3 +62,3 @@ > [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [ember](https://github.com/emberjs/ember.js) preset | ||
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-ember | ||
[coveralls-image]: https://coveralls.io/repos/stevemao/conventional-changelog-ember/badge.svg | ||
[coveralls-url]: https://coveralls.io/r/stevemao/conventional-changelog-ember | ||
[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 |
'use strict' | ||
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'), | ||
@@ -12,3 +11,3 @@ readFile(resolve(__dirname, './templates/header.hbs'), 'utf-8'), | ||
]) | ||
.spread((template, header, commit) => { | ||
.then(([template, header, commit]) => { | ||
const writerOpts = getWriterOpts() | ||
@@ -15,0 +14,0 @@ |
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
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
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
0
108
8474
11
1