@commitlint/types 19.8.0 → 19.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ensure.d.ts +1 -1
- package/lib/format.d.ts +3 -3
- package/lib/format.d.ts.map +1 -1
- package/lib/index.d.ts +8 -8
- package/lib/index.js +8 -8
- package/lib/lint.d.ts +6 -6
- package/lib/lint.d.ts.map +1 -1
- package/lib/load.d.ts +2 -2
- package/lib/load.d.ts.map +1 -1
- package/lib/parse.d.ts +2 -2
- package/lib/parse.d.ts.map +1 -1
- package/lib/prompt.d.ts +2 -2
- package/lib/prompt.d.ts.map +1 -1
- package/lib/rules.d.ts +43 -43
- package/lib/rules.d.ts.map +1 -1
- package/package.json +3 -3
package/lib/ensure.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type TargetCaseType =
|
|
1
|
+
export type TargetCaseType = "camel-case" | "kebab-case" | "snake-case" | "pascal-case" | "start-case" | "upper-case" | "uppercase" | "sentence-case" | "sentencecase" | "lower-case" | "lowercase" | "lowerCase";
|
|
2
2
|
//# sourceMappingURL=ensure.d.ts.map
|
package/lib/format.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ColorName, ModifierName } from
|
|
2
|
-
import { QualifiedRules } from
|
|
3
|
-
import { RuleConfigSeverity } from
|
|
1
|
+
import type { ColorName, ModifierName } from "chalk";
|
|
2
|
+
import { QualifiedRules } from "./load.js";
|
|
3
|
+
import { RuleConfigSeverity } from "./rules.js";
|
|
4
4
|
export type Formatter = (report: FormattableReport, options: FormatOptions) => string;
|
|
5
5
|
export interface FormattableProblem {
|
|
6
6
|
level: RuleConfigSeverity;
|
package/lib/format.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,MAAM,MAAM,SAAS,GAAG,CACvB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,aAAa,KAClB,MAAM,CAAC;AAEZ,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,IAAI,EAAE,MAAM,cAAc,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IACjC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,SAAS;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IACjC,OAAO,CAAC,EAAE,CAAC,iBAAiB,GAAG,SAAS,CAAC,EAAE,CAAC;CAC5C;AAED,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,YAAY,CAAC;AAElD,MAAM,WAAW,aAAa;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./ensure.js";
|
|
2
|
+
export * from "./format.js";
|
|
3
|
+
export * from "./is-ignored.js";
|
|
4
|
+
export * from "./lint.js";
|
|
5
|
+
export * from "./load.js";
|
|
6
|
+
export * from "./parse.js";
|
|
7
|
+
export * from "./prompt.js";
|
|
8
|
+
export * from "./rules.js";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
1
|
+
export * from "./ensure.js";
|
|
2
|
+
export * from "./format.js";
|
|
3
|
+
export * from "./is-ignored.js";
|
|
4
|
+
export * from "./lint.js";
|
|
5
|
+
export * from "./load.js";
|
|
6
|
+
export * from "./parse.js";
|
|
7
|
+
export * from "./prompt.js";
|
|
8
|
+
export * from "./rules.js";
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/lib/lint.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Options } from
|
|
2
|
-
import { IsIgnoredOptions } from
|
|
3
|
-
import { PluginRecords } from
|
|
4
|
-
import { RuleConfigSeverity, RuleConfigTuple } from
|
|
1
|
+
import type { Options } from "conventional-commits-parser";
|
|
2
|
+
import { IsIgnoredOptions } from "./is-ignored.js";
|
|
3
|
+
import { PluginRecords } from "./load.js";
|
|
4
|
+
import { RuleConfigSeverity, RuleConfigTuple } from "./rules.js";
|
|
5
5
|
export type LintRuleConfig = Record<string, Readonly<[RuleConfigSeverity.Disabled]> | RuleConfigTuple<void> | RuleConfigTuple<unknown>>;
|
|
6
6
|
export interface LintOptions {
|
|
7
7
|
/** If it should ignore the default commit messages (defaults to `true`) */
|
|
8
|
-
defaultIgnores?: IsIgnoredOptions[
|
|
8
|
+
defaultIgnores?: IsIgnoredOptions["defaults"];
|
|
9
9
|
/** Additional commits to ignore, defined by ignore matchers */
|
|
10
|
-
ignores?: IsIgnoredOptions[
|
|
10
|
+
ignores?: IsIgnoredOptions["ignores"];
|
|
11
11
|
/** The parser configuration to use when linting the commit */
|
|
12
12
|
parserOpts?: Options;
|
|
13
13
|
plugins?: PluginRecords;
|
package/lib/lint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEjE,MAAM,MAAM,cAAc,GAAG,MAAM,CAClC,MAAM,EACJ,QAAQ,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,GACvC,eAAe,CAAC,IAAI,CAAC,GACrB,eAAe,CAAC,OAAO,CAAC,CAC1B,CAAC;AAEF,MAAM,WAAW,WAAW;IAC3B,2EAA2E;IAC3E,cAAc,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC9C,gEAAgE;IAChE,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACtC,8DAA8D;IAC9D,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC3B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,2CAA2C;IAC3C,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,6CAA6C;IAC7C,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC/B,qDAAqD;IACrD,KAAK,EAAE,OAAO,CAAC;IACf,0DAA0D;IAC1D,KAAK,EAAE,kBAAkB,CAAC;IAC1B,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;CAChB"}
|
package/lib/load.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UserPromptConfig } from
|
|
2
|
-
import { AsyncRule, Rule, RuleConfigQuality, RulesConfig, SyncRule } from
|
|
1
|
+
import { UserPromptConfig } from "./prompt.js";
|
|
2
|
+
import { AsyncRule, Rule, RuleConfigQuality, RulesConfig, SyncRule } from "./rules.js";
|
|
3
3
|
export type PluginRecords = Record<string, Plugin>;
|
|
4
4
|
export interface Plugin {
|
|
5
5
|
rules: {
|
package/lib/load.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACN,SAAS,EACT,IAAI,EACJ,iBAAiB,EACjB,WAAW,EACX,QAAQ,EACR,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD,MAAM,WAAW,MAAM;IACtB,KAAK,EAAE;QACN,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ,CAAC;KAChD,CAAC;CACF;AAED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IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
package/lib/parse.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Commit, Options } from
|
|
2
|
-
export type Parser = (message: string, options: Options) => Omit<Commit,
|
|
1
|
+
import type { Commit, Options } from "conventional-commits-parser";
|
|
2
|
+
export type Parser = (message: string, options: Options) => Omit<Commit, "raw">;
|
|
3
3
|
//# sourceMappingURL=parse.d.ts.map
|
package/lib/parse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../src/parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../src/parse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAEnE,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
|
package/lib/prompt.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type RuleField =
|
|
2
|
-
export type PromptName = RuleField |
|
|
1
|
+
export type RuleField = "header" | "type" | "scope" | "subject" | "body" | "footer";
|
|
2
|
+
export type PromptName = RuleField | "isBreaking" | "breakingBody" | "breaking" | "isIssueAffected" | "issuesBody" | "issues";
|
|
3
3
|
export type PromptConfig = {
|
|
4
4
|
settings: {
|
|
5
5
|
scopeEnumSeparator: string;
|
package/lib/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAClB,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,CAAC;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AC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;AAEzD,KAAK,WAAW,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE;SACf,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3B;CACD,CAAC"}
|
package/lib/rules.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Commit } from
|
|
2
|
-
import { TargetCaseType } from
|
|
1
|
+
import type { Commit } from "conventional-commits-parser";
|
|
2
|
+
import { TargetCaseType } from "./ensure.js";
|
|
3
3
|
/**
|
|
4
4
|
* Rules match the input either as successful or failed.
|
|
5
5
|
* For example, when `header-full-stop` detects a full stop and is set as "always"; it's true.
|
|
@@ -10,11 +10,11 @@ export type RuleOutcome = Readonly<[boolean, string?]>;
|
|
|
10
10
|
* Rules receive a parsed commit, condition, and possible additional settings through value.
|
|
11
11
|
* All rules should provide the most sensible rule condition and value.
|
|
12
12
|
*/
|
|
13
|
-
export type RuleType =
|
|
14
|
-
export type BaseRule<Value = never, Type extends RuleType =
|
|
15
|
-
export type Rule<Value = never> = BaseRule<Value,
|
|
16
|
-
export type AsyncRule<Value = never> = BaseRule<Value,
|
|
17
|
-
export type SyncRule<Value = never> = BaseRule<Value,
|
|
13
|
+
export type RuleType = "async" | "sync" | "either";
|
|
14
|
+
export type BaseRule<Value = never, Type extends RuleType = "either"> = (parsed: Commit, when?: RuleConfigCondition, value?: Value) => Type extends "either" ? RuleOutcome | Promise<RuleOutcome> : Type extends "async" ? Promise<RuleOutcome> : Type extends "sync" ? RuleOutcome : never;
|
|
15
|
+
export type Rule<Value = never> = BaseRule<Value, "either">;
|
|
16
|
+
export type AsyncRule<Value = never> = BaseRule<Value, "async">;
|
|
17
|
+
export type SyncRule<Value = never> = BaseRule<Value, "sync">;
|
|
18
18
|
/**
|
|
19
19
|
* Rules always have a severity.
|
|
20
20
|
* Severity indicates what to do if the rule is found to be broken
|
|
@@ -32,7 +32,7 @@ export declare enum RuleConfigSeverity {
|
|
|
32
32
|
* It can be either "always" (as tested), or "never" (as tested).
|
|
33
33
|
* For example, `header-full-stop` can be enforced as "always" or "never".
|
|
34
34
|
*/
|
|
35
|
-
export type RuleConfigCondition =
|
|
35
|
+
export type RuleConfigCondition = "always" | "never";
|
|
36
36
|
export type RuleConfigTuple<T> = T extends void ? Readonly<[RuleConfigSeverity.Disabled]> | Readonly<[RuleConfigSeverity, RuleConfigCondition]> : Readonly<[RuleConfigSeverity.Disabled]> | Readonly<[RuleConfigSeverity, RuleConfigCondition, T]>;
|
|
37
37
|
export declare enum RuleConfigQuality {
|
|
38
38
|
User = 0,
|
|
@@ -44,41 +44,41 @@ export type CaseRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, TargetCas
|
|
|
44
44
|
export type LengthRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, number>;
|
|
45
45
|
export type EnumRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, string[]>;
|
|
46
46
|
export type RulesConfig<V = RuleConfigQuality.User> = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
47
|
+
"body-case": CaseRuleConfig<V>;
|
|
48
|
+
"body-empty": RuleConfig<V>;
|
|
49
|
+
"body-full-stop": RuleConfig<V, string>;
|
|
50
|
+
"body-leading-blank": RuleConfig<V>;
|
|
51
|
+
"body-max-length": LengthRuleConfig<V>;
|
|
52
|
+
"body-max-line-length": LengthRuleConfig<V>;
|
|
53
|
+
"body-min-length": LengthRuleConfig<V>;
|
|
54
|
+
"footer-empty": RuleConfig<V>;
|
|
55
|
+
"footer-leading-blank": RuleConfig<V>;
|
|
56
|
+
"footer-max-length": LengthRuleConfig<V>;
|
|
57
|
+
"footer-max-line-length": LengthRuleConfig<V>;
|
|
58
|
+
"footer-min-length": LengthRuleConfig<V>;
|
|
59
|
+
"header-case": CaseRuleConfig<V>;
|
|
60
|
+
"header-full-stop": RuleConfig<V, string>;
|
|
61
|
+
"header-max-length": LengthRuleConfig<V>;
|
|
62
|
+
"header-min-length": LengthRuleConfig<V>;
|
|
63
|
+
"header-trim": RuleConfig<V>;
|
|
64
|
+
"references-empty": RuleConfig<V>;
|
|
65
|
+
"scope-case": CaseRuleConfig<V>;
|
|
66
|
+
"scope-empty": RuleConfig<V>;
|
|
67
|
+
"scope-enum": EnumRuleConfig<V>;
|
|
68
|
+
"scope-max-length": LengthRuleConfig<V>;
|
|
69
|
+
"scope-min-length": LengthRuleConfig<V>;
|
|
70
|
+
"signed-off-by": RuleConfig<V, string>;
|
|
71
|
+
"subject-case": CaseRuleConfig<V>;
|
|
72
|
+
"subject-empty": RuleConfig<V>;
|
|
73
|
+
"subject-full-stop": RuleConfig<V, string>;
|
|
74
|
+
"subject-max-length": LengthRuleConfig<V>;
|
|
75
|
+
"subject-min-length": LengthRuleConfig<V>;
|
|
76
|
+
"trailer-exists": RuleConfig<V, string>;
|
|
77
|
+
"type-case": CaseRuleConfig<V>;
|
|
78
|
+
"type-empty": RuleConfig<V>;
|
|
79
|
+
"type-enum": EnumRuleConfig<V>;
|
|
80
|
+
"type-max-length": LengthRuleConfig<V>;
|
|
81
|
+
"type-min-length": LengthRuleConfig<V>;
|
|
82
82
|
[key: string]: AnyRuleConfig<V>;
|
|
83
83
|
};
|
|
84
84
|
export type AnyRuleConfig<V> = RuleConfig<V, unknown> | RuleConfig<V, void>;
|
package/lib/rules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,MAAM,QAAQ,CAAC,KAAK,GAAG,KAAK,EAAE,IAAI,SAAS,QAAQ,GAAG,QAAQ,IAAI,CACvE,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,mBAAmB,EAC1B,KAAK,CAAC,EAAE,KAAK,KACT,IAAI,SAAS,QAAQ,GACvB,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,GAClC,IAAI,SAAS,OAAO,GACnB,OAAO,CAAC,WAAW,CAAC,GACpB,IAAI,SAAS,MAAM,GAClB,WAAW,GACX,KAAK,CAA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I,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "19.8.
|
|
4
|
+
"version": "19.8.1",
|
|
5
5
|
"description": "Shared types for commitlint packages",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"types": "lib/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"chalk": "^5.3.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@commitlint/utils": "^19.8.
|
|
36
|
+
"@commitlint/utils": "^19.8.1"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "3c302008cabeb0b08cd246b2417a51a9d745a918"
|
|
39
39
|
}
|