Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osrm-text-instructions

Package Overview
Dependencies
Maintainers
7
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osrm-text-instructions - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

test/fixtures/v5/other/way_name_ref_mapbox_hack_3.json

4

CHANGELOG.md

@@ -8,2 +8,6 @@ # Change Log

## 0.0.4 2016-10-20
- Fix Mapbox API inconsistency with ref/name
## 0.0.3 2016-10-19

@@ -10,0 +14,0 @@

@@ -120,4 +120,13 @@ var instructions = require('./instructions.json');

var wayName;
var name = (step.name || '').replace(' (' + step.ref + ')', ''); // Remove hack from Mapbox Directions mixing ref into name
var name = step.name || '';
var ref = (step.ref || '').split(';')[0];
// Remove hacks from Mapbox Directions mixing ref into name
if (name === step.ref) {
// if both are the same we assume that there used to be an empty name, with the ref being filled in for it
// we only need to retain the ref then
name = '';
}
name = name.replace(' (' + step.ref + ')', '');
if (name && ref && name !== ref) {

@@ -124,0 +133,0 @@ wayName = name + ' (' + ref + ')';

2

package.json

@@ -6,3 +6,3 @@ {

"homepage": "http://project-osrm.org",
"version": "0.0.3",
"version": "0.0.4",
"main": "./index.js",

@@ -9,0 +9,0 @@ "license": "BSD-2-Clause",

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