Socket
Socket
Sign inDemoInstall

google-react-maps

Package Overview
Dependencies
27
Maintainers
2
Versions
133
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.16 to 1.2.17

13

dist/components/map.js

@@ -21,6 +21,2 @@ 'use strict';

var _googleMapsApi = require('google-maps-api');
var _googleMapsApi2 = _interopRequireDefault(_googleMapsApi);
var _utils = require('../utils/utils');

@@ -46,3 +42,3 @@

* @memberof google.maps
*
*
* @property {number} lat

@@ -63,3 +59,3 @@ * @property {number} lng

* @property {google.maps.LatLngLiteral} props.center
* @property {object} props.latLngBounds
* @property {object} props.latLngBounds
* @property {google.maps.LatLngLiteral} props.latLngBounds.sw

@@ -79,3 +75,3 @@ * @property {google.maps.LatLngLiteral} props.latLngBounds.ne

var _div_id = "map_div_" + Math.floor(Date.now() * Math.random()).toString();
/**
/**
* @property {object} state The Map component's internal state.

@@ -307,4 +303,5 @@ * @property {object} state.maps A google maps javascript api reference.

if (this.props["api-key"]) {
var mapsapi = require('google-maps-api');
// if(!window.maps)
(0, _googleMapsApi2.default)(this.props["api-key"], ['drawing', 'geometry', 'places'])().then(initMapComponentWithLibrary);
mapsapi(this.props["api-key"], ['drawing', 'geometry', 'places'])().then(initMapComponentWithLibrary);
// else

@@ -311,0 +308,0 @@ // initMapComponentWithLibrary(window.maps);

{
"name": "google-react-maps",
"version": "1.2.16",
"version": "1.2.17",
"description": "A more powerfully custom version of the Google Maps Javascript API built for React. Multiple Datalayer support. GEOJSON Enabled.",

@@ -45,7 +45,3 @@ "main": "dist/components/index.js",

"dependencies": {
"babel-core": "^6.13.2",
"babel-loader": "^6.2.4",
"babel-plugin-add-module-exports": "^0.2.1",
"classnames": "^2.2.5",
"css-loader": "^0.23.1",
"google-maps-api": "^2.0.1",

@@ -59,2 +55,6 @@ "marker-clusterer-plus": "^2.1.4",

"devDependencies": {
"css-loader": "^0.23.1",
"babel-core": "^6.13.2",
"babel-loader": "^6.2.4",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.13.2",

@@ -61,0 +61,0 @@ "babel-preset-react": "^6.24.1",

Sorry, the diff of this file is not supported yet

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