conventional-changelog-atom
Advanced tools
Comparing version 2.0.8 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 | ||
})) |
12
index.js
'use strict' | ||
const Q = require('q') | ||
const conventionalChangelog = require('./conventional-changelog') | ||
@@ -11,6 +10,11 @@ const parserOpts = require('./parser-opts') | ||
function presetOpts (cb) { | ||
Q.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.spread((conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts) => { | ||
cb(null, { conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts }) | ||
Promise.all([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) | ||
.then(([conventionalChangelog, parserOpts, recommendedBumpOpts, writerOpts]) => { | ||
cb(null, { | ||
conventionalChangelog, | ||
parserOpts, | ||
recommendedBumpOpts, | ||
writerOpts | ||
}) | ||
}) | ||
} |
{ | ||
"name": "conventional-changelog-atom", | ||
"version": "2.0.8", | ||
"version": "3.0.0", | ||
"description": "conventional-changelog atom preset", | ||
"main": "index.js", | ||
"scripts": { | ||
"test-windows": "echo 'make work on windows'" | ||
}, | ||
"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-atom#readme", | ||
"dependencies": { | ||
"q": "^1.5.1" | ||
}, | ||
"gitHead": "cc567b98facf71315f4b1620d81ce01d155efaca" | ||
} | ||
"scripts": { | ||
"test-windows": "echo 'make work on windows'" | ||
} | ||
} |
@@ -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] | ||
@@ -40,3 +40,3 @@ > [conventional-changelog](https://github.com/ajoslin/conventional-changelog) [atom](https://github.com/atom/atom) preset | ||
[daviddm-url]: https://david-dm.org/stevemao/conventional-changelog-atom | ||
[coveralls-image]: https://coveralls.io/repos/stevemao/conventional-changelog-atom/badge.svg | ||
[coveralls-url]: https://coveralls.io/r/stevemao/conventional-changelog-atom | ||
[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
94
8038
11
1