New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-control-geocoder

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-control-geocoder - npm Package Compare versions

Comparing version 1.5.6 to 1.5.7

.npmignore

31

dist/Control.Geocoder.js

@@ -57,2 +57,5 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.leafletControlGeocoder = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){

L.DomEvent.addListener(input, 'keydown', this._keydown, this);
if (this.options.geocoder.suggest) {
L.DomEvent.addListener(input, 'input', this._change, this);
}
L.DomEvent.addListener(input, 'blur', function() {

@@ -75,3 +78,3 @@ if (this.options.collapsed && !this._preventBlurCollapse) {

else if (L.Browser.touch && this.options.expand === 'touch') {
L.DomEvent.addListener(icon, 'touchstart', function(e) {
L.DomEvent.addListener(icon, 'touchstart mousedown', function(e) {
this._toggle();

@@ -271,3 +274,2 @@ e.preventDefault(); // mobile: clicking focuses the icon, so UI expands and immediately collapses

select(-1);
L.DomEvent.preventDefault(e);
break;

@@ -277,3 +279,2 @@ // Up

select(1);
L.DomEvent.preventDefault(e);
break;

@@ -289,15 +290,15 @@ // Enter

}
L.DomEvent.preventDefault(e);
break;
default:
var v = this._input.value;
if (this.options.geocoder.suggest && v !== this._lastGeocode) {
clearTimeout(this._suggestTimeout);
if (v.length >= this.options.suggestMinLength) {
this._suggestTimeout = setTimeout(L.bind(function() {
this._geocode(true);
}, this), this.options.suggestTimeout);
} else {
this._clearResults();
}
}
},
_change: function(e) {
var v = this._input.value;
if (v !== this._lastGeocode) {
clearTimeout(this._suggestTimeout);
if (v.length >= this.options.suggestMinLength) {
this._suggestTimeout = setTimeout(L.bind(function() {
this._geocode(true);
}, this), this.options.suggestTimeout);
} else {
this._clearResults();
}

@@ -304,0 +305,0 @@ }

{
"name": "leaflet-control-geocoder",
"version": "1.5.6",
"version": "1.5.7",
"description": "Extendable geocoder with builtin support for Nominatim, Bing, Google, Mapbox, Photon, What3Words, MapQuest, Mapzen, HERE",
"main": "dist/Control.Geocoder.js",
"scripts": {
"prepublish": "sh ./scripts/build.sh",
"prepare": "sh ./scripts/build.sh",
"publish": "sh ./scripts/publish.sh",

@@ -9,0 +9,0 @@ "postpublish": "sh ./scripts/postpublish.sh"

@@ -24,3 +24,3 @@ ## A few words on diversity in tech

* [Mapzen Search](https://mapzen.com/projects/search)
* [HERE Geocoder API] (https://developer.here.com/rest-apis/documentation/geocoder/topics/overview.html)
* [HERE Geocoder API](https://developer.here.com/documentation/geocoder/topics/introduction.html)

@@ -27,0 +27,0 @@ The plugin can easily be extended to support other providers. Current extensions:

@@ -55,2 +55,5 @@ var L = require('leaflet'),

L.DomEvent.addListener(input, 'keydown', this._keydown, this);
if (this.options.geocoder.suggest) {
L.DomEvent.addListener(input, 'input', this._change, this);
}
L.DomEvent.addListener(input, 'blur', function() {

@@ -73,3 +76,3 @@ if (this.options.collapsed && !this._preventBlurCollapse) {

else if (L.Browser.touch && this.options.expand === 'touch') {
L.DomEvent.addListener(icon, 'touchstart', function(e) {
L.DomEvent.addListener(icon, 'touchstart mousedown', function(e) {
this._toggle();

@@ -269,3 +272,2 @@ e.preventDefault(); // mobile: clicking focuses the icon, so UI expands and immediately collapses

select(-1);
L.DomEvent.preventDefault(e);
break;

@@ -275,3 +277,2 @@ // Up

select(1);
L.DomEvent.preventDefault(e);
break;

@@ -287,15 +288,15 @@ // Enter

}
L.DomEvent.preventDefault(e);
break;
default:
var v = this._input.value;
if (this.options.geocoder.suggest && v !== this._lastGeocode) {
clearTimeout(this._suggestTimeout);
if (v.length >= this.options.suggestMinLength) {
this._suggestTimeout = setTimeout(L.bind(function() {
this._geocode(true);
}, this), this.options.suggestTimeout);
} else {
this._clearResults();
}
}
},
_change: function(e) {
var v = this._input.value;
if (v !== this._lastGeocode) {
clearTimeout(this._suggestTimeout);
if (v.length >= this.options.suggestMinLength) {
this._suggestTimeout = setTimeout(L.bind(function() {
this._geocode(true);
}, this), this.options.suggestTimeout);
} else {
this._clearResults();
}

@@ -302,0 +303,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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