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

google-maps-reviews

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-maps-reviews - npm Package Compare versions

Comparing version 0.0.10 to 0.0.15

9

google-maps-reviews.js

@@ -38,2 +38,3 @@ // Copyright (c) 2018, Simon Neutert

shorten_names: true,
show_date: false,
placeId: ""

@@ -112,5 +113,7 @@ };

var style = (reviews[i].text.length > parseInt(settings.text_break_length)) ? "review-item-long" : "review-item";
html = html + "<div class=" + style + "><div class='review-meta'><span class='review-author'>" + name + "</span><span class='review-sep'></span>" + "</div>" + stars + "<p class='review-text'>" + reviews[i].text + "</p></div>";
// I do not need to display the date... but if you do:
// +"<br><span class='review-date'>"+date+"</span>"+
var review = reviews[i].text
if (settings.show_date) {
review = "<span class='review-date'>"+date+"</span> " + review
}
html = html + "<div class=" + style + "><div class='review-meta'><span class='review-author'>" + name + "</span><span class='review-sep'></span>" + "</div>" + stars + "<p class='review-text'>" + review + "</p></div>";
}

@@ -117,0 +120,0 @@ target_div.innerHTML += html;

{
"name": "google-maps-reviews",
"version": "0.0.10",
"version": "0.0.15",
"description": "Display Google Reviews of a Place on Google Maps on your website",

@@ -5,0 +5,0 @@ "main": "google-maps-reviews.js",

@@ -54,2 +54,3 @@ # Display Google Reviews of a Place on Google Maps on your website

text_break_length: "90", // length before a review box is set to max width
show_date: false, // renders the date of the review before the review itself
shorten_names: true, // example: "Max Mustermann" -> "Max M.""

@@ -56,0 +57,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