Socket
Socket
Sign inDemoInstall

slack-client

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slack-client - npm Package Compare versions

Comparing version 2.0.0-beta.9 to 2.0.0

13

CHANGELOG.md

@@ -1,3 +0,14 @@

### v1.5.1 (2015-15-15)
### v2.0.0 (2016-02-13)
Refactors the library to javascript, adds a lot of tests and restructures it to improve maintainability and extend functionality.
* Creates two separate clients:
- RTM; manages connection to Slack's RTM API, including reconnects
- Web; provideas a callback interface to all of Slack's Web API endpoints
* Moves the memory data store implementation off the clients and into its own class
* Uncouples the model objects from the clients; model functions to send messages to channels etc are now accessed via the web and RTM client
* Moves the transport layer (websockets and HTTP) to a pluggable model, so that complex transports (through request proxies etc) can be handled
* Adds test coverage on most core functionality in the library
### v1.5.1 (2015-12-15)
* Adds support for a request-proxy URL to use the client from behind a proxy

@@ -4,0 +15,0 @@

7

examples/example-web-client.js

@@ -13,4 +13,7 @@ /**

web.team.info(function teamInfoCb(err, channels) {
if (err) return console.log('Error:', err);
console.log('Team Info:', channels);
if (err) {
console.log('Error:', err);
} else {
console.log('Team Info:', channels);
}
});
{
"name": "slack-client",
"version": "2.0.0-beta.9",
"description": "A library for creating a full Slack client",
"version": "2.0.0",
"description": "A library for creating a Slack client",
"main": "./index",

@@ -6,0 +6,0 @@ "scripts": {

@@ -19,3 +19,3 @@ # Node Library for the Slack APIs

```bashp
npm install slack-client@2.0.0-beta.9 --save
npm install slack-client --save
```

@@ -72,3 +72,3 @@

var RTM_CLIENT_EVENTS = require('slack-client').EVENTS.CLIENT.RTM;
var RTM_CLIENT_EVENTS = require('slack-client').CLIENT_EVENTS.RTM;

@@ -75,0 +75,0 @@ // you need to wait for the client to fully connect before you can send messages

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