mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-04-29 02:37:27 +09:00
parent
e9547a556a
commit
ee06d841c2
22
package.json
22
package.json
@ -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
2128
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
|
@ -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 & {
|
||||
|
@ -28,7 +28,7 @@ export type GotOptions = {
|
||||
operationTimeout?: number;
|
||||
contentLengthLimit?: number;
|
||||
contentLengthRequired?: boolean;
|
||||
}
|
||||
};
|
||||
|
||||
const repo = JSON.parse(readFileSync(`${_dirname}/../../package.json`, 'utf8'));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user