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

@react-google-maps/api

Package Overview
Dependencies
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-google-maps/api - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3-alpah.2

lib/__tests__/utils/helper.test.d.ts

6

lib/components/drawing/InfoWindow.d.ts

@@ -7,5 +7,5 @@ /// <reference types="googlemaps" />

export interface InfoWindowProps {
anchor: google.maps.MVCObject | null;
anchor?: google.maps.MVCObject;
options?: google.maps.InfoWindowOptions;
position: google.maps.LatLng | google.maps.LatLngLiteral;
position?: google.maps.LatLng | google.maps.LatLngLiteral;
zIndex?: number;

@@ -25,3 +25,3 @@ onCloseClick?: () => void;

state: InfoWindowState;
open: (infoWindow: google.maps.InfoWindow, anchor: google.maps.MVCObject) => void;
open: (infoWindow: google.maps.InfoWindow, anchor?: google.maps.MVCObject | undefined) => void;
setInfowindowCallback: () => void;

@@ -28,0 +28,0 @@ componentDidMount(): void;

@@ -72,4 +72,3 @@ "use strict";

if (_this.state.infoWindow !== null &&
_this.containerElement !== null &&
_this.props.anchor !== null) {
_this.containerElement !== null) {
_this.state.infoWindow.setContent(_this.containerElement);

@@ -76,0 +75,0 @@ _this.open(_this.state.infoWindow, _this.props.anchor);

@@ -9,5 +9,5 @@ import * as React from "react";

version: string;
language: string;
region: string;
libraries: string[];
language?: string;
region?: string;
libraries?: string[];
loadingElement?: React.ReactNode;

@@ -22,3 +22,3 @@ onLoad?: () => void;

id: string;
libraries: never[];
version: string;
};

@@ -25,0 +25,0 @@ check: React.RefObject<HTMLDivElement>;

@@ -141,3 +141,3 @@ "use strict";

}
if (_this.props.libraries.length) {
if (_this.props.libraries && _this.props.libraries.length) {
params.push("&libraries=" + _this.props.libraries.join(","));

@@ -217,3 +217,3 @@ }

id: 'script-loader',
libraries: []
version: 'weekly',
};

@@ -220,0 +220,0 @@ return LoadScript;

/// <reference types="googlemaps" />
export declare const applyUpdaterToNextProps: (updaterMap: any, prevProps: any, nextProps: any, instance: any) => any;
export declare function registerEvents(props: any, instance: any, eventMap: Record<string, string>): google.maps.MapsEventListener[];

@@ -3,0 +4,0 @@ export declare function unregisterEvents(events?: google.maps.MapsEventListener[]): void;

@@ -5,3 +5,3 @@ "use strict";

var foreach_1 = require("./foreach");
var applyUpdaterToNextProps = function (updaterMap, prevProps, nextProps, instance) {
exports.applyUpdaterToNextProps = function (updaterMap, prevProps, nextProps, instance) {
var map = {};

@@ -38,5 +38,5 @@ var iter = function (fn, key) {

var updaterMap = _a.updaterMap, eventMap = _a.eventMap, prevProps = _a.prevProps, nextProps = _a.nextProps, instance = _a.instance;
applyUpdaterToNextProps(updaterMap, prevProps, nextProps, instance);
exports.applyUpdaterToNextProps(updaterMap, prevProps, nextProps, instance);
return registerEvents(nextProps, instance, eventMap);
}
exports.applyUpdatersToPropsAndRegisterEvents = applyUpdatersToPropsAndRegisterEvents;
{
"name": "@react-google-maps/api",
"version": "1.2.2",
"version": "1.2.3-alpah.2",
"description": "React.js Google Maps API integration",

@@ -81,7 +81,6 @@ "license": "MIT",

"@types/googlemaps": "3.30.19",
"@types/invariant": "2.2.29",
"invariant": "2.2.4"
},
"peerDependencies": {
"@types/react": "^16.8.10",
"@types/react": "^16.8.8",
"@types/react-dom": "^16.8.3",

@@ -94,2 +93,3 @@ "react": "^16.6.3",

"@types/babel-types": "7.0.6",
"@types/invariant": "2.2.29",
"@types/jest": "^24.0.11",

@@ -125,2 +125,3 @@ "@types/react": "^16.8.10",

"jest": "^24.7.1",
"jest-cli": "^24.7.1",
"react": "16.8.6",

@@ -127,0 +128,0 @@ "react-docgen-typescript": "1.12.3",

@@ -5,3 +5,3 @@ /* eslint-disable filenames/match-regex */

const applyUpdaterToNextProps = (
export const applyUpdaterToNextProps = (
updaterMap: any,

@@ -8,0 +8,0 @@ prevProps: any,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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