New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-leaflet

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-leaflet - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

2

lib/AttributionControl.d.ts
/// <reference types="react" />
import { Control } from 'leaflet';
export declare type AttributionControlProps = Control.AttributionOptions;
export type AttributionControlProps = Control.AttributionOptions;
export declare const AttributionControl: import("react").ForwardRefExoticComponent<Control.AttributionOptions & import("react").RefAttributes<Control.Attribution>>;

@@ -46,4 +46,4 @@ import { Control, type Layer } from 'leaflet';

};
declare type AddLayerFunc = (layersControl: Control.Layers, layer: Layer, name: string) => void;
type AddLayerFunc = (layersControl: Control.Layers, layer: Layer, name: string) => void;
export declare function createControlledLayer(addLayerToControl: AddLayerFunc): (props: ControlledLayerProps) => JSX.Element | null;
export {};

@@ -41,2 +41,3 @@ function _extends() {

}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

@@ -43,0 +44,0 @@ useEffect(()=>{

@@ -45,2 +45,3 @@ import { LeafletProvider, addClassName, useLeafletContext } from '@react-leaflet/core';

const context = useLeafletContext();
// eslint-disable-next-line react-hooks/exhaustive-deps
const newContext = useMemo(()=>({

@@ -47,0 +48,0 @@ ...context,

/// <reference types="react" />
import { Control } from 'leaflet';
export declare type ScaleControlProps = Control.ScaleOptions;
export type ScaleControlProps = Control.ScaleOptions;
export declare const ScaleControl: import("react").ForwardRefExoticComponent<Control.ScaleOptions & import("react").RefAttributes<Control.Scale>>;

@@ -6,2 +6,8 @@ import { createElementObject, createTileLayerComponent, updateGridLayer, withPane } from '@react-leaflet/core';

return createElementObject(layer, context);
}, updateGridLayer);
}, function updateTileLayer(layer, props, prevProps) {
updateGridLayer(layer, props, prevProps);
const { url } = props;
if (url != null && url !== prevProps.url) {
layer.setUrl(url);
}
});
/// <reference types="react" />
import { Control } from 'leaflet';
export declare type ZoomControlProps = Control.ZoomOptions;
export type ZoomControlProps = Control.ZoomOptions;
export declare const ZoomControl: import("react").ForwardRefExoticComponent<Control.ZoomOptions & import("react").RefAttributes<Control.Zoom>>;
{
"name": "react-leaflet",
"version": "4.1.0",
"version": "4.2.0",
"description": "React components for Leaflet maps",

@@ -42,5 +42,5 @@ "repository": {

"@types/geojson": "^7946.0.10",
"@types/leaflet": "^1.8.0",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6"
"@types/leaflet": "^1.9.0",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9"
},

@@ -47,0 +47,0 @@ "jest": {

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