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
1
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.6 to 1.0.7

15

lib/components/Map/Map.js

@@ -48,2 +48,17 @@ import React, { Component } from 'react';

}
// adjust map if latitude or longitude changed
if(prevProps.latitude !== this.props.latitude || prevProps.longitude !== this.props.longitude) {
const bounds = [{lat: parseFloat(this.props.latitude), lng: parseFloat(this.props.longitude)}];
this.props.markers.forEach(m => {
const lat = parseFloat(m.latitude),
lng = parseFloat(m.longitude);
bounds.push({lat, lng});
});
this.setState({
bounds
}, this.adjustBounds);
}
}

@@ -50,0 +65,0 @@

2

package.json
{
"name": "@the-control-group/maps",
"version": "1.0.6",
"version": "1.0.7",
"description": "Map kit based on ReactJS for TCG projects",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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