esri-leaflet-geocoder
Advanced tools
Comparing version 2.2.9 to 2.2.10
@@ -5,2 +5,9 @@ # Changelog | ||
## [2.2.10] - 2018-06-13 | ||
### Fixed | ||
* stop throwing an error when no attribution control is present [#194](https://github.com/Esri/esri-leaflet-geocoder/issues/194) | ||
* ensure suggestions are selected appropriately via touch events [#198](https://github.com/Esri/esri-leaflet-geocoder/issues/198) | ||
## [2.2.9] - 2018-02-22 | ||
@@ -326,3 +333,4 @@ | ||
[Unreleased]: https://github.com/Esri/esri-leaflet-geocoder/compare/v2.2.9...HEAD | ||
[Unreleased]: https://github.com/Esri/esri-leaflet-geocoder/compare/v2.2.10...HEAD | ||
[2.2.9]: https://github.com/Esri/esri-leaflet-geocoder/compare/v2.2.9...v2.2.10 | ||
[2.2.9]: https://github.com/Esri/esri-leaflet-geocoder/compare/v2.2.8...v2.2.9 | ||
@@ -329,0 +337,0 @@ [2.2.8]: https://github.com/Esri/esri-leaflet-geocoder/compare/v2.2.7...v2.2.8 |
{ | ||
"name": "esri-leaflet-geocoder", | ||
"description": "Esri Geocoding utility and search plugin for Leaflet.", | ||
"version": "2.2.9", | ||
"version": "2.2.10", | ||
"author": "Patrick Arlt <parlt@esri.com> (http://patrickarlt.com)", | ||
@@ -11,3 +11,3 @@ "contributors": [ | ||
"dependencies": { | ||
"esri-leaflet": "^2.0.3", | ||
"esri-leaflet": "^2.1.4", | ||
"leaflet": "^1.0.0" | ||
@@ -17,8 +17,8 @@ }, | ||
"chai": "3.5.0", | ||
"gh-release": "^2.0.0", | ||
"gh-release": "^3.2.1", | ||
"http-server": "^0.10.0", | ||
"imagemin": "^3.2.0", | ||
"imagemin": "^5.3.1", | ||
"isparta": "^4.0.0", | ||
"istanbul": "^0.4.2", | ||
"karma": "^1.3.0", | ||
"karma": "^2.0.2", | ||
"karma-chai-sinon": "^0.1.3", | ||
@@ -31,7 +31,6 @@ "karma-chrome-launcher": "^2.2.0", | ||
"mkdirp": "^0.5.1", | ||
"mocha": "^3.1.0", | ||
"mocha": "^5.2.0", | ||
"node-sass": "^3.2.0", | ||
"parallelshell": "^2.0.0", | ||
"phantomjs": "^1.9.8", | ||
"rollup": "^0.25.4", | ||
"npm-run-all": "^4.1.2", | ||
"rollup": "^0.56.5", | ||
"rollup-plugin-json": "^2.0.0", | ||
@@ -49,2 +48,3 @@ "rollup-plugin-node-resolve": "^1.4.0", | ||
"jsnext:main": "src/EsriLeafletGeocoding.js", | ||
"module": "src/EsriLeafletGeocoding.js", | ||
"jspm": { | ||
@@ -67,3 +67,3 @@ "registry": "npm", | ||
"css": "node-sass ./src/esri-leaflet-geocoder.css ./dist/esri-leaflet-geocoder.css --output-style compressed", | ||
"img": "imagemin ./src/img ./dist/img", | ||
"img": "node scripts/build_images.js", | ||
"lint": "semistandard | snazzy", | ||
@@ -74,3 +74,4 @@ "prepare": "npm run build", | ||
"start-watch": "watch \"npm run build\" src", | ||
"start": "parallelshell \"npm run start-watch\" \"http-server -p 5678 -c-1 -o\"", | ||
"start": "run-p start-watch serve", | ||
"serve": "http-server -p 5000 -c-1 -o", | ||
"test": "npm run lint && karma start" | ||
@@ -77,0 +78,0 @@ }, |
import config from '../node_modules/esri-leaflet/profiles/base.js'; | ||
config.entry = 'src/EsriLeafletGeocoding.js'; | ||
config.moduleName = 'L.esri.Geocoding'; | ||
config.input = 'src/EsriLeafletGeocoding.js'; | ||
config.output.name = 'L.esri.Geocoding'; | ||
export default config; |
import config from './base.js'; | ||
config.dest = 'dist/esri-leaflet-geocoder-debug.js'; | ||
config.sourceMap = 'inline'; | ||
config.output.file = 'dist/esri-leaflet-geocoder-debug.js'; | ||
export default config; |
import uglify from 'rollup-plugin-uglify'; | ||
import config from './base.js'; | ||
config.dest = 'dist/esri-leaflet-geocoder.js'; | ||
config.sourceMap = 'dist/esri-leaflet-geocoder.js.map'; | ||
config.output.file = 'dist/esri-leaflet-geocoder.js'; | ||
@@ -7,0 +6,0 @@ // use a Regex to preserve copyright text |
@@ -222,4 +222,7 @@ import { | ||
var credits = this._geosearchCore._getAttribution(); | ||
map.attributionControl.addAttribution(credits); | ||
if (map.attributionControl) { | ||
map.attributionControl.addAttribution(credits); | ||
} | ||
DomEvent.addListener(this._input, 'focus', function (e) { | ||
@@ -234,4 +237,6 @@ this._input.placeholder = this.options.placeholder; | ||
DomEvent.addListener(this._suggestions, 'mousedown', this.geocodeSuggestion, this); | ||
DomEvent.addListener(this._suggestions, 'touchend', this.geocodeSuggestion, this); | ||
// for some reason DomEvent.addListener is triggered too early in Chrome. | ||
this._suggestions.addEventListener('touchend', Util.bind(this.geocodeSuggestion, this)); | ||
DomEvent.addListener(this._input, 'blur', function (e) { | ||
@@ -238,0 +243,0 @@ this.clear(); |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
27
0
0
94638
35
1281
1
Updatedesri-leaflet@^2.1.4