mgbuild 2.1.16 → 2.1.18
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/index.d.ts +2 -0
- package/lib/index.js +1 -1
- package/lib/mgs/ms/index.d.ts +42 -0
- package/lib/mgs/st/api.d.ts +13 -3
- package/lib/mgs/st/headers.d.ts +2 -55
- package/lib/mgs/st/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
private api;
|
|
11
|
+
constructor(logger?: Logger);
|
|
12
|
+
manga(manga_code: string): Promise<{
|
|
13
|
+
id: number;
|
|
14
|
+
title: string;
|
|
15
|
+
description: string;
|
|
16
|
+
available: boolean;
|
|
17
|
+
chapters: {
|
|
18
|
+
number: number;
|
|
19
|
+
geek: string;
|
|
20
|
+
title: string;
|
|
21
|
+
id: number;
|
|
22
|
+
}[];
|
|
23
|
+
cover: string;
|
|
24
|
+
geek: string;
|
|
25
|
+
slug: string;
|
|
26
|
+
tags: string[];
|
|
27
|
+
alternative_name: string;
|
|
28
|
+
}>;
|
|
29
|
+
chapterById(chapter_id: string | number): Promise<{
|
|
30
|
+
pages: string[];
|
|
31
|
+
}>;
|
|
32
|
+
chapter(manga_code: string, chapter_number: number): Promise<{
|
|
33
|
+
pages: string[];
|
|
34
|
+
}>;
|
|
35
|
+
recents(): Promise<{
|
|
36
|
+
title: string;
|
|
37
|
+
code: string;
|
|
38
|
+
chapters: number[];
|
|
39
|
+
cover: string | null;
|
|
40
|
+
}[]>;
|
|
41
|
+
}
|
|
42
|
+
export {};
|
package/lib/mgs/st/api.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { APIChapterResponse, APIMangaResponse, APIRecentsResponse } from "./types";
|
|
2
|
+
type SussyOptions = {
|
|
3
|
+
scanId: string;
|
|
4
|
+
origin: string;
|
|
5
|
+
code: string;
|
|
6
|
+
genId: string;
|
|
7
|
+
};
|
|
2
8
|
export declare class SussyAPI {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
9
|
+
private options;
|
|
10
|
+
constructor(options: SussyOptions);
|
|
11
|
+
request: <T>(endpoint: string) => Promise<T>;
|
|
12
|
+
recents(): Promise<APIRecentsResponse>;
|
|
13
|
+
manga(id: string): Promise<APIMangaResponse>;
|
|
14
|
+
chapter(chapterId: string | number): Promise<APIChapterResponse>;
|
|
6
15
|
}
|
|
16
|
+
export {};
|
package/lib/mgs/st/headers.d.ts
CHANGED
|
@@ -1,69 +1,16 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
request: {
|
|
3
3
|
accept: string;
|
|
4
|
+
"accept-encoding": string;
|
|
4
5
|
"accept-language": string;
|
|
5
|
-
"cache-control": string;
|
|
6
6
|
priority: string;
|
|
7
|
-
pragma: string;
|
|
8
7
|
"sec-ch-ua": string;
|
|
9
8
|
"sec-ch-ua-mobile": string;
|
|
10
9
|
"sec-ch-ua-platform": string;
|
|
11
10
|
"sec-fetch-dest": string;
|
|
12
11
|
"sec-fetch-mode": string;
|
|
13
12
|
"sec-fetch-site": string;
|
|
14
|
-
"sec-fetch-user": string;
|
|
15
13
|
"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
14
|
"user-agent": string;
|
|
68
15
|
};
|
|
69
16
|
};
|
package/lib/mgs/st/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ type Log = {
|
|
|
7
7
|
type Logger = (log: Log) => any;
|
|
8
8
|
export declare class Scraper {
|
|
9
9
|
private logger?;
|
|
10
|
+
private api;
|
|
10
11
|
constructor(logger?: Logger);
|
|
11
|
-
private chapterList;
|
|
12
12
|
manga(manga_code: string): Promise<{
|
|
13
13
|
id: number;
|
|
14
14
|
title: string;
|
|
@@ -36,7 +36,7 @@ export declare class Scraper {
|
|
|
36
36
|
title: string;
|
|
37
37
|
code: string;
|
|
38
38
|
chapters: number[];
|
|
39
|
-
cover: string;
|
|
39
|
+
cover: string | null;
|
|
40
40
|
}[]>;
|
|
41
41
|
}
|
|
42
42
|
export {};
|