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

react-facebook

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-facebook - npm Package Compare versions

Comparing version 4.0.14 to 4.0.16

jest/setup.js

50

lib/Facebook.js

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

Facebook.prototype.init = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
var _this = this;

@@ -129,3 +129,3 @@

Facebook.prototype.process = function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(method) {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(method) {
var before = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];

@@ -170,3 +170,3 @@ var after = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];

Facebook.prototype.ui = function () {
var _ref3 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee3(options) {
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(options) {
return _regenerator2.default.wrap(function _callee3$(_context3) {

@@ -194,3 +194,3 @@ while (1) {

Facebook.prototype.api = function () {
var _ref4 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee4(path) {
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(path) {
var method = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Method.GET;

@@ -220,3 +220,3 @@ var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

Facebook.prototype.login = function () {
var _ref5 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee5() {
var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;

@@ -245,3 +245,3 @@ return _regenerator2.default.wrap(function _callee5$(_context5) {

Facebook.prototype.logout = function () {
var _ref6 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee6() {
var _ref6 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
return _regenerator2.default.wrap(function _callee6$(_context6) {

@@ -269,3 +269,3 @@ while (1) {

Facebook.prototype.getLoginStatus = function () {
var _ref7 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee7() {
var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
return _regenerator2.default.wrap(function _callee7$(_context7) {

@@ -293,3 +293,3 @@ while (1) {

Facebook.prototype.getAuthResponse = function () {
var _ref8 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee8() {
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
return _regenerator2.default.wrap(function _callee8$(_context8) {

@@ -317,3 +317,3 @@ while (1) {

Facebook.prototype.getTokenDetail = function () {
var _ref9 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee9() {
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
var response;

@@ -356,3 +356,3 @@ return _regenerator2.default.wrap(function _callee9$(_context9) {

Facebook.prototype.getProfile = function () {
var _ref10 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee10(params) {
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(params) {
return _regenerator2.default.wrap(function _callee10$(_context10) {

@@ -380,3 +380,3 @@ while (1) {

Facebook.prototype.getTokenDetailWithProfile = function () {
var _ref11 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee11(params) {
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(params) {
var tokenDetail, profile;

@@ -418,3 +418,3 @@ return _regenerator2.default.wrap(function _callee11$(_context11) {

Facebook.prototype.getToken = function () {
var _ref12 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee12() {
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
var authResponse;

@@ -448,3 +448,3 @@ return _regenerator2.default.wrap(function _callee12$(_context12) {

Facebook.prototype.getUserId = function () {
var _ref13 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee13() {
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
var authResponse;

@@ -478,3 +478,3 @@ return _regenerator2.default.wrap(function _callee13$(_context13) {

Facebook.prototype.sendInvite = function () {
var _ref14 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee14(to, options) {
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(to, options) {
return _regenerator2.default.wrap(function _callee14$(_context14) {

@@ -505,3 +505,3 @@ while (1) {

Facebook.prototype.postAction = function () {
var _ref15 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee15(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
var url;

@@ -537,3 +537,3 @@ return _regenerator2.default.wrap(function _callee15$(_context15) {

Facebook.prototype.getPermissions = function () {
var _ref16 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee16() {
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() {
var response;

@@ -567,3 +567,3 @@ return _regenerator2.default.wrap(function _callee16$(_context16) {

Facebook.prototype.hasPermissions = function () {
var _ref17 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee17(permissions) {
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(permissions) {
var usersPermissions, findedPermissions;

@@ -605,3 +605,3 @@ return _regenerator2.default.wrap(function _callee17$(_context17) {

Facebook.prototype.subscribe = function () {
var _ref18 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee18(eventName, callback) {
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(eventName, callback) {
var fb;

@@ -636,3 +636,3 @@ return _regenerator2.default.wrap(function _callee18$(_context18) {

Facebook.prototype.unsubscribe = function () {
var _ref19 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee19(eventName, callback) {
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19(eventName, callback) {
var fb;

@@ -667,3 +667,3 @@ return _regenerator2.default.wrap(function _callee19$(_context19) {

Facebook.prototype.parse = function () {
var _ref20 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee20(parentNode) {
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee20(parentNode) {
var fb;

@@ -703,3 +703,3 @@ return _regenerator2.default.wrap(function _callee20$(_context20) {

Facebook.prototype.getRequests = function () {
var _ref21 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee21() {
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee21() {
return _regenerator2.default.wrap(function _callee21$(_context21) {

@@ -727,3 +727,3 @@ while (1) {

Facebook.prototype.removeRequest = function () {
var _ref22 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee22(requestID) {
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee22(requestID) {
return _regenerator2.default.wrap(function _callee22$(_context22) {

@@ -751,3 +751,3 @@ while (1) {

Facebook.prototype.setAutoGrow = function () {
var _ref23 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee23() {
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee23() {
var fb;

@@ -782,3 +782,3 @@ return _regenerator2.default.wrap(function _callee23$(_context23) {

Facebook.prototype.paySimple = function () {
var _ref24 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee24(product) {
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee24(product) {
var quantity = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;

@@ -812,3 +812,3 @@ return _regenerator2.default.wrap(function _callee24$(_context24) {

Facebook.prototype.pay = function () {
var _ref25 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee25(product, options) {
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee25(product, options) {
return _regenerator2.default.wrap(function _callee25$(_context25) {

@@ -815,0 +815,0 @@ while (1) {

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

Facebook.prototype.init = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
var _props, domain, version, appId, cookie, status, xfbml, language, frictionlessRequests, wait;

@@ -60,0 +60,0 @@

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

Feed.prototype.process = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(facebook) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(facebook) {
var _props, _props$link, link, display, _props$appId, appId, redirectURI, from, to, picture, source, name, caption, description, ref;

@@ -62,0 +62,0 @@

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

InitFacebook.prototype.initFacebook = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
var onReady, facebook;

@@ -58,0 +58,0 @@ return _regenerator2.default.wrap(function _callee$(_context) {

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

Login.prototype.process = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(facebook) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(facebook) {
var _props, scope, fields, returnScopes, rerequest, reauthorize, loginQpts, authType, response;

@@ -54,0 +54,0 @@

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

}, _this.handleClick = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(evn) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(evn) {
var facebook, _this$props, dontWait, onResponse, onError, response, _onError;

@@ -62,0 +62,0 @@

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

Share.prototype.process = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(facebook) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(facebook) {
var _props, _props$href, href, display, _props$appId, appId, hashtag, redirectURI, quote, mobileIframe;

@@ -62,0 +62,0 @@

{
"name": "react-facebook",
"version": "4.0.14",
"version": "4.0.16",
"description": "Facebook components like a Login button, Like, Share, Comments or Embedded Post",

@@ -43,15 +43,20 @@ "author": {

},
"jest": {
"setupFiles": [
"<rootDir>/jest/setup.js"
]
},
"dependencies": {
"react-spinner-children": "^1.0.5",
"react-spinner-children": "^1.0.8",
"can-use-dom": "^0.1.0",
"prop-types": "^15.5.8",
"babel-runtime": "^6.23.0"
"prop-types": "^15.6.0",
"babel-runtime": "^6.26.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-eslint": "^7.2.3",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-proto-to-assign": "^6.23.0",
"babel-plugin-transform-proto-to-assign": "^6.26.0",
"babel-preset-es2015": "^6.24.1",

@@ -61,21 +66,22 @@ "babel-preset-react": "^6.24.1",

"babel-plugin-transform-runtime": "^6.23.0",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-loader": "^1.7.1",
"eslint-plugin-react": "^6.10.3",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-import": "^2.2.0",
"eslint": "^4.7.2",
"eslint-config-airbnb": "^15.1.0",
"eslint-loader": "^1.9.0",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-import": "^2.7.0",
"gulp": "^3.9.1",
"gulp-babel": "^6.1.2",
"gulp-babel": "^7.0.0",
"gulp-util": "^3.0.8",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"jest": "^19.0.2",
"jest-cli": "^19.0.2",
"enzyme": "^2.8.2",
"react-addons-test-utils": "^15.5.1"
"jest": "^21.2.1",
"jest-cli": "^21.2.1",
"enzyme": "^3.0.0",
"enzyme-adapter-react-16": "^1.0.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-test-renderer": "^16.0.0"
},
"peerDependencies": {
"react": "15.x"
"react": "15.x || 16.x"
}
}

@@ -207,2 +207,20 @@ # React Facebook Components

## Page
```js
import React, { Component} from 'react';
import FacebookProvider, { EmbeddedPost } from 'react-facebook';
export default class Example extends Component {
render() {
return (
<FacebookProvider appId="123456789">
<Page href="https://www.facebook.com" tabs="timeline" />
</FacebookProvider>
);
}
}
```
# Support us

@@ -209,0 +227,0 @@

@@ -73,2 +73,3 @@ import { Component } from 'react';

await this.facebook.init();
return this.facebook;

@@ -75,0 +76,0 @@ }

Sorry, the diff of this file is not supported yet

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