html-validate 8.0.3 → 8.0.4
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/README.md +14 -6
- package/dist/cjs/core.js +1 -1
- package/dist/es/core.js +1 -1
- package/node.d.ts +1 -0
- package/node.js +1 -0
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -56,17 +56,25 @@ Create `.htmlvalidate.json`:
|
|
|
56
56
|
|
|
57
57
|
The library comes in four flavours:
|
|
58
58
|
|
|
59
|
-
- CommonJS full (`dist/cjs/
|
|
59
|
+
- CommonJS full (`dist/cjs/index.js`)
|
|
60
60
|
- CommonJS browser (`dist/cjs/browser.js`)
|
|
61
|
-
- ESM full (`dist/es/
|
|
61
|
+
- ESM full (`dist/es/index.js`)
|
|
62
62
|
- ESM browser (`dist/es/browser.js`)
|
|
63
63
|
|
|
64
|
-
The browser
|
|
65
|
-
Your tooling will probably use the correct version but if needed you can import the files directly.
|
|
64
|
+
The browser bundle contains a slimmed version without CLI and NodeJS dependencies.
|
|
66
65
|
|
|
67
|
-
|
|
66
|
+
```ts
|
|
67
|
+
/* automatically determine build based on `browser` export condition */
|
|
68
|
+
import { ... } from "html-validate";
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
/* explicitly use nodejs bundle */
|
|
71
|
+
import { ... } from "html-validate/node";
|
|
72
|
+
|
|
73
|
+
/* explicitly use browser bundle */
|
|
74
|
+
import { ... } from "html-validate/browser";
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
See [running in browser](https://html-validate.org/dev/running-in-browser.html) for details about getting HTML-Validate running in a browser environment.
|
|
70
78
|
|
|
71
79
|
## Developing
|
|
72
80
|
|
package/dist/cjs/core.js
CHANGED
|
@@ -11701,7 +11701,7 @@ class HtmlValidate {
|
|
|
11701
11701
|
/** @public */
|
|
11702
11702
|
const name = "html-validate";
|
|
11703
11703
|
/** @public */
|
|
11704
|
-
const version = "8.0.
|
|
11704
|
+
const version = "8.0.4";
|
|
11705
11705
|
/** @public */
|
|
11706
11706
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
11707
11707
|
|
package/dist/es/core.js
CHANGED
|
@@ -11690,7 +11690,7 @@ class HtmlValidate {
|
|
|
11690
11690
|
/** @public */
|
|
11691
11691
|
const name = "html-validate";
|
|
11692
11692
|
/** @public */
|
|
11693
|
-
const version = "8.0.
|
|
11693
|
+
const version = "8.0.4";
|
|
11694
11694
|
/** @public */
|
|
11695
11695
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
11696
11696
|
|
package/node.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./dist/types/index";
|
package/node.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./dist/cjs/index");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-validate",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.4",
|
|
4
4
|
"description": "Offline html5 validator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"html",
|
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"require": "./dist/cjs/browser.js",
|
|
41
41
|
"import": "./dist/es/browser.js"
|
|
42
42
|
},
|
|
43
|
+
"./node": {
|
|
44
|
+
"types": "./dist/types/index.d.ts",
|
|
45
|
+
"require": "./dist/cjs/index.js",
|
|
46
|
+
"import": "./dist/es/index.js"
|
|
47
|
+
},
|
|
43
48
|
"./dist/cjs/*": "./dist/cjs/*",
|
|
44
49
|
"./dist/es/*": "./dist/es/*",
|
|
45
50
|
"./dist/schema/*": "./dist/schema/*",
|
|
@@ -67,6 +72,7 @@
|
|
|
67
72
|
"dist",
|
|
68
73
|
"elements",
|
|
69
74
|
"browser.{js,d.ts}",
|
|
75
|
+
"node.{js,d.ts}",
|
|
70
76
|
"jest.{js,d.ts}",
|
|
71
77
|
"test-utils.{js,d.ts}"
|
|
72
78
|
],
|
|
@@ -208,7 +214,7 @@
|
|
|
208
214
|
"memfs": "3.5.3",
|
|
209
215
|
"npm-pkg-lint": "1.14.1",
|
|
210
216
|
"npm-run-all": "4.1.5",
|
|
211
|
-
"rollup": "3.
|
|
217
|
+
"rollup": "3.25.0",
|
|
212
218
|
"stream-buffers": "3.0.2",
|
|
213
219
|
"ts-jest": "29.1.0",
|
|
214
220
|
"typescript": "5.1.3"
|