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/cjs/browser.js +1 -1
- package/dist/cjs/cli.js +6 -0
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/core.js +19 -19
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/html-validate.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/jest-worker.js +1 -1
- package/dist/cjs/jest.js +1 -1
- package/dist/cjs/presets.js +1 -1
- package/dist/cjs/vitest-matchers.js +20 -4
- package/dist/cjs/vitest-matchers.js.map +1 -1
- package/dist/cjs/vitest-worker.js +1 -1
- package/dist/cjs/vitest.js +1 -1
- package/dist/esm/browser.js +2 -2
- package/dist/esm/cli.js +9 -3
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/core-browser.js +1 -1
- package/dist/esm/core-nodejs.js +2 -2
- package/dist/esm/core.js +19 -19
- package/dist/esm/core.js.map +1 -1
- package/dist/esm/html-validate.js +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/esm/jest-matchers.js +2 -2
- package/dist/esm/jest-utils.js +2 -2
- package/dist/esm/jest-worker.js +2 -2
- package/dist/esm/jest.js +1 -1
- package/dist/esm/presets.js +2 -2
- package/dist/esm/vitest-matchers.js +23 -7
- package/dist/esm/vitest-matchers.js.map +1 -1
- package/dist/esm/vitest-utils.js +2 -2
- package/dist/esm/vitest-worker.js +2 -2
- package/dist/esm/vitest.js +1 -1
- package/package.json +1 -1
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.
|
|
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
|
"<": "<",
|
|
@@ -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 {
|
|
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
|