fix: hide parameter array implementation (#162)

* fix: hide paramter array implementation

* chore: parseArray str check

* docs: updated readme

* chore: add codecov threshold

* docs: update docs
This commit is contained in:
Anurag Hazra
2020-07-23 21:01:23 +05:30
committed by GitHub
parent c2adcfd6fe
commit aa44bd7615
7 changed files with 35 additions and 35 deletions

View File

@ -2,7 +2,7 @@ require("dotenv").config();
const {
renderError,
parseBoolean,
parseJSON,
parseArray,
clampValue,
CONSTANTS,
} = require("../src/utils");
@ -45,7 +45,7 @@ module.exports = async (req, res) => {
res.send(
renderStatsCard(stats, {
hide: parseJSON(hide),
hide: parseArray(hide),
show_icons: parseBoolean(show_icons),
hide_title: parseBoolean(hide_title),
hide_border: parseBoolean(hide_border),

View File

@ -3,7 +3,7 @@ const {
renderError,
clampValue,
parseBoolean,
parseJSON,
parseArray,
CONSTANTS,
} = require("../src/utils");
const fetchTopLanguages = require("../src/fetchTopLanguages");
@ -44,7 +44,7 @@ module.exports = async (req, res) => {
theme,
hide_title: parseBoolean(hide_title),
card_width: parseInt(card_width, 10),
hide: parseJSON(hide),
hide: parseArray(hide),
title_color,
text_color,
bg_color,