Skip to content

Commit 8d8dcbe

Browse files
committed
🎨 cosm: refine the naming of dapr output middleware
1 parent 56a04f0 commit 8d8dcbe

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/openfunction/dapr_binding_output_middleware.ts renamed to src/openfunction/dapr_output_middleware.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const debug = Debug('ofn:middleware:dapr:binding');
1414
* @param req express request object
1515
* @param res express response object
1616
*/
17-
const daprBindingOutputHandler = (req: Request, res: Response) => {
17+
const daprOutputHandler = (req: Request, res: Response) => {
1818
return {
1919
isInterceptable: () => {
2020
return (
@@ -35,4 +35,4 @@ const daprBindingOutputHandler = (req: Request, res: Response) => {
3535
};
3636
};
3737

38-
export default interceptor(daprBindingOutputHandler);
38+
export default interceptor(daprOutputHandler);

src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {cloudEventToBackgroundEventMiddleware} from './middleware/cloud_event_to
2424
import {backgroundEventToCloudEventMiddleware} from './middleware/background_event_to_cloud_event';
2525
import {wrapUserFunction} from './function_wrappers';
2626

27-
import daprBindingOutputMiddleware from './openfunction/dapr_binding_output_middleware';
27+
import daprOutputMiddleware from './openfunction/dapr_output_middleware';
2828

2929
/**
3030
* Creates and configures an Express application and returns an HTTP server
@@ -54,7 +54,7 @@ export function getServer(
5454
});
5555

5656
// Use OpenFunction middlewares
57-
app.use(daprBindingOutputMiddleware);
57+
app.use(daprOutputMiddleware);
5858

5959
/**
6060
* Retains a reference to the raw body buffer to allow access to the raw body

0 commit comments

Comments
 (0)