Skip to content

Commit 49387a1

Browse files
authored
Merge pull request #33 from apalumbo/feat/switch-to-change-case-lib
Feat/switch to change case lib
2 parents d1d6052 + 0e30512 commit 49387a1

File tree

4 files changed

+45
-10
lines changed

4 files changed

+45
-10
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,7 @@ dist
106106
# Local Netlify folder
107107
.netlify
108108

109-
package-lock.json
109+
# LocalHistory VSCode plugin
110+
.history
111+
112+
package-lock.json

packages/utils/lib/toSnakeCase.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ export const toSnakeCase = (options: Object):any => {
33
if (!options) return {}
44

55
const formatted = {}
6-
const snakeCase = require('lodash.snakecase')
6+
7+
const { snakeCase } = require("snake-case");
78

89
for (let key in options) {
910
const value = options[key]
1011
const newKey = snakeCase(key)
1112

1213
formatted[newKey] = value
1314
}
14-
15+
1516
return formatted
1617
}

packages/utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
"publishConfig": {
6060
"access": "public"
6161
},
62-
"dependencies": {
63-
"lodash.snakecase": "^4.1.1"
62+
"dependencies": {
63+
"snake-case": "^3.0.4"
6464
},
6565
"gitHead": "f971cf36603f8a9fa1b3854094b2fd735f65f595"
6666
}

yarn.lock

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,6 +2853,14 @@ domexception@^2.0.1:
28532853
dependencies:
28542854
webidl-conversions "^5.0.0"
28552855

2856+
dot-case@^3.0.4:
2857+
version "3.0.4"
2858+
resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-3.0.4.tgz#9b2b670d00a431667a8a75ba29cd1b98809ce751"
2859+
integrity sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==
2860+
dependencies:
2861+
no-case "^3.0.4"
2862+
tslib "^2.0.3"
2863+
28562864
dot-prop@^4.2.0:
28572865
version "4.2.1"
28582866
resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-4.2.1.tgz#45884194a71fc2cda71cbb4bceb3a4dd2f433ba4"
@@ -5085,11 +5093,6 @@ lodash.set@^4.3.2:
50855093
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
50865094
integrity sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=
50875095

5088-
lodash.snakecase@^4.1.1:
5089-
version "4.1.1"
5090-
resolved "https://registry.yarnpkg.com/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz#39d714a35357147837aefd64b5dcbb16becd8f8d"
5091-
integrity sha1-OdcUo1NXFHg3rv1ktdy7Fr7Nj40=
5092-
50935096
lodash.sortby@^4.7.0:
50945097
version "4.7.0"
50955098
resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438"
@@ -5128,6 +5131,13 @@ loud-rejection@^1.0.0:
51285131
currently-unhandled "^0.4.1"
51295132
signal-exit "^3.0.0"
51305133

5134+
lower-case@^2.0.2:
5135+
version "2.0.2"
5136+
resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-2.0.2.tgz#6fa237c63dbdc4a82ca0fd882e4722dc5e634e28"
5137+
integrity sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==
5138+
dependencies:
5139+
tslib "^2.0.3"
5140+
51315141
lru-cache@^5.1.1:
51325142
version "5.1.1"
51335143
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920"
@@ -5531,6 +5541,14 @@ nice-try@^1.0.4:
55315541
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
55325542
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
55335543

5544+
no-case@^3.0.4:
5545+
version "3.0.4"
5546+
resolved "https://registry.yarnpkg.com/no-case/-/no-case-3.0.4.tgz#d361fd5c9800f558551a8369fc0dcd4662b6124d"
5547+
integrity sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==
5548+
dependencies:
5549+
lower-case "^2.0.2"
5550+
tslib "^2.0.3"
5551+
55345552
node-fetch-npm@^2.0.2:
55355553
version "2.0.4"
55365554
resolved "https://registry.yarnpkg.com/node-fetch-npm/-/node-fetch-npm-2.0.4.tgz#6507d0e17a9ec0be3bec516958a497cec54bf5a4"
@@ -6816,6 +6834,14 @@ smart-buffer@^4.1.0:
68166834
resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.1.0.tgz#91605c25d91652f4661ea69ccf45f1b331ca21ba"
68176835
integrity sha512-iVICrxOzCynf/SNaBQCw34eM9jROU/s5rzIhpOvzhzuYHfJR/DhZfDkXiZSgKXfgv26HT3Yni3AV/DGw0cGnnw==
68186836

6837+
snake-case@^3.0.4:
6838+
version "3.0.4"
6839+
resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-3.0.4.tgz#4f2bbd568e9935abdfd593f34c691dadb49c452c"
6840+
integrity sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==
6841+
dependencies:
6842+
dot-case "^3.0.4"
6843+
tslib "^2.0.3"
6844+
68196845
snapdragon-node@^2.0.1:
68206846
version "2.1.1"
68216847
resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b"
@@ -7439,6 +7465,11 @@ tslib@^1.8.1, tslib@^1.9.0:
74397465
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
74407466
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
74417467

7468+
tslib@^2.0.3:
7469+
version "2.3.1"
7470+
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
7471+
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
7472+
74427473
tsutils@^3.17.1:
74437474
version "3.17.1"
74447475
resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.17.1.tgz#ed719917f11ca0dee586272b2ac49e015a2dd759"

0 commit comments

Comments
 (0)