update deps (#45)

* update deps

* lint fixes
This commit is contained in:
かっこかり 2025-02-02 11:23:28 +09:00 committed by GitHub
parent e9547a556a
commit ee06d841c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 1205 additions and 951 deletions

View File

@ -22,28 +22,28 @@
},
"devDependencies": {
"@jest/globals": "^29.7.0",
"@misskey-dev/eslint-plugin": "^2.0.3",
"@swc/core": "^1.9.1",
"@misskey-dev/eslint-plugin": "^2.1.0",
"@swc/core": "^1.10.12",
"@swc/jest": "^0.2.37",
"@types/cheerio": "0.22.35",
"@types/debug": "4.1.12",
"@types/escape-regexp": "^0.0.3",
"@types/node": "22.9.0",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"debug": "^4.3.7",
"eslint": "^9.14.0",
"@types/node": "22.13.0",
"@typescript-eslint/eslint-plugin": "^8.22.0",
"@typescript-eslint/parser": "^8.22.0",
"debug": "^4.4.0",
"eslint": "^9.19.0",
"eslint-plugin-import": "^2.31.0",
"fastify": "^5.1.0",
"fastify-cli": "^7.0.1",
"fastify": "^5.2.1",
"fastify-cli": "^7.3.0",
"jest": "^29.7.0",
"tsc-alias": "^1.8.10",
"typescript": "5.6.3"
"typescript": "5.7.3"
},
"dependencies": {
"cheerio": "1.0.0",
"escape-regexp": "0.0.1",
"got": "^14.4.4",
"got": "^14.4.5",
"html-entities": "2.5.2",
"iconv-lite": "0.6.3",
"jschardet": "3.1.4",

2128
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -136,7 +136,7 @@ export type GeneralScrapingOptions = {
operationTimeout?: number;
contentLengthLimit?: number;
contentLengthRequired?: boolean;
}
};
export async function general(_url: URL | string, opts?: GeneralScrapingOptions): Promise<Summary | null> {
let lang = opts?.lang;

View File

@ -42,7 +42,7 @@ type Summary = {
/**
* The @ handle of a fediverse user (https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/)
*/
fediverseCreator: string | null;
fediverseCreator: string | null;
};
export type SummalyResult = Summary & {

View File

@ -28,7 +28,7 @@ export type GotOptions = {
operationTimeout?: number;
contentLengthLimit?: number;
contentLengthRequired?: boolean;
}
};
const repo = JSON.parse(readFileSync(`${_dirname}/../../package.json`, 'utf8'));