New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

serverless-slack

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-slack - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

2

package.json
{
"name": "serverless-slack",
"description": "A Slack App Framework for AWS Lambda / Serverless.js",
"version": "1.0.18",
"version": "1.0.19",
"main": "src/index.js",

@@ -6,0 +6,0 @@ "author": "John Agan <john@slack-corp.com>",

@@ -41,5 +41,6 @@ 'use strict';

get channel() {
let payload = this.payload;
let event = payload.event;
if (payload) {
let payload = this.payload, event = payload.event, auth = this.auth;
if (auth.incoming_webhook) {
return auth.incoming_webhook.channel_id;
} else if (payload) {
if (payload.channel_id) return payload.channel_id;

@@ -59,5 +60,4 @@ else if (payload.channel) return payload.channel.id;

get token() {
let auth = this.auth;
let bot = auth.bot;
if (auth) return auth.bot ? auth.bot.bot_access_token : auth.access_token;
let auth = this.auth || {}, bot = auth.bot;
return auth.bot ? auth.bot.bot_access_token : auth.access_token;
}

@@ -64,0 +64,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