Skip to content

Commit

Permalink
docs(breadcrumb): fixed missing breadcrumbs
Browse files Browse the repository at this point in the history
  • Loading branch information
H4ad committed Jul 1, 2023
1 parent 5221f8c commit 2aa8823
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/handlers/aws/aws-stream.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,25 @@ import { ServerlessRequest, ServerlessStreamResponse } from '../../network';

//#endregion

/**
* @breadcrumb Handlers / AwsStreamHandler
* @public
*/
export type AWSResponseStream = Writable;

/**
* @breadcrumb Handlers / AwsStreamHandler
* @public
*/
export type AWSStreamResponseMetadata = Pick<
APIGatewayProxyStructuredResultV2,
'statusCode' | 'headers' | 'cookies'
>;

/**
* @breadcrumb Handlers / AwsStreamHandler
* @public
*/
declare const awslambda: {
streamifyResponse: (
handler: (
Expand Down
1 change: 1 addition & 0 deletions src/network/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* Get the data from a buffer, string, or Uint8Array
*
* @breadcrumb Network
* @param data - The data that was written inside the stream
*/
export function getString(data: Buffer | string | unknown) {
Expand Down

0 comments on commit 2aa8823

Please sign in to comment.