@slack/socket-mode
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -162,2 +162,5 @@ "use strict"; | ||
.transitionTo(State.Disconnected) | ||
.on(Event.WebSocketOpen) | ||
// If submachine not `authenticated` ignore event | ||
.ignore() | ||
.state(State.Connected) | ||
@@ -320,3 +323,3 @@ .onEnter(() => { | ||
this.websocket.send(flatMessage, (error) => { | ||
if (error !== undefined) { | ||
if (error !== undefined && error !== null) { | ||
this.logger.error(`Failed to send a WebSocket message (error: ${error.message})`); | ||
@@ -323,0 +326,0 @@ return reject((0, errors_1.websocketErrorWithOriginal)(error)); |
{ | ||
"name": "@slack/socket-mode", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "Official library for using the Slack Platform's Socket Mode API", | ||
@@ -5,0 +5,0 @@ "author": "Slack Technologies, LLC", |
@@ -225,3 +225,3 @@ # Slack Socket Mode | ||
This package supports Node v12 LTS and higher. It's highly recommended to use [the latest LTS version of | ||
This package supports Node v14 and higher. It's highly recommended to use [the latest LTS version of | ||
node](https://github.com/nodejs/Release#release-schedule), and the documentation is written using syntax and features from that version. | ||
@@ -228,0 +228,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
84822
1028
1