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

react-leaflet-control

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

react-leaflet-control - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

29

dist/control.js

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

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _leaflet = require('leaflet');

@@ -40,3 +44,3 @@

return _possibleConstructorReturn(this, Object.getPrototypeOf(Control).call(this, props));
return _possibleConstructorReturn(this, (Control.__proto__ || Object.getPrototypeOf(Control)).call(this, props));
}

@@ -47,9 +51,8 @@

value: function componentWillMount() {
var _props = this.props;
var _children = _props.children;
var _map = _props.map;
var popupContainer = _props.popupContainer;
var _props = this.props,
_children = _props.children,
_map = _props.map,
popupContainer = _props.popupContainer,
props = _objectWithoutProperties(_props, ['children', 'map', 'popupContainer']);
var props = _objectWithoutProperties(_props, ['children', 'map', 'popupContainer']);
this.leafletElement = new _Control2.default(props);

@@ -60,3 +63,3 @@ }

value: function componentDidMount() {
_get(Object.getPrototypeOf(Control.prototype), 'componentDidMount', this).call(this);
_get(Control.prototype.__proto__ || Object.getPrototypeOf(Control.prototype), 'componentDidMount', this).call(this);
this.renderContent();

@@ -67,3 +70,3 @@ }

value: function componentDidUpdate(next) {
_get(Object.getPrototypeOf(Control.prototype), 'componentDidUpdate', this).call(this, next);
_get(Control.prototype.__proto__ || Object.getPrototypeOf(Control.prototype), 'componentDidUpdate', this).call(this, next);
this.renderContent();

@@ -95,7 +98,7 @@ }

Control.propTypes = {
children: _react.PropTypes.node,
map: _react.PropTypes.instanceOf(_leaflet.Map),
popupContainer: _react.PropTypes.object,
position: _react.PropTypes.string
children: _propTypes2.default.node,
map: _propTypes2.default.instanceOf(_leaflet.Map),
popupContainer: _propTypes2.default.object,
position: _propTypes2.default.string
};
exports.default = Control;
{
"name": "react-leaflet-control",
"version": "1.3.0",
"version": "1.4.0",
"description": "Dumb Empty Component for control with react leaflet",

@@ -36,3 +36,6 @@ "main": "dist/control.js",

"react-leaflet": "^0.11.5"
},
"dependencies": {
"prop-types": "^15.5.7"
}
}
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