Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,5 @@ | ||
## 0.6.1 | ||
* Fixed bug in forward geococoding | ||
## 0.6.0 | ||
@@ -2,0 +6,0 @@ |
var compile = require('es6-template-strings/compile'); | ||
module.exports.DEFAULT_ENDPOINT = 'https://api.mapbox.com'; | ||
module.exports.API_GEOCODER_FORWARD = compile('${endpoint}/v4/geocode/${dataset}/${encodeURIComponent(query)}.json?${query}'); | ||
module.exports.API_GEOCODER_FORWARD = compile('${endpoint}/v4/geocode/${dataset}/${encodeURIComponent(forwardQuery)}.json?${query}'); | ||
module.exports.API_GEOCODER_REVERSE = compile('${endpoint}/v4/geocode/${dataset}/${location.longitude},${location.latitude}.json?${query}'); | ||
@@ -6,0 +6,0 @@ module.exports.API_DIRECTIONS = compile('${endpoint}/v4/directions/${profile}/${encodedWaypoints}.json?${query}'); |
@@ -69,3 +69,3 @@ 'use strict'; | ||
var url = makeURL(this, constants.API_GEOCODER_FORWARD, { | ||
query: query, | ||
forwardQuery: query, | ||
dataset: dataset | ||
@@ -72,0 +72,0 @@ }, queryOptions); |
{ | ||
"name": "mapbox", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "interface to mapbox services", | ||
@@ -10,3 +10,5 @@ "main": "lib/client.js", | ||
"docs": "documentation . --format=md > API.md", | ||
"build": "browserify -s MapboxClient lib/client.js > dist/mapbox-sdk.js" | ||
"build": "npm run build-dist && npm run build-min", | ||
"build-dist": "browserify -s MapboxClient lib/client.js > dist/mapbox-sdk.js", | ||
"build-min": "uglifyjs -c -m < dist/mapbox-sdk.js > dist/mapbox-sdk.min.js" | ||
}, | ||
@@ -13,0 +15,0 @@ "repository": { |
@@ -47,2 +47,3 @@ /* eslint no-shadow: 0 */ | ||
t.deepEqual(geojsonhint.hint(results), [], 'results are valid'); | ||
t.equal(geojsonhint.hint(results.features[0]).length, 0, 'at least one valid result'); | ||
t.end(); | ||
@@ -49,0 +50,0 @@ }); |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
193087
31
3208
2
24
4