html-validate 10.11.2 → 10.11.3

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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.57.7"
8
+ "packageVersion": "7.58.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -4,6 +4,38 @@ export { }
4
4
 
5
5
  import { type ConfigData } from "./index"
6
6
  import { type Message } from "./index"
7
+ declare module "expect" {
8
+ interface Matchers<R, T> {
9
+ toBeValid(): R;
10
+ toBeInvalid(): R;
11
+ toHaveError(error: Partial<Message>): R;
12
+ toHaveError(ruleId: string, message: string, context?: any): R;
13
+ toHaveErrors(errors: Array<[string, string] | Record<string, unknown>>): R;
14
+ /**
15
+ * Validate string or HTMLElement.
16
+ *
17
+ * Test passes if result is valid.
18
+ *
19
+ * @param config - Optional HTML-Validate configuration object.
20
+ * @param filename - Optional filename used when matching transformer and
21
+ * loading configuration.
22
+ */
23
+ toHTMLValidate(filename?: string): R;
24
+ toHTMLValidate(config: ConfigData, filename?: string): R;
25
+ toHTMLValidate(error: Partial<Message>, filename?: string): R;
26
+ toHTMLValidate(error: Partial<Message>, config: ConfigData, filename?: string): R;
27
+ /**
28
+ * Writes out the given [[Report]] using codeframe formatter and compares
29
+ * with snapshot.
30
+ */
31
+ toMatchCodeframe(snapshot?: string): R;
32
+ /**
33
+ * Writes out the given [[Report]] using codeframe formatter and compares
34
+ * with inline snapshot.
35
+ */
36
+ toMatchInlineCodeframe(snapshot?: string): R;
37
+ }
38
+ }
7
39
  declare global {
8
40
  namespace jest {
9
41
  interface Matchers<R, T = {}> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-validate",
3
- "version": "10.11.2",
3
+ "version": "10.11.3",
4
4
  "description": "Offline HTML5 validator and linter",
5
5
  "keywords": [
6
6
  "html",
@@ -32,46 +32,46 @@
32
32
  ".": {
33
33
  "browser": {
34
34
  "types": "./dist/types/browser.d.ts",
35
- "require": "./dist/cjs/browser.js",
36
- "import": "./dist/esm/browser.js"
35
+ "import": "./dist/esm/browser.js",
36
+ "require": "./dist/cjs/browser.js"
37
37
  },
38
38
  "node": {
39
39
  "types": "./dist/types/index.d.ts",
40
- "require": "./dist/cjs/index.js",
41
- "import": "./dist/esm/index.js"
40
+ "import": "./dist/esm/index.js",
41
+ "require": "./dist/cjs/index.js"
42
42
  },
43
43
  "default": {
44
44
  "types": "./dist/types/index.d.ts",
45
- "require": "./dist/cjs/index.js",
46
- "import": "./dist/esm/index.js"
45
+ "import": "./dist/esm/index.js",
46
+ "require": "./dist/cjs/index.js"
47
47
  }
48
48
  },
49
49
  "./browser": {
50
50
  "types": "./dist/types/browser.d.ts",
51
- "require": "./dist/cjs/browser.js",
52
- "import": "./dist/esm/browser.js"
51
+ "import": "./dist/esm/browser.js",
52
+ "require": "./dist/cjs/browser.js"
53
53
  },
54
54
  "./node": {
55
55
  "types": "./dist/types/index.d.ts",
56
- "require": "./dist/cjs/index.js",
57
- "import": "./dist/esm/index.js"
56
+ "import": "./dist/esm/index.js",
57
+ "require": "./dist/cjs/index.js"
58
58
  },
59
59
  "./dist/schema/*": "./dist/schema/*",
60
60
  "./elements/html5": {
61
61
  "types": "./dist/types/html5.d.ts",
62
- "require": "./dist/cjs/html5.js",
63
- "import": "./dist/esm/html5.js"
62
+ "import": "./dist/esm/html5.js",
63
+ "require": "./dist/cjs/html5.js"
64
64
  },
65
65
  "./jest": {
66
66
  "types": "./dist/types/jest.d.ts",
67
- "require": "./dist/cjs/jest.js",
68
- "import": "./dist/esm/jest.js"
67
+ "import": "./dist/esm/jest.js",
68
+ "require": "./dist/cjs/jest.js"
69
69
  },
70
70
  "./package.json": "./package.json",
71
71
  "./test-utils": {
72
72
  "types": "./dist/types/test-utils.d.ts",
73
- "require": "./dist/cjs/test-utils.js",
74
- "import": "./dist/esm/test-utils.js"
73
+ "import": "./dist/esm/test-utils.js",
74
+ "require": "./dist/cjs/test-utils.js"
75
75
  },
76
76
  "./vitest": {
77
77
  "types": "./dist/types/vitest.d.ts",