Comparing version 0.14.0 to 0.14.1
{ | ||
"name": "asana", | ||
"main": "dist/asana.js", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"homepage": "https://github.com/Asana/node-asana", | ||
@@ -6,0 +6,0 @@ "authors": [ |
@@ -75,2 +75,7 @@ var Dispatcher = require('./dispatcher'); | ||
this.workspaces = new resources.Workspaces(this.dispatcher); | ||
/** | ||
* An instance of the Webhooks resource. | ||
* @type {Webhooks} | ||
*/ | ||
this.webhooks = new resources.Webhooks(this.dispatcher); | ||
@@ -77,0 +82,0 @@ // Store off Oauth info. |
@@ -11,2 +11,3 @@ exports.Resource = require('./resource'); | ||
exports.Users = require('./users'); | ||
exports.Workspaces = require('./workspaces'); | ||
exports.Workspaces = require('./workspaces'); | ||
exports.Webhooks = require('./webhooks'); |
@@ -78,6 +78,3 @@ var Bluebird = require('bluebird'); | ||
var next = me._response.next_page; | ||
if (next === null) { | ||
// No more results. | ||
return Bluebird.resolve(null); | ||
} else if (typeof(next) === 'object') { | ||
if (typeof(next) === 'object' && next !== null) { | ||
var url = next.uri; | ||
@@ -93,6 +90,4 @@ return Collection.fromDispatch( | ||
} else { | ||
// We got a successful response back but it did not appear to contain | ||
// an array of items. So maybe we did not fetch a collection. | ||
throw new Error( | ||
'Cannot fetch next page of response that does not have paging info'); | ||
// No more results. | ||
return Bluebird.resolve(null); | ||
} | ||
@@ -99,0 +94,0 @@ }; |
{ | ||
"name": "asana", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "Official NodeJS and BrowserJS client for the Asana API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1271845
29800