@corpsmap/corpsmap 3.2.100 → 3.2.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dev.js +3 -1
- package/lib/prod.js +3 -1
- package/package.json +1 -1
- package/src/core-plugins/geocoder/bundle.js +2 -0
package/lib/dev.js
CHANGED
|
@@ -109858,7 +109858,7 @@ var config = {
|
|
|
109858
109858
|
};
|
|
109859
109859
|
|
|
109860
109860
|
var name = "@corpsmap/corpsmap";
|
|
109861
|
-
var version$1 = "3.2.
|
|
109861
|
+
var version$1 = "3.2.102";
|
|
109862
109862
|
var description = "CorpsMap as React Components";
|
|
109863
109863
|
var main = "index.js";
|
|
109864
109864
|
var scripts = {
|
|
@@ -143096,7 +143096,9 @@ var bundle$6 = {
|
|
|
143096
143096
|
q = encodeURIComponent(q);
|
|
143097
143097
|
apiGet("https://api.mapbox.com/geocoding/v5/mapbox.places/".concat(q, ".json?proximity=").concat(c.toString()).concat(countries && countries.length ? "&country=".concat(countries.join(",")) : "", "&access_token=").concat(mapboxToken), function (err, response, body) {
|
|
143098
143098
|
if (err) return callback(err);
|
|
143099
|
+
if (response.status !== 200) return callback(null, []);
|
|
143099
143100
|
var results = JSON.parse(body);
|
|
143101
|
+
if (!results.features) return callback(null, []);
|
|
143100
143102
|
return callback(null, results.features.map(function (r) {
|
|
143101
143103
|
var icon = "mdi mdi-map-marker";
|
|
143102
143104
|
|
package/lib/prod.js
CHANGED
|
@@ -109772,7 +109772,7 @@ var config = {
|
|
|
109772
109772
|
};
|
|
109773
109773
|
|
|
109774
109774
|
var name = "@corpsmap/corpsmap";
|
|
109775
|
-
var version$1 = "3.2.
|
|
109775
|
+
var version$1 = "3.2.102";
|
|
109776
109776
|
var description = "CorpsMap as React Components";
|
|
109777
109777
|
var main = "index.js";
|
|
109778
109778
|
var scripts = {
|
|
@@ -143010,7 +143010,9 @@ var bundle$6 = {
|
|
|
143010
143010
|
q = encodeURIComponent(q);
|
|
143011
143011
|
apiGet("https://api.mapbox.com/geocoding/v5/mapbox.places/".concat(q, ".json?proximity=").concat(c.toString()).concat(countries && countries.length ? "&country=".concat(countries.join(",")) : "", "&access_token=").concat(mapboxToken), function (err, response, body) {
|
|
143012
143012
|
if (err) return callback(err);
|
|
143013
|
+
if (response.status !== 200) return callback(null, []);
|
|
143013
143014
|
var results = JSON.parse(body);
|
|
143015
|
+
if (!results.features) return callback(null, []);
|
|
143014
143016
|
return callback(null, results.features.map(function (r) {
|
|
143015
143017
|
var icon = "mdi mdi-map-marker";
|
|
143016
143018
|
|
package/package.json
CHANGED
|
@@ -142,8 +142,10 @@ export default {
|
|
|
142
142
|
}&access_token=${mapboxToken}`,
|
|
143
143
|
(err, response, body) => {
|
|
144
144
|
if (err) return callback(err);
|
|
145
|
+
if (response.status !== 200) return callback(null, []);
|
|
145
146
|
|
|
146
147
|
const results = JSON.parse(body);
|
|
148
|
+
if (!results.features) return callback(null, []);
|
|
147
149
|
|
|
148
150
|
return callback(
|
|
149
151
|
null,
|