Skip to content

Commit

Permalink
fix: style.grey is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
neikvon committed May 8, 2020
1 parent 81dd090 commit 32a2df5
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 17 deletions.
9 changes: 9 additions & 0 deletions lib/utils/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,14 @@ Object.keys(util.inspect.colors).map(c => {
return true
})
style.normal = text => text
if (!style.grey) {
if (util.inspect.colors.gray) {
style.grey = text => colorize('gray', text)
style.bgGrey = text => colorize('bgGray', text)
} else {
style.grey = style.normal
style.bgGrey = style.normal
}
}

module.exports = style
52 changes: 38 additions & 14 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/neikvon/fbi.git"
"url": "git+https://github.com/fbi-js/fbi.git"
},
"keywords": [
"fbi",
Expand All @@ -42,8 +42,8 @@
"dependencies"
],
"bugs": {
"url": "https://github.com/neikvon/fbi/issues"
"url": "https://github.com/fbi-js/fbi/issues"
},
"homepage": "https://github.com/neikvon/fbi#readme",
"homepage": "https://github.com/fbi-js/fbi#readme",
"author": "neikvon <[email protected]>"
}

0 comments on commit 32a2df5

Please sign in to comment.