Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@the-control-group/maps

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@the-control-group/maps - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

10

lib/components/Map/Map.js

@@ -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 @@

10

package.json
{
"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"
}
}
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