amphtml-validator
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "amphtml-validator", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Validator for AMP HTML (www.ampproject.org)", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -50,8 +50,8 @@ # amphtml-validator Node.js package (Beta!) | ||
amphtmlValidator.getInstance().then((validator) => { | ||
const result = validator.validateString('<html>Hello, world.</html>'); | ||
amphtmlValidator.getInstance().then(function (validator) { | ||
var result = validator.validateString('<html>Hello, world.</html>'); | ||
((result.status === 'PASS') ? console.log : console.error)(result.status); | ||
for (var ii = 0; ii < result.errors.length; ii++) { | ||
var error = result.errors[ii]; | ||
let msg = 'line ' + error.line + ', col ' + error.col + ': ' + error.message; | ||
var msg = 'line ' + error.line + ', col ' + error.col + ': ' + error.message; | ||
if (error.specUrl !== null) { | ||
@@ -58,0 +58,0 @@ msg += ' (see ' + error.specUrl + ')'; |
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
25519