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.26 to 1.0.27

8

index_test.js

@@ -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",

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