feat: adding linter for commits
This commit is contained in:
273
node_modules/@commitlint/read/CHANGELOG.md
generated
vendored
Normal file
273
node_modules/@commitlint/read/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,273 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
|
||||
|
||||
|
||||
* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* minimum node version is 12
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency fs-extra to v10 ([#2575](https://github.com/conventional-changelog/commitlint/issues/2575)) ([d47d2b5](https://github.com/conventional-changelog/commitlint/commit/d47d2b595b980adadd4fb8ff198c1914caeff18f))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [12.1.0](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.0) (2021-03-06)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency @types/fs-extra to ^9.0.1 ([#2088](https://github.com/conventional-changelog/commitlint/issues/2088)) ([cb1028e](https://github.com/conventional-changelog/commitlint/commit/cb1028ef2700d86991c69a1e2ad391bc1bdc9d90))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency fs-extra to v9 ([#1018](https://github.com/conventional-changelog/commitlint/issues/1018)) ([2df49fa](https://github.com/conventional-changelog/commitlint/commit/2df49fac907993ae78199a1012e918b0e2ff5621))
|
||||
|
||||
|
||||
* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* remove node 8 from circle-ci checks
|
||||
|
||||
also remove node 13 because we do not support experimental versions
|
||||
|
||||
* docs: update node v10 to latest LTS 10 version
|
||||
|
||||
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
||||
|
||||
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* use sander.readFile correctly ([#448](https://github.com/conventional-changelog/commitlint/issues/448)) ([#630](https://github.com/conventional-changelog/commitlint/issues/630)) ([8e47985](https://github.com/conventional-changelog/commitlint/commit/8e47985))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.5.0"></a>
|
||||
# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
|
||||
* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
|
||||
* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
|
||||
* resolve path to commit message for git submodules ([83b1a47](https://github.com/conventional-changelog/commitlint/commit/83b1a47))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add support for git submodules ([cc575fa](https://github.com/conventional-changelog/commitlint/commit/cc575fa))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.3.1"></a>
|
||||
## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
<a name="7.3.0"></a>
|
||||
# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
<a name="7.1.2"></a>
|
||||
## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
|
||||
<a name="6.1.1"></a>
|
||||
## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/read
|
||||
25
node_modules/@commitlint/read/README.md
generated
vendored
Normal file
25
node_modules/@commitlint/read/README.md
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
> Read commit messages from a specified range or last edit
|
||||
|
||||
# @commitlint/read
|
||||
|
||||
## Getting started
|
||||
|
||||
```shell
|
||||
npm install --save @commitlint/read
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
const read = require('@commitlint/read').default;
|
||||
|
||||
// Read last edited commit message
|
||||
read({edit: true}).then((messages) => console.log(messages));
|
||||
// => ['I did something\n\n']
|
||||
|
||||
// Read from the third to second commit message from HEAD
|
||||
read({from: 'HEAD~2', to: 'HEAD~1'}).then((messages) => console.log(messages));
|
||||
// => ['Initial commit\n\n']
|
||||
```
|
||||
|
||||
Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.
|
||||
2
node_modules/@commitlint/read/lib/get-edit-commit.d.ts
generated
vendored
Normal file
2
node_modules/@commitlint/read/lib/get-edit-commit.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function getEditCommit(cwd?: string, edit?: boolean | string): Promise<string[]>;
|
||||
//# sourceMappingURL=get-edit-commit.d.ts.map
|
||||
1
node_modules/@commitlint/read/lib/get-edit-commit.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/get-edit-commit.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get-edit-commit.d.ts","sourceRoot":"","sources":["../src/get-edit-commit.ts"],"names":[],"mappings":"AAKA,wBAAsB,aAAa,CAClC,GAAG,CAAC,EAAE,MAAM,EACZ,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GACrB,OAAO,CAAC,MAAM,EAAE,CAAC,CAWnB"}
|
||||
21
node_modules/@commitlint/read/lib/get-edit-commit.js
generated
vendored
Normal file
21
node_modules/@commitlint/read/lib/get-edit-commit.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getEditCommit = void 0;
|
||||
const top_level_1 = __importDefault(require("@commitlint/top-level"));
|
||||
const fs_extra_1 = __importDefault(require("fs-extra"));
|
||||
const get_edit_file_path_1 = require("./get-edit-file-path");
|
||||
// Get recently edited commit message
|
||||
async function getEditCommit(cwd, edit) {
|
||||
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 (0, get_edit_file_path_1.getEditFilePath)(top, edit);
|
||||
const editFile = await fs_extra_1.default.readFile(editFilePath);
|
||||
return [`${editFile.toString('utf-8')}\n`];
|
||||
}
|
||||
exports.getEditCommit = getEditCommit;
|
||||
//# sourceMappingURL=get-edit-commit.js.map
|
||||
1
node_modules/@commitlint/read/lib/get-edit-commit.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/get-edit-commit.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get-edit-commit.js","sourceRoot":"","sources":["../src/get-edit-commit.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA6C;AAC7C,wDAA0B;AAC1B,6DAAqD;AAErD,qCAAqC;AAC9B,KAAK,UAAU,aAAa,CAClC,GAAY,EACZ,IAAuB;IAEvB,MAAM,GAAG,GAAG,MAAM,IAAA,mBAAQ,EAAC,GAAG,CAAC,CAAC;IAEhC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,SAAS,CAAC,gCAAgC,GAAG,EAAE,CAAC,CAAC;KAC3D;IAED,MAAM,YAAY,GAAG,MAAM,IAAA,oCAAe,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAW,MAAM,kBAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IAEzD,OAAO,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC;AAdD,sCAcC"}
|
||||
2
node_modules/@commitlint/read/lib/get-edit-file-path.d.ts
generated
vendored
Normal file
2
node_modules/@commitlint/read/lib/get-edit-file-path.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function getEditFilePath(top: string, edit?: boolean | string): Promise<string>;
|
||||
//# sourceMappingURL=get-edit-file-path.d.ts.map
|
||||
1
node_modules/@commitlint/read/lib/get-edit-file-path.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/get-edit-file-path.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get-edit-file-path.d.ts","sourceRoot":"","sources":["../src/get-edit-file-path.ts"],"names":[],"mappings":"AAKA,wBAAsB,eAAe,CACpC,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GACrB,OAAO,CAAC,MAAM,CAAC,CAiBjB"}
|
||||
26
node_modules/@commitlint/read/lib/get-edit-file-path.js
generated
vendored
Normal file
26
node_modules/@commitlint/read/lib/get-edit-file-path.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getEditFilePath = void 0;
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const fs_extra_1 = __importDefault(require("fs-extra"));
|
||||
// Get path to recently edited commit message file
|
||||
async function getEditFilePath(top, edit) {
|
||||
if (typeof edit === 'string') {
|
||||
return path_1.default.resolve(top, edit);
|
||||
}
|
||||
const dotgitPath = path_1.default.join(top, '.git');
|
||||
const dotgitStats = await fs_extra_1.default.lstat(dotgitPath);
|
||||
if (dotgitStats.isDirectory()) {
|
||||
return path_1.default.join(top, '.git/COMMIT_EDITMSG');
|
||||
}
|
||||
const gitFile = await fs_extra_1.default.readFile(dotgitPath, {
|
||||
encoding: 'utf-8',
|
||||
});
|
||||
const relativeGitPath = gitFile.replace('gitdir: ', '').replace('\n', '');
|
||||
return path_1.default.resolve(top, relativeGitPath, 'COMMIT_EDITMSG');
|
||||
}
|
||||
exports.getEditFilePath = getEditFilePath;
|
||||
//# sourceMappingURL=get-edit-file-path.js.map
|
||||
1
node_modules/@commitlint/read/lib/get-edit-file-path.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/get-edit-file-path.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get-edit-file-path.js","sourceRoot":"","sources":["../src/get-edit-file-path.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,wDAA0B;AAE1B,kDAAkD;AAC3C,KAAK,UAAU,eAAe,CACpC,GAAW,EACX,IAAuB;IAEvB,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC7B,OAAO,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KAC/B;IAED,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC1C,MAAM,WAAW,GAAU,MAAM,kBAAE,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;IAEtD,IAAI,WAAW,CAAC,WAAW,EAAE,EAAE;QAC9B,OAAO,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;KAC7C;IAED,MAAM,OAAO,GAAW,MAAM,kBAAE,CAAC,QAAQ,CAAC,UAAU,EAAE;QACrD,QAAQ,EAAE,OAAO;KACjB,CAAC,CAAC;IACH,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC1E,OAAO,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,eAAe,EAAE,gBAAgB,CAAC,CAAC;AAC7D,CAAC;AApBD,0CAoBC"}
|
||||
7
node_modules/@commitlint/read/lib/get-history-commits.d.ts
generated
vendored
Normal file
7
node_modules/@commitlint/read/lib/get-history-commits.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export declare function getHistoryCommits(options: {
|
||||
from?: string;
|
||||
to?: string;
|
||||
}, opts?: {
|
||||
cwd?: string;
|
||||
}): Promise<string[]>;
|
||||
//# sourceMappingURL=get-history-commits.d.ts.map
|
||||
1
node_modules/@commitlint/read/lib/get-history-commits.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/get-history-commits.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get-history-commits.d.ts","sourceRoot":"","sources":["../src/get-history-commits.ts"],"names":[],"mappings":"AAIA,wBAAsB,iBAAiB,CACtC,OAAO,EAAE;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAC,EACrC,IAAI,GAAE;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAM,GACvB,OAAO,CAAC,MAAM,EAAE,CAAC,CAEnB"}
|
||||
14
node_modules/@commitlint/read/lib/get-history-commits.js
generated
vendored
Normal file
14
node_modules/@commitlint/read/lib/get-history-commits.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getHistoryCommits = void 0;
|
||||
const git_raw_commits_1 = __importDefault(require("git-raw-commits"));
|
||||
const stream_to_promise_1 = require("./stream-to-promise");
|
||||
// Get commit messages from history
|
||||
async function getHistoryCommits(options, opts = {}) {
|
||||
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
|
||||
1
node_modules/@commitlint/read/lib/get-history-commits.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/get-history-commits.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"get-history-commits.js","sourceRoot":"","sources":["../src/get-history-commits.ts"],"names":[],"mappings":";;;;;;AAAA,sEAA4C;AAC5C,2DAAoD;AAEpD,mCAAmC;AAC5B,KAAK,UAAU,iBAAiB,CACtC,OAAqC,EACrC,OAAuB,EAAE;IAEzB,OAAO,IAAA,mCAAe,EAAC,IAAA,yBAAa,EAAC,OAAO,EAAE,EAAC,GAAG,EAAE,IAAI,CAAC,GAAG,EAAC,CAAC,CAAC,CAAC;AACjE,CAAC;AALD,8CAKC"}
|
||||
9
node_modules/@commitlint/read/lib/read.d.ts
generated
vendored
Normal file
9
node_modules/@commitlint/read/lib/read.d.ts
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
interface GetCommitMessageOptions {
|
||||
cwd?: string;
|
||||
from?: string;
|
||||
to?: string;
|
||||
edit?: boolean | string;
|
||||
}
|
||||
export default function getCommitMessages(settings: GetCommitMessageOptions): Promise<string[]>;
|
||||
export {};
|
||||
//# sourceMappingURL=read.d.ts.map
|
||||
1
node_modules/@commitlint/read/lib/read.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/read.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":"AAGA,UAAU,uBAAuB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CACxB;AAGD,wBAA8B,iBAAiB,CAC9C,QAAQ,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,EAAE,CAAC,CAQnB"}
|
||||
14
node_modules/@commitlint/read/lib/read.js
generated
vendored
Normal file
14
node_modules/@commitlint/read/lib/read.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const get_history_commits_1 = require("./get-history-commits");
|
||||
const get_edit_commit_1 = require("./get-edit-commit");
|
||||
// Get commit messages
|
||||
async function getCommitMessages(settings) {
|
||||
const { cwd, from, to, edit } = settings;
|
||||
if (edit) {
|
||||
return (0, get_edit_commit_1.getEditCommit)(cwd, edit);
|
||||
}
|
||||
return (0, get_history_commits_1.getHistoryCommits)({ from, to }, { cwd });
|
||||
}
|
||||
exports.default = getCommitMessages;
|
||||
//# sourceMappingURL=read.js.map
|
||||
1
node_modules/@commitlint/read/lib/read.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/read.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"read.js","sourceRoot":"","sources":["../src/read.ts"],"names":[],"mappings":";;AAAA,+DAAwD;AACxD,uDAAgD;AAShD,sBAAsB;AACP,KAAK,UAAU,iBAAiB,CAC9C,QAAiC;IAEjC,MAAM,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAC,GAAG,QAAQ,CAAC;IAEvC,IAAI,IAAI,EAAE;QACT,OAAO,IAAA,+BAAa,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;KAChC;IAED,OAAO,IAAA,uCAAiB,EAAC,EAAC,IAAI,EAAE,EAAE,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,CAAC;AAC7C,CAAC;AAVD,oCAUC"}
|
||||
4
node_modules/@commitlint/read/lib/stream-to-promise.d.ts
generated
vendored
Normal file
4
node_modules/@commitlint/read/lib/stream-to-promise.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/// <reference types="node" />
|
||||
import { Readable } from 'stream';
|
||||
export declare function streamToPromise(stream: Readable): Promise<string[]>;
|
||||
//# sourceMappingURL=stream-to-promise.d.ts.map
|
||||
1
node_modules/@commitlint/read/lib/stream-to-promise.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/stream-to-promise.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"stream-to-promise.d.ts","sourceRoot":"","sources":["../src/stream-to-promise.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAEhC,wBAAgB,eAAe,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAQnE"}
|
||||
12
node_modules/@commitlint/read/lib/stream-to-promise.js
generated
vendored
Normal file
12
node_modules/@commitlint/read/lib/stream-to-promise.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.streamToPromise = void 0;
|
||||
function streamToPromise(stream) {
|
||||
const data = [];
|
||||
return new Promise((resolve, reject) => stream
|
||||
.on('data', (chunk) => data.push(chunk.toString('utf-8')))
|
||||
.on('error', reject)
|
||||
.on('end', () => resolve(data)));
|
||||
}
|
||||
exports.streamToPromise = streamToPromise;
|
||||
//# sourceMappingURL=stream-to-promise.js.map
|
||||
1
node_modules/@commitlint/read/lib/stream-to-promise.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/read/lib/stream-to-promise.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"stream-to-promise.js","sourceRoot":"","sources":["../src/stream-to-promise.ts"],"names":[],"mappings":";;;AAEA,SAAgB,eAAe,CAAC,MAAgB;IAC/C,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CACtC,MAAM;SACJ,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;SACzD,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;SACnB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAChC,CAAC;AACH,CAAC;AARD,0CAQC"}
|
||||
21
node_modules/@commitlint/read/license.md
generated
vendored
Normal file
21
node_modules/@commitlint/read/license.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 - present Mario Nebl
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
51
node_modules/@commitlint/read/package.json
generated
vendored
Normal file
51
node_modules/@commitlint/read/package.json
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"name": "@commitlint/read",
|
||||
"version": "15.0.0",
|
||||
"description": "Read commit messages from a specified range or last edit",
|
||||
"main": "lib/read.js",
|
||||
"types": "lib/read.d.ts",
|
||||
"files": [
|
||||
"lib/"
|
||||
],
|
||||
"scripts": {
|
||||
"deps": "dep-check",
|
||||
"pkg": "pkg-check --skip-import"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=v12"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/conventional-changelog/commitlint.git",
|
||||
"directory": "@commitlint/read"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/conventional-changelog/commitlint/issues"
|
||||
},
|
||||
"homepage": "https://commitlint.js.org/",
|
||||
"keywords": [
|
||||
"conventional-changelog",
|
||||
"commitlint",
|
||||
"library",
|
||||
"core"
|
||||
],
|
||||
"author": {
|
||||
"name": "Mario Nebl",
|
||||
"email": "hello@herebecode.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@commitlint/test": "^15.0.0",
|
||||
"@commitlint/utils": "^15.0.0",
|
||||
"@types/fs-extra": "^9.0.1",
|
||||
"@types/git-raw-commits": "^2.0.0",
|
||||
"execa": "^5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commitlint/top-level": "^15.0.0",
|
||||
"@commitlint/types": "^15.0.0",
|
||||
"fs-extra": "^10.0.0",
|
||||
"git-raw-commits": "^2.0.0"
|
||||
},
|
||||
"gitHead": "399a0289356c670a87524387cc96d8fb0a33fdca"
|
||||
}
|
||||
Reference in New Issue
Block a user