mgbuild 1.9.7 → 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.
Files changed (88) hide show
  1. package/lib/@types/index.d.ts +30 -30
  2. package/lib/data/tagMatcher.d.ts +7 -7
  3. package/lib/data/tagMatcherx.d.ts +7 -7
  4. package/lib/hqs/getHqAndChapters.d.ts +1 -1
  5. package/lib/hqs/getHqChapterById.d.ts +8 -8
  6. package/lib/hqs/getHqDetails.d.ts +1 -1
  7. package/lib/hqs/index.d.ts +5 -5
  8. package/lib/hqs/listHqIds.d.ts +5 -5
  9. package/lib/hqs/listUpdatedHqs.d.ts +6 -6
  10. package/lib/hqs/utils.d.ts +46 -46
  11. package/lib/index.d.ts +24 -20
  12. package/lib/index.js +3 -3
  13. package/lib/mgs/br/chapter.d.ts +4 -4
  14. package/lib/mgs/br/config.d.ts +6 -6
  15. package/lib/mgs/br/headers.d.ts +54 -54
  16. package/lib/mgs/br/index.d.ts +20 -20
  17. package/lib/mgs/br/manga.d.ts +3 -3
  18. package/lib/mgs/br/recent.d.ts +3 -3
  19. package/lib/mgs/fm/chapter.d.ts +4 -0
  20. package/lib/mgs/fm/config.d.ts +6 -0
  21. package/lib/mgs/fm/headers.d.ts +72 -0
  22. package/lib/mgs/fm/index.d.ts +17 -0
  23. package/lib/mgs/fm/manga.d.ts +3 -0
  24. package/lib/mgs/fm/recent.d.ts +3 -0
  25. package/lib/mgs/ma/chapter.d.ts +4 -4
  26. package/lib/mgs/ma/config.d.ts +6 -6
  27. package/lib/mgs/ma/headers.d.ts +48 -48
  28. package/lib/mgs/ma/index.d.ts +20 -20
  29. package/lib/mgs/ma/manga.d.ts +3 -3
  30. package/lib/mgs/ma/recent.d.ts +3 -3
  31. package/lib/mgs/md/core/predict.d.ts +3 -3
  32. package/lib/mgs/md/core/scraper.d.ts +36 -36
  33. package/lib/mgs/md/core/transform.d.ts +19 -19
  34. package/lib/mgs/md/core/utils.d.ts +39 -39
  35. package/lib/mgs/md/index.d.ts +27 -27
  36. package/lib/mgs/md/types/bulk-info.d.ts +112 -112
  37. package/lib/mgs/md/types/chapters.d.ts +59 -59
  38. package/lib/mgs/md/types/info.d.ts +82 -82
  39. package/lib/mgs/md/types/pages.d.ts +11 -11
  40. package/lib/mgs/md/types/recents.d.ts +134 -134
  41. package/lib/mgs/md/types/transform.d.ts +44 -44
  42. package/lib/mgs/ml/chapter.d.ts +3 -3
  43. package/lib/mgs/ml/config.d.ts +6 -6
  44. package/lib/mgs/ml/headers.d.ts +75 -75
  45. package/lib/mgs/ml/index.d.ts +18 -18
  46. package/lib/mgs/ml/manga.d.ts +3 -3
  47. package/lib/mgs/ml/recent.d.ts +3 -3
  48. package/lib/mgs/mo/chapter.d.ts +4 -4
  49. package/lib/mgs/mo/config.d.ts +6 -6
  50. package/lib/mgs/mo/headers.d.ts +73 -73
  51. package/lib/mgs/mo/index.d.ts +21 -21
  52. package/lib/mgs/mo/manga.d.ts +4 -4
  53. package/lib/mgs/mo/recent.d.ts +3 -3
  54. package/lib/mgs/rm/chapter.d.ts +4 -4
  55. package/lib/mgs/rm/config.d.ts +6 -6
  56. package/lib/mgs/rm/headers.d.ts +99 -99
  57. package/lib/mgs/rm/index.d.ts +24 -24
  58. package/lib/mgs/rm/manga.d.ts +3 -3
  59. package/lib/mgs/rm/recent.d.ts +3 -3
  60. package/lib/mgs/sc/chapter.d.ts +4 -0
  61. package/lib/mgs/sc/config.d.ts +6 -0
  62. package/lib/mgs/sc/headers.d.ts +70 -0
  63. package/lib/mgs/sc/index.d.ts +20 -0
  64. package/lib/mgs/sc/manga.d.ts +4 -0
  65. package/lib/mgs/sc/recent.d.ts +3 -0
  66. package/lib/mgs/sr/api/book.d.ts +101 -101
  67. package/lib/mgs/sr/api/chapter.d.ts +20 -20
  68. package/lib/mgs/sr/api/chapters.d.ts +12 -12
  69. package/lib/mgs/sr/api/index.d.ts +10 -10
  70. package/lib/mgs/sr/api/recents.d.ts +49 -49
  71. package/lib/mgs/sr/config.d.ts +6 -6
  72. package/lib/mgs/sr/headers.d.ts +65 -65
  73. package/lib/mgs/sr/index.d.ts +20 -20
  74. package/lib/mgs/sr/manga.d.ts +11 -11
  75. package/lib/mgs/sr/recent.d.ts +3 -3
  76. package/lib/mgs/st/chapter.d.ts +4 -4
  77. package/lib/mgs/st/config.d.ts +6 -6
  78. package/lib/mgs/st/headers.d.ts +70 -70
  79. package/lib/mgs/st/index.d.ts +21 -21
  80. package/lib/mgs/st/manga.d.ts +4 -4
  81. package/lib/mgs/st/recent.d.ts +58 -58
  82. package/lib/utils/graphQLRequest.d.ts +7 -7
  83. package/lib/utils/request.d.ts +1 -1
  84. package/lib/utils/tag.d.ts +3 -3
  85. package/lib/utils/tinyfetch.d.ts +12 -12
  86. package/lib/utils/tools.d.ts +29 -29
  87. package/lib/utils/type.d.ts +5 -5
  88. package/package.json +10 -10
