@commitlint/read
Advanced tools
Comparing version 13.1.0 to 13.2.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28) | ||
**Note:** Version bump only for package @commitlint/read | ||
# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24) | ||
@@ -8,0 +16,0 @@ |
@@ -12,7 +12,7 @@ "use strict"; | ||
async function getEditCommit(cwd, edit) { | ||
const top = await top_level_1.default(cwd); | ||
const top = await (0, top_level_1.default)(cwd); | ||
if (typeof top !== 'string') { | ||
throw new TypeError(`Could not find git root from ${cwd}`); | ||
} | ||
const editFilePath = await get_edit_file_path_1.getEditFilePath(top, edit); | ||
const editFilePath = await (0, get_edit_file_path_1.getEditFilePath)(top, edit); | ||
const editFile = await fs_extra_1.default.readFile(editFilePath); | ||
@@ -19,0 +19,0 @@ return [`${editFile.toString('utf-8')}\n`]; |
@@ -11,5 +11,5 @@ "use strict"; | ||
async function getHistoryCommits(options, opts = {}) { | ||
return stream_to_promise_1.streamToPromise(git_raw_commits_1.default(options, { cwd: opts.cwd })); | ||
return (0, stream_to_promise_1.streamToPromise)((0, git_raw_commits_1.default)(options, { cwd: opts.cwd })); | ||
} | ||
exports.getHistoryCommits = getHistoryCommits; | ||
//# sourceMappingURL=get-history-commits.js.map |
@@ -9,7 +9,7 @@ "use strict"; | ||
if (edit) { | ||
return get_edit_commit_1.getEditCommit(cwd, edit); | ||
return (0, get_edit_commit_1.getEditCommit)(cwd, edit); | ||
} | ||
return get_history_commits_1.getHistoryCommits({ from, to }, { cwd }); | ||
return (0, get_history_commits_1.getHistoryCommits)({ from, to }, { cwd }); | ||
} | ||
exports.default = getCommitMessages; | ||
//# sourceMappingURL=read.js.map |
{ | ||
"name": "@commitlint/read", | ||
"version": "13.1.0", | ||
"version": "13.2.0", | ||
"description": "Read commit messages from a specified range or last edit", | ||
@@ -37,4 +37,4 @@ "main": "lib/read.js", | ||
"devDependencies": { | ||
"@commitlint/test": "^13.0.0", | ||
"@commitlint/utils": "^13.0.0", | ||
"@commitlint/test": "^13.2.0", | ||
"@commitlint/utils": "^13.2.0", | ||
"@types/fs-extra": "^9.0.1", | ||
@@ -45,8 +45,8 @@ "@types/git-raw-commits": "^2.0.0", | ||
"dependencies": { | ||
"@commitlint/top-level": "^13.0.0", | ||
"@commitlint/types": "^13.1.0", | ||
"@commitlint/top-level": "^13.2.0", | ||
"@commitlint/types": "^13.2.0", | ||
"fs-extra": "^10.0.0", | ||
"git-raw-commits": "^2.0.0" | ||
}, | ||
"gitHead": "dfbb8c5e9481a5075458acad2e4666fd6b98f9a7" | ||
"gitHead": "65e45339c79e46d01e35ec067edf14d225a3528a" | ||
} |
Sorry, the diff of this file is not supported yet
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
18667
11
Updated@commitlint/types@^13.2.0