Skip to content

Commit

Permalink
chore: remove unused loggerMiddleware configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Sep 2, 2020
1 parent 414a0f4 commit 8a9eb78
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 deletions.
14 changes: 0 additions & 14 deletions packages/middleware-logger/src/configurations.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/middleware-logger/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from "./configurations";
export * from "./loggerMiddleware";
4 changes: 1 addition & 3 deletions packages/middleware-logger/src/loggerMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {
Pluggable,
} from "@aws-sdk/types";

import { LoggerResolvedConfig } from "./configurations";

export const loggerMiddleware = () => <Output extends MetadataBearer = MetadataBearer>(
next: FinalizeHandler<any, Output>,
context: HandlerExecutionContext
Expand Down Expand Up @@ -56,7 +54,7 @@ export const loggerMiddlewareOptions: FinalizeRequestHandlerOptions & AbsoluteLo
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const getLoggerPlugin = (options: LoggerResolvedConfig): Pluggable<any, any> => ({
export const getLoggerPlugin = (options: any): Pluggable<any, any> => ({
applyToStack: (clientStack) => {
clientStack.add(loggerMiddleware(), loggerMiddlewareOptions);
},
Expand Down

0 comments on commit 8a9eb78

Please sign in to comment.