asana
Advanced tools
Comparing version 0.9.0 to 0.9.1
@@ -101,3 +101,3 @@ var Bluebird = require('bluebird'); | ||
/** | ||
* Get all remaining results from a collection request, transparently | ||
* Get remaining results from a collection request, transparently | ||
* paginating until pages exhausted or until `maxItems` items collected. | ||
@@ -109,3 +109,3 @@ * | ||
*/ | ||
Collection.prototype.all = function(maxItems) { | ||
Collection.prototype.fetch = function(maxItems) { | ||
var me = this; | ||
@@ -112,0 +112,0 @@ maxItems = maxItems || MAX_COLLECTION_SIZE; |
{ | ||
"name": "asana", | ||
"version": "0.9.0", | ||
"version": "0.9.1", | ||
"description": "Official NodeJS and BrowserJS client for the Asana API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -146,3 +146,3 @@ # Asana [![GitHub release](https://img.shields.io/github/release/asana/node-asana.svg)]() [![Build Status][travis-image]][travis-url] [![NPM Version][npm-image]][npm-url] | ||
To automatically fetch a bunch of results and have the client transparently | ||
request pages under the hood, use the `all` method.: | ||
request pages under the hood, use the `fetch` method.: | ||
@@ -152,3 +152,3 @@ ```js | ||
// Fetch up to 200 tasks, using multiple pages if necessary | ||
collection.all(200).then(function(tasks) { | ||
collection.fetch(200).then(function(tasks) { | ||
console.log(tasks); | ||
@@ -155,0 +155,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1214832