@slack/events-api
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
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
657
2
56643
22