html-validate 6.11.0 → 7.1.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/browser.d.ts +1 -1
- package/dist/cjs/core.d.ts +6 -2
- package/dist/cjs/core.js +219 -67
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/jest.d.ts +1 -1
- package/dist/cjs/test-utils.d.ts +1 -1
- package/dist/es/browser.d.ts +1 -1
- package/dist/es/core.d.ts +6 -2
- package/dist/es/core.js +219 -67
- package/dist/es/core.js.map +1 -1
- package/dist/es/index.d.ts +2 -2
- package/dist/es/jest.d.ts +1 -1
- package/dist/es/test-utils.d.ts +1 -1
- package/elements/html5.d.ts +2 -0
- package/package.json +21 -21
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AttributeData,
|
|
1
|
+
import { q as Report, c as ConfigLoader, H as HtmlValidate, a as ConfigData } from './core.js';
|
|
2
|
+
export { A as AttributeData, a0 as AttributeEvent, f as CSSStyleDeclaration, ad as CompatibilityOptions, a2 as ConditionalEvent, C as Config, a as ConfigData, b as ConfigError, c as ConfigLoader, K as ConfigReadyEvent, a5 as DOMLoadEvent, a6 as DOMReadyEvent, u as DeferredMessage, a3 as DirectiveEvent, a4 as DoctypeEvent, D as DynamicValue, $ as ElementReadyEvent, J as Event, I as EventCallback, E as EventDump, G as EventHandler, a9 as FileSystemConfigLoader, aa as Formatter, e as HtmlElement, H as HtmlValidate, a8 as ListenEventMap, L as Location, s as Message, m as MetaCopyableProperty, M as MetaData, j as MetaDataTable, k as MetaElement, l as MetaTable, i as NestedError, N as NodeClosed, B as Parser, z as Plugin, P as ProcessElementContext, q as Report, r as Reporter, t as Result, R as Rule, n as RuleDocumentation, h as SchemaValidationError, S as Severity, o as Source, O as SourceReadyEvent, d as StaticConfigLoader, Z as TagCloseEvent, Y as TagEndEvent, X as TagOpenEvent, _ as TagReadyEvent, V as TagStartEvent, y as TemplateExtractor, T as TextNode, g as TokenDump, Q as TokenEvent, w as TransformContext, x as Transformer, a7 as TriggerEventMap, U as UserError, a1 as WhitespaceEvent, W as WrappedError, ac as compatibilityCheck, p as configPresets, ab as formatterFactory, F as ruleExists, v as version } from './core.js';
|
|
3
3
|
import 'ajv';
|
|
4
4
|
|
|
5
5
|
interface ExpandOptions {
|
package/dist/cjs/jest.d.ts
CHANGED
package/dist/cjs/test-utils.d.ts
CHANGED
package/dist/es/browser.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as AttributeData,
|
|
1
|
+
export { A as AttributeData, a0 as AttributeEvent, f as CSSStyleDeclaration, a2 as ConditionalEvent, C as Config, a as ConfigData, b as ConfigError, c as ConfigLoader, K as ConfigReadyEvent, a5 as DOMLoadEvent, a6 as DOMReadyEvent, u as DeferredMessage, a3 as DirectiveEvent, a4 as DoctypeEvent, D as DynamicValue, $ as ElementReadyEvent, J as Event, I as EventCallback, E as EventDump, G as EventHandler, e as HtmlElement, H as HtmlValidate, a8 as ListenEventMap, L as Location, s as Message, m as MetaCopyableProperty, M as MetaData, j as MetaDataTable, k as MetaElement, l as MetaTable, i as NestedError, N as NodeClosed, B as Parser, z as Plugin, P as ProcessElementContext, q as Report, r as Reporter, t as Result, R as Rule, n as RuleDocumentation, h as SchemaValidationError, S as Severity, o as Source, O as SourceReadyEvent, d as StaticConfigLoader, Z as TagCloseEvent, Y as TagEndEvent, X as TagOpenEvent, _ as TagReadyEvent, V as TagStartEvent, y as TemplateExtractor, T as TextNode, g as TokenDump, Q as TokenEvent, w as TransformContext, x as Transformer, a7 as TriggerEventMap, U as UserError, a1 as WhitespaceEvent, W as WrappedError, p as configPresets, F as ruleExists, v as version } from './core.js';
|
|
2
2
|
import 'ajv';
|
package/dist/es/core.d.ts
CHANGED
|
@@ -333,12 +333,13 @@ declare abstract class Rule<ContextType = void, OptionsType = void> {
|
|
|
333
333
|
* not `"foo"`.
|
|
334
334
|
*
|
|
335
335
|
* @param keyword - Keyword to match against `include` and `exclude` options.
|
|
336
|
+
* @param matcher - Optional function to compare items with.
|
|
336
337
|
* @returns `true` if keyword is not present in `include` or is present in
|
|
337
338
|
* `exclude`.
|
|
338
339
|
*/
|
|
339
340
|
isKeywordIgnored<T extends IncludeExcludeOptions>(this: {
|
|
340
341
|
options: T;
|
|
341
|
-
}, keyword: string): boolean;
|
|
342
|
+
}, keyword: string, matcher?: (list: string[], it: string) => boolean): boolean;
|
|
342
343
|
/**
|
|
343
344
|
* Find all tags which has enabled given property.
|
|
344
345
|
*/
|
|
@@ -1072,6 +1073,9 @@ interface MetaElement extends Omit<MetaData, "deprecatedAttributes" | "requiredA
|
|
|
1072
1073
|
tagName: string;
|
|
1073
1074
|
attributes: Record<string, MetaAttribute>;
|
|
1074
1075
|
}
|
|
1076
|
+
interface MetaDataTable {
|
|
1077
|
+
[tagName: string]: MetaData;
|
|
1078
|
+
}
|
|
1075
1079
|
interface ElementTable {
|
|
1076
1080
|
[tagName: string]: MetaElement;
|
|
1077
1081
|
}
|
|
@@ -2330,4 +2334,4 @@ declare type Formatter = (results: Result[]) => string;
|
|
|
2330
2334
|
*/
|
|
2331
2335
|
declare function getFormatter(name: string): Formatter | null;
|
|
2332
2336
|
|
|
2333
|
-
export {
|
|
2337
|
+
export { ElementReadyEvent as $, AttributeData as A, Parser as B, Config as C, DynamicValue as D, EventDump as E, ruleExists as F, EventHandler as G, HtmlValidate as H, EventCallback as I, Event as J, ConfigReadyEvent as K, Location as L, MetaData as M, NodeClosed as N, SourceReadyEvent as O, ProcessElementContext as P, TokenEvent as Q, Rule as R, Severity as S, TextNode as T, UserError as U, TagStartEvent as V, WrappedError as W, TagOpenEvent as X, TagEndEvent as Y, TagCloseEvent as Z, TagReadyEvent as _, ConfigData as a, AttributeEvent as a0, WhitespaceEvent as a1, ConditionalEvent as a2, DirectiveEvent as a3, DoctypeEvent as a4, DOMLoadEvent as a5, DOMReadyEvent as a6, TriggerEventMap as a7, ListenEventMap as a8, FileSystemConfigLoader as a9, Formatter as aa, getFormatter as ab, compatibilityCheck as ac, CompatibilityOptions as ad, ConfigError as b, ConfigLoader as c, StaticConfigLoader as d, HtmlElement as e, CSSStyleDeclaration as f, TokenDump as g, SchemaValidationError as h, NestedError as i, MetaDataTable as j, MetaElement as k, MetaTable as l, MetaCopyableProperty as m, RuleDocumentation as n, Source as o, presets as p, Report as q, Reporter as r, Message as s, Result as t, DeferredMessage as u, version as v, TransformContext as w, Transformer as x, TemplateExtractor as y, Plugin as z };
|