respec 33.0.0 → 33.0.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/builds/respec-aom.js +3 -3
- package/builds/respec-aom.js.map +1 -1
- package/builds/respec-dini.js +3 -3
- package/builds/respec-dini.js.map +1 -1
- package/builds/respec-geonovum.js +3 -3
- package/builds/respec-geonovum.js.map +1 -1
- package/builds/respec-w3c.js +33 -33
- package/builds/respec-w3c.js.map +1 -1
- package/package.json +5 -5
- package/tools/respec2html.js +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "respec",
|
|
3
|
-
"version": "33.0.
|
|
3
|
+
"version": "33.0.2",
|
|
4
4
|
"license": "W3C",
|
|
5
5
|
"description": "A technical specification pre-processor.",
|
|
6
6
|
"engines": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"Robin Berjon"
|
|
25
25
|
],
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@rollup/plugin-alias": "^
|
|
27
|
+
"@rollup/plugin-alias": "^5.0.0",
|
|
28
28
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
29
|
-
"@rollup/plugin-node-resolve": "^15.0.
|
|
29
|
+
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
30
30
|
"@types/marked": "^4.0.8",
|
|
31
31
|
"@types/pluralize": "0.0.29",
|
|
32
32
|
"boxen": "^7.0.2",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"serve": "^14.2.0",
|
|
61
61
|
"serve-handler": "^6.1.5",
|
|
62
62
|
"sniffy-mimetype": "^1.1.1",
|
|
63
|
-
"typescript": "^5.0.
|
|
63
|
+
"typescript": "^5.0.3",
|
|
64
64
|
"vnu-jar": "^22.9.29",
|
|
65
65
|
"webidl2": "^24.2.2"
|
|
66
66
|
},
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"colors": "1.4.0",
|
|
91
91
|
"finalhandler": "^1.2.0",
|
|
92
92
|
"marked": "^4.3.0",
|
|
93
|
-
"puppeteer": "^19.8.
|
|
93
|
+
"puppeteer": "^19.8.3",
|
|
94
94
|
"sade": "^1.8.1",
|
|
95
95
|
"serve-static": "^1.15.0"
|
|
96
96
|
},
|
package/tools/respec2html.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { readFile, writeFile } from "fs/promises";
|
|
2
3
|
import colors from "colors";
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
3
5
|
import finalhandler from "finalhandler";
|
|
4
6
|
import http from "http";
|
|
5
7
|
import { marked } from "marked";
|
|
@@ -7,7 +9,8 @@ import path from "path";
|
|
|
7
9
|
import sade from "sade";
|
|
8
10
|
import serveStatic from "serve-static";
|
|
9
11
|
import { toHTML } from "./respecDocWriter.js";
|
|
10
|
-
|
|
12
|
+
|
|
13
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
11
14
|
|
|
12
15
|
class Renderer extends marked.Renderer {
|
|
13
16
|
strong(text) {
|
|
@@ -204,8 +207,9 @@ cli.action(async (source, destination, opts) => {
|
|
|
204
207
|
});
|
|
205
208
|
|
|
206
209
|
// https://github.com/lukeed/sade/issues/28#issuecomment-516104013
|
|
207
|
-
cli._version = () => {
|
|
208
|
-
const
|
|
210
|
+
cli._version = async () => {
|
|
211
|
+
const packageJson = path.join(__dirname, "..", "package.json");
|
|
212
|
+
const { version } = JSON.parse(await readFile(packageJson));
|
|
209
213
|
console.log(version);
|
|
210
214
|
};
|
|
211
215
|
|