Skip to content

Commit

Permalink
adding zod dep and exposing logger
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbarbour committed Nov 22, 2024
1 parent e8b4572 commit 99e19f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@
"@middy/core": "^5",
"@middy/http-router": "^5",
"@aws-lambda-powertools/logger": "^2",
"@aws-lambda-powertools/parser": "^2"
"@aws-lambda-powertools/parser": "^2",
"zod": "^3",
"zod-to-json-schema": "^3"
},
"devDependencies": {
"@aws-lambda-powertools/logger": "^2.10.0",
Expand Down
2 changes: 1 addition & 1 deletion src/cli/generators/middy/middy-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export interface ${className}Handlers {
export class ${className} {
private logger = new Logger({ serviceName: '${className}' });
logger = new Logger({ serviceName: '${className}' });
${this.routesFunction(routes)}
Expand Down

0 comments on commit 99e19f0

Please sign in to comment.