Skip to content

Commit ff84f14

Browse files
committed
add back spreader
1 parent b8edc94 commit ff84f14

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@envoy/envoy-integrations-sdk",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"description": "SDK for building Envoy integrations.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/sdk/EnvoyResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default interface EnvoyResponse<Body = unknown> extends Response {
2929
/**
3030
* Marks the job as "failed". The message will be communicated to the Envoy Dashboard user.
3131
*/
32-
sendFailedScreen: (message: string, debugInfo?: unknown, attachments?: EnvoyPluginScreenerJobAttachment) => void;
32+
sendFailedScreen: (message: string, debugInfo?: unknown, ...attachments: Array<EnvoyPluginScreenerJobAttachment>) => void;
3333
}
3434

3535
/**

src/sdk/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export function envoyMiddleware(options?: EnvoySignatureVerifierOptions): Reques
8484
envoyResponse.sendFailedScreen = (
8585
message = '',
8686
debugInfo: unknown = {},
87-
attachments?: EnvoyPluginScreenerJobAttachment,
87+
...attachments: Array<EnvoyPluginScreenerJobAttachment>
8888
) => {
8989
envoyResponse.statusCode = HttpStatus.FAILED;
9090
envoyResponse.setHeader('Content-Type', 'application/json');

0 commit comments

Comments
 (0)