@html-validate/commitlint-config 3.4.3 → 3.4.4
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/dist/commitlint.js +51 -81
- package/dist/install.js +6 -1
- package/package.json +1 -1
package/dist/commitlint.js
CHANGED
|
@@ -21187,7 +21187,7 @@ var require_typescript = __commonJS({
|
|
|
21187
21187
|
});
|
|
21188
21188
|
module2.exports = __toCommonJS(typescript_exports);
|
|
21189
21189
|
var versionMajorMinor = "5.8";
|
|
21190
|
-
var version = "5.8.
|
|
21190
|
+
var version = "5.8.3";
|
|
21191
21191
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
21192
21192
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
21193
21193
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -77821,10 +77821,11 @@ ${lanes.join("\n")}
|
|
|
77821
77821
|
serializeExistingTypeNode(context, typeNode, addUndefined) {
|
|
77822
77822
|
return serializeExistingTypeNode(context, typeNode, !!addUndefined);
|
|
77823
77823
|
},
|
|
77824
|
-
serializeReturnTypeForSignature(syntacticContext, signatureDeclaration) {
|
|
77824
|
+
serializeReturnTypeForSignature(syntacticContext, signatureDeclaration, symbol) {
|
|
77825
77825
|
const context = syntacticContext;
|
|
77826
77826
|
const signature = getSignatureFromDeclaration(signatureDeclaration);
|
|
77827
|
-
|
|
77827
|
+
symbol ?? (symbol = getSymbolOfDeclaration(signatureDeclaration));
|
|
77828
|
+
const returnType = context.enclosingSymbolTypes.get(getSymbolId(symbol)) ?? instantiateType(getReturnTypeOfSignature(signature), context.mapper);
|
|
77828
77829
|
return serializeInferredReturnTypeForSignature(context, signature, returnType);
|
|
77829
77830
|
},
|
|
77830
77831
|
serializeTypeOfExpression(syntacticContext, expr) {
|
|
@@ -77838,7 +77839,7 @@ ${lanes.join("\n")}
|
|
|
77838
77839
|
symbol ?? (symbol = getSymbolOfDeclaration(declaration));
|
|
77839
77840
|
let type = (_a2 = context.enclosingSymbolTypes) == null ? void 0 : _a2.get(getSymbolId(symbol));
|
|
77840
77841
|
if (type === void 0) {
|
|
77841
|
-
type = symbol && !(symbol.flags & (2048 | 131072)) ? instantiateType(getWidenedLiteralType(getTypeOfSymbol(symbol)), context.mapper) : errorType;
|
|
77842
|
+
type = symbol.flags & 98304 && declaration.kind === 178 ? instantiateType(getWriteTypeOfSymbol(symbol), context.mapper) : symbol && !(symbol.flags & (2048 | 131072)) ? instantiateType(getWidenedLiteralType(getTypeOfSymbol(symbol)), context.mapper) : errorType;
|
|
77842
77843
|
}
|
|
77843
77844
|
const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration);
|
|
77844
77845
|
if (addUndefinedForParameter) {
|
|
@@ -77903,6 +77904,7 @@ ${lanes.join("\n")}
|
|
|
77903
77904
|
const context = syntacticContext;
|
|
77904
77905
|
if (context.bundled || context.enclosingFile !== getSourceFileOfNode(lit)) {
|
|
77905
77906
|
let name = lit.text;
|
|
77907
|
+
const originalName = name;
|
|
77906
77908
|
const nodeSymbol = getNodeLinks(parent2).resolvedSymbol;
|
|
77907
77909
|
const meaning = parent2.isTypeOf ? 111551 : 788968;
|
|
77908
77910
|
const parentSymbol = nodeSymbol && isSymbolAccessible(
|
|
@@ -77932,7 +77934,9 @@ ${lanes.join("\n")}
|
|
|
77932
77934
|
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
77933
77935
|
}
|
|
77934
77936
|
}
|
|
77935
|
-
|
|
77937
|
+
if (name !== originalName) {
|
|
77938
|
+
return name;
|
|
77939
|
+
}
|
|
77936
77940
|
}
|
|
77937
77941
|
},
|
|
77938
77942
|
canReuseTypeNode(context, typeNode) {
|
|
@@ -79115,6 +79119,7 @@ ${lanes.join("\n")}
|
|
|
79115
79119
|
if (propertySymbol.flags & 98304) {
|
|
79116
79120
|
const writeType = getWriteTypeOfSymbol(propertySymbol);
|
|
79117
79121
|
if (propertyType !== writeType && !isErrorType(propertyType) && !isErrorType(writeType)) {
|
|
79122
|
+
const symbolMapper = getSymbolLinks(propertySymbol).mapper;
|
|
79118
79123
|
const getterDeclaration = getDeclarationOfKind(
|
|
79119
79124
|
propertySymbol,
|
|
79120
79125
|
177
|
|
@@ -79124,7 +79129,7 @@ ${lanes.join("\n")}
|
|
|
79124
79129
|
typeElements.push(
|
|
79125
79130
|
setCommentRange2(
|
|
79126
79131
|
context,
|
|
79127
|
-
signatureToSignatureDeclarationHelper(getterSignature, 177, context, { name: propertyName }),
|
|
79132
|
+
signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(getterSignature, symbolMapper) : getterSignature, 177, context, { name: propertyName }),
|
|
79128
79133
|
getterDeclaration
|
|
79129
79134
|
)
|
|
79130
79135
|
);
|
|
@@ -79137,7 +79142,7 @@ ${lanes.join("\n")}
|
|
|
79137
79142
|
typeElements.push(
|
|
79138
79143
|
setCommentRange2(
|
|
79139
79144
|
context,
|
|
79140
|
-
signatureToSignatureDeclarationHelper(setterSignature, 178, context, { name: propertyName }),
|
|
79145
|
+
signatureToSignatureDeclarationHelper(symbolMapper ? instantiateSignature(setterSignature, symbolMapper) : setterSignature, 178, context, { name: propertyName }),
|
|
79141
79146
|
setterDeclaration
|
|
79142
79147
|
)
|
|
79143
79148
|
);
|
|
@@ -80403,13 +80408,13 @@ ${lanes.join("\n")}
|
|
|
80403
80408
|
const addUndefinedForParameter = declaration && (isParameter(declaration) || isJSDocParameterTag(declaration)) && requiresAddingImplicitUndefined(declaration, context.enclosingDeclaration);
|
|
80404
80409
|
const decl = declaration ?? symbol.valueDeclaration ?? getDeclarationWithTypeAnnotation(symbol) ?? ((_a2 = symbol.declarations) == null ? void 0 : _a2[0]);
|
|
80405
80410
|
if (decl) {
|
|
80411
|
+
const restore = addSymbolTypeToContext(context, symbol, type);
|
|
80406
80412
|
if (isAccessor(decl)) {
|
|
80407
80413
|
result = syntacticNodeBuilder.serializeTypeOfAccessor(decl, symbol, context);
|
|
80408
80414
|
} else if (hasInferredType(decl) && !nodeIsSynthesized(decl) && !(getObjectFlags(type) & 196608)) {
|
|
80409
|
-
const restore = addSymbolTypeToContext(context, symbol, type);
|
|
80410
80415
|
result = syntacticNodeBuilder.serializeTypeOfDeclaration(decl, symbol, context);
|
|
80411
|
-
restore();
|
|
80412
80416
|
}
|
|
80417
|
+
restore();
|
|
80413
80418
|
}
|
|
80414
80419
|
if (!result) {
|
|
80415
80420
|
if (addUndefinedForParameter) {
|
|
@@ -80581,10 +80586,7 @@ ${lanes.join("\n")}
|
|
|
80581
80586
|
/*context*/
|
|
80582
80587
|
void 0
|
|
80583
80588
|
);
|
|
80584
|
-
|
|
80585
|
-
setTextRange2(context, updated, node2);
|
|
80586
|
-
}
|
|
80587
|
-
return updated;
|
|
80589
|
+
return setTextRange2(context, updated, node2);
|
|
80588
80590
|
}
|
|
80589
80591
|
}
|
|
80590
80592
|
function serializeTypeName(context, node, isTypeOf, typeArguments) {
|
|
@@ -106145,6 +106147,11 @@ ${lanes.join("\n")}
|
|
|
106145
106147
|
])) {
|
|
106146
106148
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
|
106147
106149
|
}
|
|
106150
|
+
if (compilerOptions.erasableSyntaxOnly) {
|
|
106151
|
+
const start = skipTrivia(file.text, node.pos);
|
|
106152
|
+
const end = node.expression.pos;
|
|
106153
|
+
diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
|
|
106154
|
+
}
|
|
106148
106155
|
}
|
|
106149
106156
|
return checkAssertionWorker(node, checkMode);
|
|
106150
106157
|
}
|
|
@@ -165090,9 +165097,11 @@ ${lanes.join("\n")}
|
|
|
165090
165097
|
if (!resolver.canReuseTypeNode(context, node)) {
|
|
165091
165098
|
return resolver.serializeExistingTypeNode(context, node);
|
|
165092
165099
|
}
|
|
165100
|
+
const specifier = rewriteModuleSpecifier2(node, node.argument.literal);
|
|
165101
|
+
const literal = specifier === node.argument.literal ? reuseNode(context, node.argument.literal) : specifier;
|
|
165093
165102
|
return factory.updateImportTypeNode(
|
|
165094
165103
|
node,
|
|
165095
|
-
|
|
165104
|
+
literal === node.argument.literal ? reuseNode(context, node.argument) : factory.createLiteralTypeNode(literal),
|
|
165096
165105
|
visitNode(node.attributes, visitExistingNodeTreeSymbols, isImportAttributes),
|
|
165097
165106
|
visitNode(node.qualifier, visitExistingNodeTreeSymbols, isEntityName),
|
|
165098
165107
|
visitNodes2(node.typeArguments, visitExistingNodeTreeSymbols, isTypeNode),
|
|
@@ -165253,10 +165262,7 @@ ${lanes.join("\n")}
|
|
|
165253
165262
|
}
|
|
165254
165263
|
function rewriteModuleSpecifier2(parent2, lit) {
|
|
165255
165264
|
const newName = resolver.getModuleSpecifierOverride(context, parent2, lit);
|
|
165256
|
-
|
|
165257
|
-
return setOriginalNode(factory.createStringLiteral(newName), lit);
|
|
165258
|
-
}
|
|
165259
|
-
return visitNode(lit, visitExistingNodeTreeSymbols, isStringLiteral);
|
|
165265
|
+
return newName ? setOriginalNode(factory.createStringLiteral(newName), lit) : lit;
|
|
165260
165266
|
}
|
|
165261
165267
|
}
|
|
165262
165268
|
}
|
|
@@ -165429,12 +165435,7 @@ ${lanes.join("\n")}
|
|
|
165429
165435
|
return withNewScope(context, node, () => serializeTypeAnnotationOfDeclaration(accessorType, context, node, symbol) ?? inferTypeOfDeclaration(node, symbol, context));
|
|
165430
165436
|
}
|
|
165431
165437
|
if (accessorDeclarations.getAccessor) {
|
|
165432
|
-
return withNewScope(context, accessorDeclarations.getAccessor, () => createReturnFromSignature(
|
|
165433
|
-
accessorDeclarations.getAccessor,
|
|
165434
|
-
/*symbol*/
|
|
165435
|
-
void 0,
|
|
165436
|
-
context
|
|
165437
|
-
));
|
|
165438
|
+
return withNewScope(context, accessorDeclarations.getAccessor, () => createReturnFromSignature(accessorDeclarations.getAccessor, symbol, context));
|
|
165438
165439
|
}
|
|
165439
165440
|
return void 0;
|
|
165440
165441
|
}
|
|
@@ -165553,7 +165554,7 @@ ${lanes.join("\n")}
|
|
|
165553
165554
|
/* AnyKeyword */
|
|
165554
165555
|
);
|
|
165555
165556
|
}
|
|
165556
|
-
function inferReturnTypeOfSignatureSignature(node, context, reportFallback) {
|
|
165557
|
+
function inferReturnTypeOfSignatureSignature(node, context, symbol, reportFallback) {
|
|
165557
165558
|
if (reportFallback) {
|
|
165558
165559
|
context.tracker.reportInferenceFallback(node);
|
|
165559
165560
|
}
|
|
@@ -165563,7 +165564,7 @@ ${lanes.join("\n")}
|
|
|
165563
165564
|
/* AnyKeyword */
|
|
165564
165565
|
);
|
|
165565
165566
|
}
|
|
165566
|
-
return resolver.serializeReturnTypeForSignature(context, node) ?? factory.createKeywordTypeNode(
|
|
165567
|
+
return resolver.serializeReturnTypeForSignature(context, node, symbol) ?? factory.createKeywordTypeNode(
|
|
165567
165568
|
133
|
|
165568
165569
|
/* AnyKeyword */
|
|
165569
165570
|
);
|
|
@@ -165878,18 +165879,17 @@ ${lanes.join("\n")}
|
|
|
165878
165879
|
);
|
|
165879
165880
|
}
|
|
165880
165881
|
function reuseTypeParameters(typeParameters, context) {
|
|
165881
|
-
return typeParameters == null ? void 0 : typeParameters.map(
|
|
165882
|
-
|
|
165883
|
-
|
|
165884
|
-
|
|
165885
|
-
|
|
165886
|
-
|
|
165887
|
-
|
|
165888
|
-
|
|
165889
|
-
|
|
165890
|
-
|
|
165891
|
-
|
|
165892
|
-
);
|
|
165882
|
+
return typeParameters == null ? void 0 : typeParameters.map((tp) => {
|
|
165883
|
+
var _a2;
|
|
165884
|
+
const { node: tpName } = resolver.trackExistingEntityName(context, tp.name);
|
|
165885
|
+
return factory.updateTypeParameterDeclaration(
|
|
165886
|
+
tp,
|
|
165887
|
+
(_a2 = tp.modifiers) == null ? void 0 : _a2.map((m) => reuseNode(context, m)),
|
|
165888
|
+
tpName,
|
|
165889
|
+
serializeExistingTypeNodeWithFallback(tp.constraint, context),
|
|
165890
|
+
serializeExistingTypeNodeWithFallback(tp.default, context)
|
|
165891
|
+
);
|
|
165892
|
+
});
|
|
165893
165893
|
}
|
|
165894
165894
|
function typeFromObjectLiteralMethod(method, name, context, isConstContext) {
|
|
165895
165895
|
const returnType = createReturnFromSignature(
|
|
@@ -166042,7 +166042,7 @@ ${lanes.join("\n")}
|
|
|
166042
166042
|
} else if (isValueSignatureDeclaration(fn)) {
|
|
166043
166043
|
returnType = typeFromSingleReturnExpression(fn, context);
|
|
166044
166044
|
}
|
|
166045
|
-
return returnType.type !== void 0 ? returnType.type : inferReturnTypeOfSignatureSignature(fn, context, reportFallback && returnType.reportFallback && !returnTypeNode);
|
|
166045
|
+
return returnType.type !== void 0 ? returnType.type : inferReturnTypeOfSignatureSignature(fn, context, symbol, reportFallback && returnType.reportFallback && !returnTypeNode);
|
|
166046
166046
|
}
|
|
166047
166047
|
function typeFromSingleReturnExpression(declaration, context) {
|
|
166048
166048
|
let candidateExpr;
|
|
@@ -261738,24 +261738,17 @@ var headerMinLength = (parsed, _when = void 0, value2 = 0) => {
|
|
|
261738
261738
|
// node_modules/@commitlint/rules/lib/header-trim.js
|
|
261739
261739
|
var headerTrim = (parsed) => {
|
|
261740
261740
|
const { header } = parsed;
|
|
261741
|
-
if (!header)
|
|
261741
|
+
if (!header)
|
|
261742
261742
|
return [true];
|
|
261743
|
-
|
|
261744
|
-
const
|
|
261745
|
-
|
|
261746
|
-
|
|
261747
|
-
|
|
261748
|
-
|
|
261749
|
-
|
|
261750
|
-
|
|
261751
|
-
|
|
261752
|
-
case startsWithWhiteSpace:
|
|
261753
|
-
return [false, message(["header", "must not start with whitespace"])];
|
|
261754
|
-
case endsWithWhiteSpace:
|
|
261755
|
-
return [false, message(["header", "must not end with whitespace"])];
|
|
261756
|
-
default:
|
|
261757
|
-
return [true];
|
|
261758
|
-
}
|
|
261743
|
+
const startsWithWhiteSpace = header.length > header.trimStart().length;
|
|
261744
|
+
const endsWithWhiteSpace = header.length > header.trimEnd().length;
|
|
261745
|
+
if (startsWithWhiteSpace && endsWithWhiteSpace)
|
|
261746
|
+
return [false, message(["header", "must not be surrounded by whitespace"])];
|
|
261747
|
+
if (startsWithWhiteSpace)
|
|
261748
|
+
return [false, message(["header", "must not start with whitespace"])];
|
|
261749
|
+
if (endsWithWhiteSpace)
|
|
261750
|
+
return [false, message(["header", "must not end with whitespace"])];
|
|
261751
|
+
return [true];
|
|
261759
261752
|
};
|
|
261760
261753
|
|
|
261761
261754
|
// node_modules/@commitlint/rules/lib/references-empty.js
|
|
@@ -264713,9 +264706,8 @@ var Queue = class {
|
|
|
264713
264706
|
}
|
|
264714
264707
|
}
|
|
264715
264708
|
*drain() {
|
|
264716
|
-
|
|
264717
|
-
|
|
264718
|
-
yield current;
|
|
264709
|
+
while (this.#head) {
|
|
264710
|
+
yield this.dequeue();
|
|
264719
264711
|
}
|
|
264720
264712
|
}
|
|
264721
264713
|
};
|
|
@@ -270743,8 +270735,6 @@ typescript/lib/typescript.js:
|
|
|
270743
270735
|
***************************************************************************** *)
|
|
270744
270736
|
|
|
270745
270737
|
cosmiconfig/dist/loaders.js:
|
|
270746
|
-
(* istanbul ignore next -- @preserve *)
|
|
270747
|
-
|
|
270748
270738
|
cosmiconfig/dist/util.js:
|
|
270749
270739
|
(* istanbul ignore next -- @preserve *)
|
|
270750
270740
|
|
|
@@ -270753,32 +270743,12 @@ cosmiconfig/dist/ExplorerBase.js:
|
|
|
270753
270743
|
(* istanbul ignore next -- @preserve *)
|
|
270754
270744
|
|
|
270755
270745
|
cosmiconfig/dist/Explorer.js:
|
|
270756
|
-
(* istanbul ignore if -- @preserve *)
|
|
270757
|
-
|
|
270758
270746
|
cosmiconfig/dist/ExplorerSync.js:
|
|
270759
270747
|
(* istanbul ignore if -- @preserve *)
|
|
270760
270748
|
|
|
270761
270749
|
yargs-parser/build/lib/string-utils.js:
|
|
270762
|
-
(**
|
|
270763
|
-
* @license
|
|
270764
|
-
* Copyright (c) 2016, Contributors
|
|
270765
|
-
* SPDX-License-Identifier: ISC
|
|
270766
|
-
*)
|
|
270767
|
-
|
|
270768
270750
|
yargs-parser/build/lib/tokenize-arg-string.js:
|
|
270769
|
-
(**
|
|
270770
|
-
* @license
|
|
270771
|
-
* Copyright (c) 2016, Contributors
|
|
270772
|
-
* SPDX-License-Identifier: ISC
|
|
270773
|
-
*)
|
|
270774
|
-
|
|
270775
270751
|
yargs-parser/build/lib/yargs-parser-types.js:
|
|
270776
|
-
(**
|
|
270777
|
-
* @license
|
|
270778
|
-
* Copyright (c) 2016, Contributors
|
|
270779
|
-
* SPDX-License-Identifier: ISC
|
|
270780
|
-
*)
|
|
270781
|
-
|
|
270782
270752
|
yargs-parser/build/lib/yargs-parser.js:
|
|
270783
270753
|
(**
|
|
270784
270754
|
* @license
|
package/dist/install.js
CHANGED
|
@@ -122,6 +122,11 @@ var require_vendors = __commonJS({
|
|
|
122
122
|
env: "CIRRUS_CI",
|
|
123
123
|
pr: "CIRRUS_PR"
|
|
124
124
|
},
|
|
125
|
+
{
|
|
126
|
+
name: "Cloudflare Pages",
|
|
127
|
+
constant: "CLOUDFLARE_PAGES",
|
|
128
|
+
env: "CF_PAGES"
|
|
129
|
+
},
|
|
125
130
|
{
|
|
126
131
|
name: "Codefresh",
|
|
127
132
|
constant: "CODEFRESH",
|
|
@@ -416,7 +421,7 @@ var require_ci_info = __commonJS({
|
|
|
416
421
|
exports.isCI = !!(env.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
|
417
422
|
(env.BUILD_ID || // Jenkins, Cloudbees
|
|
418
423
|
env.BUILD_NUMBER || // Jenkins, TeamCity
|
|
419
|
-
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
|
424
|
+
env.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari, Cloudflare Pages
|
|
420
425
|
env.CI_APP_ID || // Appflow
|
|
421
426
|
env.CI_BUILD_ID || // Appflow
|
|
422
427
|
env.CI_BUILD_NUMBER || // Appflow
|