Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
geocoder: function (key, options) {
var params = APIKeyCheck.getKeyAndOptions(key, options);
return new MapzenControlGeocoder.class(params.key, params.options); // eslint-disable-line
},
module.exports.controlGeocoder = function (key, options) {
var params = APIKeyCheck.getKeyAndOptions(key, options);
if (!APIKeyCheck.isValidMapzenApiKey(params.key)) {
APIKeyCheck.throwApiKeyWarning('Search');
}
return new MapzenControlGeocoder.class(params.key, params.options); // eslint-disable-line
};