respec 33.0.3 → 34.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,6 +1,6 @@
1
1
  {
2
2
  "name": "respec",
3
- "version": "33.0.3",
3
+ "version": "34.0.1",
4
4
  "license": "W3C",
5
5
  "description": "A technical specification pre-processor.",
6
6
  "engines": {
@@ -44,7 +44,7 @@
44
44
  "jasmine": "^4.6.0",
45
45
  "jasmine-core": "^4.6.0",
46
46
  "karma": "^6.4.1",
47
- "karma-chrome-launcher": "^3.1.1",
47
+ "karma-chrome-launcher": "^3.2.0",
48
48
  "karma-firefox-launcher": "^2.1.2",
49
49
  "karma-jasmine": "^5.1.0",
50
50
  "karma-jasmine-html-reporter": "^2.0.0",
@@ -54,7 +54,7 @@
54
54
  "pluralize": "^8.0.0",
55
55
  "prettier": "^2.8.7",
56
56
  "prompt": "^1.3.0",
57
- "rollup": "^3.20.4",
57
+ "rollup": "^3.20.7",
58
58
  "rollup-plugin-minify-html-literals": "^1.2.6",
59
59
  "rollup-plugin-terser": "^7.0.2",
60
60
  "serve": "^14.2.0",
@@ -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.9.0",
93
+ "puppeteer": "^19.10.1",
94
94
  "sade": "^1.8.1",
95
95
  "serve-static": "^1.15.0"
96
96
  },
@@ -179,7 +179,11 @@ cli
179
179
  false
180
180
  )
181
181
  .option("-e, --haltonerror", "Abort if the spec has any errors.", false)
182
- .option("-w, --haltonwarn", "Abort if ReSpec generates warnings.", false)
182
+ .option(
183
+ "-w, --haltonwarn",
184
+ "Abort if ReSpec generates warnings (or errors).",
185
+ false
186
+ )
183
187
  .option("--disable-sandbox", "Disable Chromium sandboxing if needed.", false)
184
188
  .option("--devtools", "Enable debugging and show Chrome's DevTools.", false)
185
189
  .option("--verbose", "Log processing status to stdout.", false)
@@ -248,7 +252,8 @@ async function run(source, destination, options, log) {
248
252
  });
249
253
 
250
254
  const exitOnError = errors.length && options.haltonerror;
251
- const exitOnWarning = warnings.length && options.haltonwarn;
255
+ const exitOnWarning =
256
+ (warnings.length || errors.length) && options.haltonwarn;
252
257
  if (exitOnError || exitOnWarning) {
253
258
  throw new Error(
254
259
  `${exitOnError ? "Errors" : "Warnings"} found during processing.`