respec 37.4.0 → 37.5.0
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/builds/respec-aom.js +120 -120
- package/builds/respec-aom.js.map +1 -1
- package/builds/respec-dini.js +106 -106
- package/builds/respec-dini.js.map +1 -1
- package/builds/respec-highlight.js +1 -1
- package/builds/respec-w3c.js +421 -421
- package/builds/respec-w3c.js.map +1 -1
- package/package.json +15 -15
- package/tools/respec2html.js +9 -2
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "respec",
|
|
3
|
-
"version": "37.
|
|
3
|
+
"version": "37.5.0",
|
|
4
4
|
"license": "W3C",
|
|
5
5
|
"description": "A technical specification pre-processor.",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24"
|
|
8
8
|
},
|
|
9
|
-
"packageManager": "pnpm@
|
|
9
|
+
"packageManager": "pnpm@12.10.0",
|
|
10
10
|
"bin": {
|
|
11
11
|
"respec": "tools/respec2html.js",
|
|
12
12
|
"respec2html": "tools/respec2html.js"
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"@eslint/js": "^10.0.1",
|
|
28
28
|
"@rollup/plugin-commonjs": "^29.0.3",
|
|
29
29
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
30
|
-
"@rollup/plugin-terser": "^1.0.
|
|
30
|
+
"@rollup/plugin-terser": "^1.0.2",
|
|
31
31
|
"@types/pluralize": "0.0.33",
|
|
32
|
-
"boxen": "^
|
|
32
|
+
"boxen": "^9.0.0",
|
|
33
33
|
"cddlparser": "^0.6.0",
|
|
34
|
-
"chokidar": "^
|
|
34
|
+
"chokidar": "^6.0.0",
|
|
35
35
|
"epipebomb": "^1.0.0",
|
|
36
|
-
"eslint": "^10.
|
|
36
|
+
"eslint": "^10.14.0",
|
|
37
37
|
"eslint-config-prettier": "^10.1.8",
|
|
38
38
|
"eslint-plugin-import-x": "^4.17.1",
|
|
39
39
|
"eslint-plugin-jasmine": "^4.2.2",
|
|
40
|
-
"eslint-plugin-prettier": "^5.5.
|
|
41
|
-
"globals": "^17.
|
|
40
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
41
|
+
"globals": "^17.13.0",
|
|
42
42
|
"highlight.js": "^11.12.0",
|
|
43
43
|
"hyperhtml": "^2.34.2",
|
|
44
|
-
"idb": "^8.0.
|
|
44
|
+
"idb": "^8.0.4",
|
|
45
45
|
"jasmine": "^7.0.0",
|
|
46
46
|
"jasmine-core": "^7.0.2",
|
|
47
47
|
"karma": "^6.4.4",
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
"karma-jasmine": "^5.1.0",
|
|
51
51
|
"karma-mocha-reporter": "^2.2.5",
|
|
52
52
|
"karma-safari-launcher": "^1.0.0",
|
|
53
|
-
"lint-staged": "^17.
|
|
53
|
+
"lint-staged": "^17.6.0",
|
|
54
54
|
"loading-indicator": "^2.0.0",
|
|
55
55
|
"pluralize": "^8.0.0",
|
|
56
|
-
"prettier": "^3.9.
|
|
56
|
+
"prettier": "^3.9.10",
|
|
57
57
|
"prompt": "^1.3.0",
|
|
58
|
-
"rollup": "^4.
|
|
58
|
+
"rollup": "^4.67.3",
|
|
59
59
|
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
60
60
|
"serve": "^14.2.6",
|
|
61
61
|
"serve-handler": "^6.1.7",
|
|
62
62
|
"simple-git-hooks": "^2.14.0",
|
|
63
63
|
"sniffy-mimetype": "^1.1.1",
|
|
64
64
|
"typescript": "^7.0.2",
|
|
65
|
-
"vnu-jar": "^26.
|
|
65
|
+
"vnu-jar": "^26.10.12",
|
|
66
66
|
"webidl2": "^24.5.0"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"finalhandler": "^2.1.1",
|
|
91
|
-
"marked": "^18.
|
|
92
|
-
"puppeteer": "^25.
|
|
91
|
+
"marked": "^18.1.2",
|
|
92
|
+
"puppeteer": "^25.16.0",
|
|
93
93
|
"sade": "^1.8.1",
|
|
94
94
|
"serve-static": "^2.2.1"
|
|
95
95
|
},
|
package/tools/respec2html.js
CHANGED
|
@@ -19,7 +19,7 @@ class Renderer extends marked.Renderer {
|
|
|
19
19
|
return styleText("italic", this.parser.parseInline(token.tokens));
|
|
20
20
|
}
|
|
21
21
|
codespan(token) {
|
|
22
|
-
return styleText("
|
|
22
|
+
return styleText("cyan", `\`${unescape(token.text)}\``);
|
|
23
23
|
}
|
|
24
24
|
paragraph(token) {
|
|
25
25
|
return unescape(this.parser.parseInline(token.tokens));
|
|
@@ -108,7 +108,7 @@ class Logger {
|
|
|
108
108
|
console.error(
|
|
109
109
|
" ",
|
|
110
110
|
styleText("bold", paddedTitle),
|
|
111
|
-
this._formatMarkdown(value)
|
|
111
|
+
this._reindent(this._formatMarkdown(value), paddedTitle.length + 3)
|
|
112
112
|
);
|
|
113
113
|
};
|
|
114
114
|
print("Count", rsError.elements && String(rsError.elements.length));
|
|
@@ -130,6 +130,13 @@ class Logger {
|
|
|
130
130
|
(!!rsError.cause?.stack || rsError.plugin === "unknown")
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @param {string} text
|
|
136
|
+
*/
|
|
137
|
+
_reindent(text, padding = 0) {
|
|
138
|
+
return text.replaceAll("\n", `\n${" ".repeat(padding)}`);
|
|
139
|
+
}
|
|
133
140
|
}
|
|
134
141
|
|
|
135
142
|
class StaticServer {
|