New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

webflight-traffic

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webflight-traffic - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

17

index.js

@@ -0,5 +1,6 @@

var defaults = require('lodash.defaults');
var each = require('lodash.foreach');
var geolib = require('geolib');
var planefinder = require('planefinder');
var sbs1 = require('sbs1');
var _ = require('underscore');
var arDroneConstants = require('ar-drone/lib/constants')

@@ -33,5 +34,4 @@

var nowMillis = new Date().getTime();
keys = _.keys(traffic);
_.each(keys, function(key) {
var age = nowMillis - traffic[key].timestamp;
each(traffic, function(value, key) {
var age = nowMillis - value.timestamp;
if (age >= messageTimeout) {

@@ -52,3 +52,3 @@ console.log('Expired old traffic ID ' + key);

msg.timestamp = new Date().getTime();
traffic[id] = _.defaults(msg, traffic[id] || {});
traffic[id] = defaults(msg, traffic[id] || {});
});

@@ -61,3 +61,3 @@ sbs1Client.on('error', function(err) {

var handlePlanefinderData = function(planes) {
_.each(planes, function(plane) {
each(planes, function(plane) {
traffic[plane.hex_ident] = plane;

@@ -73,7 +73,6 @@ });

}
defaults = {
defaults(config.planefinder, {
faa: false,
maxDistance: 30000
};
_.defaults(config.planefinder, defaults);
});
// Find bounds.

@@ -80,0 +79,0 @@ var dronePosition = {

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

"author": "John Wiseman <jjwiseman@gmail.com> (http://lemondronor.com)",
"version": "0.1.0",
"version": "0.1.1",
"main": "./index.js",

@@ -11,5 +11,6 @@ "dependencies": {

"geolib": "~1.3.1",
"lodash.defaults": "~2.2.0",
"lodash.foreach": "~2.2.0",
"planefinder": "~0.0.3",
"sbs1": "~0.2.2",
"underscore": "~1.5.2"
"sbs1": "~0.2.2"
},

@@ -16,0 +17,0 @@ "devDependencies": {},

@@ -7,3 +7,3 @@ # webflight-traffic

![Screenshot](traffic-screenshot.jpg "Screenshot")
![Screenshot](https://raw.github.com/wiseman/webflight-traffic/master/traffic-screenshot.jpg "Screenshot")

@@ -10,0 +10,0 @@ For background, see ["Cheap ADS-B on amateur

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc