Socket
Socket
Sign inDemoInstall

mapbox

Package Overview
Dependencies
Maintainers
1
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.6.0 to 0.6.1

dist/mapbox-sdk.min.js

4

CHANGELOG.md

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

## 0.6.1
* Fixed bug in forward geococoding
## 0.6.0

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

2

lib/constants.js
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

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