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.22 to 1.0.23

6

index.js

@@ -407,3 +407,3 @@ #!/usr/bin/env node

.option(
'--html_format <AMP|AMP4ADS|EXPERIMENTAL>',
'--html_format <AMP|AMP4ADS|AMP4EMAIL|EXPERIMENTAL>',
'The input format to be validated.\n' +

@@ -428,5 +428,7 @@ ' AMP by default.',

if (program.html_format !== 'AMP' && program.html_format !== 'AMP4ADS' &&
program.html_format !== 'AMP4EMAIL' &&
program.html_format !== 'EXPERIMENTAL') {
process.stderr.write(
'--html_format must be set to "AMP", "AMP4ADS", or "EXPERIMENTAL.\n',
'--html_format must be set to "AMP", "AMP4ADS", "AMP4EMAIL", or ' +
'"EXPERIMENTAL.\n',
function() {

@@ -433,0 +435,0 @@ process.exit(1);

{
"name": "amphtml-validator",
"version": "1.0.22",
"version": "1.0.23",
"description": "Official validator for AMP HTML (www.ampproject.org)",

@@ -22,3 +22,3 @@ "keywords": [

"bin": {
"amphtml-validator": "index.sh"
"amphtml-validator": "index.js"
},

@@ -32,6 +32,3 @@ "dependencies": {

"jasmine": "2.3.2"
},
"scripts": {
"postinstall": "/bin/sh -c \"exit 0\" 2> postinstall.DELETEME && rm postinstall.DELETEME || node postinstall-windows.js"
}
}

@@ -91,1 +91,6 @@ # amphtml-validator Node.js Package

* --html_format=AMP4EMAIL added.
### 1.0.23
* The amphtml-validator binary now requires the Node.js binary to be called node.
On systems where the Node.js binary is called nodejs, consider installing
the nodejs-legacy Debian package or better yet, NVM.
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