html-validate 9.2.0 → 9.2.1
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 +5 -4
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/core.js +22 -5
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/jest.js +13 -13
- package/dist/cjs/jest.js.map +1 -1
- package/dist/cjs/matchers-jestonly.js +2 -2
- package/dist/cjs/matchers.js +4 -4
- package/dist/cjs/vitest.js +4 -4
- package/dist/cjs/vitest.js.map +1 -1
- package/dist/es/cli.js +7 -6
- package/dist/es/cli.js.map +1 -1
- package/dist/es/core.js +22 -5
- package/dist/es/core.js.map +1 -1
- package/dist/es/html-validate.js +1 -1
- package/dist/es/jest.js +14 -14
- package/dist/es/jest.js.map +1 -1
- package/dist/es/matchers-jestonly.js +1 -1
- package/dist/es/matchers.js +1 -1
- package/dist/es/vitest.js +4 -4
- package/dist/es/vitest.js.map +1 -1
- package/package.json +1 -1
package/dist/es/html-validate.js
CHANGED
|
@@ -3,7 +3,7 @@ import path from 'node:path';
|
|
|
3
3
|
import kleur from 'kleur';
|
|
4
4
|
import minimist from 'minimist';
|
|
5
5
|
import { Y as name, v as version, o as SchemaValidationError, q as isUserError, Z as bugs } from './core.js';
|
|
6
|
-
import { M as Mode, m as modeToFlag, h as haveImportMetaResolve, I as ImportResolveMissingError, l as lint, i as init, p as printConfig, d as dump, a as handleSchemaValidationError
|
|
6
|
+
import { M as Mode, m as modeToFlag, C as CLI, h as haveImportMetaResolve, I as ImportResolveMissingError, l as lint, i as init, p as printConfig, d as dump, a as handleSchemaValidationError } from './cli.js';
|
|
7
7
|
import 'ajv';
|
|
8
8
|
import './elements.js';
|
|
9
9
|
import './meta-helper.js';
|
package/dist/es/jest.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { c as createMatcher, a as createMatcher$1
|
|
2
|
-
import { c as createMatcher$
|
|
1
|
+
import { c as createMatcher, a as createMatcher$1 } from './matchers-jestonly.js';
|
|
2
|
+
import { c as createMatcher$2, a as createMatcher$3, b as createMatcher$4, d as createMatcher$5, e as createMatcher$6 } from './matchers.js';
|
|
3
3
|
import { d as diff } from './jest-diff.js';
|
|
4
|
-
import '
|
|
5
|
-
import '
|
|
6
|
-
import './core-nodejs.js';
|
|
7
|
-
import 'node:path';
|
|
4
|
+
import 'kleur';
|
|
5
|
+
import 'jest-snapshot';
|
|
8
6
|
import './core.js';
|
|
9
7
|
import 'ajv';
|
|
10
8
|
import './elements.js';
|
|
@@ -12,21 +10,23 @@ import './meta-helper.js';
|
|
|
12
10
|
import './utils/natural-join.js';
|
|
13
11
|
import '@sidvind/better-ajv-errors';
|
|
14
12
|
import 'node:fs';
|
|
15
|
-
import 'kleur';
|
|
16
13
|
import '@html-validate/stylish';
|
|
17
14
|
import 'semver';
|
|
15
|
+
import './matcher-utils.js';
|
|
16
|
+
import 'node:worker_threads';
|
|
17
|
+
import './core-nodejs.js';
|
|
18
|
+
import 'node:path';
|
|
18
19
|
import 'node:fs/promises';
|
|
19
20
|
import 'node:module';
|
|
20
|
-
import 'jest-snapshot';
|
|
21
21
|
import 'jest-diff';
|
|
22
22
|
|
|
23
23
|
expect.extend({
|
|
24
|
-
toBeValid: createMatcher(),
|
|
25
|
-
toBeInvalid: createMatcher$
|
|
26
|
-
toHTMLValidate: createMatcher$
|
|
24
|
+
toBeValid: createMatcher$6(),
|
|
25
|
+
toBeInvalid: createMatcher$5(),
|
|
26
|
+
toHTMLValidate: createMatcher$4(expect, diff),
|
|
27
27
|
toHaveError: createMatcher$3(expect, diff),
|
|
28
|
-
toHaveErrors: createMatcher$
|
|
29
|
-
toMatchCodeframe: createMatcher$
|
|
30
|
-
toMatchInlineCodeframe: createMatcher
|
|
28
|
+
toHaveErrors: createMatcher$2(expect, diff),
|
|
29
|
+
toMatchCodeframe: createMatcher$1(),
|
|
30
|
+
toMatchInlineCodeframe: createMatcher()
|
|
31
31
|
});
|
|
32
32
|
//# sourceMappingURL=jest.js.map
|
package/dist/es/jest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jest.js","sources":["../../src/jest/jest.ts"],"sourcesContent":["import \"./augmentation\";\n\nimport {\n\ttoBeValid,\n\ttoBeInvalid,\n\ttoHTMLValidate,\n\ttoHaveError,\n\ttoHaveErrors,\n\ttoMatchCodeframe,\n\ttoMatchInlineCodeframe,\n} from \"./matchers\";\nimport { diff } from \"./utils\";\n\nexpect.extend({\n\ttoBeValid: toBeValid(),\n\ttoBeInvalid: toBeInvalid(),\n\ttoHTMLValidate: toHTMLValidate(expect, diff),\n\ttoHaveError: toHaveError(expect, diff),\n\ttoHaveErrors: toHaveErrors(expect, diff),\n\ttoMatchCodeframe: toMatchCodeframe(),\n\ttoMatchInlineCodeframe: toMatchInlineCodeframe(),\n});\n"],"names":["toBeValid","toBeInvalid","toHTMLValidate","toHaveError","toHaveErrors","toMatchCodeframe","toMatchInlineCodeframe"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAaA,MAAA,CAAO,MAAO,CAAA;AAAA,EACb,WAAWA,
|
|
1
|
+
{"version":3,"file":"jest.js","sources":["../../src/jest/jest.ts"],"sourcesContent":["import \"./augmentation\";\n\nimport {\n\ttoBeValid,\n\ttoBeInvalid,\n\ttoHTMLValidate,\n\ttoHaveError,\n\ttoHaveErrors,\n\ttoMatchCodeframe,\n\ttoMatchInlineCodeframe,\n} from \"./matchers\";\nimport { diff } from \"./utils\";\n\nexpect.extend({\n\ttoBeValid: toBeValid(),\n\ttoBeInvalid: toBeInvalid(),\n\ttoHTMLValidate: toHTMLValidate(expect, diff),\n\ttoHaveError: toHaveError(expect, diff),\n\ttoHaveErrors: toHaveErrors(expect, diff),\n\ttoMatchCodeframe: toMatchCodeframe(),\n\ttoMatchInlineCodeframe: toMatchInlineCodeframe(),\n});\n"],"names":["toBeValid","toBeInvalid","toHTMLValidate","toHaveError","toHaveErrors","toMatchCodeframe","toMatchInlineCodeframe"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAaA,MAAA,CAAO,MAAO,CAAA;AAAA,EACb,WAAWA,eAAU,EAAA;AAAA,EACrB,aAAaC,eAAY,EAAA;AAAA,EACzB,cAAA,EAAgBC,eAAe,CAAA,MAAA,EAAQ,IAAI,CAAA;AAAA,EAC3C,WAAA,EAAaC,eAAY,CAAA,MAAA,EAAQ,IAAI,CAAA;AAAA,EACrC,YAAA,EAAcC,eAAa,CAAA,MAAA,EAAQ,IAAI,CAAA;AAAA,EACvC,kBAAkBC,eAAiB,EAAA;AAAA,EACnC,wBAAwBC,aAAuB;AAChD,CAAC,CAAA"}
|
package/dist/es/matchers.js
CHANGED
|
@@ -226,5 +226,5 @@ function getResults(filename, value) {
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
|
|
229
|
-
export { createMatcher$
|
|
229
|
+
export { createMatcher$1 as a, createMatcher$2 as b, createMatcher as c, createMatcher$3 as d, createMatcher$4 as e, getResults as g };
|
|
230
230
|
//# sourceMappingURL=matchers.js.map
|
package/dist/es/vitest.js
CHANGED
|
@@ -18,10 +18,10 @@ import 'node:fs/promises';
|
|
|
18
18
|
import 'node:module';
|
|
19
19
|
|
|
20
20
|
expect.extend({
|
|
21
|
-
toBeValid: createMatcher(),
|
|
22
|
-
toBeInvalid: createMatcher$
|
|
21
|
+
toBeValid: createMatcher$4(),
|
|
22
|
+
toBeInvalid: createMatcher$3(),
|
|
23
23
|
toHTMLValidate: createMatcher$2(expect, undefined),
|
|
24
|
-
toHaveError: createMatcher$
|
|
25
|
-
toHaveErrors: createMatcher
|
|
24
|
+
toHaveError: createMatcher$1(expect, undefined),
|
|
25
|
+
toHaveErrors: createMatcher(expect, undefined)
|
|
26
26
|
});
|
|
27
27
|
//# sourceMappingURL=vitest.js.map
|
package/dist/es/vitest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.js","sources":["../../src/vitest/vitest.ts"],"sourcesContent":["import \"./augmentation\";\n\nimport { expect } from \"vitest\";\nimport {\n\ttoBeValid,\n\ttoBeInvalid,\n\ttoHTMLValidate,\n\ttoHaveError,\n\ttoHaveErrors,\n} from \"../jest/matchers\";\n\nexpect.extend({\n\ttoBeValid: toBeValid(),\n\ttoBeInvalid: toBeInvalid(),\n\ttoHTMLValidate: toHTMLValidate(expect, undefined),\n\ttoHaveError: toHaveError(expect, undefined),\n\ttoHaveErrors: toHaveErrors(expect, undefined),\n});\n"],"names":["toBeValid","toBeInvalid","toHTMLValidate","toHaveError","toHaveErrors"],"mappings":";;;;;;;;;;;;;;;;;;;AAWA,MAAA,CAAO,MAAO,CAAA;AAAA,EACb,WAAWA,
|
|
1
|
+
{"version":3,"file":"vitest.js","sources":["../../src/vitest/vitest.ts"],"sourcesContent":["import \"./augmentation\";\n\nimport { expect } from \"vitest\";\nimport {\n\ttoBeValid,\n\ttoBeInvalid,\n\ttoHTMLValidate,\n\ttoHaveError,\n\ttoHaveErrors,\n} from \"../jest/matchers\";\n\nexpect.extend({\n\ttoBeValid: toBeValid(),\n\ttoBeInvalid: toBeInvalid(),\n\ttoHTMLValidate: toHTMLValidate(expect, undefined),\n\ttoHaveError: toHaveError(expect, undefined),\n\ttoHaveErrors: toHaveErrors(expect, undefined),\n});\n"],"names":["toBeValid","toBeInvalid","toHTMLValidate","toHaveError","toHaveErrors"],"mappings":";;;;;;;;;;;;;;;;;;;AAWA,MAAA,CAAO,MAAO,CAAA;AAAA,EACb,WAAWA,eAAU,EAAA;AAAA,EACrB,aAAaC,eAAY,EAAA;AAAA,EACzB,cAAA,EAAgBC,eAAe,CAAA,MAAA,EAAQ,SAAS,CAAA;AAAA,EAChD,WAAA,EAAaC,eAAY,CAAA,MAAA,EAAQ,SAAS,CAAA;AAAA,EAC1C,YAAA,EAAcC,aAAa,CAAA,MAAA,EAAQ,SAAS;AAC7C,CAAC,CAAA"}
|