🐛 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"
|
"start": "rollup -c -w"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"axios": "^0.19.0",
|
"tlds": "^0.203.1",
|
||||||
"tlds": "^0.203.1"
|
"axios": "^0.19.0"
|
||||||
},
|
},
|
||||||
|
"dependencies": {},
|
||||||
|
"devDependencies": {},
|
||||||
"files": [
|
"files": [
|
||||||
"dist/*",
|
"dist/*",
|
||||||
"README.md",
|
"README.md",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import optionType from "./optionType";
|
||||||
|
|
||||||
const optionDefault = option => {
|
const optionDefault = option => {
|
||||||
let type = optionType(option);
|
let type = optionType(option);
|
||||||
switch (optionType(option)) {
|
switch (type) {
|
||||||
case "constant":
|
case "constant":
|
||||||
return option;
|
return option;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue