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

react-custom-share

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-custom-share - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

dist/styled/colors.js

12

dist/index.js

@@ -25,3 +25,3 @@ 'use strict';

var _ShareButtonCircle = require('./styles/ShareButtonCircle');
var _ShareButtonCircle = require('./styled/ShareButtonCircle');

@@ -35,3 +35,3 @@ Object.defineProperty(exports, 'ShareButtonCircle', {

var _ShareButtonIconOnly = require('./styles/ShareButtonIconOnly');
var _ShareButtonIconOnly = require('./styled/ShareButtonIconOnly');

@@ -45,3 +45,3 @@ Object.defineProperty(exports, 'ShareButtonIconOnly', {

var _ShareButtonOutline = require('./styles/ShareButtonOutline');
var _ShareButtonOutline = require('./styled/ShareButtonOutline');

@@ -55,3 +55,3 @@ Object.defineProperty(exports, 'ShareButtonOutline', {

var _ShareButtonRectangle = require('./styles/ShareButtonRectangle');
var _ShareButtonRectangle = require('./styled/ShareButtonRectangle');

@@ -65,3 +65,3 @@ Object.defineProperty(exports, 'ShareButtonRectangle', {

var _ShareButtonRoundSquare = require('./styles/ShareButtonRoundSquare');
var _ShareButtonRoundSquare = require('./styled/ShareButtonRoundSquare');

@@ -75,3 +75,3 @@ Object.defineProperty(exports, 'ShareButtonRoundSquare', {

var _ShareBlockStandard = require('./styles/ShareBlockStandard');
var _ShareBlockStandard = require('./styled/ShareBlockStandard');

@@ -78,0 +78,0 @@ Object.defineProperty(exports, 'ShareBlockStandard', {

@@ -25,6 +25,4 @@ 'use strict';

buttons = props.buttons,
_props$text = props.text,
text = _props$text === undefined ? '' : _props$text,
_props$className = props.className,
className = _props$className === undefined ? '' : _props$className;
text = props.text,
className = props.className;

@@ -42,3 +40,8 @@

Button,
_extends({ key: network, network: network, url: url, text: text }, rest),
_extends({
key: network,
network: network,
url: url,
text: text
}, rest),
_react2.default.createElement(Icon, null)

@@ -45,0 +48,0 @@ );

@@ -56,3 +56,3 @@ 'use strict';

_this.openShareWindow(networkLink);
}, _this.onKeyPress = function (e) {}, _this.openShareWindow = function (link) {
}, _this.openShareWindow = function (link) {
(0, _windowOpen2.default)(link);

@@ -73,3 +73,7 @@ }, _temp), _possibleConstructorReturn(_this, _ret);

'button',
{ className: '' + className, 'aria-label': 'share on ' + network, onClick: this.onClick },
{
className: '' + className,
'aria-label': 'Share on ' + network,
onClick: this.onClick
},
children

@@ -88,5 +92,11 @@ );

children: _propTypes2.default.node,
className: _propTypes2.default.string
className: _propTypes2.default.string,
media: function media(props, propName, componentName) {
var key = props['network'].toLowerCase();
if (key === 'pinterest' && props[propName] === undefined) {
return new Error('The prop \'' + propName + '\' is marked as required in \'' + componentName + '\' for the \'Pinterest\' network, but it\'s value is \'undefined\'.');
}
}
};
exports.default = ShareButton;

@@ -92,3 +92,3 @@ 'use strict';

if (!isValidNetwork(key)) {
throw new Error('the \'' + key + '\' is not a valid value of a \'network\' prop for ShareButton');
throw new Error('the \'network\' prop\'s value is not a valid value for ShareButton');
}

@@ -95,0 +95,0 @@

{
"name": "react-custom-share",
"version": "0.0.8",
"version": "0.0.9",
"description": "Social sharing buttons for React",

@@ -66,2 +66,3 @@ "main": "dist/index.js",

"css-loader": "0.28.11",
"cypress": "^3.0.2",
"emotion": "^9.2.4",

@@ -95,2 +96,3 @@ "eslint": "4.1.1",

"react-icons": "2.2.7",
"react-testing-library": "^4.1.2",
"rimraf": "2.6.2",

@@ -97,0 +99,0 @@ "semantic-release": "15.6.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