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

@mapquest/directions

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapquest/directions - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

9

index.js

@@ -85,3 +85,4 @@ 'use strict';

var trafficSegments = [], legSegments = [], maneuvers = [];
let trafficSegments = [], legSegments = [];
let maneuvers = route.legs.reduce((sum, leg) => sum.concat(leg.maneuvers), []);

@@ -115,6 +116,6 @@ routeFeatures.forEach(routeLineString => {

routeLineString.properties.maneuverIndexes.forEach( (index, idx) => {
maneuvers = zip(maneuvers, routeLineString.properties.maneuverIndexes).map(([maneuver,index]) => {
let pt = routeLineString.geometry.coordinates[index];
maneuvers.push(Point(pt, {id: routeLineString.properties.id, maneuverIndex: idx, component:'maneuver'}))
})
return Point(pt, Object.assign({id: routeLineString.properties.id, maneuverIndex: maneuver.index, component:'maneuver'}, maneuver));
});
});

@@ -121,0 +122,0 @@

{
"name": "@mapquest/directions",
"version": "0.3.1",
"version": "0.3.2",
"description": "JS interface to MapQuest Directions API. Returns GeoJSON with traffic segments.",

@@ -5,0 +5,0 @@ "main": "index.js",

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