mgbuild 1.9.8 → 1.9.9
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 -22
- 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 -0
- package/lib/mgs/fm/config.d.ts +6 -0
- package/lib/mgs/fm/headers.d.ts +72 -0
- package/lib/mgs/fm/index.d.ts +17 -0
- package/lib/mgs/fm/manga.d.ts +3 -0
- package/lib/mgs/fm/recent.d.ts +3 -0
- 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 +75 -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
package/lib/mgs/br/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/br/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/br/headers.d.ts
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
manga: {
|
|
3
|
-
referer: string;
|
|
4
|
-
accept: string;
|
|
5
|
-
"accept-language": string;
|
|
6
|
-
"cache-control": 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
|
-
referer: string;
|
|
21
|
-
accept: string;
|
|
22
|
-
"accept-language": string;
|
|
23
|
-
"cache-control": 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
|
-
recent: {
|
|
37
|
-
referer: string;
|
|
38
|
-
accept: string;
|
|
39
|
-
"accept-language": string;
|
|
40
|
-
"cache-control": string;
|
|
41
|
-
pragma: 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-fetch-user": string;
|
|
49
|
-
"sec-gpc": string;
|
|
50
|
-
"upgrade-insecure-requests": string;
|
|
51
|
-
"user-agent": string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
manga: {
|
|
3
|
+
referer: string;
|
|
4
|
+
accept: string;
|
|
5
|
+
"accept-language": string;
|
|
6
|
+
"cache-control": 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
|
+
referer: string;
|
|
21
|
+
accept: string;
|
|
22
|
+
"accept-language": string;
|
|
23
|
+
"cache-control": 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
|
+
recent: {
|
|
37
|
+
referer: string;
|
|
38
|
+
accept: string;
|
|
39
|
+
"accept-language": string;
|
|
40
|
+
"cache-control": string;
|
|
41
|
+
pragma: 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-fetch-user": string;
|
|
49
|
+
"sec-gpc": string;
|
|
50
|
+
"upgrade-insecure-requests": string;
|
|
51
|
+
"user-agent": string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
package/lib/mgs/br/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/br/manga.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="cheerio" />
|
|
2
|
-
import { ScrapedManga } from "../../@types";
|
|
3
|
-
export declare function getManga($: cheerio.Root, slug: string): ScrapedManga;
|
|
1
|
+
/// <reference types="cheerio" />
|
|
2
|
+
import { ScrapedManga } from "../../@types";
|
|
3
|
+
export declare function getManga($: cheerio.Root, slug: string): ScrapedManga;
|
package/lib/mgs/br/recent.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="cheerio" />
|
|
2
|
-
import { RecentScrapeList } from "../../@types";
|
|
3
|
-
export declare function getRecentList($: cheerio.Root): RecentScrapeList[];
|
|
1
|
+
/// <reference types="cheerio" />
|
|
2
|
+
import { RecentScrapeList } from "../../@types";
|
|
3
|
+
export declare function getRecentList($: cheerio.Root): RecentScrapeList[];
|
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
"content-type": string;
|
|
40
|
+
"next-action": string;
|
|
41
|
+
origin: string;
|
|
42
|
+
priority: string;
|
|
43
|
+
referer: string;
|
|
44
|
+
"sec-ch-ua": string;
|
|
45
|
+
"sec-ch-ua-mobile": string;
|
|
46
|
+
"sec-ch-ua-platform": string;
|
|
47
|
+
"sec-fetch-dest": string;
|
|
48
|
+
"sec-fetch-mode": string;
|
|
49
|
+
"sec-fetch-site": string;
|
|
50
|
+
"sec-gpc": string;
|
|
51
|
+
"user-agent": string;
|
|
52
|
+
Cookie: string;
|
|
53
|
+
};
|
|
54
|
+
recent: {
|
|
55
|
+
accept: string;
|
|
56
|
+
"accept-language": string;
|
|
57
|
+
"cache-control": string;
|
|
58
|
+
priority: string;
|
|
59
|
+
pragma: string;
|
|
60
|
+
"sec-ch-ua": string;
|
|
61
|
+
"sec-ch-ua-mobile": string;
|
|
62
|
+
"sec-ch-ua-platform": string;
|
|
63
|
+
"sec-fetch-dest": string;
|
|
64
|
+
"sec-fetch-mode": string;
|
|
65
|
+
"sec-fetch-site": string;
|
|
66
|
+
"sec-fetch-user": string;
|
|
67
|
+
"sec-gpc": string;
|
|
68
|
+
"upgrade-insecure-requests": string;
|
|
69
|
+
"user-agent": string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
recents(page?: number): Promise<import("../..").RecentScrapeList[]>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
package/lib/mgs/ma/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/ma/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/ma/headers.d.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
manga: {
|
|
3
|
-
accept: string;
|
|
4
|
-
"accept-language": string;
|
|
5
|
-
priority: string;
|
|
6
|
-
"sec-ch-ua": string;
|
|
7
|
-
"sec-ch-ua-mobile": string;
|
|
8
|
-
"sec-ch-ua-platform": string;
|
|
9
|
-
"sec-fetch-dest": string;
|
|
10
|
-
"sec-fetch-mode": string;
|
|
11
|
-
"sec-fetch-site": string;
|
|
12
|
-
"sec-fetch-user": string;
|
|
13
|
-
"sec-gpc": string;
|
|
14
|
-
"upgrade-insecure-requests": string;
|
|
15
|
-
"user-agent": string;
|
|
16
|
-
};
|
|
17
|
-
chapter: {
|
|
18
|
-
accept: string;
|
|
19
|
-
"accept-language": string;
|
|
20
|
-
priority: string;
|
|
21
|
-
"sec-ch-ua": string;
|
|
22
|
-
"sec-ch-ua-mobile": string;
|
|
23
|
-
"sec-ch-ua-platform": string;
|
|
24
|
-
"sec-fetch-dest": string;
|
|
25
|
-
"sec-fetch-mode": string;
|
|
26
|
-
"sec-fetch-site": string;
|
|
27
|
-
"sec-fetch-user": string;
|
|
28
|
-
"sec-gpc": string;
|
|
29
|
-
"upgrade-insecure-requests": string;
|
|
30
|
-
"user-agent": string;
|
|
31
|
-
};
|
|
32
|
-
recent: {
|
|
33
|
-
accept: string;
|
|
34
|
-
"accept-language": string;
|
|
35
|
-
priority: string;
|
|
36
|
-
"sec-ch-ua": string;
|
|
37
|
-
"sec-ch-ua-mobile": string;
|
|
38
|
-
"sec-ch-ua-platform": string;
|
|
39
|
-
"sec-fetch-dest": string;
|
|
40
|
-
"sec-fetch-mode": string;
|
|
41
|
-
"sec-fetch-site": string;
|
|
42
|
-
"sec-fetch-user": string;
|
|
43
|
-
"sec-gpc": string;
|
|
44
|
-
"upgrade-insecure-requests": string;
|
|
45
|
-
"user-agent": string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
export default _default;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
manga: {
|
|
3
|
+
accept: string;
|
|
4
|
+
"accept-language": string;
|
|
5
|
+
priority: string;
|
|
6
|
+
"sec-ch-ua": string;
|
|
7
|
+
"sec-ch-ua-mobile": string;
|
|
8
|
+
"sec-ch-ua-platform": string;
|
|
9
|
+
"sec-fetch-dest": string;
|
|
10
|
+
"sec-fetch-mode": string;
|
|
11
|
+
"sec-fetch-site": string;
|
|
12
|
+
"sec-fetch-user": string;
|
|
13
|
+
"sec-gpc": string;
|
|
14
|
+
"upgrade-insecure-requests": string;
|
|
15
|
+
"user-agent": string;
|
|
16
|
+
};
|
|
17
|
+
chapter: {
|
|
18
|
+
accept: string;
|
|
19
|
+
"accept-language": string;
|
|
20
|
+
priority: string;
|
|
21
|
+
"sec-ch-ua": string;
|
|
22
|
+
"sec-ch-ua-mobile": string;
|
|
23
|
+
"sec-ch-ua-platform": string;
|
|
24
|
+
"sec-fetch-dest": string;
|
|
25
|
+
"sec-fetch-mode": string;
|
|
26
|
+
"sec-fetch-site": string;
|
|
27
|
+
"sec-fetch-user": string;
|
|
28
|
+
"sec-gpc": string;
|
|
29
|
+
"upgrade-insecure-requests": string;
|
|
30
|
+
"user-agent": string;
|
|
31
|
+
};
|
|
32
|
+
recent: {
|
|
33
|
+
accept: string;
|
|
34
|
+
"accept-language": string;
|
|
35
|
+
priority: string;
|
|
36
|
+
"sec-ch-ua": string;
|
|
37
|
+
"sec-ch-ua-mobile": string;
|
|
38
|
+
"sec-ch-ua-platform": string;
|
|
39
|
+
"sec-fetch-dest": string;
|
|
40
|
+
"sec-fetch-mode": string;
|
|
41
|
+
"sec-fetch-site": string;
|
|
42
|
+
"sec-fetch-user": string;
|
|
43
|
+
"sec-gpc": string;
|
|
44
|
+
"upgrade-insecure-requests": string;
|
|
45
|
+
"user-agent": string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
export default _default;
|
package/lib/mgs/ma/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/ma/manga.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="cheerio" />
|
|
2
|
-
import { ScrapedManga } from "../../@types";
|
|
3
|
-
export declare function getManga($: cheerio.Root, slug: string): ScrapedManga;
|
|
1
|
+
/// <reference types="cheerio" />
|
|
2
|
+
import { ScrapedManga } from "../../@types";
|
|
3
|
+
export declare function getManga($: cheerio.Root, slug: string): ScrapedManga;
|
package/lib/mgs/ma/recent.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="cheerio" />
|
|
2
|
-
import { RecentScrapeList } from "../../@types";
|
|
3
|
-
export declare function getRecentList($: cheerio.Root): RecentScrapeList[];
|
|
1
|
+
/// <reference types="cheerio" />
|
|
2
|
+
import { RecentScrapeList } from "../../@types";
|
|
3
|
+
export declare function getRecentList($: cheerio.Root): RecentScrapeList[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GetMangaChaptersResponse } from "../types/chapters";
|
|
2
|
-
export declare function getRealChapterPerPage(pageProps: GetMangaChaptersResponse): number;
|
|
3
|
-
export declare function getPredictedPage(targetChapter: number, realChaptersPerPage: number): number;
|
|
1
|
+
import { GetMangaChaptersResponse } from "../types/chapters";
|
|
2
|
+
export declare function getRealChapterPerPage(pageProps: GetMangaChaptersResponse): number;
|
|
3
|
+
export declare function getPredictedPage(targetChapter: number, realChaptersPerPage: number): number;
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ChapterEndpointConfig, ChaptersEndpointConfig } from "./utils";
|
|
2
|
-
import type { GetMangaInfoResponse, ListMangaResponse } from "../types/info";
|
|
3
|
-
import type { GetMangaChaptersResponse } from "../types/chapters";
|
|
4
|
-
import type { GetRecentChaptersResponse } from "../types/recents";
|
|
5
|
-
import type { GetChapterPagesResponse } from "../types/pages";
|
|
6
|
-
import { Languages, MainLanguages } from "../../../utils/type";
|
|
7
|
-
export type Log = {
|
|
8
|
-
type: "ping" | "error";
|
|
9
|
-
method: string;
|
|
10
|
-
url: string;
|
|
11
|
-
time: string;
|
|
12
|
-
};
|
|
13
|
-
export type ChapterConfig = {
|
|
14
|
-
page?: number;
|
|
15
|
-
order?: "asc" | "desc";
|
|
16
|
-
};
|
|
17
|
-
export type Logger = (log: Log) => any;
|
|
18
|
-
export declare class BruteScraper {
|
|
19
|
-
private logger?;
|
|
20
|
-
constructor(logger?: Logger);
|
|
21
|
-
request<T>(url: string): Promise<T>;
|
|
22
|
-
getChapter(manga_id: string, config: ChapterEndpointConfig): Promise<GetMangaChaptersResponse | undefined>;
|
|
23
|
-
getChapterList(manga_id: string, config: ChaptersEndpointConfig): Promise<GetMangaChaptersResponse | undefined>;
|
|
24
|
-
getMangaInfo(manga_id: string): Promise<GetMangaInfoResponse | undefined>;
|
|
25
|
-
getChapterPages(chapter_id: string): Promise<GetChapterPagesResponse | undefined>;
|
|
26
|
-
getMangaList(language: MainLanguages, page?: number): Promise<ListMangaResponse | undefined>;
|
|
27
|
-
getRecentChapters(language: Languages): Promise<{
|
|
28
|
-
recent: GetRecentChaptersResponse;
|
|
29
|
-
mangas: {
|
|
30
|
-
code: string;
|
|
31
|
-
cover: string;
|
|
32
|
-
title: string;
|
|
33
|
-
chapters: never[];
|
|
34
|
-
}[];
|
|
35
|
-
} | undefined>;
|
|
36
|
-
}
|
|
1
|
+
import { ChapterEndpointConfig, ChaptersEndpointConfig } from "./utils";
|
|
2
|
+
import type { GetMangaInfoResponse, ListMangaResponse } from "../types/info";
|
|
3
|
+
import type { GetMangaChaptersResponse } from "../types/chapters";
|
|
4
|
+
import type { GetRecentChaptersResponse } from "../types/recents";
|
|
5
|
+
import type { GetChapterPagesResponse } from "../types/pages";
|
|
6
|
+
import { Languages, MainLanguages } from "../../../utils/type";
|
|
7
|
+
export type Log = {
|
|
8
|
+
type: "ping" | "error";
|
|
9
|
+
method: string;
|
|
10
|
+
url: string;
|
|
11
|
+
time: string;
|
|
12
|
+
};
|
|
13
|
+
export type ChapterConfig = {
|
|
14
|
+
page?: number;
|
|
15
|
+
order?: "asc" | "desc";
|
|
16
|
+
};
|
|
17
|
+
export type Logger = (log: Log) => any;
|
|
18
|
+
export declare class BruteScraper {
|
|
19
|
+
private logger?;
|
|
20
|
+
constructor(logger?: Logger);
|
|
21
|
+
request<T>(url: string): Promise<T>;
|
|
22
|
+
getChapter(manga_id: string, config: ChapterEndpointConfig): Promise<GetMangaChaptersResponse | undefined>;
|
|
23
|
+
getChapterList(manga_id: string, config: ChaptersEndpointConfig): Promise<GetMangaChaptersResponse | undefined>;
|
|
24
|
+
getMangaInfo(manga_id: string): Promise<GetMangaInfoResponse | undefined>;
|
|
25
|
+
getChapterPages(chapter_id: string): Promise<GetChapterPagesResponse | undefined>;
|
|
26
|
+
getMangaList(language: MainLanguages, page?: number): Promise<ListMangaResponse | undefined>;
|
|
27
|
+
getRecentChapters(language: Languages): Promise<{
|
|
28
|
+
recent: GetRecentChaptersResponse;
|
|
29
|
+
mangas: {
|
|
30
|
+
code: string;
|
|
31
|
+
cover: string;
|
|
32
|
+
title: string;
|
|
33
|
+
chapters: never[];
|
|
34
|
+
}[];
|
|
35
|
+
} | undefined>;
|
|
36
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { GetMangaInfoResponse, ListMangaResponse } from "../types/info";
|
|
2
|
-
import type { GetMangaChaptersResponse } from "../types/chapters";
|
|
3
|
-
import type { GetRecentChaptersResponse } from "../types/recents";
|
|
4
|
-
import type { GetChapterPagesResponse } from "../types/pages";
|
|
5
|
-
import { Chapter, MangaInfo, Recent } from "../types/transform";
|
|
6
|
-
import { RecentScrapeList } from "../../../@types";
|
|
7
|
-
import { Languages, MainLanguages } from "../../../utils/type";
|
|
8
|
-
export declare class Transform {
|
|
9
|
-
chapterList(response?: GetMangaChaptersResponse, language?: Languages, slug?: string): Chapter[];
|
|
10
|
-
mangaInfo(response?: GetMangaInfoResponse, language?: MainLanguages): MangaInfo;
|
|
11
|
-
chapterPages(response?: GetChapterPagesResponse): {
|
|
12
|
-
pages: string[];
|
|
13
|
-
};
|
|
14
|
-
mangaList(response?: ListMangaResponse, language?: MainLanguages): MangaInfo[];
|
|
15
|
-
recentChapters(response?: {
|
|
16
|
-
recent: GetRecentChaptersResponse;
|
|
17
|
-
mangas: Recent[];
|
|
18
|
-
}): RecentScrapeList[];
|
|
19
|
-
}
|
|
1
|
+
import type { GetMangaInfoResponse, ListMangaResponse } from "../types/info";
|
|
2
|
+
import type { GetMangaChaptersResponse } from "../types/chapters";
|
|
3
|
+
import type { GetRecentChaptersResponse } from "../types/recents";
|
|
4
|
+
import type { GetChapterPagesResponse } from "../types/pages";
|
|
5
|
+
import { Chapter, MangaInfo, Recent } from "../types/transform";
|
|
6
|
+
import { RecentScrapeList } from "../../../@types";
|
|
7
|
+
import { Languages, MainLanguages } from "../../../utils/type";
|
|
8
|
+
export declare class Transform {
|
|
9
|
+
chapterList(response?: GetMangaChaptersResponse, language?: Languages, slug?: string): Chapter[];
|
|
10
|
+
mangaInfo(response?: GetMangaInfoResponse, language?: MainLanguages): MangaInfo;
|
|
11
|
+
chapterPages(response?: GetChapterPagesResponse): {
|
|
12
|
+
pages: string[];
|
|
13
|
+
};
|
|
14
|
+
mangaList(response?: ListMangaResponse, language?: MainLanguages): MangaInfo[];
|
|
15
|
+
recentChapters(response?: {
|
|
16
|
+
recent: GetRecentChaptersResponse;
|
|
17
|
+
mangas: Recent[];
|
|
18
|
+
}): RecentScrapeList[];
|
|
19
|
+
}
|