weathercompanyapi-node
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -84,2 +84,3 @@ /** | ||
self.query = 'geocode/' + lat + '/' + lng; | ||
self.apiVersion = 'v1'; | ||
return this; | ||
@@ -97,2 +98,3 @@ }; | ||
self.query = 'location/' + postal.trim() + ':4:' + country.trim(); | ||
self.apiVersion = 'v1'; | ||
return this; | ||
@@ -132,3 +134,3 @@ }; | ||
* @param method {string} | ||
* @param callback {function} | ||
* @param [callback] {function} | ||
* @returns {*} | ||
@@ -189,5 +191,9 @@ */ | ||
} catch (err) { | ||
// console.error('Exception caught in JSON.parse', body); | ||
err.body = body; | ||
error = err; | ||
/* istanbul ignore next */ | ||
(function () { | ||
// console.error('Exception caught in JSON.parse', body); | ||
err.body = body; | ||
error = err; | ||
}) | ||
} | ||
@@ -194,0 +200,0 @@ } |
{ | ||
"name": "weathercompanyapi-node", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Node Client to access The Weather Company API", | ||
@@ -5,0 +5,0 @@ "main": "./lib/weathercompanyapi-node", |
@@ -47,3 +47,13 @@ # weathercompanyapi-node | ||
0.0.2 Fixed a packaging issue | ||
0.0.3 Added hourly forecast | ||
0.0.4 Verify ApiKey and throw error if missing | ||
0.0.5 Allow using a promise on `call` method | ||
0.0.6 Fixed problem with API Version getting overwritten | ||
## License | ||
Copyright (c) 2017 Dan Wilson & Skydrop, LLC. Licensed under the MIT license. | ||
Copyright (c) 2017 Dan Wilson & Skydrop, LLC. Licensed under the MIT license. See LICENSE. |
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
498
58
21769
5