html-validate 11.5.0 → 11.5.2

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/esm/core.js CHANGED
@@ -2,9 +2,9 @@ import Ajv from 'ajv';
2
2
  import { e as entities$1, h as html5, b as bundledElements } from './elements.js';
3
3
  import betterAjvErrors from '@sidvind/better-ajv-errors';
4
4
  import { n as naturalJoin } from './utils/natural-join.js';
5
+ import semver from 'semver';
5
6
  import kleur from 'kleur';
6
7
  import { stylish as stylish$1 } from '@html-validate/stylish';
7
- import semver from 'semver';
8
8
 
9
9
  const $schema$2 = "http://json-schema.org/draft-06/schema#";
10
10
  const $id$2 = "http://json-schema.org/draft-06/schema#";
@@ -12823,7 +12823,7 @@ class EventHandler {
12823
12823
  }
12824
12824
 
12825
12825
  const name = "html-validate";
12826
- const version = "11.5.0";
12826
+ const version = "11.5.2";
12827
12827
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
12828
12828
 
12829
12829
  function freeze(src) {
@@ -14423,6 +14423,22 @@ function transformFilenameSync(resolvers, config, filename, fs) {
14423
14423
  return transformSourceSync(resolvers, config, source, filename);
14424
14424
  }
14425
14425
 
14426
+ function compatibilityCheckImpl(name, declared, options) {
14427
+ const { silent, version: current, logger } = options;
14428
+ const valid = semver.satisfies(current, declared);
14429
+ if (valid || silent) {
14430
+ return valid;
14431
+ }
14432
+ const text = [
14433
+ "-----------------------------------------------------------------------------------------------------",
14434
+ `${name} requires html-validate version "${declared}" but current installed version is ${current}`,
14435
+ "This is not a supported configuration. Please install a supported version before reporting bugs.",
14436
+ "-----------------------------------------------------------------------------------------------------"
14437
+ ].join("\n");
14438
+ logger(text);
14439
+ return false;
14440
+ }
14441
+
14426
14442
  const entities = {
14427
14443
  ">": ">",
14428
14444
  "<": "&lt;",
@@ -14714,22 +14730,6 @@ function getFormatter(name) {
14714
14730
  return availableFormatters[name] ?? null;
14715
14731
  }
14716
14732
 
14717
- function compatibilityCheckImpl(name, declared, options) {
14718
- const { silent, version: current, logger } = options;
14719
- const valid = semver.satisfies(current, declared);
14720
- if (valid || silent) {
14721
- return valid;
14722
- }
14723
- const text = [
14724
- "-----------------------------------------------------------------------------------------------------",
14725
- `${name} requires html-validate version "${declared}" but current installed version is ${current}`,
14726
- "This is not a supported configuration. Please install a supported version before reporting bugs.",
14727
- "-----------------------------------------------------------------------------------------------------"
14728
- ].join("\n");
14729
- logger(text);
14730
- return false;
14731
- }
14732
-
14733
14733
  var ignore$1 = {exports: {}};
14734
14734
 
14735
14735
  var hasRequiredIgnore;
@@ -15537,5 +15537,5 @@ var jestWorkerPath = "./jest-worker.js";
15537
15537
 
15538
15538
  var vitestWorkerPath = "./vitest-worker.js";
15539
15539
 
15540
- export { name as $, Attribute as A, configurationSchema as B, Config as C, DOMNode as D, Engine as E, deepmerge as F, defineConfig as G, HtmlElement as H, definePlugin as I, engines as J, ensureError as K, getEndLocation as L, MetaCopyableProperty as M, NestedError as N, getFormatter as O, Parser as P, getStartLocation as Q, Reporter as R, SchemaValidationError as S, TextClassification as T, UserError as U, ignore as V, WrappedError as W, isThenable as X, isUserError as Y, jestWorkerPath as Z, keywordPatternMatcher as _, ConfigError as a, normalizeSource as a0, parseSeverity as a1, presets as a2, ruleExists as a3, sliceLocation as a4, staticResolver as a5, transformFilename as a6, transformFilenameSync as a7, transformSource as a8, transformSourceSync as a9, version as aa, vitestWorkerPath as ab, walk as ac, ConfigLoader as b, DOMTokenList as c, DOMTree as d, DynamicValue as e, EventHandler as f, MetaTable as g, Node as h, PerformanceTracker as i, ResolvedConfig as j, Rule as k, Severity as l, StaticConfigLoader as m, TextContent$1 as n, TextNode as o, ariaNaming as p, bugs as q, classifyNodeText as r, codeFrameColumns as s, compatibilityCheckImpl as t, config$5 as u, config$4 as v, config$3 as w, config$2 as x, config$1 as y, config as z };
15540
+ export { engines as $, Attribute as A, Severity as B, ConfigLoader as C, DOMNode as D, Engine as E, TextContent$1 as F, TextNode as G, HtmlElement as H, ariaNaming as I, classifyNodeText as J, presets as K, defineConfig as L, MetaTable as M, NestedError as N, definePlugin as O, PerformanceTracker as P, isUserError as Q, Reporter as R, StaticConfigLoader as S, TextClassification as T, UserError as U, keywordPatternMatcher as V, WrappedError as W, ruleExists as X, sliceLocation as Y, staticResolver as Z, walk as _, Parser as a, codeFrameColumns as a0, getEndLocation as a1, getStartLocation as a2, jestWorkerPath as a3, vitestWorkerPath as a4, config$5 as a5, config$4 as a6, config$3 as a7, config$2 as a8, config$1 as a9, config as aa, name as ab, bugs as ac, transformSourceSync as b, transformFilename as c, transformFilenameSync as d, configurationSchema as e, compatibilityCheckImpl as f, ConfigError as g, Config as h, isThenable as i, ResolvedConfig as j, ensureError as k, getFormatter as l, deepmerge as m, normalizeSource as n, ignore as o, parseSeverity as p, DOMTokenList as q, DOMTree as r, DynamicValue as s, transformSource as t, EventHandler as u, version as v, MetaCopyableProperty as w, Node as x, Rule as y, SchemaValidationError as z };
15541
15541
  //# sourceMappingURL=core.js.map