Socket
Socket
Sign inDemoInstall

@slack/events-api

Package Overview
Dependencies
135
Maintainers
11
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.3.1

3

dist/adapter.js

@@ -16,6 +16,7 @@ "use strict";

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -22,0 +23,0 @@ });

@@ -17,2 +17,8 @@ /// <reference types="node" />

export declare function createHTTPHandler(adapter: SlackEventAdapter): HTTPHandler;
/**
* A RequestListener-compatible callback for creating response information from an incoming request.
*
* @remarks
* See RequestListener in the `http` module.
*/
declare type HTTPHandler = (req: IncomingMessage & {

@@ -19,0 +25,0 @@ body?: any;

"use strict";
var __spreadArrays = (this && this.__spreadArrays) || function () {
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -190,3 +197,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

debug('emitting event - type: %s, arguments: %o', body.event.type, emitArguments);
adapter.emit.apply(adapter, [body.event.type].concat(emitArguments));
adapter.emit.apply(adapter, __spreadArrays([body.event.type], emitArguments));
}

@@ -193,0 +200,0 @@ }).catch(function (error) {

{
"name": "@slack/events-api",
"version": "2.3.0",
"version": "2.3.1",
"description": "Official library for using the Slack Platform's Web API",

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

"express": "^4.0.0"
},
"gitHead": "35b40af1dc28ef40cb00eb9a47f902e73c27b03f"
}
}

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc