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

react-mapbox-components

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mapbox-components - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

4

HISTORY.md

@@ -0,1 +1,5 @@

# 0.2.2 (2016-07-08)
* Remove radium dep
# 0.2.1 (2016-07-08)

@@ -2,0 +6,0 @@

16

lib/geocoder/geocoder-control.jsx

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

var _radium = require('radium');
var _radium2 = _interopRequireDefault(_radium);
/**

@@ -118,5 +114,5 @@ * Creates an instance of a Mapbox Geocoder. See [here](https://www.mapbox.com/mapbox.js/api/v2.2.1/l-mapbox-geocodercontrol/#section-l-mapbox-geocodercontrol) for more details.

function _default(props, context) {
_classCallCheck(this, _default2);
_classCallCheck(this, _default);
_get(Object.getPrototypeOf(_default2.prototype), 'constructor', this).call(this, props, context);
_get(Object.getPrototypeOf(_default.prototype), 'constructor', this).call(this, props, context);
}

@@ -127,3 +123,3 @@

value: function componentWillMount() {
_get(Object.getPrototypeOf(_default2.prototype), 'componentWillMount', this).call(this);
_get(Object.getPrototypeOf(_default.prototype), 'componentWillMount', this).call(this);

@@ -148,3 +144,3 @@ var geocoder = _leaflet2['default'].mapbox.geocoderControl(this.props.geocoderIdx, this.props.options);

value: function componentDidMount() {
_get(Object.getPrototypeOf(_default2.prototype), 'componentDidMount', this).call(this);
_get(Object.getPrototypeOf(_default.prototype), 'componentDidMount', this).call(this);
}

@@ -154,3 +150,3 @@ }, {

value: function componentWillUnmount() {
_get(Object.getPrototypeOf(_default2.prototype), 'componentWillUnmount', this).call(this);
_get(Object.getPrototypeOf(_default.prototype), 'componentWillUnmount', this).call(this);
var geocoderInput = document.querySelector('.leaflet-control-mapbox-geocoder-form > input');

@@ -184,4 +180,2 @@

var _default2 = _default;
_default = (0, _radium2['default'])(_default) || _default;
return _default;

@@ -188,0 +182,0 @@ })(_reactLeaflet.MapComponent);

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

var _radium = require('radium');
var _radium2 = _interopRequireDefault(_radium);
var _reactLeaflet = require('react-leaflet');

@@ -155,5 +151,5 @@

function _default(props, context) {
_classCallCheck(this, _default2);
_classCallCheck(this, _default);
_get(Object.getPrototypeOf(_default2.prototype), 'constructor', this).call(this, props, context);
_get(Object.getPrototypeOf(_default.prototype), 'constructor', this).call(this, props, context);
this.state = {

@@ -171,3 +167,3 @@ id: props.id || (0, _lodashUtilityUniqueId2['default'])('map')

this.leafletElement = _leaflet2['default'].mapbox.map(_reactDom2['default'].findDOMNode(this), this.props.tileId, this.props);
_get(Object.getPrototypeOf(_default2.prototype), 'componentDidMount', this).call(this);
_get(Object.getPrototypeOf(_default.prototype), 'componentDidMount', this).call(this);
this.forceUpdate();

@@ -206,3 +202,3 @@ }

value: function componentWillUnmount() {
_get(Object.getPrototypeOf(_default2.prototype), 'componentWillUnmount', this).call(this);
_get(Object.getPrototypeOf(_default.prototype), 'componentWillUnmount', this).call(this);
this.leafletElement.remove();

@@ -226,4 +222,2 @@ }

var _default2 = _default;
_default = (0, _radium2['default'])(_default) || _default;
return _default;

@@ -230,0 +224,0 @@ })(_reactLeaflet.MapComponent);

{
"name": "react-mapbox-components",
"version": "0.2.1",
"version": "0.2.2",
"description": "Mapbox library converted to react for use with react-leaflet.",

@@ -24,3 +24,2 @@ "main": "lib/index.js",

"lodash": "^3.10.0",
"radium": "^0.14.3",
"xtend": "^4.0.0"

@@ -27,0 +26,0 @@ },

@@ -5,3 +5,2 @@ import assign from 'lodash/object/assign'

import L from 'leaflet'
import Radium from 'radium'

@@ -17,3 +16,2 @@ /**

*/
@Radium
export default class extends MapComponent {

@@ -20,0 +18,0 @@

@@ -15,3 +15,2 @@ 'use strict'

import L from 'leaflet'
import Radium from 'radium'
import { MapComponent } from 'react-leaflet'

@@ -37,3 +36,2 @@

*/
@Radium
export default class extends MapComponent {

@@ -40,0 +38,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