@commitlint/read
Advanced tools
Comparing version 19.2.0 to 19.2.1
@@ -12,8 +12,12 @@ import minimist from 'minimist'; | ||
if (last) { | ||
const executeGitCommand = await execa('git', [ | ||
const gitCommandResult = await execa('git', [ | ||
'log', | ||
'-1', | ||
'--pretty=format:"%B"', | ||
'--pretty=format:%B', | ||
]); | ||
return [executeGitCommand.stdout]; | ||
let output = gitCommandResult.stdout; | ||
// strip output of extra quotation marks ("") | ||
if (output[0] == '"' && output[output.length - 1] == '"') | ||
output = output.slice(1, -1); | ||
return [output]; | ||
} | ||
@@ -20,0 +24,0 @@ let gitOptions = { from, to }; |
{ | ||
"name": "@commitlint/read", | ||
"type": "module", | ||
"version": "19.2.0", | ||
"version": "19.2.1", | ||
"description": "Read commit messages from a specified range or last edit", | ||
@@ -51,3 +51,3 @@ "main": "lib/read.js", | ||
}, | ||
"gitHead": "a64b417b58b3b1e89f07ff529a29a4af223e9369" | ||
"gitHead": "172cb52844cdb0dd1af5a47f0101c48320d90500" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
11575
95