feat: adding linter for commits
This commit is contained in:
336
node_modules/@commitlint/ensure/CHANGELOG.md
generated
vendored
Normal file
336
node_modules/@commitlint/ensure/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,336 @@
|
||||
# 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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [14.1.0](https://github.com/conventional-changelog/commitlint/compare/v14.0.0...v14.1.0) (2021-11-01)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
|
||||
|
||||
|
||||
* 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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* [#840](https://github.com/conventional-changelog/commitlint/issues/840) add caret to lodash versions ([#843](https://github.com/conventional-changelog/commitlint/issues/843)) ([ffc0bac](https://github.com/conventional-changelog/commitlint/commit/ffc0bac26993acb2ab6a8fa51065f93c92b0d644))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [7.5.2](https://github.com/conventional-changelog/commitlint/compare/v7.5.1...v7.5.2) (2019-02-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* failing sentence-case for subjects with slashes ([#574](https://github.com/conventional-changelog/commitlint/issues/574)) ([48a8602](https://github.com/conventional-changelog/commitlint/commit/48a8602))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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
|
||||
|
||||
* `sentence-case` allow upper-case characters in first word ([#531](https://github.com/conventional-changelog/commitlint/issues/531)) ([5a6a4a8](https://github.com/conventional-changelog/commitlint/commit/5a6a4a8)), closes [#211](https://github.com/conventional-changelog/commitlint/issues/211)
|
||||
* 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))
|
||||
* slash in scope [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([#529](https://github.com/conventional-changelog/commitlint/issues/529)) ([b2b63e5](https://github.com/conventional-changelog/commitlint/commit/b2b63e5))
|
||||
|
||||
|
||||
|
||||
|
||||
<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/ensure
|
||||
|
||||
<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)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* fall back to conventional commit-parser settings for missing keys ([#496](https://github.com/conventional-changelog/commitlint/issues/496)) ([831a141](https://github.com/conventional-changelog/commitlint/commit/831a141)), closes [#399](https://github.com/conventional-changelog/commitlint/issues/399)
|
||||
* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.2.0"></a>
|
||||
# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* handle case rules for numerics correctly ([cadcfed](https://github.com/conventional-changelog/commitlint/commit/cadcfed))
|
||||
|
||||
|
||||
|
||||
|
||||
<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/ensure
|
||||
|
||||
<a name="7.1.0"></a>
|
||||
# [7.1.0](https://github.com/conventional-changelog/commitlint/compare/v7.0.1...v7.1.0) (2018-08-29)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add max line length to body/footer ([542f50e](https://github.com/conventional-changelog/commitlint/commit/542f50e))
|
||||
|
||||
|
||||
|
||||
|
||||
<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)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **ensure:** ignore word delimiters for case matching [#291](https://github.com/conventional-changelog/commitlint/issues/291) ([fa69299](https://github.com/conventional-changelog/commitlint/commit/fa69299))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="6.1.0"></a>
|
||||
# [6.1.0](https://github.com/conventional-changelog/commitlint/compare/v6.0.5...v6.1.0) (2018-02-03)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
<a name="6.0.4"></a>
|
||||
## [6.0.4](https://github.com/conventional-changelog/commitlint/compare/v6.0.3...v6.0.4) (2018-01-31)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
<a name="6.0.3"></a>
|
||||
## [6.0.3](https://github.com/conventional-changelog/commitlint/compare/v6.0.2...v6.0.3) (2018-01-31)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
<a name="6.0.2"></a>
|
||||
## [6.0.2](https://github.com/conventional-changelog/commitlint/compare/v6.0.0...v6.0.2) (2018-01-12)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/ensure
|
||||
|
||||
<a name="6.0.0"></a>
|
||||
# [6.0.0](https://github.com/conventional-changelog/commitlint/compare/v5.2.6...v6.0.0) (2018-01-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* sanitize ensure.case [#211](https://github.com/conventional-changelog/commitlint/issues/211) ([#217](https://github.com/conventional-changelog/commitlint/issues/217)) ([03aeefc](https://github.com/conventional-changelog/commitlint/commit/03aeefc))
|
4
node_modules/@commitlint/ensure/lib/case.d.ts
generated
vendored
Normal file
4
node_modules/@commitlint/ensure/lib/case.d.ts
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
import { TargetCaseType } from '@commitlint/types';
|
||||
export default ensureCase;
|
||||
declare function ensureCase(raw?: string, target?: TargetCaseType): boolean;
|
||||
//# sourceMappingURL=case.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/case.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/case.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"case.d.ts","sourceRoot":"","sources":["../src/case.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAEjD,eAAe,UAAU,CAAC;AAE1B,iBAAS,UAAU,CAClB,GAAG,GAAE,MAAW,EAChB,MAAM,GAAE,cAA4B,GAClC,OAAO,CAcT"}
|
20
node_modules/@commitlint/ensure/lib/case.js
generated
vendored
Normal file
20
node_modules/@commitlint/ensure/lib/case.js
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const to_case_1 = __importDefault(require("./to-case"));
|
||||
exports.default = ensureCase;
|
||||
function ensureCase(raw = '', target = 'lowercase') {
|
||||
// We delete any content together with quotes because he can contains proper names (example `refactor: `Eslint` configuration`).
|
||||
// We need trim string because content with quotes can be at the beginning or end of a line
|
||||
const input = String(raw)
|
||||
.replace(/`.*?`|".*?"|'.*?'/g, '')
|
||||
.trim();
|
||||
const transformed = (0, to_case_1.default)(input, target);
|
||||
if (transformed === '' || transformed.match(/^\d/)) {
|
||||
return true;
|
||||
}
|
||||
return transformed === input;
|
||||
}
|
||||
//# sourceMappingURL=case.js.map
|
1
node_modules/@commitlint/ensure/lib/case.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/case.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"case.js","sourceRoot":"","sources":["../src/case.ts"],"names":[],"mappings":";;;;;AAAA,wDAA+B;AAG/B,kBAAe,UAAU,CAAC;AAE1B,SAAS,UAAU,CAClB,MAAc,EAAE,EAChB,SAAyB,WAAW;IAEpC,gIAAgI;IAChI,2FAA2F;IAC3F,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC;SACvB,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC;SACjC,IAAI,EAAE,CAAC;IAET,MAAM,WAAW,GAAG,IAAA,iBAAM,EAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAE1C,IAAI,WAAW,KAAK,EAAE,IAAI,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QACnD,OAAO,IAAI,CAAC;KACZ;IAED,OAAO,WAAW,KAAK,KAAK,CAAC;AAC9B,CAAC"}
|
3
node_modules/@commitlint/ensure/lib/enum.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/ensure/lib/enum.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare const _default: (value: any, enums?: any[]) => boolean;
|
||||
export default _default;
|
||||
//# sourceMappingURL=enum.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/enum.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/enum.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.d.ts","sourceRoot":"","sources":["../src/enum.ts"],"names":[],"mappings":"gCAAuB,GAAG,UAAS,GAAG,EAAE,KAAQ,OAAO;AAAvD,wBAQE"}
|
12
node_modules/@commitlint/ensure/lib/enum.js
generated
vendored
Normal file
12
node_modules/@commitlint/ensure/lib/enum.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = (value, enums = []) => {
|
||||
if (value === undefined) {
|
||||
return false;
|
||||
}
|
||||
if (!Array.isArray(enums)) {
|
||||
return false;
|
||||
}
|
||||
return enums.indexOf(value) > -1;
|
||||
};
|
||||
//# sourceMappingURL=enum.js.map
|
1
node_modules/@commitlint/ensure/lib/enum.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/enum.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"enum.js","sourceRoot":"","sources":["../src/enum.ts"],"names":[],"mappings":";;AAAA,kBAAe,CAAC,KAAU,EAAE,QAAe,EAAE,EAAW,EAAE;IACzD,IAAI,KAAK,KAAK,SAAS,EAAE;QACxB,OAAO,KAAK,CAAC;KACb;IACD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAC1B,OAAO,KAAK,CAAC;KACb;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AAClC,CAAC,CAAC"}
|
11
node_modules/@commitlint/ensure/lib/index.d.ts
generated
vendored
Normal file
11
node_modules/@commitlint/ensure/lib/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
import ensureCase from './case';
|
||||
import ensureEnum from './enum';
|
||||
import maxLength from './max-length';
|
||||
import maxLineLength from './max-line-length';
|
||||
import minLength from './min-length';
|
||||
import notEmpty from './not-empty';
|
||||
import toCase from './to-case';
|
||||
export { ensureCase as case };
|
||||
export { ensureEnum as enum };
|
||||
export { maxLength, maxLineLength, minLength, notEmpty, toCase };
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/index.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,QAAQ,CAAC;AAChC,OAAO,UAAU,MAAM,QAAQ,CAAC;AAChC,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,UAAU,IAAI,IAAI,EAAC,CAAC;AAC5B,OAAO,EAAC,UAAU,IAAI,IAAI,EAAC,CAAC;AAC5B,OAAO,EAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAC,CAAC"}
|
21
node_modules/@commitlint/ensure/lib/index.js
generated
vendored
Normal file
21
node_modules/@commitlint/ensure/lib/index.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.toCase = exports.notEmpty = exports.minLength = exports.maxLineLength = exports.maxLength = exports.enum = exports.case = void 0;
|
||||
const case_1 = __importDefault(require("./case"));
|
||||
exports.case = case_1.default;
|
||||
const enum_1 = __importDefault(require("./enum"));
|
||||
exports.enum = enum_1.default;
|
||||
const max_length_1 = __importDefault(require("./max-length"));
|
||||
exports.maxLength = max_length_1.default;
|
||||
const max_line_length_1 = __importDefault(require("./max-line-length"));
|
||||
exports.maxLineLength = max_line_length_1.default;
|
||||
const min_length_1 = __importDefault(require("./min-length"));
|
||||
exports.minLength = min_length_1.default;
|
||||
const not_empty_1 = __importDefault(require("./not-empty"));
|
||||
exports.notEmpty = not_empty_1.default;
|
||||
const to_case_1 = __importDefault(require("./to-case"));
|
||||
exports.toCase = to_case_1.default;
|
||||
//# sourceMappingURL=index.js.map
|
1
node_modules/@commitlint/ensure/lib/index.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAgC;AAQV,eARf,cAAU,CAQS;AAP1B,kDAAgC;AAQV,eARf,cAAU,CAQS;AAP1B,8DAAqC;AAQ7B,oBARD,oBAAS,CAQC;AAPjB,wEAA8C;AAO3B,wBAPZ,yBAAa,CAOY;AANhC,8DAAqC;AAMH,oBAN3B,oBAAS,CAM2B;AAL3C,4DAAmC;AAKU,mBALtC,mBAAQ,CAKsC;AAJrD,wDAA+B;AAIwB,iBAJhD,iBAAM,CAIgD"}
|
3
node_modules/@commitlint/ensure/lib/max-length.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/ensure/lib/max-length.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare const _default: (value: string, max: number) => boolean;
|
||||
export default _default;
|
||||
//# sourceMappingURL=max-length.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/max-length.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/max-length.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"max-length.d.ts","sourceRoot":"","sources":["../src/max-length.ts"],"names":[],"mappings":"gCAAuB,MAAM,OAAO,MAAM,KAAG,OAAO;AAApD,wBACkD"}
|
4
node_modules/@commitlint/ensure/lib/max-length.js
generated
vendored
Normal file
4
node_modules/@commitlint/ensure/lib/max-length.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = (value, max) => typeof value === 'string' && value.length <= max;
|
||||
//# sourceMappingURL=max-length.js.map
|
1
node_modules/@commitlint/ensure/lib/max-length.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/max-length.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"max-length.js","sourceRoot":"","sources":["../src/max-length.ts"],"names":[],"mappings":";;AAAA,kBAAe,CAAC,KAAa,EAAE,GAAW,EAAW,EAAE,CACtD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,GAAG,CAAC"}
|
3
node_modules/@commitlint/ensure/lib/max-line-length.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/ensure/lib/max-line-length.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare const _default: (value: string, max: number) => boolean;
|
||||
export default _default;
|
||||
//# sourceMappingURL=max-line-length.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/max-line-length.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/max-line-length.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"max-line-length.d.ts","sourceRoot":"","sources":["../src/max-line-length.ts"],"names":[],"mappings":"gCAEuB,MAAM,OAAO,MAAM,KAAG,OAAO;AAApD,wBAEyD"}
|
9
node_modules/@commitlint/ensure/lib/max-line-length.js
generated
vendored
Normal file
9
node_modules/@commitlint/ensure/lib/max-line-length.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const max_length_1 = __importDefault(require("./max-length"));
|
||||
exports.default = (value, max) => typeof value === 'string' &&
|
||||
value.split(/\r?\n/).every((line) => (0, max_length_1.default)(line, max));
|
||||
//# sourceMappingURL=max-line-length.js.map
|
1
node_modules/@commitlint/ensure/lib/max-line-length.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/max-line-length.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"max-line-length.js","sourceRoot":"","sources":["../src/max-line-length.ts"],"names":[],"mappings":";;;;;AAAA,8DAAkC;AAElC,kBAAe,CAAC,KAAa,EAAE,GAAW,EAAW,EAAE,CACtD,OAAO,KAAK,KAAK,QAAQ;IACzB,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAA,oBAAM,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC"}
|
3
node_modules/@commitlint/ensure/lib/min-length.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/ensure/lib/min-length.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare const _default: (value: string, min: number) => boolean;
|
||||
export default _default;
|
||||
//# sourceMappingURL=min-length.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/min-length.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/min-length.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"min-length.d.ts","sourceRoot":"","sources":["../src/min-length.ts"],"names":[],"mappings":"gCAAuB,MAAM,OAAO,MAAM,KAAG,OAAO;AAApD,wBACkD"}
|
4
node_modules/@commitlint/ensure/lib/min-length.js
generated
vendored
Normal file
4
node_modules/@commitlint/ensure/lib/min-length.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = (value, min) => typeof value === 'string' && value.length >= min;
|
||||
//# sourceMappingURL=min-length.js.map
|
1
node_modules/@commitlint/ensure/lib/min-length.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/min-length.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"min-length.js","sourceRoot":"","sources":["../src/min-length.ts"],"names":[],"mappings":";;AAAA,kBAAe,CAAC,KAAa,EAAE,GAAW,EAAW,EAAE,CACtD,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,IAAI,GAAG,CAAC"}
|
3
node_modules/@commitlint/ensure/lib/not-empty.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/ensure/lib/not-empty.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
declare const _default: (value: string) => boolean;
|
||||
export default _default;
|
||||
//# sourceMappingURL=not-empty.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/not-empty.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/not-empty.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"not-empty.d.ts","sourceRoot":"","sources":["../src/not-empty.ts"],"names":[],"mappings":"gCAAuB,MAAM,KAAG,OAAO;AAAvC,wBAC+C"}
|
4
node_modules/@commitlint/ensure/lib/not-empty.js
generated
vendored
Normal file
4
node_modules/@commitlint/ensure/lib/not-empty.js
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = (value) => typeof value === 'string' && value.length > 0;
|
||||
//# sourceMappingURL=not-empty.js.map
|
1
node_modules/@commitlint/ensure/lib/not-empty.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/not-empty.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"not-empty.js","sourceRoot":"","sources":["../src/not-empty.ts"],"names":[],"mappings":";;AAAA,kBAAe,CAAC,KAAa,EAAW,EAAE,CACzC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC"}
|
3
node_modules/@commitlint/ensure/lib/to-case.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/ensure/lib/to-case.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { TargetCaseType } from '@commitlint/types';
|
||||
export default function toCase(input: string, target: TargetCaseType): string;
|
||||
//# sourceMappingURL=to-case.d.ts.map
|
1
node_modules/@commitlint/ensure/lib/to-case.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/to-case.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"to-case.d.ts","sourceRoot":"","sources":["../src/to-case.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAOjD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,GAAG,MAAM,CAyB5E"}
|
38
node_modules/@commitlint/ensure/lib/to-case.js
generated
vendored
Normal file
38
node_modules/@commitlint/ensure/lib/to-case.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const camelCase_1 = __importDefault(require("lodash/camelCase"));
|
||||
const kebabCase_1 = __importDefault(require("lodash/kebabCase"));
|
||||
const snakeCase_1 = __importDefault(require("lodash/snakeCase"));
|
||||
const upperFirst_1 = __importDefault(require("lodash/upperFirst"));
|
||||
const startCase_1 = __importDefault(require("lodash/startCase"));
|
||||
function toCase(input, target) {
|
||||
switch (target) {
|
||||
case 'camel-case':
|
||||
return (0, camelCase_1.default)(input);
|
||||
case 'kebab-case':
|
||||
return (0, kebabCase_1.default)(input);
|
||||
case 'snake-case':
|
||||
return (0, snakeCase_1.default)(input);
|
||||
case 'pascal-case':
|
||||
return (0, upperFirst_1.default)((0, camelCase_1.default)(input));
|
||||
case 'start-case':
|
||||
return (0, startCase_1.default)(input);
|
||||
case 'upper-case':
|
||||
case 'uppercase':
|
||||
return input.toUpperCase();
|
||||
case 'sentence-case':
|
||||
case 'sentencecase':
|
||||
return (0, upperFirst_1.default)(input);
|
||||
case 'lower-case':
|
||||
case 'lowercase':
|
||||
case 'lowerCase': // Backwards compat config-angular v4
|
||||
return input.toLowerCase();
|
||||
default:
|
||||
throw new TypeError(`to-case: Unknown target case "${target}"`);
|
||||
}
|
||||
}
|
||||
exports.default = toCase;
|
||||
//# sourceMappingURL=to-case.js.map
|
1
node_modules/@commitlint/ensure/lib/to-case.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/ensure/lib/to-case.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"to-case.js","sourceRoot":"","sources":["../src/to-case.ts"],"names":[],"mappings":";;;;;AACA,iEAAyC;AACzC,iEAAyC;AACzC,iEAAyC;AACzC,mEAA2C;AAC3C,iEAAyC;AAEzC,SAAwB,MAAM,CAAC,KAAa,EAAE,MAAsB;IACnE,QAAQ,MAAM,EAAE;QACf,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,aAAa;YACjB,OAAO,IAAA,oBAAU,EAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC,CAAC;QACrC,KAAK,YAAY;YAChB,OAAO,IAAA,mBAAS,EAAC,KAAK,CAAC,CAAC;QACzB,KAAK,YAAY,CAAC;QAClB,KAAK,WAAW;YACf,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;QAC5B,KAAK,eAAe,CAAC;QACrB,KAAK,cAAc;YAClB,OAAO,IAAA,oBAAU,EAAC,KAAK,CAAC,CAAC;QAC1B,KAAK,YAAY,CAAC;QAClB,KAAK,WAAW,CAAC;QACjB,KAAK,WAAW,EAAE,qCAAqC;YACtD,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;QAC5B;YACC,MAAM,IAAI,SAAS,CAAC,iCAAiC,MAAM,GAAG,CAAC,CAAC;KACjE;AACF,CAAC;AAzBD,yBAyBC"}
|
21
node_modules/@commitlint/ensure/license.md
generated
vendored
Normal file
21
node_modules/@commitlint/ensure/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.
|
47
node_modules/@commitlint/ensure/package.json
generated
vendored
Normal file
47
node_modules/@commitlint/ensure/package.json
generated
vendored
Normal file
@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "@commitlint/ensure",
|
||||
"version": "15.0.0",
|
||||
"description": "Lint your commit messages",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"files": [
|
||||
"lib/"
|
||||
],
|
||||
"scripts": {
|
||||
"deps": "dep-check",
|
||||
"pkg": "pkg-check"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=v12"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/conventional-changelog/commitlint.git",
|
||||
"directory": "@commitlint/ensure"
|
||||
},
|
||||
"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/utils": "^15.0.0",
|
||||
"@types/lodash": "^4.14.161",
|
||||
"globby": "^11.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commitlint/types": "^15.0.0",
|
||||
"lodash": "^4.17.19"
|
||||
},
|
||||
"gitHead": "399a0289356c670a87524387cc96d8fb0a33fdca"
|
||||
}
|
Reference in New Issue
Block a user