🐛 Fixed issue in utils::optionDefault
This commit is contained in:
parent
3a6d7c5680
commit
4eca204d6b
2 changed files with 5 additions and 3 deletions
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue