respec 34.5.0 → 35.0.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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "respec",
3
- "version": "34.5.0",
3
+ "version": "35.0.1",
4
4
  "license": "W3C",
5
5
  "description": "A technical specification pre-processor.",
6
6
  "engines": {
7
- "node": ">=18.14"
7
+ "node": ">=20.12.1"
8
8
  },
9
- "packageManager": "pnpm@8.15.4",
9
+ "packageManager": "pnpm@8.15.6",
10
10
  "bin": {
11
11
  "respec": "tools/respec2html.js",
12
12
  "respec2html": "tools/respec2html.js"
@@ -54,12 +54,12 @@
54
54
  "pluralize": "^8.0.0",
55
55
  "prettier": "^3.2.5",
56
56
  "prompt": "^1.3.0",
57
- "rollup": "^4.12.1",
57
+ "rollup": "^4.14.1",
58
58
  "rollup-plugin-minify-html-literals": "^1.2.6",
59
59
  "serve": "^14.2.1",
60
60
  "serve-handler": "^6.1.5",
61
61
  "sniffy-mimetype": "^1.1.1",
62
- "typescript": "^5.4.2",
62
+ "typescript": "^5.4.5",
63
63
  "vnu-jar": "^23.4.11",
64
64
  "webidl2": "^24.4.1"
65
65
  },
@@ -89,7 +89,7 @@
89
89
  "colors": "1.4.0",
90
90
  "finalhandler": "^1.2.0",
91
91
  "marked": "^12.0.1",
92
- "puppeteer": "^22.4.1",
92
+ "puppeteer": "^22.6.3",
93
93
  "sade": "^1.8.1",
94
94
  "serve-static": "^1.15.0"
95
95
  },
@@ -132,7 +132,7 @@ export async function toHTML(src, options = {}) {
132
132
  async function useLocalReSpec(page, log) {
133
133
  await page.setRequestInterception(true);
134
134
 
135
- page.on("request", async function requestInterceptor(request) {
135
+ page.on("request", async request => {
136
136
  if (!isRespecScript(request)) {
137
137
  await request.continue();
138
138
  return;
@@ -148,9 +148,6 @@ async function useLocalReSpec(page, log) {
148
148
  contentType: "text/javascript; charset=utf-8",
149
149
  body: await readFile(localPath),
150
150
  });
151
- // Workaround for https://github.com/puppeteer/puppeteer/issues/4208
152
- page.off("request", requestInterceptor);
153
- await page.setRequestInterception(false);
154
151
  });
155
152
  }
156
153
 
@@ -163,9 +160,7 @@ function isRespecScript(req) {
163
160
  const { host, pathname: path } = new URL(req.url());
164
161
  switch (host) {
165
162
  case "www.w3.org":
166
- return (
167
- path.startsWith("/Tools/respec/") && !path.includes("respec-highlight")
168
- );
163
+ return path.startsWith("/Tools/respec/");
169
164
  case "w3c.github.io":
170
165
  return path.startsWith("/respec/builds/");
171
166
  default: