Socket
Socket
Sign inDemoInstall

asana

Package Overview
Dependencies
50
Maintainers
3
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.0 to 0.9.1

4

lib/util/collection.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc