Comparing version 2.0.2 to 2.0.3
@@ -141,5 +141,6 @@ var Hoek = require('hoek'); | ||
Client.prototype.getEntireStream = function(url, listName) { | ||
return this.getRaw(url).then(function(data) { | ||
var self = this; | ||
return self.getRaw(url).then(function(data) { | ||
if (data.meta.pagination.links.prior) { | ||
return this.getEntireStream(data.meta.pagination.links.prior, listName).then(function(locs) { | ||
return self.getEntireStream(data.meta.pagination.links.prior, listName).then(function(locs) { | ||
return data[listName].concat(locs); | ||
@@ -154,5 +155,6 @@ }); | ||
Client.prototype.getEntireLocationStream = function(url) { | ||
return this.getRaw(url).then(function(data) { | ||
var self = this; | ||
return self.getRaw(url).then(function(data) { | ||
if (data.meta.pagination.links.prior) { | ||
return this.getEntireLocationStream(data.meta.pagination.links.prior).then(function(locs) { | ||
return self.getEntireLocationStream(data.meta.pagination.links.prior).then(function(locs) { | ||
return data.locations.features.concat(locs); | ||
@@ -159,0 +161,0 @@ }); |
{ | ||
"name": "vinli", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Official Node.js SDK for interacting with the Vinli Platform", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
93788
2057