Socket
Socket
Sign inDemoInstall

amphtml-validator

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amphtml-validator - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

2

package.json
{
"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 + ')';

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc