facebook-node-sdk
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -309,3 +309,3 @@ var https = require('https'); | ||
var scopeParams = params.hasOwnProperty('scope') ? params.scope : null; | ||
if (scopeParams && util.isArray(scopeParams)) { | ||
if (scopeParams && isArray(scopeParams)) { | ||
params.scope = scopeParams.join(','); | ||
@@ -1199,2 +1199,6 @@ } | ||
function isArray(ar) { | ||
return Array.isArray(ar) || (typeof ar === 'object' && Object.prototype.toString.call(ar) === '[object Array]'); | ||
} | ||
module.exports = BaseFacebook; |
{ | ||
"name": "facebook-node-sdk", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Node.js SDK for the Facebook API", | ||
@@ -5,0 +5,0 @@ "tags": ["facebook"], |
@@ -547,3 +547,3 @@ var path = require('path'); | ||
assert.equal(err, null); | ||
assert.ok(util.isArray(response)); | ||
assert.ok(isArray(response)); | ||
assert.equal(response.length, 1, 'Expect one row back.'); | ||
@@ -1412,1 +1412,5 @@ assert.equal(response[0].name, 'Mark Zuckerberg', 'Expect the name back.'); | ||
function isArray(ar) { | ||
return Array.isArray(ar) || (typeof ar === 'object' && Object.prototype.toString.call(ar) === '[object Array]'); | ||
} | ||
Sorry, the diff of this file is not supported yet
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
88916
2582