mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-09-07 16:17:11 +00:00
Merge branch 'master' into patch-1
This commit is contained in:
+18
-1
@@ -33,6 +33,16 @@ function isValidHexColor(hexColor) {
|
||||
).test(hexColor);
|
||||
}
|
||||
|
||||
function parseBoolean(value) {
|
||||
if (value === "true") {
|
||||
return true;
|
||||
} else if (value === "false") {
|
||||
return false;
|
||||
} else {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
function request(data) {
|
||||
return axios({
|
||||
url: "https://api.github.com/graphql",
|
||||
@@ -44,4 +54,11 @@ function request(data) {
|
||||
});
|
||||
}
|
||||
|
||||
module.exports = { renderError, kFormatter, encodeHTML, isValidHexColor, request };
|
||||
module.exports = {
|
||||
renderError,
|
||||
kFormatter,
|
||||
encodeHTML,
|
||||
isValidHexColor,
|
||||
request,
|
||||
parseBoolean,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user