Skip to content

Commit

Permalink
v4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefmikey committed Mar 17, 2024
1 parent 252e011 commit 5064ab4
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion client/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ export const ROUTES = {
export const INPUT = {
PLACEHOLDER: '[ username / repo ]',
};

4 changes: 2 additions & 2 deletions client/lib/gitlang/requests/languages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const localApi = async (owner: string, repos: string[]) => {
},
},
);
if (allLanguages?.data?.length > 0) {
if (allLanguages.data.length > 0) {
return allLanguages.data;
}
return [];
Expand All @@ -37,7 +37,7 @@ const serverApi = async (owner: string, repos: string[]) => {
},
},
);
if (allLanguages?.data?.length > 0) {
if (allLanguages.data.length > 0) {
return allLanguages.data;
}
return [];
Expand Down
4 changes: 2 additions & 2 deletions client/lib/gitlang/requests/repositories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const localApi = async (username: string) => {
params: { username },
},
);
if (allRepos?.data?.length > 0) {
if (allRepos.data.length > 0) {
return allRepos.data;
}
return [];
Expand All @@ -28,7 +28,7 @@ const serverApi = async (username: string) => {
const allRepos: { data: [] } = await axios.get(ROUTES.REPOS, {
params: { username },
});
if (allRepos?.data?.length > 0) {
if (allRepos.data.length > 0) {
return allRepos.data;
}
return [];
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gitlang",
"version": "3.2.0",
"version": "4.0.0",
"description": "View language usage per repo or total by username",
"main": "client/src/index.ts",
"scripts": {
Expand Down Expand Up @@ -34,10 +34,10 @@
"@mikey-pro/eslint-config-svelte": "^7.2.1",
"@types/dotenv-webpack": "^7.0.7",
"@types/koa": "^2.15.0",
"@types/koa__cors": "^5.0.0",
"@types/koa__router": "^12.0.4",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-static": "^4.0.4",
"@types/koa__cors": "^5.0.0",
"@types/koa__router": "^12.0.4",
"@types/node": "^20.11.28",
"babel-loader": "^9.1.3",
"css-loader": "^6.10.0",
Expand Down
2 changes: 1 addition & 1 deletion server/helpers/github/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const auth: () => Promise<string> = async () => {
new GetSecretValueCommand({ SecretId: secretName }),
);

if (data?.SecretString) {
if (data.SecretString) {
secret = data.SecretString;
}

Expand Down

0 comments on commit 5064ab4

Please sign in to comment.