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.21 to 1.0.22

2

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

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

@@ -41,11 +41,8 @@ 'use strict';

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

@@ -52,0 +49,0 @@

@@ -11,4 +11,4 @@ 'use strict';

super();
this.store = require('./dynamo'); // default
this.ignoreBots = true; // ignore other bot message
this.store = require('./dynamo'); // default
}

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