Socket
Socket
Sign inDemoInstall

flytrack

Package Overview
Dependencies
47
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.9 to 1.0.0

2

package.json
{
"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;
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