amp-site-validator
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -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 @@ } |
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
4066
50
+ Addedasync-functions-pool@1.0.1(transitive)
- Removedasync-functions-pool@1.0.0(transitive)
Updatedasync-functions-pool@^1.0.0