github nylas/nylas-nodejs v6.9.0

latest releases: v7.5.2, v7.5.1, v7.5.0...
18 months ago

This latest release of the Nylas Node SDK brings a few new features.

Release Notes

Added

  • Add missing generic type in RestfulModelCollection for better type safety (#424)
  • Add 409 to error mapping (#430)
  • Add startTimezone, endTimezone and timezone fields to When (#429)
  • Allow configurable timeout for API calls (#427)

Security

  • Bump minimist sub-dependency from 1.2.0 to 1.2.6 (#425)
  • Bump mkdirp sub-dependency from 0.5.1 to 0.5.6 (#425)

Usage

Configuring request timeout

You can now add a request timeout as part of the initial Nylas SDK configuration, as in the example below.

const Nylas = require('nylas');

// Initialize an instance of the Nylas SDK using the client credentials and timeout
Nylas.config({
  clientId: "CLIENT_ID",
  clientSecret: "CLIENT_SECRET",
  timeout: 60 // 60 second timeout
});

Contributors 🎉

Don't miss a new nylas-nodejs release

NewReleases is sending notifications on new releases.