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

@slack/socket-mode

Package Overview
Dependencies
Maintainers
14
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slack/socket-mode - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

17

dist/SocketModeClient.js

@@ -44,7 +44,8 @@ "use strict";

.do(() => {
// TODO: change this to webClient.apps.connections.open()
return this.webClient.apiCall('apps.connections.open').then((result) => {
return this.webClient.apps.connections.open().then((result) => {
return result;
}).catch((error) => {
this.logger.error(error);
// throw error;
return Promise.reject(error);
});

@@ -56,3 +57,2 @@ })

const error = context.error;
this.logger.info('here');
this.logger.info(`unable to Socket Mode start: ${error.message}`);

@@ -134,7 +134,8 @@ // Observe this event when the error which causes reconnecting or disconnecting is meaningful

.do(() => {
// TODO: change this to webClient.apps.connections.open()
return this.webClient.apiCall('apps.connections.open').then((result) => {
return this.webClient.apps.connections.open().then((result) => {
return result;
}).catch((error) => {
this.logger.error(error);
// throw error;
return Promise.reject(error);
});

@@ -146,3 +147,2 @@ })

const error = context.error;
this.logger.info('here');
this.logger.info(`unable to Socket Mode start: ${error.message}`);

@@ -363,3 +363,6 @@ // Observe this event when the error which causes reconnecting or disconnecting is meaningful

// initialize the websocket
const options = Object.assign(Object.assign({ perMessageDeflate: false }, this.clientOptions.tls), this.clientOptions.agent);
const options = {
perMessageDeflate: false,
agent: this.clientOptions.agent,
};
let websocket;

@@ -366,0 +369,0 @@ if (this.websocket === undefined) {

{
"name": "@slack/socket-mode",
"version": "1.0.0",
"version": "1.0.1",
"description": "Official library for using the Slack Platform's Socket Mode API",

@@ -47,4 +47,4 @@ "author": "Slack Technologies, Inc.",

"dependencies": {
"@slack/logger": "^2.0.0",
"@slack/web-api": "^5.14.0",
"@slack/logger": "^3.0.0",
"@slack/web-api": "^6.0.0",
"@types/node": ">=12.0.0",

@@ -51,0 +51,0 @@ "@types/p-queue": "^2.3.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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