@the-control-group/maps
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -55,5 +55,7 @@ import React, { Component } from 'react'; | ||
const { mapId } = this.state, | ||
{ latitude, longitude, showZoomControls, zoom, tiles } = this.props; | ||
{ latitude, longitude, showZoomControls, zoom, tiles } = this.props, | ||
parsedLat = parseFloat(latitude), | ||
parsedLon = parseFloat(longitude); | ||
if(!latitude || !longitude || !tiles) return null; | ||
if(Number.isNaN(parsedLat) || Number.isNaN(parsedLon) || !tiles) return null; | ||
@@ -65,4 +67,4 @@ // create the base map | ||
}).setView([ | ||
parseFloat(latitude), | ||
parseFloat(longitude) | ||
parsedLat, | ||
parsedLon | ||
], zoom); | ||
@@ -69,0 +71,0 @@ |
{ | ||
"name": "@the-control-group/maps", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Map kit based on ReactJS for TCG projects", | ||
@@ -26,7 +26,7 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"babel-eslint": "^8.2.6", | ||
"babel-eslint": "^10.1.0", | ||
"classnames": "^2.2.6", | ||
"cpx": "^1.5.0", | ||
"eslint": "^5.3.0", | ||
"eslint-plugin-react": "^7.11.1", | ||
"eslint": "^7.0.0", | ||
"eslint-plugin-react": "^7.20.0", | ||
"prop-types": "^15.6.2", | ||
@@ -43,4 +43,4 @@ "react": "^16.4.2", | ||
"dependencies": { | ||
"leaflet": "^1.4.0" | ||
"leaflet": "^1.6.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18227
148
1
Updatedleaflet@^1.6.0