Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/serverless-sns-sqs-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ Usage
`);
}

const funcNamePascalCase = pascalCase(funcName);
const funcNamePascalCase = this.serverless.providers.aws.naming.getNormalizedFunctionName(funcName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polish: in addition to @NoxHarmonium's more substantive feedback, it would be great to rename the variable to reflect that it will be config-driven normalisation.

Suggested change
const funcNamePascalCase = this.serverless.providers.aws.naming.getNormalizedFunctionName(funcName);
const funcNameNormalised = SOME_CONFIG_CHECK ? this.serverless.providers.aws.naming.getNormalizedFunctionName(funcName) : pascalCase(funcName);

return {
...config,
name: config.name,
Expand Down