respec 37.1.0 → 37.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "respec",
3
- "version": "37.1.0",
3
+ "version": "37.3.0",
4
4
  "license": "W3C",
5
5
  "description": "A technical specification pre-processor.",
6
6
  "engines": {
@@ -24,27 +24,26 @@
24
24
  "Robin Berjon"
25
25
  ],
26
26
  "devDependencies": {
27
- "@eslint/js": "^9.8.0",
28
- "@rollup/plugin-commonjs": "^29.0.2",
27
+ "@eslint/js": "^10.0.1",
28
+ "@rollup/plugin-commonjs": "^29.0.3",
29
29
  "@rollup/plugin-node-resolve": "^16.0.3",
30
30
  "@rollup/plugin-terser": "^1.0.0",
31
31
  "@types/pluralize": "0.0.33",
32
32
  "boxen": "^8.0.1",
33
33
  "cddlparser": "^0.6.0",
34
34
  "chokidar": "^5.0.0",
35
- "clean-css": "^5.3.3",
36
35
  "epipebomb": "^1.0.0",
37
- "eslint": "^9.8.0",
36
+ "eslint": "^10.8.1",
38
37
  "eslint-config-prettier": "^10.1.8",
39
- "eslint-plugin-import": "^2.32.0",
38
+ "eslint-plugin-import-x": "^4.17.1",
40
39
  "eslint-plugin-jasmine": "^4.2.2",
41
- "eslint-plugin-prettier": "^5.5.5",
42
- "globals": "^17.6.0",
43
- "highlight.js": "^11.11.1",
40
+ "eslint-plugin-prettier": "^5.5.6",
41
+ "globals": "^17.9.0",
42
+ "highlight.js": "^11.11.2",
44
43
  "hyperhtml": "^2.34.2",
45
44
  "idb": "^8.0.3",
46
- "jasmine": "^6.2.0",
47
- "jasmine-core": "^6.2.0",
45
+ "jasmine": "^6.3.0",
46
+ "jasmine-core": "^6.3.0",
48
47
  "karma": "^6.4.4",
49
48
  "karma-chrome-launcher": "^3.2.0",
50
49
  "karma-firefox-launcher": "^2.1.3",
@@ -52,19 +51,19 @@
52
51
  "karma-jasmine-html-reporter": "^2.2.0",
53
52
  "karma-mocha-reporter": "^2.2.5",
54
53
  "karma-safari-launcher": "^1.0.0",
55
- "lint-staged": "^17.0.4",
54
+ "lint-staged": "^17.3.0",
56
55
  "loading-indicator": "^2.0.0",
57
56
  "pluralize": "^8.0.0",
58
- "prettier": "^3.8.3",
57
+ "prettier": "^3.9.6",
59
58
  "prompt": "^1.3.0",
60
- "rollup": "^4.60.3",
59
+ "rollup": "^4.62.4",
61
60
  "rollup-plugin-minify-html-literals": "^1.2.6",
62
61
  "serve": "^14.2.6",
63
62
  "serve-handler": "^6.1.7",
64
63
  "simple-git-hooks": "^2.13.1",
65
64
  "sniffy-mimetype": "^1.1.1",
66
- "typescript": "^6.0.3",
67
- "vnu-jar": "^26.5.13",
65
+ "typescript": "^7.0.2",
66
+ "vnu-jar": "^26.8.6",
68
67
  "webidl2": "^24.5.0"
69
68
  },
70
69
  "scripts": {
@@ -92,8 +91,8 @@
92
91
  "dependencies": {
93
92
  "colors": "1.4.0",
94
93
  "finalhandler": "^2.1.1",
95
- "marked": "^18.0.3",
96
- "puppeteer": "^24.43.1",
94
+ "marked": "^18.0.9",
95
+ "puppeteer": "^25.5.0",
97
96
  "sade": "^1.8.1",
98
97
  "serve-static": "^2.2.1"
99
98
  },
@@ -122,7 +121,7 @@
122
121
  "vnu-jar"
123
122
  ],
124
123
  "overrides": {
125
- "fast-uri": ">=3.1.2",
124
+ "fast-uri": "^3.1.4",
126
125
  "flatted": ">=3.4.2",
127
126
  "follow-redirects": ">=1.16.0",
128
127
  "jasmine>glob": ">=10.5.0",
@@ -131,15 +130,19 @@
131
130
  "socket.io-parser": ">=4.2.6",
132
131
  "tmp": ">=0.2.4",
133
132
  "ws": ">=8.17.1",
134
- "eslint-plugin-import>minimatch": "^3.1.4",
135
- "eslint>minimatch": "^3.1.4",
136
- "eslint>brace-expansion": "^1.1.13",
137
- "minimatch>brace-expansion": "^1.1.13",
138
- "karma>minimatch": "^3.1.4",
139
- "jasmine>minimatch": "^9.0.7",
140
133
  "@rollup/pluginutils>picomatch": "^2.3.2",
141
134
  "@rollup/plugin-commonjs>picomatch": "^4.0.4",
142
- "anymatch>picomatch": "^2.3.2"
135
+ "anymatch>picomatch": "^2.3.2",
136
+ "ws@>=8.0.0 <8.21.0": ">=8.21.0",
137
+ "tmp@<0.2.6": ">=0.2.6",
138
+ "qs@>=6.11.1 <=6.15.1": ">=6.15.2",
139
+ "js-yaml@>=4.0.0 <=4.1.1": ">=4.2.0",
140
+ "cookie@<0.7.0": ">=0.7.0",
141
+ "engine.io": "^6.6.7",
142
+ "body-parser": "^1.20.6",
143
+ "brace-expansion@<1.1.16": "^1.1.16",
144
+ "brace-expansion@>=2.0.0 <2.1.2": "^2.1.2",
145
+ "brace-expansion@>=5.0.0 <5.0.8": "^5.0.8"
143
146
  }
144
147
  },
145
148
  "funding": {
@@ -83,6 +83,13 @@ class Logger {
83
83
  const header = colors.bgRed.white.bold("[FATAL]");
84
84
  const message = colors.red(error.stack || error);
85
85
  console.error(header, message);
86
+ // Errors thrown by respecDocWriter keep the original in `cause`, so the
87
+ // underlying stack is only reachable by walking the chain.
88
+ let cause = error instanceof Error ? error.cause : undefined;
89
+ for (let depth = 0; cause instanceof Error && depth < 5; depth++) {
90
+ console.error(colors.red(`Caused by: ${cause.stack}`));
91
+ cause = cause.cause;
92
+ }
86
93
  }
87
94
 
88
95
  _formatMarkdown(str) {
@@ -227,12 +227,12 @@ async function generateHTML(page, timer, version, url) {
227
227
  try {
228
228
  return await page.evaluate(evaluateHTML, timer);
229
229
  } catch (err) {
230
- const msg = `\n😭 Sorry, there was an error generating the HTML. Please report this issue!\n${`${
230
+ const msg = `\n😭 Sorry, there was an error generating the HTML. Please report this issue!\n${
231
231
  `Specification: ${url}\n` +
232
232
  `ReSpec version: ${version.join(".")}\n` +
233
233
  "File a bug: https://github.com/speced/respec/\n"
234
- }${err ? `Error: ${err.stack}\n` : ""}`}`;
235
- throw new Error(msg);
234
+ }`;
235
+ throw new Error(msg, { cause: err });
236
236
  }
237
237
  }
238
238