amphtml-validator
Advanced tools
Comparing version 1.0.26 to 1.0.27
@@ -138,3 +138,3 @@ #!/usr/bin/env node | ||
} | ||
out += ' [' + error.category + ']\n'; | ||
out += '\n'; | ||
} | ||
@@ -191,4 +191,3 @@ | ||
.splice(1) // trim 1st line | ||
.join('\n') | ||
.replace(/ \[[A-Z_]+\]/g, ''); // trim error categories | ||
.join('\n'); | ||
execFile( | ||
@@ -251,4 +250,3 @@ process.execPath, | ||
.splice(1) // trim 1st line | ||
.join('\n') | ||
.replace(/ \[[A-Z_]+\]/g, ''); // trim error categories | ||
.join('\n'); | ||
execFile( | ||
@@ -255,0 +253,0 @@ process.execPath, |
@@ -199,10 +199,2 @@ #!/usr/bin/env node | ||
/** | ||
* Categorizes error messages into higher-level groups. This makes it | ||
* easier to create error statistics across a site and give advice based | ||
* on the most common problems for a set of pages. | ||
* See the ErrorCategory.Code enum in validator.proto for possible values. | ||
* @type {string} | ||
*/ | ||
this.category = 'UNKNOWN'; | ||
/** | ||
* This field is only useful when scripting against the validator, | ||
@@ -280,3 +272,2 @@ * it should not be displayed in a user interface as it adds nothing | ||
error.params = internalError.params; | ||
error.category = this.sandbox.amp.validator.categorizeError(internalError); | ||
result.errors.push(error); | ||
@@ -283,0 +274,0 @@ } |
{ | ||
"name": "amphtml-validator", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "Official validator for AMP HTML (www.ampproject.org)", | ||
@@ -13,3 +13,3 @@ "keywords": [ | ||
"engines": { | ||
"node": "^10.0.0" | ||
"node": "^12.0.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "author": "The AMP HTML Authors", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30729
720