Skip to content

Commit

Permalink
fix(azure-functions): function name to be camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
mildronize committed May 5, 2024
1 parent 472478a commit abc5620
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/azure-functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/lodash.camelcase": "^4.3.9",
"@types/uuid": "^9.0.7",
"import": "^0.0.6",
"node-mocks-http": "^1.14.1"
}
}
4 changes: 3 additions & 1 deletion packages/azure-functions/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import type { HandlerFunction, RegisterFunctionOption, AzureFunctionsEndpoint, F

import { NammathamContext } from './nammatham-context';

import camelCase from 'lodash.camelcase';

export class AzureFunctionsHandler<
TTriggerType,
TReturnType,
Expand Down Expand Up @@ -37,7 +39,7 @@ export class AzureFunctionsHandler<
return {
...this.functionOption,
type: 'azure-functions',
name: this.funcName,
name: camelCase(this.funcName),
invokeHandler,
registerFunc: this.registerFunc,
};
Expand Down
40 changes: 40 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit abc5620

Please sign in to comment.