Socket
Socket
Sign inDemoInstall

weathercompanyapi-node

Package Overview
Dependencies
49
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.7 to 0.0.8

13

lib/weathercompanyapi-node.js

@@ -88,3 +88,2 @@ /**

self.query = 'geocode/' + lat + '/' + lng;
console.log('query', self.query);
self.apiVersion = 'v1';

@@ -116,3 +115,3 @@ return this;

* @param value {string}
* @param cb {function}
* @param [cb] {function}
* @returns {WeatherAPI}

@@ -122,4 +121,4 @@ * @throws Error

self.point = function (key, value, cb) {
if (!key || !value || !cb) {
throw new Error('Key, value and callback are required in point request');
if (!key || !value) {
throw new Error('Key and value are required in point request');
}

@@ -136,3 +135,3 @@ self.query = 'point?' + key + '=' + value;

* @param locationType {string}
* @param cb {function}
* @param [cb] {function}
* @returns {*}

@@ -142,4 +141,4 @@ * @throws Error

self.search = function (query, locationType, cb) {
if (!query || !locationType || !cb) {
throw new Error('Query, location type and callback are required in search request');
if (!query || !locationType) {
throw new Error('Query and location type are required in search request');
}

@@ -146,0 +145,0 @@ self.query = 'search?query=' + query + '&locationType=' + locationType;

{
"name": "weathercompanyapi-node",
"version": "0.0.7",
"version": "0.0.8",
"description": "Node Client to access The Weather Company API",

@@ -5,0 +5,0 @@ "main": "./lib/weathercompanyapi-node",

@@ -280,3 +280,3 @@ /**

err.should.be.Error();
err.message.should.equal('Query, location type and callback are required in search request');
err.message.should.equal('Query and location type are required in search request');
done();

@@ -386,3 +386,3 @@ }

err.should.be.Error();
err.message.should.equal('Key, value and callback are required in point request');
err.message.should.equal('Key and value are required in point request');
done();

@@ -389,0 +389,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc