Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amp-site-validator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amp-site-validator - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

2

index.js

@@ -15,2 +15,2 @@ const pool = require('async-functions-pool')();

async () =>
await validator.validateString(await fetch(url).then(res => res.text()));
({url, ...await validator.validateString(await fetch(url).then(res => res.text()))});
{
"name": "amp-site-validator",
"version": "1.0.0",
"version": "2.0.0",
"description": "Full site AMP Pages validator",

@@ -29,3 +29,3 @@ "main": "index.js",

"amphtml-validator": "^1.0.23",
"async-functions-pool": "1.0.0",
"async-functions-pool": "^1.0.0",
"node-fetch": "^2.2.0"

@@ -32,0 +32,0 @@ },

@@ -19,3 +19,4 @@ # amp-site-validator | Full site AMP Pages validator

async function run(){
const results = await validator(urlGenerator, 10); // This will fetch and validate 10 pages at the same time
// This will fetch and validate 10 pages at the same time
const results = await validator(urlGenerator, 10);
console.log(results);

@@ -22,0 +23,0 @@ }

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