Skip to content

Commit

Permalink
Publish
Browse files Browse the repository at this point in the history
- @slack/bolt@3.6.0-hermesBeta.1
  • Loading branch information
srajiang committed Aug 19, 2021
1 parent 656cc1c commit 82246b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slack/bolt",
"version": "3.6.0",
"version": "3.6.0-hermesBeta.1",
"description": "A framework for building Slack apps, fast.",
"author": "Slack Technologies, Inc.",
"license": "MIT",
Expand Down Expand Up @@ -46,7 +46,7 @@
"@slack/oauth": "^2.2.0",
"@slack/socket-mode": "^1.1.0",
"@slack/types": "^2.2.0",
"@slack/web-api": "^6.4.0",
"@slack/web-api": "^6.4.0-hermesBeta.1",
"@types/express": "^4.16.1",
"@types/node": ">=12",
"@types/promise.allsettled": "^1.0.3",
Expand Down
3 changes: 2 additions & 1 deletion src/middleware/builtin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ function matchesPattern(pattern: string | RegExp, candidate: string): boolean {
export function matchFunctionCallback(callback_id: string): Middleware<SlackEventMiddlewareArgs> {
return async ({ event, next }) => {
// Filter out any functions that are not the correct function name
if (!event || 'function_executed' !== event.type || !event.function || callback_id !== event.function.callback_id) {
// eslint-disable-next-line @typescript-eslint/strict-boolean-expressions
if (!event || event.type !== 'function_executed' || !event.function || callback_id !== event.function.callback_id) {
return;
}

Expand Down

0 comments on commit 82246b3

Please sign in to comment.