Skip to content

Commit 4fd2761

Browse files
authored
Merge pull request #13 from ridi/feature/lodash-tree-shaking
lodash tree shaking 적용
2 parents 898747d + 541b648 commit 4fd2761

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ridi/event-client",
3-
"version": "0.2.10",
3+
"version": "0.2.11",
44
"description": "Ridibooks event tracking client",
55
"main": "dist/cjs/index.js",
66
"typings": "dist/typings/index.d.ts",

src/utils/util.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import _ from 'lodash';
1+
import mapKeys from 'lodash/mapKeys';
2+
import snakeCase from 'lodash/snakeCase';
23

34
export function convertKeyToSnakeCase(obj: Record<any, any>): Record<any, any> {
4-
return _.mapKeys(obj, (v, k) => _.snakeCase(k));
5+
return mapKeys(obj, (v, k) => snakeCase(k));
56
}

0 commit comments

Comments
 (0)