@slack/events-api
Advanced tools
Comparing version 2.3.3 to 2.3.4
@@ -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 |
"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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
57748
665
2