Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nylas

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nylas - npm Package Compare versions

Comparing version 4.3.0 to 4.4.0

4

CHANGELOG.md

@@ -7,2 +7,6 @@ # Changelog

### 4.4.0 / 2019-03-25
* Add support for `revoke-all` endpoint
### 4.3.0 / 2019-03-18

@@ -9,0 +13,0 @@

@@ -67,2 +67,15 @@ "use strict";

}
}, {
key: "revokeAll",
value: function revokeAll(keep_access_token) {
return this.connection.request({
method: 'POST',
path: "/a/".concat(this.appId, "/").concat(this.constructor.collectionName, "/").concat(this.id, "/revoke-all"),
body: {
keep_access_token: keep_access_token
}
}).catch(function (err) {
return Promise.reject(err);
});
}
}]);

@@ -69,0 +82,0 @@

2

package.json
{
"name": "nylas",
"version": "4.3.0",
"version": "4.4.0",
"description": "A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.",

@@ -5,0 +5,0 @@ "main": "lib/nylas.js",

@@ -469,2 +469,8 @@ Nylas Node.js SDK [![Travis build status](https://travis-ci.org/nylas/nylas-nodejs.svg?branch=master)](https://travis-ci.org/nylas/nylas-nodejs)

.then(response => console.log(response));
// Revoke all tokens or all but one token for an account
Nylas.accounts
.first()
.then(account => account.revokeAll('kept_access_token'))
.then(response => console.log(response));
```

@@ -471,0 +477,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc