node-zendesk
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -164,3 +164,3 @@ // client.js - main client file that does most of the processing | ||
if (throttle) { | ||
__request = throttler(this, Client.prototype.request, throttle); | ||
__request = throttler(self, Client.prototype.request, throttle); | ||
} | ||
@@ -180,3 +180,3 @@ | ||
return __request.apply(this, args.concat(function (error, status, body, response, result) { | ||
return __request.apply(self, args.concat(function (error, status, body, response, result) { | ||
if (error) { | ||
@@ -187,7 +187,7 @@ return errorCb(error); | ||
async.whilst( | ||
function () { | ||
function (cb) { | ||
if (nextPage === null || (isIncremental && count < 1000)) { | ||
nextPage = ''; | ||
} | ||
return nextPage; | ||
cb(null, nextPage); | ||
}, | ||
@@ -194,0 +194,0 @@ function (cb) { |
{ | ||
"name": "node-zendesk", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "zendesk API client wrapper", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,3 +7,3 @@ # node-zendesk | ||
## Promise supportdes | ||
## Promise support introduced | ||
@@ -10,0 +10,0 @@ Promise support was introduced in @v`2.0.0`, the Legacy version of node-zendesk without Promises @v`1.5.0` |
157028