react-share
Advanced tools
Comparing version 1.13.1 to 1.13.2
@@ -1,2 +0,2 @@ | ||
## 1.13.1 (Apr 20, 2017) | ||
## 1.13.2 (Apr 20, 2017) | ||
@@ -3,0 +3,0 @@ * Minor icon component fix: use `prop-types` lib instead of `React.propTypes` and use `React.Component` instead of `React.createClass`. Suppresses warnings caused by upgrading to React v. `>=15.5.0` (thanks @yurick-flama). |
@@ -40,2 +40,6 @@ 'use strict'; | ||
var _propTypes = require('prop-types'); | ||
var _propTypes2 = _interopRequireDefault(_propTypes); | ||
var _classnames = require('classnames'); | ||
@@ -55,4 +59,3 @@ | ||
/* eslint-disable react/no-multi-comp */ | ||
var supportedNetworks = (0, _keys2.default)(links); | ||
var supportedNetworks = (0, _keys2.default)(links); /* eslint-disable react/no-multi-comp */ | ||
@@ -150,13 +153,13 @@ var ShareButton = function (_Component) { | ||
ShareButton.propTypes = { | ||
children: _react.PropTypes.node, | ||
className: _react.PropTypes.string, | ||
disabled: _react.PropTypes.bool, | ||
disabledStyle: _react.PropTypes.object, | ||
network: _react.PropTypes.oneOf(supportedNetworks), | ||
opts: _react.PropTypes.object, | ||
url: _react.PropTypes.string.isRequired, | ||
style: _react.PropTypes.object, | ||
windowWidth: _react.PropTypes.number, | ||
windowHeight: _react.PropTypes.number, | ||
beforeOnClick: _react.PropTypes.func | ||
children: _propTypes2.default.node, | ||
className: _propTypes2.default.string, | ||
disabled: _propTypes2.default.bool, | ||
disabledStyle: _propTypes2.default.object, | ||
network: _propTypes2.default.oneOf(supportedNetworks), | ||
opts: _propTypes2.default.object, | ||
url: _propTypes2.default.string.isRequired, | ||
style: _propTypes2.default.object, | ||
windowWidth: _propTypes2.default.number, | ||
windowHeight: _propTypes2.default.number, | ||
beforeOnClick: _propTypes2.default.func | ||
}; | ||
@@ -176,14 +179,9 @@ ShareButton.defaultProps = { | ||
var CreatedButton = _react2.default.createClass({ | ||
displayName: 'CreatedButton', | ||
var CreatedButton = function CreatedButton(props) { | ||
return _react2.default.createElement(ShareButton, (0, _extends3.default)({}, props, { | ||
network: network, | ||
opts: optsMap(props) })); | ||
}; | ||
propTypes: propTypes, | ||
render: function render() { | ||
return _react2.default.createElement(ShareButton, (0, _extends3.default)({}, this.props, { | ||
network: network, | ||
opts: optsMap(this.props) })); | ||
} | ||
}); | ||
CreatedButton.propTypes = propTypes; | ||
CreatedButton.defaultProps = defaultProps; | ||
@@ -202,6 +200,6 @@ | ||
}, { | ||
description: _react.PropTypes.string, | ||
title: _react.PropTypes.string, | ||
picture: _react.PropTypes.string, | ||
hashtag: _react.PropTypes.string | ||
description: _propTypes2.default.string, | ||
title: _propTypes2.default.string, | ||
picture: _propTypes2.default.string, | ||
hashtag: _propTypes2.default.string | ||
}, { | ||
@@ -219,5 +217,5 @@ windowWidth: 550, | ||
}, { | ||
hashtags: _react.PropTypes.arrayOf(_react.PropTypes.string), | ||
title: _react.PropTypes.string, | ||
via: _react.PropTypes.string | ||
hashtags: _propTypes2.default.arrayOf(_propTypes2.default.string), | ||
title: _propTypes2.default.string, | ||
via: _propTypes2.default.string | ||
}, { | ||
@@ -234,4 +232,4 @@ windowWidth: 550, | ||
}, { | ||
title: _react.PropTypes.string, | ||
via: _react.PropTypes.string | ||
title: _propTypes2.default.string, | ||
via: _propTypes2.default.string | ||
}, { | ||
@@ -248,4 +246,4 @@ windowWidth: 550, | ||
}, { | ||
title: _react.PropTypes.string, | ||
separator: _react.PropTypes.string | ||
title: _propTypes2.default.string, | ||
separator: _propTypes2.default.string | ||
}, { | ||
@@ -268,4 +266,4 @@ separator: ' ', | ||
}, { | ||
title: _react.PropTypes.string, | ||
description: _react.PropTypes.string | ||
title: _propTypes2.default.string, | ||
description: _propTypes2.default.string | ||
}, { | ||
@@ -282,4 +280,4 @@ windowWidth: 750, | ||
}, { | ||
media: _react.PropTypes.string.isRequired, | ||
description: _react.PropTypes.string | ||
media: _propTypes2.default.string.isRequired, | ||
description: _propTypes2.default.string | ||
}, { | ||
@@ -297,5 +295,5 @@ windowWidth: 1000, | ||
}, { | ||
title: _react.PropTypes.string, | ||
description: _react.PropTypes.string, | ||
image: _react.PropTypes.string | ||
title: _propTypes2.default.string, | ||
description: _propTypes2.default.string, | ||
image: _propTypes2.default.string | ||
}, { | ||
@@ -313,5 +311,5 @@ windowWidth: 660, | ||
}, { | ||
title: _react.PropTypes.string, | ||
description: _react.PropTypes.string, | ||
image: _react.PropTypes.string | ||
title: _propTypes2.default.string, | ||
description: _propTypes2.default.string, | ||
image: _propTypes2.default.string | ||
}, { | ||
@@ -318,0 +316,0 @@ windowWidth: 660, |
@@ -49,4 +49,4 @@ 'use strict'; | ||
/* eslint-disable react/no-multi-comp */ | ||
var SocialMediaShareCount = function (_React$Component) { | ||
(0, _inherits3.default)(SocialMediaShareCount, _React$Component); | ||
var SocialMediaShareCount = function (_Component) { | ||
(0, _inherits3.default)(SocialMediaShareCount, _Component); | ||
@@ -120,3 +120,3 @@ function SocialMediaShareCount(props) { | ||
return SocialMediaShareCount; | ||
}(_react2.default.Component); | ||
}(_react.Component); | ||
@@ -123,0 +123,0 @@ SocialMediaShareCount.propTypes = { |
{ | ||
"name": "react-share", | ||
"version": "1.13.1", | ||
"version": "1.13.2", | ||
"description": "Easy social media share buttons and share counts.", | ||
@@ -43,4 +43,4 @@ "main": "./lib/react-share.js", | ||
"babel-core": "6.18.2", | ||
"babel-eslint": "7.1.0", | ||
"babel-loader": "6.2.7", | ||
"babel-eslint": "7.1.1", | ||
"babel-loader": "6.2.10", | ||
"babel-plugin-transform-class-properties": "6.18.0", | ||
@@ -54,12 +54,12 @@ "babel-plugin-transform-runtime": "6.15.0", | ||
"eslint-config-airbnb": "7.0.0", | ||
"eslint-loader": "1.6.0", | ||
"eslint-loader": "1.6.3", | ||
"eslint-plugin-jsx-a11y": "0.6.2", | ||
"eslint-plugin-react": "4.3.0", | ||
"file-loader": "0.9.0", | ||
"react": "15.3.0", | ||
"react-dom": "15.2.0", | ||
"react-hot-loader": "1.3.0", | ||
"url-loader": "0.5.7", | ||
"react": "15.5.4", | ||
"react-dom": "15.5.4", | ||
"react-hot-loader": "1.3.1", | ||
"url-loader": "0.5.8", | ||
"webpack": "1.13.3", | ||
"webpack-dev-server": "1.16.2" | ||
"webpack-dev-server": "1.16.3" | ||
}, | ||
@@ -69,4 +69,4 @@ "dependencies": { | ||
"classnames": "2.2.5", | ||
"jsonp": "0.2.0", | ||
"platform": "1.3.2", | ||
"jsonp": "0.2.1", | ||
"platform": "1.3.4", | ||
"prop-types": "^15.5.8" | ||
@@ -73,0 +73,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50622
817
+ Addeddebug@2.6.9(transitive)
+ Addedjsonp@0.2.1(transitive)
+ Addedms@2.0.0(transitive)
+ Addedplatform@1.3.4(transitive)
- Removeddebug@2.1.3(transitive)
- Removedjsonp@0.2.0(transitive)
- Removedms@0.7.0(transitive)
- Removedplatform@1.3.2(transitive)
Updatedjsonp@0.2.1
Updatedplatform@1.3.4