Socket
Socket
Sign inDemoInstall

@slack/events-api

Package Overview
Dependencies
109
Maintainers
15
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.3 to 2.3.4

1

dist/adapter.js

@@ -55,2 +55,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.SlackEventAdapter = void 0;
/* tslint:disable import-name */

@@ -57,0 +58,0 @@ var events_1 = __importDefault(require("events"));

@@ -13,2 +13,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.errorCodes = exports.ErrorCode = exports.createHTTPHandler = exports.verifyRequestSignature = void 0;
/* tslint:disable:import-name */

@@ -147,2 +148,6 @@ var debug_1 = __importDefault(require("debug"));

var respond = sendResponse(res);
if (util_1.isFalsy(req.headers['x-slack-signature']) || util_1.isFalsy(req.headers['x-slack-request-timestamp'])) {
handleError(errorWithCode(new Error('Slack request signing verification failed'), ErrorCode.SignatureVerificationFailure), respond);
return;
}
// If parser is being used and we don't receive the raw payload via `rawBody`,

@@ -149,0 +154,0 @@ // we can't verify request signature

5

dist/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createEventAdapter = void 0;
var adapter_1 = require("./adapter");
var http_handler_1 = require("./http-handler");
exports.verifyRequestSignature = http_handler_1.verifyRequestSignature;
exports.errorCodes = http_handler_1.errorCodes;
Object.defineProperty(exports, "verifyRequestSignature", { enumerable: true, get: function () { return http_handler_1.verifyRequestSignature; } });
Object.defineProperty(exports, "errorCodes", { enumerable: true, get: function () { return http_handler_1.errorCodes; } });
/**

@@ -8,0 +9,0 @@ * Creates a new {@link SlackEventAdapter}.

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.isFalsy = exports.packageIdentifier = void 0;
var os_1 = __importDefault(require("os"));

@@ -8,0 +9,0 @@ var pkg = require('../package.json'); // tslint:disable-line

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

@@ -5,0 +5,0 @@ "author": "Slack Technologies, Inc.",

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

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