Skip to content

Commit

Permalink
fmt and fix regex to return string
Browse files Browse the repository at this point in the history
  • Loading branch information
galaxybomb23 committed Dec 8, 2024
1 parent a9baf78 commit 3cfda81
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 152 deletions.
142 changes: 71 additions & 71 deletions Phase-2/logs/log_data.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion Phase-2/routes/api/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getGithubUrlFromNpm } from "~/src/API.ts";
import { getUserAuthInfo } from "~/utils/validation.ts";
import { queryPackageById } from "~/routes/api/package/[id].ts";
import { build } from "https://deno.land/x/esbuild@v0.14.24/mod.js";
import { build } from "https://deno.land/x/esbuild@v0.14.24/mod.js";

export const handler: Handlers = {
async POST(req) {
Expand Down
2 changes: 1 addition & 1 deletion Phase-2/routes/api/package/byRegEx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function getPackagesByRegEx(
const packages: PackageMetadata[] = [];
for (const [name, version, id, readme] of query) {
if (regEx.test(name) || regEx.test(readme)) {
packages.push({ Name: name, Version: version, ID: id });
packages.push({ Name: name as string, Version: version as string, ID: id.toString() });
}
}

Expand Down
2 changes: 1 addition & 1 deletion Phase-2/src/metrics/reviewPercentage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { logger } from "../logFile.ts";
import { getTimestampWithThreeDecimalPlaces } from "./getLatency.ts";
import { fetchJsonFromApi } from "../API.ts";
import { getGitHubAPILink } from "../githubData.ts";
import { MetricsResult, PullRequest } from "../../types/Phase1Types.ts";
import { MetricsResult, PullRequest } from "../../types/Phase1Types.ts";

export async function getReviewPercentage(
URL: string,
Expand Down
156 changes: 78 additions & 78 deletions Phase-2/utils/log_data.json

Large diffs are not rendered by default.

0 comments on commit 3cfda81

Please # to comment.