@@ -1,134 +1,134 @@
1
- export type GetRecentChaptersResponse = {
2
- result: string;
3
- response: string;
4
- data: Daum[];
5
- limit: number;
6
- offset: number;
7
- total: number;
8
- };
9
- type Daum = {
10
- id: string;
11
- type: string;
12
- attributes: Attributes;
13
- relationships: Relationship[];
14
- };
15
- type Attributes = {
16
- volume?: string;
17
- chapter: string;
18
- title?: string;
19
- translatedLanguage: string;
20
- externalUrl: any;
21
- publishAt: string;
22
- readableAt: string;
23
- createdAt: string;
24
- updatedAt: string;
25
- pages: number;
26
- version: number;
27
- };
28
- type Relationship = {
29
- id: string;
30
- type: string;
31
- attributes: Attributes2;
32
- };
33
- type Attributes2 = {
34
- name?: string;
35
- altNames?: AltName[];
36
- locked?: boolean;
37
- website?: string;
38
- ircServer: any;
39
- ircChannel: any;
40
- discord?: string;
41
- contactEmail?: string;
42
- description: any;
43
- twitter?: string;
44
- mangaUpdates?: string;
45
- focusedLanguages?: string[];
46
- official?: boolean;
47
- verified?: boolean;
48
- inactive?: boolean;
49
- publishDelay: any;
50
- createdAt?: string;
51
- updatedAt?: string;
52
- version: number;
53
- exLicensed?: boolean;
54
- title?: Title;
55
- altTitles?: AltTitle[];
56
- isLocked?: boolean;
57
- links?: Links;
58
- originalLanguage?: string;
59
- lastVolume?: string;
60
- lastChapter?: string;
61
- publicationDemographic?: string;
62
- status?: string;
63
- year?: number;
64
- contentRating?: "erotica" | "safe" | "suggestive";
65
- tags?: Tag[];
66
- state?: string;
67
- chapterNumbersResetOnNewVolume?: boolean;
68
- availableTranslatedLanguages?: string[];
69
- latestUploadedChapter?: string;
70
- username?: string;
71
- roles?: string[];
72
- };
73
- type AltName = {
74
- en: string;
75
- };
76
- type Title = {
77
- en: string;
78
- };
79
- type AltTitle = {
80
- ja?: string;
81
- en?: string;
82
- fr?: string;
83
- zh?: string;
84
- "zh-hk"?: string;
85
- ru?: string;
86
- ne?: string;
87
- ar?: string;
88
- th?: string;
89
- ko?: string;
90
- de?: string;
91
- it?: string;
92
- "zh-ro"?: string;
93
- vi?: string;
94
- es?: string;
95
- "pt-br"?: string;
96
- "ja-ro"?: string;
97
- "ko-ro"?: string;
98
- pt?: string;
99
- uk?: string;
100
- tr?: string;
101
- "es-la"?: string;
102
- tl?: string;
103
- pl?: string;
104
- };
105
- type Links = {
106
- al?: string;
107
- ap?: string;
108
- bw?: string;
109
- kt?: string;
110
- mu?: string;
111
- nu?: string;
112
- amz?: string;
113
- cdj?: string;
114
- ebj?: string;
115
- mal?: string;
116
- raw?: string;
117
- engtl?: string;
118
- };
119
- type Tag = {
120
- id: string;
121
- type: string;
122
- attributes: Attributes3;
123
- relationships: any[];
124
- };
125
- type Attributes3 = {
126
- name: Name;
127
- description: object;
128
- group: string;
129
- version: number;
130
- };
131
- type Name = {
132
- en: string;
133
- };
134
- export {};
1
+ export type GetRecentChaptersResponse = {
2
+ result: string;
3
+ response: string;
4
+ data: Daum[];
5
+ limit: number;
6
+ offset: number;
7
+ total: number;
8
+ };
9
+ type Daum = {
10
+ id: string;
11
+ type: string;
12
+ attributes: Attributes;
13
+ relationships: Relationship[];
14
+ };
15
+ type Attributes = {
16
+ volume?: string;
17
+ chapter: string;
18
+ title?: string;
19
+ translatedLanguage: string;
20
+ externalUrl: any;
21
+ publishAt: string;
22
+ readableAt: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ pages: number;
26
+ version: number;
27
+ };
28
+ type Relationship = {
29
+ id: string;
30
+ type: string;
31
+ attributes: Attributes2;
32
+ };
33
+ type Attributes2 = {
34
+ name?: string;
35
+ altNames?: AltName[];
36
+ locked?: boolean;
37
+ website?: string;
38
+ ircServer: any;
39
+ ircChannel: any;
40
+ discord?: string;
41
+ contactEmail?: string;
42
+ description: any;
43
+ twitter?: string;
44
+ mangaUpdates?: string;
45
+ focusedLanguages?: string[];
46
+ official?: boolean;
47
+ verified?: boolean;
48
+ inactive?: boolean;
49
+ publishDelay: any;
50
+ createdAt?: string;
51
+ updatedAt?: string;
52
+ version: number;
53
+ exLicensed?: boolean;
54
+ title?: Title;
55
+ altTitles?: AltTitle[];
56
+ isLocked?: boolean;
57
+ links?: Links;
58
+ originalLanguage?: string;
59
+ lastVolume?: string;
60
+ lastChapter?: string;
61
+ publicationDemographic?: string;
62
+ status?: string;
63
+ year?: number;
64
+ contentRating?: "erotica" | "safe" | "suggestive";
65
+ tags?: Tag[];
66
+ state?: string;
67
+ chapterNumbersResetOnNewVolume?: boolean;
68
+ availableTranslatedLanguages?: string[];
69
+ latestUploadedChapter?: string;
70
+ username?: string;
71
+ roles?: string[];
72
+ };
73
+ type AltName = {
74
+ en: string;
75
+ };
76
+ type Title = {
77
+ en: string;
78
+ };
79
+ type AltTitle = {
80
+ ja?: string;
81
+ en?: string;
82
+ fr?: string;
83
+ zh?: string;
84
+ "zh-hk"?: string;
85
+ ru?: string;
86
+ ne?: string;
87
+ ar?: string;
88
+ th?: string;
89
+ ko?: string;
90
+ de?: string;
91
+ it?: string;
92
+ "zh-ro"?: string;
93
+ vi?: string;
94
+ es?: string;
95
+ "pt-br"?: string;
96
+ "ja-ro"?: string;
97
+ "ko-ro"?: string;
98
+ pt?: string;
99
+ uk?: string;
100
+ tr?: string;
101
+ "es-la"?: string;
102
+ tl?: string;
103
+ pl?: string;
104
+ };
105
+ type Links = {
106
+ al?: string;
107
+ ap?: string;
108
+ bw?: string;
109
+ kt?: string;
110
+ mu?: string;
111
+ nu?: string;
112
+ amz?: string;
113
+ cdj?: string;
114
+ ebj?: string;
115
+ mal?: string;
116
+ raw?: string;
117
+ engtl?: string;
118
+ };
119
+ type Tag = {
120
+ id: string;
121
+ type: string;
122
+ attributes: Attributes3;
123
+ relationships: any[];
124
+ };
125
+ type Attributes3 = {
126
+ name: Name;
127
+ description: object;
128
+ group: string;
129
+ version: number;
130
+ };
131
+ type Name = {
132
+ en: string;
133
+ };
134
+ export {};
@@ -1,44 +1,44 @@
1
- import { MainLanguages } from "../../../utils/type";
2
- export type Chapter = {
3
- id: string;
4
- number: number;
5
- title: string;
6
- geek: string;
7
- };
8
- export type Manga = {
9
- id: number;
10
- title: string;
11
- slug: string;
12
- geek: string;
13
- description: string;
14
- cover: string;
15
- tags: string[];
16
- available: boolean;
17
- alternative_title?: string;
18
- chapters: Chapter[];
19
- chapter_code?: string;
20
- };
21
- export type Recent = {
22
- code: string;
23
- chapters: number[];
24
- title: string;
25
- cover?: string;
26
- };
27
- export type MangaCoverInfo = {
28
- id: string;
29
- cover: string;
30
- coverPath: string;
31
- };
32
- export type MangaInfo = {
33
- id: string;
34
- title: string;
35
- slug: string;
36
- geek: string;
37
- description?: string;
38
- cover: string;
39
- tags: string[];
40
- available: boolean;
41
- language: MainLanguages;
42
- alternative_title?: string;
43
- chapters?: Chapter[];
44
- };
1
+ import { MainLanguages } from "../../../utils/type";
2
+ export type Chapter = {
3
+ id: string;
4
+ number: number;
5
+ title: string;
6
+ geek: string;
7
+ };
8
+ export type Manga = {
9
+ id: number;
10
+ title: string;
11
+ slug: string;
12
+ geek: string;
13
+ description: string;
14
+ cover: string;
15
+ tags: string[];
16
+ available: boolean;
17
+ alternative_title?: string;
18
+ chapters: Chapter[];
19
+ chapter_code?: string;
20
+ };
21
+ export type Recent = {
22
+ code: string;
23
+ chapters: number[];
24
+ title: string;
25
+ cover?: string;
26
+ };
27
+ export type MangaCoverInfo = {
28
+ id: string;
29
+ cover: string;
30
+ coverPath: string;
31
+ };
32
+ export type MangaInfo = {
33
+ id: string;
34
+ title: string;
35
+ slug: string;
36
+ geek: string;
37
+ description?: string;
38
+ cover: string;
39
+ tags: string[];
40
+ available: boolean;
41
+ language: MainLanguages;
42
+ alternative_title?: string;
43
+ chapters?: Chapter[];
44
+ };
@@ -1,3 +1,3 @@
1
- export declare function getChapter(content: string): Promise<{
2
- pages: string[];
3
- } | undefined>;
1
+ export declare function getChapter(content: string): Promise<{
2
+ pages: string[];
3
+ } | undefined>;
@@ -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;
@@ -1,75 +1,75 @@
1
- declare const _default: {
2
- manga: {
3
- referer: string;
4
- accept: string;
5
- "accept-language": string;
6
- "cache-control": string;
7
- priority: string;
8
- pragma: string;
9
- "sec-ch-ua": string;
10
- "sec-ch-ua-mobile": string;
11
- "sec-ch-ua-platform": string;
12
- "sec-fetch-dest": string;
13
- "sec-fetch-mode": string;
14
- "sec-fetch-site": string;
15
- "sec-fetch-user": string;
16
- "sec-gpc": string;
17
- "upgrade-insecure-requests": string;
18
- "user-agent": string;
19
- };
20
- chapter: {
21
- referer: string;
22
- accept: string;
23
- "accept-language": string;
24
- "cache-control": string;
25
- priority: string;
26
- pragma: 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-fetch-user": string;
34
- "sec-gpc": string;
35
- "upgrade-insecure-requests": string;
36
- "user-agent": string;
37
- };
38
- chapterList: {
39
- accept: string;
40
- "accept-language": string;
41
- "content-type": string;
42
- "next-action": string;
43
- origin: string;
44
- priority: string;
45
- referer: string;
46
- "sec-ch-ua": string;
47
- "sec-ch-ua-mobile": string;
48
- "sec-ch-ua-platform": string;
49
- "sec-fetch-dest": string;
50
- "sec-fetch-mode": string;
51
- "sec-fetch-site": string;
52
- "sec-gpc": string;
53
- "user-agent": string;
54
- Cookie: string;
55
- };
56
- recent: {
57
- referer: string;
58
- accept: string;
59
- "accept-language": string;
60
- "cache-control": string;
61
- priority: string;
62
- pragma: string;
63
- "sec-ch-ua": string;
64
- "sec-ch-ua-mobile": string;
65
- "sec-ch-ua-platform": string;
66
- "sec-fetch-dest": string;
67
- "sec-fetch-mode": string;
68
- "sec-fetch-site": string;
69
- "sec-fetch-user": string;
70
- "sec-gpc": string;
71
- "upgrade-insecure-requests": string;
72
- "user-agent": string;
73
- };
74
- };
75
- export default _default;
1
+ declare const _default: {
2
+ manga: {
3
+ referer: string;
4
+ accept: string;
5
+ "accept-language": string;
6
+ "cache-control": string;
7
+ priority: string;
8
+ pragma: string;
9
+ "sec-ch-ua": string;
10
+ "sec-ch-ua-mobile": string;
11
+ "sec-ch-ua-platform": string;
12
+ "sec-fetch-dest": string;
13
+ "sec-fetch-mode": string;
14
+ "sec-fetch-site": string;
15
+ "sec-fetch-user": string;
16
+ "sec-gpc": string;
17
+ "upgrade-insecure-requests": string;
18
+ "user-agent": string;
19
+ };
20
+ chapter: {
21
+ referer: string;
22
+ accept: string;
23
+ "accept-language": string;
24
+ "cache-control": string;
25
+ priority: string;
26
+ pragma: 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-fetch-user": string;
34
+ "sec-gpc": string;
35
+ "upgrade-insecure-requests": string;
36
+ "user-agent": string;
37
+ };
38
+ chapterList: {
39
+ accept: string;
40
+ "accept-language": string;
41
+ "content-type": string;
42
+ "next-action": string;
43
+ origin: string;
44
+ priority: string;
45
+ referer: string;
46
+ "sec-ch-ua": string;
47
+ "sec-ch-ua-mobile": string;
48
+ "sec-ch-ua-platform": string;
49
+ "sec-fetch-dest": string;
50
+ "sec-fetch-mode": string;
51
+ "sec-fetch-site": string;
52
+ "sec-gpc": string;
53
+ "user-agent": string;
54
+ Cookie: string;
55
+ };
56
+ recent: {
57
+ referer: string;
58
+ accept: string;
59
+ "accept-language": string;
60
+ "cache-control": string;
61
+ priority: string;
62
+ pragma: string;
63
+ "sec-ch-ua": string;
64
+ "sec-ch-ua-mobile": string;
65
+ "sec-ch-ua-platform": string;
66
+ "sec-fetch-dest": string;
67
+ "sec-fetch-mode": string;
68
+ "sec-fetch-site": string;
69
+ "sec-fetch-user": string;
70
+ "sec-gpc": string;
71
+ "upgrade-insecure-requests": string;
72
+ "user-agent": string;
73
+ };
74
+ };
75
+ export default _default;
@@ -1,18 +1,18 @@
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
- chapterList(manga_code: string, slug: string, page?: number): Promise<import("../..").ScrapedHostChapter[] | undefined>;
12
- manga(manga_code: string): Promise<import("../..").ScrapedManga>;
13
- chapterById(chapter_id: string | number): Promise<{
14
- pages: string[];
15
- } | undefined>;
16
- recents(_page?: number): Promise<import("../..").RecentScrapeList[]>;
17
- }
18
- 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
+ chapterList(manga_code: string, slug: string, page?: number): Promise<import("../..").ScrapedHostChapter[] | undefined>;
12
+ manga(manga_code: string): Promise<import("../..").ScrapedManga>;
13
+ chapterById(chapter_id: string | number): Promise<{
14
+ pages: string[];
15
+ } | undefined>;
16
+ recents(_page?: number): Promise<import("../..").RecentScrapeList[]>;
17
+ }
18
+ export {};
@@ -1,3 +1,3 @@
1
- import { ScrapedHostChapter, ScrapedManga } from "../../@types";
2
- export declare function getChapters(content: string, slug: string): ScrapedHostChapter[] | undefined;
3
- export declare function getManga(content: string, slug: string): ScrapedManga;
1
+ import { ScrapedHostChapter, ScrapedManga } from "../../@types";
2
+ export declare function getChapters(content: string, slug: string): ScrapedHostChapter[] | undefined;
3
+ export declare function getManga(content: string, slug: string): ScrapedManga;
@@ -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,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
+ }>;
@@ -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;