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

facebook-node-sdk

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

facebook-node-sdk - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

9

lib/basefacebook.js

@@ -21,2 +21,5 @@ var https = require('https');

}
if (config.hasOwnProperty('currentUrl')) {
this.currentUrl = config.currentUrl;
}
this.setAppId(config.appId);

@@ -36,2 +39,4 @@ this.setApiSecret(config.secret);

BaseFacebook.prototype.currentUrl = null;
BaseFacebook.prototype.sessionNameMap = {

@@ -915,2 +920,6 @@ access_token: 'access_token',

BaseFacebook.prototype.getCurrentUrl = function() {
if (this.currentUrl !== null) {
return this.currentUrl;
}
if (!this.request) {

@@ -917,0 +926,0 @@ throw new Error('No request object.');

2

package.json
{
"name": "facebook-node-sdk",
"version": "0.1.2",
"version": "0.1.3",
"description": "Node.js SDK for the Facebook API",

@@ -5,0 +5,0 @@ "tags": ["facebook"],

@@ -204,2 +204,18 @@ var path = require('path');

facebook = new TransientFacebook({
appId: config.appId,
secret: config.secret,
currentUrl: 'http://example.com/',
request: {
connection: {
},
headers: {
host: 'www.test.com'
},
url: '/unit-tests.php?state=hoge'
}
});
assert.equal(facebook.getCurrentUrl(), 'http://example.com/');
done = true;

@@ -206,0 +222,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