Comparing version 2.5.0 to 2.5.1
@@ -132,2 +132,7 @@ const url = require('url'); | ||
if (!process.env.WOOT_API_KEY) { | ||
console.warn('WOOT_API_KEY environment variable is not set'); | ||
return callback(); | ||
} | ||
request.get(`http://api.woot.com/2/events.json?key=${process.env.WOOT_API_KEY}&select=Offers.Items.SalePrice,Offers.Title,Offers.Url`, { json: true }, function(err, res, events) { | ||
@@ -138,3 +143,3 @@ if (err) { | ||
if (!events.length) { | ||
if (!events || !events.length) { | ||
return callback(); | ||
@@ -141,0 +146,0 @@ } |
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "2.5.0" | ||
"version": "2.5.1" | ||
} |
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
113601
1815
12