Skip to content

Commit c187364

Browse files
committed
fix: fixed humanize to humanize-string
1 parent 36c12ec commit c187364

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"dependencies": {
1616
"capitalize": "^2.0.0",
17-
"humanize": "^0.0.9",
17+
"humanize-string": "^2.1.0",
1818
"lodash": "^4.17.15"
1919
},
2020
"devDependencies": {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const _ = require('lodash');
22
const capitalize = require('capitalize');
3-
const humanize = require('humanize');
3+
const humanize = require('humanize-string');
44

55
function mongooseValidationErrorTransform(schema, options) {
66
options = _.defaults(options || {}, {

yarn.lock

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,13 @@ decamelize@^1.1.0:
17151715
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290"
17161716
integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=
17171717

1718+
decamelize@^2.0.0:
1719+
version "2.0.0"
1720+
resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-2.0.0.tgz#656d7bbc8094c4c788ea53c5840908c9c7d063c7"
1721+
integrity sha512-Ikpp5scV3MSYxY39ymh45ZLEecsTdv/Xj2CaQfI8RLMuwi7XvjX9H/fhraiSuU+C5w5NTDu4ZU72xNiZnurBPg==
1722+
dependencies:
1723+
xregexp "4.0.0"
1724+
17181725
decode-uri-component@^0.2.0:
17191726
version "0.2.0"
17201727
resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.0.tgz#eb3913333458775cb84cd1a1fae062106bb87545"
@@ -2882,10 +2889,12 @@ hosted-git-info@^2.1.4, hosted-git-info@^2.5.0:
28822889
resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.4.tgz#44119abaf4bc64692a16ace34700fed9c03e2546"
28832890
integrity sha512-pzXIvANXEFrc5oFFXRMkbLPQ2rXRoDERwDLyrcUxGhaZhgP54BBSl9Oheh7Vv0T090cszWBxPjkQQ5Sq1PbBRQ==
28842891

2885-
humanize@^0.0.9:
2886-
version "0.0.9"
2887-
resolved "https://registry.yarnpkg.com/humanize/-/humanize-0.0.9.tgz#1994ffaecdfe9c441ed2bdac7452b7bb4c9e41a4"
2888-
integrity sha1-GZT/rs3+nEQe0r2sdFK3u0yeQaQ=
2892+
humanize-string@^2.1.0:
2893+
version "2.1.0"
2894+
resolved "https://registry.yarnpkg.com/humanize-string/-/humanize-string-2.1.0.tgz#a7d7062e5e514e04f072607ded0df853be8a1f2f"
2895+
integrity sha512-sQ+hqmxyXW8Cj7iqxcQxD7oSy3+AXnIZXdUF9lQMkzaG8dtbKAB8U7lCtViMnwQ+MpdCKsO2Kiij3G6UUXq/Xg==
2896+
dependencies:
2897+
decamelize "^2.0.0"
28892898

28902899
husky@^3.0.5:
28912900
version "3.0.5"
@@ -6921,6 +6930,11 @@ xo@^0.24.0:
69216930
update-notifier "^2.3.0"
69226931
xo-init "^0.7.0"
69236932

6933+
6934+
version "4.0.0"
6935+
resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-4.0.0.tgz#e698189de49dd2a18cc5687b05e17c8e43943020"
6936+
integrity sha512-PHyM+sQouu7xspQQwELlGwwd05mXUFqwFYfqPO0cC7x4fxyHnnuetmQr6CjJiafIDoH4MogHb9dOoJzR/Y4rFg==
6937+
69246938
xtend@^4.0.0, xtend@^4.0.1, xtend@~4.0.1:
69256939
version "4.0.2"
69266940
resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54"

0 commit comments

Comments
 (0)