1
0
Fork 0

🐛 Fixed issue in utils::optionDefault

This commit is contained in:
Joost De Cock 2019-06-28 17:51:49 +02:00
parent 3a6d7c5680
commit 4eca204d6b
2 changed files with 5 additions and 3 deletions

View file

@ -29,9 +29,11 @@
"start": "rollup -c -w"
},
"peerDependencies": {
"axios": "^0.19.0",
"tlds": "^0.203.1"
"tlds": "^0.203.1",
"axios": "^0.19.0"
},
"dependencies": {},
"devDependencies": {},
"files": [
"dist/*",
"README.md",

View file

@ -2,7 +2,7 @@ import optionType from "./optionType";
const optionDefault = option => {
let type = optionType(option);
switch (optionType(option)) {
switch (type) {
case "constant":
return option;
break;