Socket
Socket
Sign inDemoInstall

react-facebook

Package Overview
Dependencies
25
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.6 to 4.0.7

62

lib/Process.js

@@ -60,3 +60,4 @@ 'use strict';

var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(evn) {
var facebook, response, onResponse, onError;
var facebook, _this$props, dontWait, onResponse, onError, response, _onError;
return _regenerator2.default.wrap(function _callee$(_context) {

@@ -84,35 +85,54 @@ while (1) {

case 7:
_context.next = 9;
_this$props = _this.props, dontWait = _this$props.dontWait, onResponse = _this$props.onResponse, onError = _this$props.onError;
if (!dontWait) {
_context.next = 11;
break;
}
_this.process(facebook).then(function (response) {
if (onResponse) {
onResponse(response);
}
}, function (error) {
if (onError) {
onError(error);
}
});
return _context.abrupt('return');
case 11:
_context.next = 13;
return _this.process(facebook);
case 9:
case 13:
response = _context.sent;
onResponse = _this.props.onResponse;
if (!onResponse) {
_context.next = 14;
_context.next = 17;
break;
}
_context.next = 14;
_context.next = 17;
return onResponse(response);
case 14:
_context.next = 22;
case 17:
_context.next = 25;
break;
case 16:
_context.prev = 16;
case 19:
_context.prev = 19;
_context.t0 = _context['catch'](3);
onError = _this.props.onError;
_onError = _this.props.onError;
if (!onError) {
_context.next = 22;
if (!_onError) {
_context.next = 25;
break;
}
_context.next = 22;
return onError(_context.t0);
_context.next = 25;
return _onError(_context.t0);
case 22:
case 25:

@@ -123,3 +143,3 @@ _this.setState({

case 23:
case 26:
case 'end':

@@ -129,3 +149,3 @@ return _context.stop();

}
}, _callee, _this2, [[3, 16]]);
}, _callee, _this2, [[3, 19]]);
}));

@@ -197,3 +217,4 @@

onError: _propTypes2.default.func,
onResponse: _propTypes2.default.func
onResponse: _propTypes2.default.func,
dontWait: _propTypes2.default.bool
}, _class.defaultProps = {

@@ -205,4 +226,5 @@ children: undefined,

onError: undefined,
onResponse: undefined
onResponse: undefined,
dontWait: undefined
}, _temp2);
exports.default = Process;
{
"name": "react-facebook",
"version": "4.0.6",
"version": "4.0.7",
"description": "Facebook components like a Login button, Like, Share, Comments or Embedded Post",

@@ -5,0 +5,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc