Comparing version 0.7.0 to 0.8.0
@@ -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 @@ ] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
258303
39
5424
4
87
Updatedgeojsonhint@^1.1.0