Comparing version 1.0.9 to 1.0.10
@@ -61,3 +61,6 @@ 'use strict'; | ||
req({ url: this.url, json: true }, (err, res, body) => { | ||
err ? reject(`Forecast cannot be retrieved. ERROR: ${err}`) : null; | ||
if (err) { | ||
reject(`Forecast cannot be retrieved. ERROR: ${err}`) | ||
return | ||
} | ||
res.statusCode !== 200 ? reject(`Forecast cannot be retrieved. Response: ${res.statusCode} ${res.statusMessage}`) : null; | ||
@@ -64,0 +67,0 @@ resolve(body) |
{ | ||
"name": "dark-sky", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "A dead simple Dark Sky API wrapper for Nodejs using method chaining and promises.", | ||
@@ -5,0 +5,0 @@ "main": "dark-sky-api.js", |
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
4999
61