warehouse.ai-api-client
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "warehouse.ai-api-client", | ||
"description": "Node.JS API to communicate with warehouse.ai", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -9,2 +9,3 @@ const debug = require('diagnostics')('warehouse.ai-api-client:verify'); | ||
this.wrhs = wrhs; | ||
this.strictSSL = wrhs.strictSSL; | ||
this.conc = wrhs.conc || 10; | ||
@@ -44,8 +45,8 @@ this.dry = wrhs.dry; | ||
debug(`${buildId} | Verify assets`); | ||
async.map(urls, function getOne(uri, next) { | ||
async.map(urls, (uri, next) => { | ||
debug(`${buildId} | Fetch ${uri}`); | ||
request.get(uri, (err, res) => { | ||
request.get(uri, { strictSSL: this.strictSSL }, (err, res) => { | ||
if (err || res.statusCode !== 200) { | ||
debug(`${buildId} | Fail ${uri}: ${err || res.statusCode}`); | ||
return next(null, url); | ||
return next(null, uri); | ||
} | ||
@@ -52,0 +53,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
24921
645