Socket
Socket
Sign inDemoInstall

timeline-map

Package Overview
Dependencies
11
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.1.1

2

package.json
{
"name": "timeline-map",
"version": "2.1.0",
"version": "2.1.1",
"description": "TimeLine Map Component from MapsForAll",

@@ -5,0 +5,0 @@ "main": "dist/TimeLineMap.js",

@@ -66,8 +66,17 @@ import {dateFromString} from '../date/conversion';

let displayLocation = '';
if (marker.location.country.length > 0) {
displayLocation = marker.location.country;
}
if (marker.location.state.length > 0) {
displayLocation = `${marker.location.city}, ${marker.location.state}, ${marker.location.country}`;
} else {
displayLocation = `${marker.location.city}, ${marker.location.country}`;
displayLocation =
displayLocation.length > 0 ? `${marker.location.state}, ${displayLocation}` : marker.location.state;
}
if (marker.location.city.length > 0) {
displayLocation =
displayLocation.length > 0 ? `${marker.location.city}, ${displayLocation}` : marker.location.city;
}
return displayLocation;

@@ -74,0 +83,0 @@ }

Sorry, the diff of this file is too big to display

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