Socket
Socket
Sign inDemoInstall

agnostic-maps

Package Overview
Dependencies
5
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "agnostic-maps",
"version": "1.0.1",
"version": "1.0.2",
"description": "A set of wrappers for modern maps API e.g. Open Street Maps and Yandex",

@@ -5,0 +5,0 @@ "keywords": [

@@ -34,4 +34,6 @@ require('leaflet/dist/leaflet.css');

module.exports.destroyMap = (map) => {
map.off();
map.remove();
if (map !== undefined) {
map.off();
map.remove();
}
};

@@ -38,0 +40,0 @@ /* eslint-disable implicit-arrow-linebreak */

@@ -20,4 +20,9 @@ /* global ymaps */

module.exports.createMarker = ({ lat, lon }, opts = {}) => new ymaps.Placemark([lat, lon], {}, opts);
module.exports.destroyMap = (map) => map.destroy();
module.exports.destroyMap = (map) => {
if (map !== undefined) {
map.destroy();
}
};
/* eslint-disable implicit-arrow-linebreak */

@@ -24,0 +29,0 @@ module.exports.getDriverMarkerOptions = ({ status }) =>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc