mgbuild 1.9.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/@types/index.d.ts +30 -30
- package/lib/data/tagMatcher.d.ts +7 -7
- package/lib/data/tagMatcherx.d.ts +7 -7
- package/lib/hqs/getHqAndChapters.d.ts +1 -1
- package/lib/hqs/getHqChapterById.d.ts +8 -8
- package/lib/hqs/getHqDetails.d.ts +1 -1
- package/lib/hqs/index.d.ts +5 -5
- package/lib/hqs/listHqIds.d.ts +5 -5
- package/lib/hqs/listUpdatedHqs.d.ts +6 -6
- package/lib/hqs/utils.d.ts +46 -46
- package/lib/index.d.ts +24 -24
- package/lib/index.js +3 -3
- package/lib/mgs/br/chapter.d.ts +4 -4
- package/lib/mgs/br/config.d.ts +6 -6
- package/lib/mgs/br/headers.d.ts +54 -54
- package/lib/mgs/br/index.d.ts +20 -20
- package/lib/mgs/br/manga.d.ts +3 -3
- package/lib/mgs/br/recent.d.ts +3 -3
- package/lib/mgs/fm/chapter.d.ts +4 -4
- package/lib/mgs/fm/config.d.ts +6 -6
- package/lib/mgs/fm/headers.d.ts +72 -72
- package/lib/mgs/fm/index.d.ts +17 -17
- package/lib/mgs/fm/manga.d.ts +3 -3
- package/lib/mgs/fm/recent.d.ts +3 -3
- package/lib/mgs/ma/chapter.d.ts +4 -4
- package/lib/mgs/ma/config.d.ts +6 -6
- package/lib/mgs/ma/headers.d.ts +48 -48
- package/lib/mgs/ma/index.d.ts +20 -20
- package/lib/mgs/ma/manga.d.ts +3 -3
- package/lib/mgs/ma/recent.d.ts +3 -3
- package/lib/mgs/md/core/predict.d.ts +3 -3
- package/lib/mgs/md/core/scraper.d.ts +36 -36
- package/lib/mgs/md/core/transform.d.ts +19 -19
- package/lib/mgs/md/core/utils.d.ts +39 -39
- package/lib/mgs/md/index.d.ts +27 -27
- package/lib/mgs/md/types/bulk-info.d.ts +112 -112
- package/lib/mgs/md/types/chapters.d.ts +59 -59
- package/lib/mgs/md/types/info.d.ts +82 -82
- package/lib/mgs/md/types/pages.d.ts +11 -11
- package/lib/mgs/md/types/recents.d.ts +134 -134
- package/lib/mgs/md/types/transform.d.ts +44 -44
- package/lib/mgs/ml/chapter.d.ts +3 -3
- package/lib/mgs/ml/config.d.ts +6 -6
- package/lib/mgs/ml/headers.d.ts +73 -75
- package/lib/mgs/ml/index.d.ts +18 -18
- package/lib/mgs/ml/manga.d.ts +3 -3
- package/lib/mgs/ml/recent.d.ts +3 -3
- package/lib/mgs/mo/chapter.d.ts +4 -4
- package/lib/mgs/mo/config.d.ts +6 -6
- package/lib/mgs/mo/headers.d.ts +73 -73
- package/lib/mgs/mo/index.d.ts +21 -21
- package/lib/mgs/mo/manga.d.ts +4 -4
- package/lib/mgs/mo/recent.d.ts +3 -3
- package/lib/mgs/rm/chapter.d.ts +4 -4
- package/lib/mgs/rm/config.d.ts +6 -6
- package/lib/mgs/rm/headers.d.ts +99 -99
- package/lib/mgs/rm/index.d.ts +24 -24
- package/lib/mgs/rm/manga.d.ts +3 -3
- package/lib/mgs/rm/recent.d.ts +3 -3
- package/lib/mgs/sc/chapter.d.ts +4 -4
- package/lib/mgs/sc/config.d.ts +6 -6
- package/lib/mgs/sc/headers.d.ts +70 -70
- package/lib/mgs/sc/index.d.ts +20 -20
- package/lib/mgs/sc/manga.d.ts +4 -4
- package/lib/mgs/sc/recent.d.ts +3 -3
- package/lib/mgs/sr/api/book.d.ts +101 -101
- package/lib/mgs/sr/api/chapter.d.ts +20 -20
- package/lib/mgs/sr/api/chapters.d.ts +12 -12
- package/lib/mgs/sr/api/index.d.ts +10 -10
- package/lib/mgs/sr/api/recents.d.ts +49 -49
- package/lib/mgs/sr/config.d.ts +6 -6
- package/lib/mgs/sr/headers.d.ts +65 -65
- package/lib/mgs/sr/index.d.ts +20 -20
- package/lib/mgs/sr/manga.d.ts +11 -11
- package/lib/mgs/sr/recent.d.ts +3 -3
- package/lib/mgs/st/chapter.d.ts +4 -4
- package/lib/mgs/st/config.d.ts +6 -6
- package/lib/mgs/st/headers.d.ts +70 -70
- package/lib/mgs/st/index.d.ts +21 -21
- package/lib/mgs/st/manga.d.ts +4 -4
- package/lib/mgs/st/recent.d.ts +58 -58
- package/lib/utils/graphQLRequest.d.ts +7 -7
- package/lib/utils/request.d.ts +1 -1
- package/lib/utils/tag.d.ts +3 -3
- package/lib/utils/tinyfetch.d.ts +12 -12
- package/lib/utils/tools.d.ts +29 -29
- package/lib/utils/type.d.ts +5 -5
- package/package.json +10 -10
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
export type RecentBook = {
|
|
2
|
-
book_name_original: string;
|
|
3
|
-
book_name: string;
|
|
4
|
-
book_nsfw: number;
|
|
5
|
-
book_image: string;
|
|
6
|
-
book_id: number;
|
|
7
|
-
book_publication_year: number;
|
|
8
|
-
book_flagged: number;
|
|
9
|
-
book_redirect_link: any;
|
|
10
|
-
book_tag: BookTag[];
|
|
11
|
-
book_date_created: string;
|
|
12
|
-
book_categories: BookCategory[];
|
|
13
|
-
book_temp: BookTemp[];
|
|
14
|
-
book_genre_id: number;
|
|
15
|
-
book_language_id: any;
|
|
16
|
-
book_name_alternatives: string;
|
|
17
|
-
nsfw: boolean;
|
|
18
|
-
};
|
|
19
|
-
export type BookTag = {
|
|
20
|
-
tag: Tag;
|
|
21
|
-
};
|
|
22
|
-
export type Tag = {
|
|
23
|
-
tag_nsfw: boolean;
|
|
24
|
-
tag_name: string;
|
|
25
|
-
tag_name_ptBR: string;
|
|
26
|
-
};
|
|
27
|
-
export type BookCategory = {
|
|
28
|
-
categories: Categories;
|
|
29
|
-
};
|
|
30
|
-
export type Categories = {
|
|
31
|
-
cat_name: string;
|
|
32
|
-
cat_nsfw: boolean;
|
|
33
|
-
cat_name_ptBR: string;
|
|
34
|
-
};
|
|
35
|
-
export type BookTemp = {
|
|
36
|
-
book_temp_caps: BookTempCap[];
|
|
37
|
-
};
|
|
38
|
-
export type BookTempCap = {
|
|
39
|
-
btc_cap: number;
|
|
40
|
-
btc_date_created: string;
|
|
41
|
-
btc_date_updated: string;
|
|
42
|
-
btc_name: string;
|
|
43
|
-
scan: Scan;
|
|
44
|
-
};
|
|
45
|
-
export type Scan = {
|
|
46
|
-
scan_auto_update: boolean;
|
|
47
|
-
scan_id: number;
|
|
48
|
-
scan_name: string;
|
|
49
|
-
};
|
|
1
|
+
export type RecentBook = {
|
|
2
|
+
book_name_original: string;
|
|
3
|
+
book_name: string;
|
|
4
|
+
book_nsfw: number;
|
|
5
|
+
book_image: string;
|
|
6
|
+
book_id: number;
|
|
7
|
+
book_publication_year: number;
|
|
8
|
+
book_flagged: number;
|
|
9
|
+
book_redirect_link: any;
|
|
10
|
+
book_tag: BookTag[];
|
|
11
|
+
book_date_created: string;
|
|
12
|
+
book_categories: BookCategory[];
|
|
13
|
+
book_temp: BookTemp[];
|
|
14
|
+
book_genre_id: number;
|
|
15
|
+
book_language_id: any;
|
|
16
|
+
book_name_alternatives: string;
|
|
17
|
+
nsfw: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type BookTag = {
|
|
20
|
+
tag: Tag;
|
|
21
|
+
};
|
|
22
|
+
export type Tag = {
|
|
23
|
+
tag_nsfw: boolean;
|
|
24
|
+
tag_name: string;
|
|
25
|
+
tag_name_ptBR: string;
|
|
26
|
+
};
|
|
27
|
+
export type BookCategory = {
|
|
28
|
+
categories: Categories;
|
|
29
|
+
};
|
|
30
|
+
export type Categories = {
|
|
31
|
+
cat_name: string;
|
|
32
|
+
cat_nsfw: boolean;
|
|
33
|
+
cat_name_ptBR: string;
|
|
34
|
+
};
|
|
35
|
+
export type BookTemp = {
|
|
36
|
+
book_temp_caps: BookTempCap[];
|
|
37
|
+
};
|
|
38
|
+
export type BookTempCap = {
|
|
39
|
+
btc_cap: number;
|
|
40
|
+
btc_date_created: string;
|
|
41
|
+
btc_date_updated: string;
|
|
42
|
+
btc_name: string;
|
|
43
|
+
scan: Scan;
|
|
44
|
+
};
|
|
45
|
+
export type Scan = {
|
|
46
|
+
scan_auto_update: boolean;
|
|
47
|
+
scan_id: number;
|
|
48
|
+
scan_name: string;
|
|
49
|
+
};
|
package/lib/mgs/sr/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
manga: {
|
|
3
|
-
SCRAPE_BASE_URL: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
manga: {
|
|
3
|
+
SCRAPE_BASE_URL: string;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
package/lib/mgs/sr/headers.d.ts
CHANGED
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
manga: {
|
|
3
|
-
Referer: string;
|
|
4
|
-
"Referrer-Policy": string;
|
|
5
|
-
accept: string;
|
|
6
|
-
"accept-language": string;
|
|
7
|
-
"cache-control": string;
|
|
8
|
-
priority: string;
|
|
9
|
-
pragma: string;
|
|
10
|
-
"sec-ch-ua": string;
|
|
11
|
-
"sec-ch-ua-mobile": string;
|
|
12
|
-
"sec-ch-ua-platform": string;
|
|
13
|
-
"sec-fetch-dest": string;
|
|
14
|
-
"sec-fetch-mode": string;
|
|
15
|
-
"sec-fetch-site": string;
|
|
16
|
-
"sec-fetch-user": string;
|
|
17
|
-
"sec-gpc": string;
|
|
18
|
-
"upgrade-insecure-requests": string;
|
|
19
|
-
"user-agent": string;
|
|
20
|
-
};
|
|
21
|
-
chapters: {
|
|
22
|
-
accept: string;
|
|
23
|
-
"accept-language": string;
|
|
24
|
-
authorization: string;
|
|
25
|
-
priority: string;
|
|
26
|
-
requestid: string;
|
|
27
|
-
"sec-ch-ua": string;
|
|
28
|
-
"sec-ch-ua-mobile": string;
|
|
29
|
-
"sec-ch-ua-platform": string;
|
|
30
|
-
"sec-fetch-dest": string;
|
|
31
|
-
"sec-fetch-mode": string;
|
|
32
|
-
"sec-fetch-site": string;
|
|
33
|
-
"sec-gpc": string;
|
|
34
|
-
};
|
|
35
|
-
chapter: {
|
|
36
|
-
origin: string;
|
|
37
|
-
requestid: string;
|
|
38
|
-
accept: string;
|
|
39
|
-
"accept-language": string;
|
|
40
|
-
priority: string;
|
|
41
|
-
"sec-ch-ua": string;
|
|
42
|
-
"sec-ch-ua-mobile": string;
|
|
43
|
-
"sec-ch-ua-platform": string;
|
|
44
|
-
"sec-fetch-dest": string;
|
|
45
|
-
"sec-fetch-mode": string;
|
|
46
|
-
"sec-fetch-site": string;
|
|
47
|
-
"sec-fetch-user": string;
|
|
48
|
-
"sec-gpc": string;
|
|
49
|
-
"user-agent": string;
|
|
50
|
-
};
|
|
51
|
-
recent: {
|
|
52
|
-
accept: string;
|
|
53
|
-
"accept-language": string;
|
|
54
|
-
priority: string;
|
|
55
|
-
requestid: string;
|
|
56
|
-
"sec-ch-ua": string;
|
|
57
|
-
"sec-ch-ua-mobile": string;
|
|
58
|
-
"sec-ch-ua-platform": string;
|
|
59
|
-
"sec-fetch-dest": string;
|
|
60
|
-
"sec-fetch-mode": string;
|
|
61
|
-
"sec-fetch-site": string;
|
|
62
|
-
"sec-gpc": string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
manga: {
|
|
3
|
+
Referer: string;
|
|
4
|
+
"Referrer-Policy": string;
|
|
5
|
+
accept: string;
|
|
6
|
+
"accept-language": string;
|
|
7
|
+
"cache-control": string;
|
|
8
|
+
priority: string;
|
|
9
|
+
pragma: string;
|
|
10
|
+
"sec-ch-ua": string;
|
|
11
|
+
"sec-ch-ua-mobile": string;
|
|
12
|
+
"sec-ch-ua-platform": string;
|
|
13
|
+
"sec-fetch-dest": string;
|
|
14
|
+
"sec-fetch-mode": string;
|
|
15
|
+
"sec-fetch-site": string;
|
|
16
|
+
"sec-fetch-user": string;
|
|
17
|
+
"sec-gpc": string;
|
|
18
|
+
"upgrade-insecure-requests": string;
|
|
19
|
+
"user-agent": string;
|
|
20
|
+
};
|
|
21
|
+
chapters: {
|
|
22
|
+
accept: string;
|
|
23
|
+
"accept-language": string;
|
|
24
|
+
authorization: string;
|
|
25
|
+
priority: string;
|
|
26
|
+
requestid: string;
|
|
27
|
+
"sec-ch-ua": string;
|
|
28
|
+
"sec-ch-ua-mobile": string;
|
|
29
|
+
"sec-ch-ua-platform": string;
|
|
30
|
+
"sec-fetch-dest": string;
|
|
31
|
+
"sec-fetch-mode": string;
|
|
32
|
+
"sec-fetch-site": string;
|
|
33
|
+
"sec-gpc": string;
|
|
34
|
+
};
|
|
35
|
+
chapter: {
|
|
36
|
+
origin: string;
|
|
37
|
+
requestid: string;
|
|
38
|
+
accept: string;
|
|
39
|
+
"accept-language": string;
|
|
40
|
+
priority: string;
|
|
41
|
+
"sec-ch-ua": string;
|
|
42
|
+
"sec-ch-ua-mobile": string;
|
|
43
|
+
"sec-ch-ua-platform": string;
|
|
44
|
+
"sec-fetch-dest": string;
|
|
45
|
+
"sec-fetch-mode": string;
|
|
46
|
+
"sec-fetch-site": string;
|
|
47
|
+
"sec-fetch-user": string;
|
|
48
|
+
"sec-gpc": string;
|
|
49
|
+
"user-agent": string;
|
|
50
|
+
};
|
|
51
|
+
recent: {
|
|
52
|
+
accept: string;
|
|
53
|
+
"accept-language": string;
|
|
54
|
+
priority: string;
|
|
55
|
+
requestid: string;
|
|
56
|
+
"sec-ch-ua": string;
|
|
57
|
+
"sec-ch-ua-mobile": string;
|
|
58
|
+
"sec-ch-ua-platform": string;
|
|
59
|
+
"sec-fetch-dest": string;
|
|
60
|
+
"sec-fetch-mode": string;
|
|
61
|
+
"sec-fetch-site": string;
|
|
62
|
+
"sec-gpc": string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
export default _default;
|
package/lib/mgs/sr/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
type Log = {
|
|
2
|
-
type: "ping" | "error";
|
|
3
|
-
method: string;
|
|
4
|
-
url: string;
|
|
5
|
-
time: string;
|
|
6
|
-
};
|
|
7
|
-
type Logger = (log: Log) => any;
|
|
8
|
-
export declare class Scraper {
|
|
9
|
-
private logger?;
|
|
10
|
-
constructor(logger?: Logger);
|
|
11
|
-
manga(manga_code: string): Promise<import("../..").ScrapedManga>;
|
|
12
|
-
chapterById(chapter_id: string | number): Promise<{
|
|
13
|
-
pages: string[];
|
|
14
|
-
}>;
|
|
15
|
-
chapter(manga_code: string, chapter_number: number): Promise<{
|
|
16
|
-
pages: string[];
|
|
17
|
-
}>;
|
|
18
|
-
recents(page?: number): Promise<import("../..").RecentScrapeList[]>;
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
1
|
+
type Log = {
|
|
2
|
+
type: "ping" | "error";
|
|
3
|
+
method: string;
|
|
4
|
+
url: string;
|
|
5
|
+
time: string;
|
|
6
|
+
};
|
|
7
|
+
type Logger = (log: Log) => any;
|
|
8
|
+
export declare class Scraper {
|
|
9
|
+
private logger?;
|
|
10
|
+
constructor(logger?: Logger);
|
|
11
|
+
manga(manga_code: string): Promise<import("../..").ScrapedManga>;
|
|
12
|
+
chapterById(chapter_id: string | number): Promise<{
|
|
13
|
+
pages: string[];
|
|
14
|
+
}>;
|
|
15
|
+
chapter(manga_code: string, chapter_number: number): Promise<{
|
|
16
|
+
pages: string[];
|
|
17
|
+
}>;
|
|
18
|
+
recents(page?: number): Promise<import("../..").RecentScrapeList[]>;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
package/lib/mgs/sr/manga.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ScrapedHostChapter, ScrapedManga } from "../../@types";
|
|
2
|
-
import { Book } from "./api/book";
|
|
3
|
-
interface MangaLike {
|
|
4
|
-
code: string | number;
|
|
5
|
-
slug: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function extractChapters(chapterList: {
|
|
8
|
-
chapter?: string;
|
|
9
|
-
}[], manga: MangaLike): ScrapedHostChapter[];
|
|
10
|
-
export declare function getManga(book: Book, code: string | number): ScrapedManga;
|
|
11
|
-
export {};
|
|
1
|
+
import { ScrapedHostChapter, ScrapedManga } from "../../@types";
|
|
2
|
+
import { Book } from "./api/book";
|
|
3
|
+
interface MangaLike {
|
|
4
|
+
code: string | number;
|
|
5
|
+
slug: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function extractChapters(chapterList: {
|
|
8
|
+
chapter?: string;
|
|
9
|
+
}[], manga: MangaLike): ScrapedHostChapter[];
|
|
10
|
+
export declare function getManga(book: Book, code: string | number): ScrapedManga;
|
|
11
|
+
export {};
|
package/lib/mgs/sr/recent.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { RecentScrapeList } from "../../@types";
|
|
2
|
-
import { RecentBook } from "./api/recents";
|
|
3
|
-
export declare function getRecentList(books: RecentBook[]): RecentScrapeList[];
|
|
1
|
+
import { RecentScrapeList } from "../../@types";
|
|
2
|
+
import { RecentBook } from "./api/recents";
|
|
3
|
+
export declare function getRecentList(books: RecentBook[]): RecentScrapeList[];
|
package/lib/mgs/st/chapter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="cheerio" />
|
|
2
|
-
export declare function getChapter($: cheerio.Root): Promise<{
|
|
3
|
-
pages: string[];
|
|
4
|
-
}>;
|
|
1
|
+
/// <reference types="cheerio" />
|
|
2
|
+
export declare function getChapter($: cheerio.Root): Promise<{
|
|
3
|
+
pages: string[];
|
|
4
|
+
}>;
|
package/lib/mgs/st/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
manga: {
|
|
3
|
-
SCRAPE_BASE_URL: string;
|
|
4
|
-
};
|
|
5
|
-
};
|
|
6
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
manga: {
|
|
3
|
+
SCRAPE_BASE_URL: string;
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
package/lib/mgs/st/headers.d.ts
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
manga: {
|
|
3
|
-
accept: string;
|
|
4
|
-
"accept-language": string;
|
|
5
|
-
"cache-control": string;
|
|
6
|
-
priority: string;
|
|
7
|
-
pragma: string;
|
|
8
|
-
"sec-ch-ua": string;
|
|
9
|
-
"sec-ch-ua-mobile": string;
|
|
10
|
-
"sec-ch-ua-platform": string;
|
|
11
|
-
"sec-fetch-dest": string;
|
|
12
|
-
"sec-fetch-mode": string;
|
|
13
|
-
"sec-fetch-site": string;
|
|
14
|
-
"sec-fetch-user": string;
|
|
15
|
-
"sec-gpc": string;
|
|
16
|
-
"upgrade-insecure-requests": string;
|
|
17
|
-
"user-agent": string;
|
|
18
|
-
};
|
|
19
|
-
chapter: {
|
|
20
|
-
accept: string;
|
|
21
|
-
"accept-language": string;
|
|
22
|
-
"cache-control": string;
|
|
23
|
-
priority: string;
|
|
24
|
-
pragma: string;
|
|
25
|
-
"sec-ch-ua": string;
|
|
26
|
-
"sec-ch-ua-mobile": string;
|
|
27
|
-
"sec-ch-ua-platform": string;
|
|
28
|
-
"sec-fetch-dest": string;
|
|
29
|
-
"sec-fetch-mode": string;
|
|
30
|
-
"sec-fetch-site": string;
|
|
31
|
-
"sec-fetch-user": string;
|
|
32
|
-
"sec-gpc": string;
|
|
33
|
-
"upgrade-insecure-requests": string;
|
|
34
|
-
"user-agent": string;
|
|
35
|
-
};
|
|
36
|
-
chapterList: {
|
|
37
|
-
accept: string;
|
|
38
|
-
"accept-language": string;
|
|
39
|
-
"cache-control": string;
|
|
40
|
-
pragma: string;
|
|
41
|
-
priority: string;
|
|
42
|
-
"sec-ch-ua": string;
|
|
43
|
-
"sec-ch-ua-mobile": string;
|
|
44
|
-
"sec-ch-ua-platform": string;
|
|
45
|
-
"sec-fetch-dest": string;
|
|
46
|
-
"sec-fetch-mode": string;
|
|
47
|
-
"sec-fetch-site": string;
|
|
48
|
-
"sec-gpc": string;
|
|
49
|
-
"x-requested-with": string;
|
|
50
|
-
"Referrer-Policy": string;
|
|
51
|
-
};
|
|
52
|
-
recent: {
|
|
53
|
-
accept: string;
|
|
54
|
-
"accept-language": string;
|
|
55
|
-
"cache-control": string;
|
|
56
|
-
priority: string;
|
|
57
|
-
pragma: string;
|
|
58
|
-
"sec-ch-ua": string;
|
|
59
|
-
"sec-ch-ua-mobile": string;
|
|
60
|
-
"sec-ch-ua-platform": string;
|
|
61
|
-
"sec-fetch-dest": string;
|
|
62
|
-
"sec-fetch-mode": string;
|
|
63
|
-
"sec-fetch-site": string;
|
|
64
|
-
"sec-fetch-user": string;
|
|
65
|
-
"sec-gpc": string;
|
|
66
|
-
"upgrade-insecure-requests": string;
|
|
67
|
-
"user-agent": string;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
manga: {
|
|
3
|
+
accept: string;
|
|
4
|
+
"accept-language": string;
|
|
5
|
+
"cache-control": string;
|
|
6
|
+
priority: string;
|
|
7
|
+
pragma: string;
|
|
8
|
+
"sec-ch-ua": string;
|
|
9
|
+
"sec-ch-ua-mobile": string;
|
|
10
|
+
"sec-ch-ua-platform": string;
|
|
11
|
+
"sec-fetch-dest": string;
|
|
12
|
+
"sec-fetch-mode": string;
|
|
13
|
+
"sec-fetch-site": string;
|
|
14
|
+
"sec-fetch-user": string;
|
|
15
|
+
"sec-gpc": string;
|
|
16
|
+
"upgrade-insecure-requests": string;
|
|
17
|
+
"user-agent": string;
|
|
18
|
+
};
|
|
19
|
+
chapter: {
|
|
20
|
+
accept: string;
|
|
21
|
+
"accept-language": string;
|
|
22
|
+
"cache-control": string;
|
|
23
|
+
priority: string;
|
|
24
|
+
pragma: string;
|
|
25
|
+
"sec-ch-ua": string;
|
|
26
|
+
"sec-ch-ua-mobile": string;
|
|
27
|
+
"sec-ch-ua-platform": string;
|
|
28
|
+
"sec-fetch-dest": string;
|
|
29
|
+
"sec-fetch-mode": string;
|
|
30
|
+
"sec-fetch-site": string;
|
|
31
|
+
"sec-fetch-user": string;
|
|
32
|
+
"sec-gpc": string;
|
|
33
|
+
"upgrade-insecure-requests": string;
|
|
34
|
+
"user-agent": string;
|
|
35
|
+
};
|
|
36
|
+
chapterList: {
|
|
37
|
+
accept: string;
|
|
38
|
+
"accept-language": string;
|
|
39
|
+
"cache-control": string;
|
|
40
|
+
pragma: string;
|
|
41
|
+
priority: string;
|
|
42
|
+
"sec-ch-ua": string;
|
|
43
|
+
"sec-ch-ua-mobile": string;
|
|
44
|
+
"sec-ch-ua-platform": string;
|
|
45
|
+
"sec-fetch-dest": string;
|
|
46
|
+
"sec-fetch-mode": string;
|
|
47
|
+
"sec-fetch-site": string;
|
|
48
|
+
"sec-gpc": string;
|
|
49
|
+
"x-requested-with": string;
|
|
50
|
+
"Referrer-Policy": string;
|
|
51
|
+
};
|
|
52
|
+
recent: {
|
|
53
|
+
accept: string;
|
|
54
|
+
"accept-language": string;
|
|
55
|
+
"cache-control": string;
|
|
56
|
+
priority: string;
|
|
57
|
+
pragma: string;
|
|
58
|
+
"sec-ch-ua": string;
|
|
59
|
+
"sec-ch-ua-mobile": string;
|
|
60
|
+
"sec-ch-ua-platform": string;
|
|
61
|
+
"sec-fetch-dest": string;
|
|
62
|
+
"sec-fetch-mode": string;
|
|
63
|
+
"sec-fetch-site": string;
|
|
64
|
+
"sec-fetch-user": string;
|
|
65
|
+
"sec-gpc": string;
|
|
66
|
+
"upgrade-insecure-requests": string;
|
|
67
|
+
"user-agent": string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export default _default;
|
package/lib/mgs/st/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
type Log = {
|
|
2
|
-
type: "ping" | "error";
|
|
3
|
-
method: string;
|
|
4
|
-
url: string;
|
|
5
|
-
time: string;
|
|
6
|
-
};
|
|
7
|
-
type Logger = (log: Log) => any;
|
|
8
|
-
export declare class Scraper {
|
|
9
|
-
private logger?;
|
|
10
|
-
constructor(logger?: Logger);
|
|
11
|
-
private chapterList;
|
|
12
|
-
manga(manga_code: string): Promise<import("../..").ScrapedManga>;
|
|
13
|
-
chapterById(chapter_id: string | number): Promise<{
|
|
14
|
-
pages: string[];
|
|
15
|
-
}>;
|
|
16
|
-
chapter(manga_code: string, chapter_number: number): Promise<{
|
|
17
|
-
pages: string[];
|
|
18
|
-
}>;
|
|
19
|
-
recents(page?: number): Promise<import("../..").RecentScrapeList[]>;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
1
|
+
type Log = {
|
|
2
|
+
type: "ping" | "error";
|
|
3
|
+
method: string;
|
|
4
|
+
url: string;
|
|
5
|
+
time: string;
|
|
6
|
+
};
|
|
7
|
+
type Logger = (log: Log) => any;
|
|
8
|
+
export declare class Scraper {
|
|
9
|
+
private logger?;
|
|
10
|
+
constructor(logger?: Logger);
|
|
11
|
+
private chapterList;
|
|
12
|
+
manga(manga_code: string): Promise<import("../..").ScrapedManga>;
|
|
13
|
+
chapterById(chapter_id: string | number): Promise<{
|
|
14
|
+
pages: string[];
|
|
15
|
+
}>;
|
|
16
|
+
chapter(manga_code: string, chapter_number: number): Promise<{
|
|
17
|
+
pages: string[];
|
|
18
|
+
}>;
|
|
19
|
+
recents(page?: number): Promise<import("../..").RecentScrapeList[]>;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
package/lib/mgs/st/manga.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="cheerio" />
|
|
2
|
-
import { ScrapedHostChapter, ScrapedManga } from "../../@types";
|
|
3
|
-
export declare function getChapters($: cheerio.Root, slug: string): ScrapedHostChapter[];
|
|
4
|
-
export declare function getManga($: cheerio.Root, slug: string): ScrapedManga;
|
|
1
|
+
/// <reference types="cheerio" />
|
|
2
|
+
import { ScrapedHostChapter, ScrapedManga } from "../../@types";
|
|
3
|
+
export declare function getChapters($: cheerio.Root, slug: string): ScrapedHostChapter[];
|
|
4
|
+
export declare function getManga($: cheerio.Root, slug: string): ScrapedManga;
|
package/lib/mgs/st/recent.d.ts
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
/// <reference types="cheerio" />
|
|
2
|
-
import { RecentScrapeList } from "../../@types";
|
|
3
|
-
export type RawScrapeItem = {
|
|
4
|
-
obr_id: number;
|
|
5
|
-
obr_nome: string;
|
|
6
|
-
obr_outros_nomes: string[];
|
|
7
|
-
obr_descricao: string;
|
|
8
|
-
formt_id: number;
|
|
9
|
-
stt_id: number;
|
|
10
|
-
obr_status: string;
|
|
11
|
-
obr_imagem: string;
|
|
12
|
-
obr_imagem_fundo: any;
|
|
13
|
-
obr_visualizacoes: number;
|
|
14
|
-
obr_criada_em: string;
|
|
15
|
-
obr_atualizado_em: string;
|
|
16
|
-
obr_slug: string;
|
|
17
|
-
obr_mais_18: boolean;
|
|
18
|
-
obr_vip: boolean;
|
|
19
|
-
scan_id: number;
|
|
20
|
-
parceira_id: any;
|
|
21
|
-
formato: Formato;
|
|
22
|
-
status: Status;
|
|
23
|
-
tags: Tag[];
|
|
24
|
-
total_capitulos: number;
|
|
25
|
-
ultimos_capitulos: LastChapters[];
|
|
26
|
-
favorito: boolean;
|
|
27
|
-
total_lidos: number;
|
|
28
|
-
genero: Genere;
|
|
29
|
-
rating: number;
|
|
30
|
-
total_rating: number;
|
|
31
|
-
};
|
|
32
|
-
export type Formato = {
|
|
33
|
-
formt_id: number;
|
|
34
|
-
formt_nome: string;
|
|
35
|
-
};
|
|
36
|
-
export type Status = {
|
|
37
|
-
stt_id: number;
|
|
38
|
-
stt_nome: string;
|
|
39
|
-
stt_cor: string;
|
|
40
|
-
};
|
|
41
|
-
export type Tag = {
|
|
42
|
-
tag_id: number;
|
|
43
|
-
tag_nome: string;
|
|
44
|
-
};
|
|
45
|
-
export type LastChapters = {
|
|
46
|
-
cap_id: number;
|
|
47
|
-
cap_nome: string;
|
|
48
|
-
cap_numero: number;
|
|
49
|
-
cap_lancado_em: string;
|
|
50
|
-
cap_new: boolean;
|
|
51
|
-
cap_lido: boolean;
|
|
52
|
-
cap_disponivel: boolean;
|
|
53
|
-
};
|
|
54
|
-
export type Genere = {
|
|
55
|
-
gen_id: number;
|
|
56
|
-
gen_nome: string;
|
|
57
|
-
};
|
|
58
|
-
export declare function getRecentList($: cheerio.Root): RecentScrapeList[];
|
|
1
|
+
/// <reference types="cheerio" />
|
|
2
|
+
import { RecentScrapeList } from "../../@types";
|
|
3
|
+
export type RawScrapeItem = {
|
|
4
|
+
obr_id: number;
|
|
5
|
+
obr_nome: string;
|
|
6
|
+
obr_outros_nomes: string[];
|
|
7
|
+
obr_descricao: string;
|
|
8
|
+
formt_id: number;
|
|
9
|
+
stt_id: number;
|
|
10
|
+
obr_status: string;
|
|
11
|
+
obr_imagem: string;
|
|
12
|
+
obr_imagem_fundo: any;
|
|
13
|
+
obr_visualizacoes: number;
|
|
14
|
+
obr_criada_em: string;
|
|
15
|
+
obr_atualizado_em: string;
|
|
16
|
+
obr_slug: string;
|
|
17
|
+
obr_mais_18: boolean;
|
|
18
|
+
obr_vip: boolean;
|
|
19
|
+
scan_id: number;
|
|
20
|
+
parceira_id: any;
|
|
21
|
+
formato: Formato;
|
|
22
|
+
status: Status;
|
|
23
|
+
tags: Tag[];
|
|
24
|
+
total_capitulos: number;
|
|
25
|
+
ultimos_capitulos: LastChapters[];
|
|
26
|
+
favorito: boolean;
|
|
27
|
+
total_lidos: number;
|
|
28
|
+
genero: Genere;
|
|
29
|
+
rating: number;
|
|
30
|
+
total_rating: number;
|
|
31
|
+
};
|
|
32
|
+
export type Formato = {
|
|
33
|
+
formt_id: number;
|
|
34
|
+
formt_nome: string;
|
|
35
|
+
};
|
|
36
|
+
export type Status = {
|
|
37
|
+
stt_id: number;
|
|
38
|
+
stt_nome: string;
|
|
39
|
+
stt_cor: string;
|
|
40
|
+
};
|
|
41
|
+
export type Tag = {
|
|
42
|
+
tag_id: number;
|
|
43
|
+
tag_nome: string;
|
|
44
|
+
};
|
|
45
|
+
export type LastChapters = {
|
|
46
|
+
cap_id: number;
|
|
47
|
+
cap_nome: string;
|
|
48
|
+
cap_numero: number;
|
|
49
|
+
cap_lancado_em: string;
|
|
50
|
+
cap_new: boolean;
|
|
51
|
+
cap_lido: boolean;
|
|
52
|
+
cap_disponivel: boolean;
|
|
53
|
+
};
|
|
54
|
+
export type Genere = {
|
|
55
|
+
gen_id: number;
|
|
56
|
+
gen_nome: string;
|
|
57
|
+
};
|
|
58
|
+
export declare function getRecentList($: cheerio.Root): RecentScrapeList[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
interface GraphQLRequestBody {
|
|
2
|
-
query: string;
|
|
3
|
-
operationName: string;
|
|
4
|
-
variables?: any;
|
|
5
|
-
}
|
|
6
|
-
export declare function graphQLRequest(body: GraphQLRequestBody): Promise<any>;
|
|
7
|
-
export {};
|
|
1
|
+
interface GraphQLRequestBody {
|
|
2
|
+
query: string;
|
|
3
|
+
operationName: string;
|
|
4
|
+
variables?: any;
|
|
5
|
+
}
|
|
6
|
+
export declare function graphQLRequest(body: GraphQLRequestBody): Promise<any>;
|
|
7
|
+
export {};
|