html-validate 7.3.1 → 7.3.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/dist/cjs/core.js CHANGED
@@ -3187,7 +3187,7 @@ var TRANSFORMER_API;
3187
3187
  /** @public */
3188
3188
  const name = "html-validate";
3189
3189
  /** @public */
3190
- const version = "7.3.1";
3190
+ const version = "7.3.2";
3191
3191
  /** @public */
3192
3192
  const homepage = "https://html-validate.org";
3193
3193
  /** @public */
@@ -11620,7 +11620,7 @@ class Parser {
11620
11620
  consumeDirective(token) {
11621
11621
  const [text, , action, directive, end] = token.data;
11622
11622
  if (end === "") {
11623
- throw new Error(`Missing end bracket "]" on directive "${text}"`);
11623
+ throw new ParserError(token.location, `Missing end bracket "]" on directive "${text}"`);
11624
11624
  }
11625
11625
  const match = directive.match(/^(.*?)(?:\s*(?:--|:)\s*(.*))?$/);
11626
11626
  /* istanbul ignore next: should not be possible, would be emitted as comment token */