html-validate 8.1.0 → 8.3.0
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/cjs/cli.js +36 -10
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/core-nodejs.js +3 -2
- package/dist/cjs/core-nodejs.js.map +1 -1
- package/dist/cjs/core.js +198 -114
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/elements.js +29 -5
- package/dist/cjs/elements.js.map +1 -1
- package/dist/cjs/html-validate.js +2 -2
- package/dist/cjs/html-validate.js.map +1 -1
- package/dist/cjs/jest-lib.js +3 -3
- package/dist/cjs/jest-lib.js.map +1 -1
- package/dist/cjs/meta-helper.js +16 -2
- package/dist/cjs/meta-helper.js.map +1 -1
- package/dist/cjs/test-utils.js +1 -1
- package/dist/cjs/test-utils.js.map +1 -1
- package/dist/cjs/tsdoc-metadata.json +1 -1
- package/dist/es/browser.js +1 -1
- package/dist/es/cli.js +36 -10
- package/dist/es/cli.js.map +1 -1
- package/dist/es/core-nodejs.js +3 -2
- package/dist/es/core-nodejs.js.map +1 -1
- package/dist/es/core.js +199 -115
- package/dist/es/core.js.map +1 -1
- package/dist/es/elements.js +29 -5
- package/dist/es/elements.js.map +1 -1
- package/dist/es/html-validate.js +3 -3
- package/dist/es/html-validate.js.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/jest-lib.js +3 -3
- package/dist/es/jest-lib.js.map +1 -1
- package/dist/es/meta-helper.js +16 -2
- package/dist/es/meta-helper.js.map +1 -1
- package/dist/es/test-utils.js +1 -1
- package/dist/es/test-utils.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types/browser.d.ts +33 -56
- package/dist/types/index.d.ts +33 -56
- package/dist/types/jest.d.ts +4 -8
- package/package.json +19 -19
package/dist/types/browser.d.ts
CHANGED
|
@@ -44,9 +44,7 @@ export declare class Attribute {
|
|
|
44
44
|
* it never matches.
|
|
45
45
|
* @returns `true` if attribute value matches pattern.
|
|
46
46
|
*/
|
|
47
|
-
valueMatches(pattern: RegExp, dynamicMatches?: boolean): boolean;
|
|
48
|
-
valueMatches(pattern: string, dynamicMatches?: boolean): boolean;
|
|
49
|
-
valueMatches(pattern: string[], dynamicMatches?: boolean): boolean;
|
|
47
|
+
valueMatches(pattern: RegExp | string | string[], dynamicMatches?: boolean): boolean;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
/**
|
|
@@ -718,6 +716,7 @@ export declare class HtmlElement extends DOMNode {
|
|
|
718
716
|
protected readonly attr: Record<string, Attribute[]>;
|
|
719
717
|
private metaElement;
|
|
720
718
|
private annotation;
|
|
719
|
+
/* Excluded from this release type: _adapter */
|
|
721
720
|
constructor(tagName: string | undefined, parent: HtmlElement | null, closed: NodeClosed, meta: MetaElement | null, location: Location_2);
|
|
722
721
|
/* Excluded from this release type: rootNode */
|
|
723
722
|
/* Excluded from this release type: fromTokens */
|
|
@@ -883,6 +882,23 @@ export declare class HtmlElement extends DOMNode {
|
|
|
883
882
|
/* Excluded from this release type: find */
|
|
884
883
|
}
|
|
885
884
|
|
|
885
|
+
/**
|
|
886
|
+
* HTML5 interface for HTMLElement. Contains all the needed methods the
|
|
887
|
+
* HTML-Validate metadata requires to determine if usage is valid.
|
|
888
|
+
*
|
|
889
|
+
* While not officially supported, changes to this interface should be verified
|
|
890
|
+
* against browsers and/or jsdom, i.e. it should be possible to pass in either
|
|
891
|
+
* implementation and the element metadata should still work.
|
|
892
|
+
*
|
|
893
|
+
* @public
|
|
894
|
+
* @since 8.2.0
|
|
895
|
+
*/
|
|
896
|
+
export declare interface HtmlElementLike {
|
|
897
|
+
closest(selectors: string): HtmlElementLike | null | undefined;
|
|
898
|
+
getAttribute(name: string): string | DynamicValue | null | undefined;
|
|
899
|
+
hasAttribute(name: string): boolean;
|
|
900
|
+
}
|
|
901
|
+
|
|
886
902
|
/**
|
|
887
903
|
* Primary API for using HTML-validate.
|
|
888
904
|
*
|
|
@@ -1028,28 +1044,6 @@ export declare class HtmlValidate {
|
|
|
1028
1044
|
* configuration. As a rule-of-thumb, set it to the elements json file.
|
|
1029
1045
|
*/
|
|
1030
1046
|
getElementsSchemaSync(filename?: string): SchemaObject;
|
|
1031
|
-
/**
|
|
1032
|
-
* Get contextual documentation for the given rule. The default configuration
|
|
1033
|
-
* will be used.
|
|
1034
|
-
*
|
|
1035
|
-
* @example
|
|
1036
|
-
*
|
|
1037
|
-
* ```js
|
|
1038
|
-
* const report = await htmlvalidate.validateFile("my-file.html");
|
|
1039
|
-
* for (const result of report.results){
|
|
1040
|
-
* for (const message of result.messages){
|
|
1041
|
-
* const documentation = await htmlvalidate.getRuleDocumentation(message, result.filePath);
|
|
1042
|
-
* // do something with documentation
|
|
1043
|
-
* }
|
|
1044
|
-
* }
|
|
1045
|
-
* ```
|
|
1046
|
-
*
|
|
1047
|
-
* @public
|
|
1048
|
-
* @since 8.0.0
|
|
1049
|
-
* @param message - Message reported during validation
|
|
1050
|
-
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1051
|
-
*/
|
|
1052
|
-
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">): Promise<RuleDocumentation | null>;
|
|
1053
1047
|
/**
|
|
1054
1048
|
* Get contextual documentation for the given rule. Configuration will be
|
|
1055
1049
|
* resolved for given filename.
|
|
@@ -1060,7 +1054,7 @@ export declare class HtmlValidate {
|
|
|
1060
1054
|
* const report = await htmlvalidate.validateFile("my-file.html");
|
|
1061
1055
|
* for (const result of report.results){
|
|
1062
1056
|
* for (const message of result.messages){
|
|
1063
|
-
* const documentation = await htmlvalidate.
|
|
1057
|
+
* const documentation = await htmlvalidate.getContextualDocumentation(message, result.filePath);
|
|
1064
1058
|
* // do something with documentation
|
|
1065
1059
|
* }
|
|
1066
1060
|
* }
|
|
@@ -1072,7 +1066,7 @@ export declare class HtmlValidate {
|
|
|
1072
1066
|
* @param filename - Filename used to resolve configuration.
|
|
1073
1067
|
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1074
1068
|
*/
|
|
1075
|
-
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">, filename
|
|
1069
|
+
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">, filename?: string): Promise<RuleDocumentation | null>;
|
|
1076
1070
|
/**
|
|
1077
1071
|
* Get contextual documentation for the given rule using provided
|
|
1078
1072
|
* configuration.
|
|
@@ -1096,28 +1090,6 @@ export declare class HtmlValidate {
|
|
|
1096
1090
|
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1097
1091
|
*/
|
|
1098
1092
|
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">, config: ResolvedConfig | Promise<ResolvedConfig>): Promise<RuleDocumentation | null>;
|
|
1099
|
-
/**
|
|
1100
|
-
* Get contextual documentation for the given rule. The default configuration
|
|
1101
|
-
* will be used.
|
|
1102
|
-
*
|
|
1103
|
-
* @example
|
|
1104
|
-
*
|
|
1105
|
-
* ```js
|
|
1106
|
-
* const report = htmlvalidate.validateFileSync("my-file.html");
|
|
1107
|
-
* for (const result of report.results){
|
|
1108
|
-
* for (const message of result.messages){
|
|
1109
|
-
* const documentation = htmlvalidate.getRuleDocumentationSync(message, result.filePath);
|
|
1110
|
-
* // do something with documentation
|
|
1111
|
-
* }
|
|
1112
|
-
* }
|
|
1113
|
-
* ```
|
|
1114
|
-
*
|
|
1115
|
-
* @public
|
|
1116
|
-
* @since 8.0.0
|
|
1117
|
-
* @param message - Message reported during validation
|
|
1118
|
-
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1119
|
-
*/
|
|
1120
|
-
getContextualDocumentationSync(message: Pick<Message, "ruleId" | "context">): RuleDocumentation | null;
|
|
1121
1093
|
/**
|
|
1122
1094
|
* Get contextual documentation for the given rule. Configuration will be
|
|
1123
1095
|
* resolved for given filename.
|
|
@@ -1140,7 +1112,7 @@ export declare class HtmlValidate {
|
|
|
1140
1112
|
* @param filename - Filename used to resolve configuration.
|
|
1141
1113
|
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1142
1114
|
*/
|
|
1143
|
-
getContextualDocumentationSync(message: Pick<Message, "ruleId" | "context">, filename
|
|
1115
|
+
getContextualDocumentationSync(message: Pick<Message, "ruleId" | "context">, filename?: string): RuleDocumentation | null;
|
|
1144
1116
|
/**
|
|
1145
1117
|
* Get contextual documentation for the given rule using provided
|
|
1146
1118
|
* configuration.
|
|
@@ -1365,9 +1337,9 @@ export declare interface MetaAttribute {
|
|
|
1365
1337
|
*
|
|
1366
1338
|
* @public
|
|
1367
1339
|
* @param node - The node the attribute belongs to.
|
|
1368
|
-
* @param attr - The current attribute being validated.
|
|
1340
|
+
* @param attr - The current attribute value being validated.
|
|
1369
1341
|
*/
|
|
1370
|
-
export declare type MetaAttributeAllowedCallback = (node:
|
|
1342
|
+
export declare type MetaAttributeAllowedCallback = (node: HtmlElementLike, attr: string | DynamicValue | null | undefined) => string | null | undefined;
|
|
1371
1343
|
|
|
1372
1344
|
/**
|
|
1373
1345
|
* Properties listed here can be copied (loaded) onto another element using
|
|
@@ -1425,6 +1397,12 @@ export declare interface MetadataHelper {
|
|
|
1425
1397
|
allowedIfAttributeHasValue(this: void, attr: string, value: string[], options?: {
|
|
1426
1398
|
defaultValue?: string | null;
|
|
1427
1399
|
}): MetaAttributeAllowedCallback;
|
|
1400
|
+
/**
|
|
1401
|
+
* Returns an error if the node doesn't have any of the given elements as parent
|
|
1402
|
+
*
|
|
1403
|
+
* @since 8.2.0
|
|
1404
|
+
**/
|
|
1405
|
+
allowedIfParentIsPresent(this: void, ...tags: string[]): MetaAttributeAllowedCallback;
|
|
1428
1406
|
}
|
|
1429
1407
|
|
|
1430
1408
|
/**
|
|
@@ -1939,8 +1917,8 @@ export declare abstract class Rule<ContextType = void, OptionsType = void> {
|
|
|
1939
1917
|
*/
|
|
1940
1918
|
readonly options: OptionsType;
|
|
1941
1919
|
constructor(options: OptionsType);
|
|
1942
|
-
getSeverity():
|
|
1943
|
-
setServerity(severity:
|
|
1920
|
+
getSeverity(): Severity;
|
|
1921
|
+
setServerity(severity: Severity): void;
|
|
1944
1922
|
/* Excluded from this release type: block */
|
|
1945
1923
|
/* Excluded from this release type: unblock */
|
|
1946
1924
|
setEnabled(enabled: boolean): void;
|
|
@@ -2012,8 +1990,7 @@ export declare abstract class Rule<ContextType = void, OptionsType = void> {
|
|
|
2012
1990
|
* have any effect.
|
|
2013
1991
|
*/
|
|
2014
1992
|
report(error: ErrorDescriptor<ContextType>): void;
|
|
2015
|
-
report(node: DOMNode | null, message: string): void;
|
|
2016
|
-
report(node: DOMNode | null, message: string, location: Location_2 | null | undefined): void;
|
|
1993
|
+
report(node: DOMNode | null, message: string, location?: Location_2 | null | undefined): void;
|
|
2017
1994
|
report(node: DOMNode | null, message: string, location: Location_2 | null | undefined, context: ContextType): void;
|
|
2018
1995
|
private findLocation;
|
|
2019
1996
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -44,9 +44,7 @@ export declare class Attribute {
|
|
|
44
44
|
* it never matches.
|
|
45
45
|
* @returns `true` if attribute value matches pattern.
|
|
46
46
|
*/
|
|
47
|
-
valueMatches(pattern: RegExp, dynamicMatches?: boolean): boolean;
|
|
48
|
-
valueMatches(pattern: string, dynamicMatches?: boolean): boolean;
|
|
49
|
-
valueMatches(pattern: string[], dynamicMatches?: boolean): boolean;
|
|
47
|
+
valueMatches(pattern: RegExp | string | string[], dynamicMatches?: boolean): boolean;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
/**
|
|
@@ -913,6 +911,7 @@ export declare class HtmlElement extends DOMNode {
|
|
|
913
911
|
protected readonly attr: Record<string, Attribute[]>;
|
|
914
912
|
private metaElement;
|
|
915
913
|
private annotation;
|
|
914
|
+
/* Excluded from this release type: _adapter */
|
|
916
915
|
constructor(tagName: string | undefined, parent: HtmlElement | null, closed: NodeClosed, meta: MetaElement | null, location: Location_2);
|
|
917
916
|
/* Excluded from this release type: rootNode */
|
|
918
917
|
/* Excluded from this release type: fromTokens */
|
|
@@ -1078,6 +1077,23 @@ export declare class HtmlElement extends DOMNode {
|
|
|
1078
1077
|
/* Excluded from this release type: find */
|
|
1079
1078
|
}
|
|
1080
1079
|
|
|
1080
|
+
/**
|
|
1081
|
+
* HTML5 interface for HTMLElement. Contains all the needed methods the
|
|
1082
|
+
* HTML-Validate metadata requires to determine if usage is valid.
|
|
1083
|
+
*
|
|
1084
|
+
* While not officially supported, changes to this interface should be verified
|
|
1085
|
+
* against browsers and/or jsdom, i.e. it should be possible to pass in either
|
|
1086
|
+
* implementation and the element metadata should still work.
|
|
1087
|
+
*
|
|
1088
|
+
* @public
|
|
1089
|
+
* @since 8.2.0
|
|
1090
|
+
*/
|
|
1091
|
+
export declare interface HtmlElementLike {
|
|
1092
|
+
closest(selectors: string): HtmlElementLike | null | undefined;
|
|
1093
|
+
getAttribute(name: string): string | DynamicValue | null | undefined;
|
|
1094
|
+
hasAttribute(name: string): boolean;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1081
1097
|
/**
|
|
1082
1098
|
* Primary API for using HTML-validate.
|
|
1083
1099
|
*
|
|
@@ -1223,28 +1239,6 @@ export declare class HtmlValidate {
|
|
|
1223
1239
|
* configuration. As a rule-of-thumb, set it to the elements json file.
|
|
1224
1240
|
*/
|
|
1225
1241
|
getElementsSchemaSync(filename?: string): SchemaObject;
|
|
1226
|
-
/**
|
|
1227
|
-
* Get contextual documentation for the given rule. The default configuration
|
|
1228
|
-
* will be used.
|
|
1229
|
-
*
|
|
1230
|
-
* @example
|
|
1231
|
-
*
|
|
1232
|
-
* ```js
|
|
1233
|
-
* const report = await htmlvalidate.validateFile("my-file.html");
|
|
1234
|
-
* for (const result of report.results){
|
|
1235
|
-
* for (const message of result.messages){
|
|
1236
|
-
* const documentation = await htmlvalidate.getRuleDocumentation(message, result.filePath);
|
|
1237
|
-
* // do something with documentation
|
|
1238
|
-
* }
|
|
1239
|
-
* }
|
|
1240
|
-
* ```
|
|
1241
|
-
*
|
|
1242
|
-
* @public
|
|
1243
|
-
* @since 8.0.0
|
|
1244
|
-
* @param message - Message reported during validation
|
|
1245
|
-
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1246
|
-
*/
|
|
1247
|
-
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">): Promise<RuleDocumentation | null>;
|
|
1248
1242
|
/**
|
|
1249
1243
|
* Get contextual documentation for the given rule. Configuration will be
|
|
1250
1244
|
* resolved for given filename.
|
|
@@ -1255,7 +1249,7 @@ export declare class HtmlValidate {
|
|
|
1255
1249
|
* const report = await htmlvalidate.validateFile("my-file.html");
|
|
1256
1250
|
* for (const result of report.results){
|
|
1257
1251
|
* for (const message of result.messages){
|
|
1258
|
-
* const documentation = await htmlvalidate.
|
|
1252
|
+
* const documentation = await htmlvalidate.getContextualDocumentation(message, result.filePath);
|
|
1259
1253
|
* // do something with documentation
|
|
1260
1254
|
* }
|
|
1261
1255
|
* }
|
|
@@ -1267,7 +1261,7 @@ export declare class HtmlValidate {
|
|
|
1267
1261
|
* @param filename - Filename used to resolve configuration.
|
|
1268
1262
|
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1269
1263
|
*/
|
|
1270
|
-
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">, filename
|
|
1264
|
+
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">, filename?: string): Promise<RuleDocumentation | null>;
|
|
1271
1265
|
/**
|
|
1272
1266
|
* Get contextual documentation for the given rule using provided
|
|
1273
1267
|
* configuration.
|
|
@@ -1291,28 +1285,6 @@ export declare class HtmlValidate {
|
|
|
1291
1285
|
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1292
1286
|
*/
|
|
1293
1287
|
getContextualDocumentation(message: Pick<Message, "ruleId" | "context">, config: ResolvedConfig | Promise<ResolvedConfig>): Promise<RuleDocumentation | null>;
|
|
1294
|
-
/**
|
|
1295
|
-
* Get contextual documentation for the given rule. The default configuration
|
|
1296
|
-
* will be used.
|
|
1297
|
-
*
|
|
1298
|
-
* @example
|
|
1299
|
-
*
|
|
1300
|
-
* ```js
|
|
1301
|
-
* const report = htmlvalidate.validateFileSync("my-file.html");
|
|
1302
|
-
* for (const result of report.results){
|
|
1303
|
-
* for (const message of result.messages){
|
|
1304
|
-
* const documentation = htmlvalidate.getRuleDocumentationSync(message, result.filePath);
|
|
1305
|
-
* // do something with documentation
|
|
1306
|
-
* }
|
|
1307
|
-
* }
|
|
1308
|
-
* ```
|
|
1309
|
-
*
|
|
1310
|
-
* @public
|
|
1311
|
-
* @since 8.0.0
|
|
1312
|
-
* @param message - Message reported during validation
|
|
1313
|
-
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1314
|
-
*/
|
|
1315
|
-
getContextualDocumentationSync(message: Pick<Message, "ruleId" | "context">): RuleDocumentation | null;
|
|
1316
1288
|
/**
|
|
1317
1289
|
* Get contextual documentation for the given rule. Configuration will be
|
|
1318
1290
|
* resolved for given filename.
|
|
@@ -1335,7 +1307,7 @@ export declare class HtmlValidate {
|
|
|
1335
1307
|
* @param filename - Filename used to resolve configuration.
|
|
1336
1308
|
* @returns Contextual documentation or `null` if the rule does not exist.
|
|
1337
1309
|
*/
|
|
1338
|
-
getContextualDocumentationSync(message: Pick<Message, "ruleId" | "context">, filename
|
|
1310
|
+
getContextualDocumentationSync(message: Pick<Message, "ruleId" | "context">, filename?: string): RuleDocumentation | null;
|
|
1339
1311
|
/**
|
|
1340
1312
|
* Get contextual documentation for the given rule using provided
|
|
1341
1313
|
* configuration.
|
|
@@ -1567,9 +1539,9 @@ export declare interface MetaAttribute {
|
|
|
1567
1539
|
*
|
|
1568
1540
|
* @public
|
|
1569
1541
|
* @param node - The node the attribute belongs to.
|
|
1570
|
-
* @param attr - The current attribute being validated.
|
|
1542
|
+
* @param attr - The current attribute value being validated.
|
|
1571
1543
|
*/
|
|
1572
|
-
export declare type MetaAttributeAllowedCallback = (node:
|
|
1544
|
+
export declare type MetaAttributeAllowedCallback = (node: HtmlElementLike, attr: string | DynamicValue | null | undefined) => string | null | undefined;
|
|
1573
1545
|
|
|
1574
1546
|
/**
|
|
1575
1547
|
* Properties listed here can be copied (loaded) onto another element using
|
|
@@ -1627,6 +1599,12 @@ export declare interface MetadataHelper {
|
|
|
1627
1599
|
allowedIfAttributeHasValue(this: void, attr: string, value: string[], options?: {
|
|
1628
1600
|
defaultValue?: string | null;
|
|
1629
1601
|
}): MetaAttributeAllowedCallback;
|
|
1602
|
+
/**
|
|
1603
|
+
* Returns an error if the node doesn't have any of the given elements as parent
|
|
1604
|
+
*
|
|
1605
|
+
* @since 8.2.0
|
|
1606
|
+
**/
|
|
1607
|
+
allowedIfParentIsPresent(this: void, ...tags: string[]): MetaAttributeAllowedCallback;
|
|
1630
1608
|
}
|
|
1631
1609
|
|
|
1632
1610
|
/**
|
|
@@ -2164,8 +2142,8 @@ export declare abstract class Rule<ContextType = void, OptionsType = void> {
|
|
|
2164
2142
|
*/
|
|
2165
2143
|
readonly options: OptionsType;
|
|
2166
2144
|
constructor(options: OptionsType);
|
|
2167
|
-
getSeverity():
|
|
2168
|
-
setServerity(severity:
|
|
2145
|
+
getSeverity(): Severity;
|
|
2146
|
+
setServerity(severity: Severity): void;
|
|
2169
2147
|
/* Excluded from this release type: block */
|
|
2170
2148
|
/* Excluded from this release type: unblock */
|
|
2171
2149
|
setEnabled(enabled: boolean): void;
|
|
@@ -2237,8 +2215,7 @@ export declare abstract class Rule<ContextType = void, OptionsType = void> {
|
|
|
2237
2215
|
* have any effect.
|
|
2238
2216
|
*/
|
|
2239
2217
|
report(error: ErrorDescriptor<ContextType>): void;
|
|
2240
|
-
report(node: DOMNode | null, message: string): void;
|
|
2241
|
-
report(node: DOMNode | null, message: string, location: Location_2 | null | undefined): void;
|
|
2218
|
+
report(node: DOMNode | null, message: string, location?: Location_2 | null | undefined): void;
|
|
2242
2219
|
report(node: DOMNode | null, message: string, location: Location_2 | null | undefined, context: ContextType): void;
|
|
2243
2220
|
private findLocation;
|
|
2244
2221
|
/**
|
package/dist/types/jest.d.ts
CHANGED
|
@@ -21,14 +21,10 @@ declare global {
|
|
|
21
21
|
* @param filename - Optional filename used when matching transformer and
|
|
22
22
|
* loading configuration.
|
|
23
23
|
*/
|
|
24
|
-
toHTMLValidate(): R;
|
|
25
|
-
toHTMLValidate(
|
|
26
|
-
toHTMLValidate(
|
|
27
|
-
toHTMLValidate(config: ConfigData, filename
|
|
28
|
-
toHTMLValidate(error: Partial<Message>): R;
|
|
29
|
-
toHTMLValidate(error: Partial<Message>, filename: string): R;
|
|
30
|
-
toHTMLValidate(error: Partial<Message>, config: ConfigData): R;
|
|
31
|
-
toHTMLValidate(error: Partial<Message>, config: ConfigData, filename: string): R;
|
|
24
|
+
toHTMLValidate(filename?: string): R;
|
|
25
|
+
toHTMLValidate(config: ConfigData, filename?: string): R;
|
|
26
|
+
toHTMLValidate(error: Partial<Message>, filename?: string): R;
|
|
27
|
+
toHTMLValidate(error: Partial<Message>, config: ConfigData, filename?: string): R;
|
|
32
28
|
/**
|
|
33
29
|
* Writes out the given [[Report]] using codeframe formatter and compares
|
|
34
30
|
* with snapshot.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-validate",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.0",
|
|
4
4
|
"description": "Offline html5 validator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"html",
|
|
@@ -187,17 +187,17 @@
|
|
|
187
187
|
"semver": "^7.0.0"
|
|
188
188
|
},
|
|
189
189
|
"devDependencies": {
|
|
190
|
-
"@html-validate/commitlint-config": "3.0.
|
|
191
|
-
"@html-validate/eslint-config": "5.
|
|
192
|
-
"@html-validate/eslint-config-jest": "5.
|
|
193
|
-
"@html-validate/eslint-config-typescript": "5.
|
|
194
|
-
"@html-validate/eslint-config-typescript-typeinfo": "5.
|
|
195
|
-
"@html-validate/jest-config": "3.7.
|
|
196
|
-
"@html-validate/prettier-config": "2.
|
|
197
|
-
"@html-validate/release-scripts": "4.1.
|
|
198
|
-
"@microsoft/api-extractor": "7.36.
|
|
190
|
+
"@html-validate/commitlint-config": "3.0.20",
|
|
191
|
+
"@html-validate/eslint-config": "5.10.7",
|
|
192
|
+
"@html-validate/eslint-config-jest": "5.10.0",
|
|
193
|
+
"@html-validate/eslint-config-typescript": "5.10.7",
|
|
194
|
+
"@html-validate/eslint-config-typescript-typeinfo": "5.10.7",
|
|
195
|
+
"@html-validate/jest-config": "3.7.7",
|
|
196
|
+
"@html-validate/prettier-config": "2.4.5",
|
|
197
|
+
"@html-validate/release-scripts": "4.1.6",
|
|
198
|
+
"@microsoft/api-extractor": "7.36.4",
|
|
199
199
|
"@rollup/plugin-json": "6.0.0",
|
|
200
|
-
"@rollup/plugin-node-resolve": "15.
|
|
200
|
+
"@rollup/plugin-node-resolve": "15.2.0",
|
|
201
201
|
"@rollup/plugin-replace": "5.0.2",
|
|
202
202
|
"@rollup/plugin-typescript": "11.1.2",
|
|
203
203
|
"@rollup/plugin-virtual": "3.0.1",
|
|
@@ -205,21 +205,21 @@
|
|
|
205
205
|
"@types/babel__code-frame": "7.0.3",
|
|
206
206
|
"@types/jest": "29.5.3",
|
|
207
207
|
"@types/minimist": "1.2.2",
|
|
208
|
-
"@types/node": "16.18.
|
|
208
|
+
"@types/node": "16.18.41",
|
|
209
209
|
"@types/prompts": "2.4.4",
|
|
210
210
|
"@types/semver": "7.5.0",
|
|
211
211
|
"@types/stream-buffers": "3.0.4",
|
|
212
212
|
"babar": "0.2.3",
|
|
213
213
|
"husky": "8.0.3",
|
|
214
214
|
"is-ci": "3.0.1",
|
|
215
|
-
"jest": "29.6.
|
|
216
|
-
"jest-diff": "29.6.
|
|
217
|
-
"jest-environment-jsdom": "29.6.
|
|
218
|
-
"jest-snapshot": "29.6.
|
|
219
|
-
"memfs": "4.2.
|
|
220
|
-
"npm-pkg-lint": "
|
|
215
|
+
"jest": "29.6.2",
|
|
216
|
+
"jest-diff": "29.6.2",
|
|
217
|
+
"jest-environment-jsdom": "29.6.2",
|
|
218
|
+
"jest-snapshot": "29.6.2",
|
|
219
|
+
"memfs": "4.2.1",
|
|
220
|
+
"npm-pkg-lint": "2.0.1",
|
|
221
221
|
"npm-run-all": "4.1.5",
|
|
222
|
-
"rollup": "3.
|
|
222
|
+
"rollup": "3.28.0",
|
|
223
223
|
"stream-buffers": "3.0.2",
|
|
224
224
|
"ts-jest": "29.1.1",
|
|
225
225
|
"typescript": "5.1.6"
|