mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-07 22:28:01 +02:00
update linguist package
This commit is contained in:
+3
-3
@@ -3,7 +3,7 @@ const fs = require("fs").promises;
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
const { Octokit } = require("@octokit/rest");
|
const { Octokit } = require("@octokit/rest");
|
||||||
const gh = require("parse-github-url");
|
const gh = require("parse-github-url");
|
||||||
const loc = require("@umijs/linguist");
|
const loc = require("github-linguist").default;
|
||||||
const { isText } = require("istextorbinary");
|
const { isText } = require("istextorbinary");
|
||||||
|
|
||||||
const db = require("./database");
|
const db = require("./database");
|
||||||
@@ -464,8 +464,8 @@ module.exports.getStats = async (options) => {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw "repo_not_found";
|
throw "repo_not_found";
|
||||||
}
|
}
|
||||||
const o = loc(repoCache);
|
const o = await loc(repoCache);
|
||||||
|
delete o.files;
|
||||||
await db.get("anonymized_repositories").updateOne(
|
await db.get("anonymized_repositories").updateOne(
|
||||||
{ repoId: repoConfig.repoId },
|
{ repoId: repoConfig.repoId },
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user