Socket
Socket
Sign inDemoInstall

weather-api

Package Overview
Dependencies
5
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Low level API abstractions for weather services.",
"version": "0.0.5",
"version": "0.0.6",
"homepage": "https://github.com/justjohn/weather-api",

@@ -8,0 +8,0 @@ "licenses": [

@@ -15,34 +15,2 @@ var API = require('common-api').API,

WeatherUnderground.prototype.call2 = function(path) {
var deferred = Q.defer();
var options = {
host: 'api.wunderground.com',
port: 80,
path: '/api/' + this.api_key + path,
method: 'GET'
};
var req = http.request(options, function(res) {
var output = '';
res.setEncoding('utf8');
res.on('data', function (chunk) {
output += chunk;
});
res.on('end', function () {
var json = JSON.parse(output);
deferred.resolve(json);
});
});
req.on('error', function(e) {
deferred.reject('problem with request: ' + e.message);
});
req.end();
return deferred.promise;
};
WeatherUnderground.prototype.geoforecast = function() {

@@ -49,0 +17,0 @@ var deferred = Q.defer();

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