Skip to content

Commit

Permalink
fix(console): remove all log
Browse files Browse the repository at this point in the history
  • Loading branch information
Debaerdm committed Feb 26, 2021
1 parent 71315fd commit 4140d92
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 16 deletions.
6 changes: 4 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ export default {
nodePolyfills(),
svelte({
compilerOptions: {
// enable run-time checks when not in production
dev: !production,
},
preprocess: createPreprocessors(!production),
}),
css({ output: 'bundle.css' }),
css({
output: 'bundle.css',
sourceMap: !production,
}),
resolve({
browser: true,
dedupe: ['svelte'],
Expand Down
6 changes: 0 additions & 6 deletions src/requesters/OAuthAzureDevOps.requester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ export class OAuthAzureDevOpsRequester extends Requester<OAuthAzureDevOpsConfigT
return (
await super.fetch<AzureDevOpsDescriptorApiType>(
`https://vssps.dev.azure.com/_apis/graph/descriptors/${userId}?api-version=${this.API_VERSION}`,
{
cache: true,
},
)
).value;
}
Expand All @@ -55,9 +52,6 @@ export class OAuthAzureDevOpsRequester extends Requester<OAuthAzureDevOpsConfigT
return (
await super.fetch<AzureDevOpsAvatarApiType>(
`https://vssps.dev.azure.com/${organizationName}/_apis/graph/Subjects/${descriptor}/avatars?size=large&api-version=${this.API_VERSION}`,
{
cache: true,
},
)
).value;
}
Expand Down
2 changes: 1 addition & 1 deletion src/requesters/OAuthGithub.requester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class OAuthGithubRequester extends Requester<OAuthGithubConfigType> {
pullRequest?: string,
): Promise<GithubCommentApiType[]> {
return super.fetch<GithubCommentsApiType>(
`https://api.github.com/repos/${owner}/${repository}/issues/${pullRequest}/comments?sort=updated`,
`https://api.github.com/repos/${owner}/${repository}/pulls/${pullRequest}/comments?sort=updated`,
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/requesters/Requester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export abstract class Requester<T extends OAuthConfigType> {
},
],
},
cache: options && options.cache ? 'force-cache' : 'no-store',
cache: 'force-cache',
headers,
});

Expand Down
4 changes: 0 additions & 4 deletions src/services/OAuthGithub.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ export class OAuthGithubService implements IService {
pullRequest.number.toString(),
);

comments = comments.filter(
comment => comment.user.type === GithubUserEnum.User,
);

let reviewers = await this.requester.getReviews(
owner,
name,
Expand Down
1 change: 1 addition & 0 deletions src/shared/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const getToken = async <T extends OAuthConfigType>(
[provider]: {
...n[provider],
...result,
current_date: new Date(),
},
}));
}
Expand Down
2 changes: 0 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export const checkRepository = async (
{ target },
repository: RepositoryType,
) => {
console.log({ repository });

const { checked } = target as HTMLInputElement;

if (checked) {
Expand Down

0 comments on commit 4140d92

Please sign in to comment.