Skip to content

Commit

Permalink
fix: kebabecase api parameters (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
manchuck authored Mar 8, 2023
1 parent 35868e7 commit c71d424
Show file tree
Hide file tree
Showing 40 changed files with 772 additions and 422 deletions.
24 changes: 18 additions & 6 deletions package-lock.json

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

3 changes: 3 additions & 0 deletions packages/server-client/lib/transformers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import camelCase from 'lodash.camelcase';
import snakeCase from 'lodash.snakecase';
import kebabCase from 'lodash.kebabcase';
import partial from 'lodash.partial';
import isObject from 'lodash.isobject';

Expand Down Expand Up @@ -52,3 +53,5 @@ export const transformObjectKeys = (
export const camelCaseObjectKeys = partial(transformObjectKeys, camelCase);

export const snakeCaseObjectKeys = partial(transformObjectKeys, snakeCase);

export const kebabCaseObjectKeys = partial(transformObjectKeys, kebabCase);
1 change: 1 addition & 0 deletions packages/server-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"debug": "^4.3.4",
"lodash.camelcase": "^4.3.0",
"lodash.isobject": "3.0.2",
"lodash.kebabcase": "^4.1.1",
"lodash.partial": "^4.2.1",
"lodash.snakecase": "^4.1.1"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/sms/__tests__/__dataSets__/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import smsTests from './sms';

export default [
{
label: 'Sending SMS',
tests: smsTests,
},
];
Loading

0 comments on commit c71d424

Please sign in to comment.