Socket
Socket
Sign inDemoInstall

cz-conventional-changelog

Package Overview
Dependencies
5
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

28

engine.js

@@ -60,3 +60,3 @@ "format cjs";

name: 'scope',
message: 'Denote the scope of this change ($location, $browser, $compile, etc.):\n'
message: 'What is the scope of this change (e.g. component or file name)? (press enter to skip)\n'
}, {

@@ -69,11 +69,27 @@ type: 'input',

name: 'body',
message: 'Provide a longer description of the change:\n'
message: 'Provide a longer description of the change: (press enter to skip)\n'
}, {
type: 'confirm',
name: 'isBreaking',
message: 'Are there any breaking changes?',
default: false
}, {
type: 'input',
name: 'breaking',
message: 'List any breaking changes:\n'
message: 'Describe the breaking changes:\n',
when: function(answers) {
return answers.isBreaking;
}
}, {
type: 'confirm',
name: 'isIssueAffected',
message: 'Does this change affect any open issues?',
default: false
}, {
type: 'input',
name: 'issues',
message: 'List any issues closed by this change:\n'
message: 'Add issue references (e.g. "fix #123", "re #123".):\n',
when: function(answers) {
return answers.isIssueAffected;
}
}

@@ -102,7 +118,7 @@ ]).then(function(answers) {

// Apply breaking change prefix, removing it if already present
var breaking = answers.breaking.trim();
var breaking = answers.breaking ? answers.breaking.trim() : '';
breaking = breaking ? 'BREAKING CHANGE: ' + breaking.replace(/^BREAKING CHANGE: /, '') : '';
breaking = wrap(breaking, wrapOptions);
var issues = wrap(answers.issues, wrapOptions);
var issues = answers.issues ? wrap(answers.issues, wrapOptions) : '';

@@ -109,0 +125,0 @@ var footer = filter([ breaking, issues ]).join('\n\n');

{
"name": "cz-conventional-changelog",
"version": "2.0.0",
"version": "2.1.0",
"description": "Commitizen adapter following the conventional-changelog format.",

@@ -22,3 +22,2 @@ "main": "index.js",

"longest": "^1.0.1",
"pad-right": "^0.2.2",
"right-pad": "^1.0.1",

@@ -31,5 +30,7 @@ "word-wrap": "^1.0.3"

},
"czConfig": {
"path": "./"
"config": {
"commitizen": {
"path": "./index.js"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc