react-leaflet-heatmap-layer
Advanced tools
+3
-0
@@ -0,1 +1,4 @@ | ||
| # 1.0.1 Release | ||
| - Fix bug in componentWillUnmount->safeRemoveLayer where getPanes doesn't return anything so .contains is called on undefined. | ||
| # 1.0.0 Release | ||
@@ -2,0 +5,0 @@ - Leaflet 1.0.0 support |
@@ -71,3 +71,3 @@ 'use strict'; | ||
| if (overlayPane.contains(el)) { | ||
| if (overlayPane && overlayPane.contains(el)) { | ||
| overlayPane.removeChild(el); | ||
@@ -74,0 +74,0 @@ } |
+1
-1
| { | ||
| "name": "react-leaflet-heatmap-layer", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "A custom layer for heatmaps in react-leaflet", | ||
@@ -5,0 +5,0 @@ "main": "lib/HeatmapLayer.js", |
@@ -67,3 +67,3 @@ import React from 'react'; | ||
| const { overlayPane } = leafletMap.getPanes(); | ||
| if (overlayPane.contains(el)) { | ||
| if (overlayPane && overlayPane.contains(el)) { | ||
| overlayPane.removeChild(el); | ||
@@ -70,0 +70,0 @@ } |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
430799
0.04%1
Infinity%