flytrack
Advanced tools
Comparing version 0.0.9 to 1.0.0
{ | ||
"name": "flytrack", | ||
"version": "0.0.9", | ||
"version": "1.0.0", | ||
"description": "track flights and more using an api key", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -8,18 +8,16 @@ // FLYTRACK ALLGLOBALFLIGHTINFO FILE | ||
var Main = function(apikey) { | ||
// make sure apikey is a string | ||
if (typeof apikey != 'string') apikey = JSON.stringify(apikey) | ||
function agFI(cb) { | ||
http('https://aviation-edge.com/v2/public/flights?key=' + apikey, function (error, response, body) { | ||
if (response.statusCode === 200) { | ||
console.log('statusCode: ', response && response.statusCode) | ||
console.log('body: ', body) | ||
} | ||
console.log('statusCode for agFI: ', response.statusCode) | ||
// console.log('body: ', body) | ||
if (error) { | ||
console.warn('error:', error); | ||
} | ||
return body; | ||
}); | ||
} | ||
} | ||
module.exports.get = Main; |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
5341
23