@commitlint/types
Advanced tools
Comparing version 18.6.1 to 19.0.0
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=ensure.js.map |
@@ -1,4 +0,4 @@ | ||
import * as chalk from 'chalk'; | ||
import { QualifiedRules } from './load'; | ||
import { RuleConfigSeverity } from './rules'; | ||
import type { ColorName, ModifierName } from 'chalk'; | ||
import { QualifiedRules } from './load.js'; | ||
import { RuleConfigSeverity } from './rules.js'; | ||
export type Formatter = (report: FormattableReport, options: FormatOptions) => string; | ||
@@ -20,3 +20,3 @@ export interface FormattableProblem { | ||
} | ||
export type ChalkColor = typeof chalk.Color | typeof chalk.Modifiers; | ||
export type ChalkColor = ColorName | ModifierName; | ||
export interface FormatOptions { | ||
@@ -23,0 +23,0 @@ color?: boolean; |
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=format.js.map |
@@ -1,9 +0,9 @@ | ||
export * from './ensure'; | ||
export * from './format'; | ||
export * from './is-ignored'; | ||
export * from './lint'; | ||
export * from './load'; | ||
export * from './parse'; | ||
export * from './prompt'; | ||
export * from './rules'; | ||
export * from './ensure.js'; | ||
export * from './format.js'; | ||
export * from './is-ignored.js'; | ||
export * from './lint.js'; | ||
export * from './load.js'; | ||
export * from './parse.js'; | ||
export * from './prompt.js'; | ||
export * from './rules.js'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,25 +0,9 @@ | ||
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./ensure"), exports); | ||
__exportStar(require("./format"), exports); | ||
__exportStar(require("./is-ignored"), exports); | ||
__exportStar(require("./lint"), exports); | ||
__exportStar(require("./load"), exports); | ||
__exportStar(require("./parse"), exports); | ||
__exportStar(require("./prompt"), exports); | ||
__exportStar(require("./rules"), exports); | ||
export * from './ensure.js'; | ||
export * from './format.js'; | ||
export * from './is-ignored.js'; | ||
export * from './lint.js'; | ||
export * from './load.js'; | ||
export * from './parse.js'; | ||
export * from './prompt.js'; | ||
export * from './rules.js'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=is-ignored.js.map |
@@ -1,5 +0,5 @@ | ||
import { IsIgnoredOptions } from './is-ignored'; | ||
import { PluginRecords } from './load'; | ||
import { ParserOptions } from './parse'; | ||
import { RuleConfigSeverity, RuleConfigTuple } from './rules'; | ||
import type { Options } from 'conventional-commits-parser'; | ||
import { IsIgnoredOptions } from './is-ignored.js'; | ||
import { PluginRecords } from './load.js'; | ||
import { RuleConfigSeverity, RuleConfigTuple } from './rules.js'; | ||
export type LintRuleConfig = Record<string, Readonly<[RuleConfigSeverity.Disabled]> | RuleConfigTuple<void> | RuleConfigTuple<unknown>>; | ||
@@ -12,3 +12,3 @@ export interface LintOptions { | ||
/** The parser configuration to use when linting the commit */ | ||
parserOpts?: ParserOptions; | ||
parserOpts?: Options; | ||
plugins?: PluginRecords; | ||
@@ -15,0 +15,0 @@ helpUrl?: string; |
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=lint.js.map |
@@ -1,3 +0,3 @@ | ||
import { UserPromptConfig } from './prompt'; | ||
import { AsyncRule, Rule, RuleConfigQuality, RulesConfig, SyncRule } from './rules'; | ||
import { UserPromptConfig } from './prompt.js'; | ||
import { AsyncRule, Rule, RuleConfigQuality, RulesConfig, SyncRule } from './rules.js'; | ||
export type PluginRecords = Record<string, Plugin>; | ||
@@ -4,0 +4,0 @@ export interface Plugin { |
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=load.js.map |
@@ -1,40 +0,3 @@ | ||
export interface Commit { | ||
raw: string; | ||
header: string; | ||
type: string | null; | ||
scope: string | null; | ||
subject: string | null; | ||
body: string | null; | ||
footer: string | null; | ||
mentions: string[]; | ||
notes: CommitNote[]; | ||
references: CommitReference[]; | ||
revert: any; | ||
merge: any; | ||
} | ||
export interface CommitNote { | ||
title: string; | ||
text: string; | ||
} | ||
export interface CommitReference { | ||
raw: string; | ||
prefix: string; | ||
action: string | null; | ||
owner: string | null; | ||
repository: string | null; | ||
issue: string | null; | ||
} | ||
export type Parser = (message: string, options: ParserOptions) => Omit<Commit, 'raw'>; | ||
export interface ParserOptions { | ||
commentChar?: string; | ||
fieldPattern?: RegExp; | ||
headerCorrespondence?: string[]; | ||
headerPattern?: RegExp; | ||
issuePrefixes?: string[]; | ||
mergeCorrespondence?: string[]; | ||
mergePattern?: RegExp; | ||
noteKeywords?: string[]; | ||
revertCorrespondence?: string[]; | ||
revertPattern?: RegExp; | ||
} | ||
import type { Commit, Options } from 'conventional-commits-parser'; | ||
export type Parser = (message: string, options: Options) => Omit<Commit, 'raw'>; | ||
//# sourceMappingURL=parse.d.ts.map |
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=parse.js.map |
@@ -1,3 +0,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
export {}; | ||
//# sourceMappingURL=prompt.js.map |
@@ -1,3 +0,3 @@ | ||
import { TargetCaseType } from './ensure'; | ||
import { Commit } from './parse'; | ||
import type { Commit } from 'conventional-commits-parser'; | ||
import { TargetCaseType } from './ensure.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Rules match the input either as successful or failed. |
@@ -1,4 +0,1 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RuleConfigQuality = exports.RuleConfigSeverity = void 0; | ||
/** | ||
@@ -11,3 +8,3 @@ * Rules always have a severity. | ||
*/ | ||
var RuleConfigSeverity; | ||
export var RuleConfigSeverity; | ||
(function (RuleConfigSeverity) { | ||
@@ -17,8 +14,8 @@ RuleConfigSeverity[RuleConfigSeverity["Disabled"] = 0] = "Disabled"; | ||
RuleConfigSeverity[RuleConfigSeverity["Error"] = 2] = "Error"; | ||
})(RuleConfigSeverity || (exports.RuleConfigSeverity = RuleConfigSeverity = {})); | ||
var RuleConfigQuality; | ||
})(RuleConfigSeverity || (RuleConfigSeverity = {})); | ||
export var RuleConfigQuality; | ||
(function (RuleConfigQuality) { | ||
RuleConfigQuality[RuleConfigQuality["User"] = 0] = "User"; | ||
RuleConfigQuality[RuleConfigQuality["Qualified"] = 1] = "Qualified"; | ||
})(RuleConfigQuality || (exports.RuleConfigQuality = RuleConfigQuality = {})); | ||
})(RuleConfigQuality || (RuleConfigQuality = {})); | ||
//# sourceMappingURL=rules.js.map |
{ | ||
"name": "@commitlint/types", | ||
"version": "18.6.1", | ||
"type": "module", | ||
"version": "19.0.0", | ||
"description": "Shared types for commitlint packages", | ||
@@ -31,8 +32,8 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"chalk": "^4.1.0" | ||
"chalk": "^5.3.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/utils": "^18.6.1" | ||
"@commitlint/utils": "^19.0.0" | ||
}, | ||
"gitHead": "89f5bf91d1c11b1f457a6f0d99b8ea34583a9311" | ||
"gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f" | ||
} |
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
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
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
Yes
24031
274
+ Addedchalk@5.3.0(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedchalk@^5.3.0