Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(standard-changelog): replace sprintf-js with util.format #749

Closed
wants to merge 5 commits into from

Conversation

armano2
Copy link
Contributor

@armano2 armano2 commented Jan 19, 2021

@@ -26,7 +26,7 @@ conventionalChangelog.createIfMissing = function (infile) {
}

conventionalChangelog.checkpoint = function (msg, args) {
console.info(chalk.green(figures.tick) + ' ' + sprintf(msg, args.map(function (arg) {
console.info(chalk.green(figures.tick) + ' ' + format(msg, ...args.map(function (arg) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alterantively this can be done without format as console.info support sprintf dirrectly

Suggested change
console.info(chalk.green(figures.tick) + ' ' + format(msg, ...args.map(function (arg) {
console.info(chalk.green(figures.tick) + ' ' + msg, ...args.map(function (arg) {

@coveralls
Copy link

Coverage Status

Coverage: 94.77%. Remained the same when pulling 3fa6aa0 on armano2:dep/sprintf-js into d0e5d59 on conventional-changelog:master.

@coveralls
Copy link

Coverage Status

Coverage: ?%. Remained the same when pulling 3fa6aa0 on armano2:dep/sprintf-js into d0e5d59 on conventional-changelog:master.

@dangreen
Copy link
Member

done in #1111

@dangreen dangreen closed this Aug 31, 2023
@armano2 armano2 deleted the dep/sprintf-js branch August 31, 2023 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants