Socket
Socket
Sign inDemoInstall

mapbox

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

lib/services/distance.js

2

API.md

@@ -380,3 +380,3 @@ ## `MapboxClient`

var mapboxClient = new MapboxClient('ACCESSTOKEN');
mapboxClient.directions(
mapboxClient.getDirections(
[

@@ -383,0 +383,0 @@ { latitude: 33.6, longitude: -95.4431 },

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

## 0.8.0
- Added support for the [Distance API](https://www.mapbox.com/blog/distance-api/)
## 0.7.0

@@ -2,0 +6,0 @@

@@ -8,2 +8,3 @@ // We keep all of the constants that declare endpoints in one

module.exports.API_DIRECTIONS = '/v4/directions/{profile}/{encodedWaypoints}.json';
module.exports.API_DISTANCE = '/distances/v1/mapbox/{profile}';
module.exports.API_SURFACE = '/v4/surface/{mapid}.json{?layer,fields,points,geojson,interpolate,encoded_polyline}';

@@ -10,0 +11,0 @@ module.exports.API_UPLOADS = '/uploads/v1/{owner}';

@@ -87,4 +87,8 @@ 'use strict';

* // "attributes": [
* // {attributename},
* // {attributename},
* // {
* // "attribute": {attributename},
* // "min": 0,
* // "max": 10,
* // "values": [0, 10]
* // }
* // ]

@@ -91,0 +95,0 @@ * // }

{
"name": "mapbox",
"version": "0.7.0",
"version": "0.8.0",
"description": "interface to mapbox services",

@@ -49,3 +49,3 @@ "main": "lib/mapbox.js",

"es6-template-strings": "^1.0.0",
"geojsonhint": "^1.0.1",
"geojsonhint": "^1.1.0",
"hat": "0.0.3",

@@ -52,0 +52,0 @@ "invariant": "^2.1.0",

@@ -285,3 +285,10 @@ /* eslint no-shadow: 0 */

count: 110,
attributes: ['attr']
attributes: [
{
attribute: 'attr',
min: 2,
max: 2,
values: [2]
}
]
}

@@ -309,3 +316,10 @@ ]

count: 110,
attributes: ['attr']
attributes: [
{
attribute: 'attr',
min: 2,
max: 2,
values: [2]
}
]
}

@@ -312,0 +326,0 @@ ]

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