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
package/lib/utils/request.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/lib/utils/tag.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Languages } from "./type";
|
|
2
|
-
export declare function getTags(genres: string, language?: Languages): string[];
|
|
3
|
-
export declare function getTagsBySimilarity(genres: string, language?: Languages): string[];
|
|
1
|
+
import { Languages } from "./type";
|
|
2
|
+
export declare function getTags(genres: string, language?: Languages): string[];
|
|
3
|
+
export declare function getTagsBySimilarity(genres: string, language?: Languages): string[];
|
package/lib/utils/tinyfetch.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { RequestOptions } from "https";
|
|
3
|
-
export declare class TinyFetch {
|
|
4
|
-
private headers;
|
|
5
|
-
constructor(headers?: Record<string, string>);
|
|
6
|
-
private request;
|
|
7
|
-
static fetch<T = any>(url: string, options?: RequestOptions): Promise<{
|
|
8
|
-
json: () => T;
|
|
9
|
-
text: () => string;
|
|
10
|
-
buffer: () => Buffer;
|
|
11
|
-
}>;
|
|
12
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { RequestOptions } from "https";
|
|
3
|
+
export declare class TinyFetch {
|
|
4
|
+
private headers;
|
|
5
|
+
constructor(headers?: Record<string, string>);
|
|
6
|
+
private request;
|
|
7
|
+
static fetch<T = any>(url: string, options?: RequestOptions): Promise<{
|
|
8
|
+
json: () => T;
|
|
9
|
+
text: () => string;
|
|
10
|
+
buffer: () => Buffer;
|
|
11
|
+
}>;
|
|
12
|
+
}
|
package/lib/utils/tools.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="cheerio" />
|
|
4
|
-
import { RequestInit } from "node-fetch";
|
|
5
|
-
import { MainLanguages } from "./type";
|
|
6
|
-
export declare function zlibDecode<T>(data: string): T;
|
|
7
|
-
export declare function getText(url: string, options?: RequestInit): Promise<string>;
|
|
8
|
-
export declare function getImgBuffer(url: string, options?: RequestInit): Promise<Buffer>;
|
|
9
|
-
export declare function urlFromSrcSet(srcset?: string): string;
|
|
10
|
-
export declare function getJSON<T>(url: string, options?: RequestInit): Promise<T>;
|
|
11
|
-
export declare function HTML(url: string, options?: RequestInit): Promise<cheerio.Root>;
|
|
12
|
-
export declare function checkThumb(thumbnail?: string): string | undefined;
|
|
13
|
-
export declare function hasFinished(finished?: string): boolean;
|
|
14
|
-
export declare function getSlug(href?: string): string | undefined;
|
|
15
|
-
export declare function toSlug(title?: string, language?: MainLanguages): string | undefined;
|
|
16
|
-
export declare function GeekGen(title: string): string;
|
|
17
|
-
export declare function isExtra(title: string): boolean;
|
|
18
|
-
export declare function toStringNumber(value: string): string | null;
|
|
19
|
-
export declare function toNumber(value: string): number | null;
|
|
20
|
-
export declare function generateHash(size?: number): string;
|
|
21
|
-
export declare function hash(): string;
|
|
22
|
-
export declare function getChapterNumber(number?: string | number): number | undefined;
|
|
23
|
-
export declare function getChapterTitle(number?: string | number, language?: string): string;
|
|
24
|
-
export declare function getChapterId(url?: string): number | false;
|
|
25
|
-
export declare function unionChapterNumberFormat(chapter_number: number): string;
|
|
26
|
-
export declare function atob(data: string): string;
|
|
27
|
-
export declare function btoa(data: string): string;
|
|
28
|
-
export declare function removeDuplicates<T>(array: T[], callback: (a: T) => unknown): NonNullable<T>[];
|
|
29
|
-
export declare function extractContentRegex(content: string, regex: RegExp): string | undefined;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
/// <reference types="cheerio" />
|
|
4
|
+
import { RequestInit } from "node-fetch";
|
|
5
|
+
import { MainLanguages } from "./type";
|
|
6
|
+
export declare function zlibDecode<T>(data: string): T;
|
|
7
|
+
export declare function getText(url: string, options?: RequestInit): Promise<string>;
|
|
8
|
+
export declare function getImgBuffer(url: string, options?: RequestInit): Promise<Buffer>;
|
|
9
|
+
export declare function urlFromSrcSet(srcset?: string): string;
|
|
10
|
+
export declare function getJSON<T>(url: string, options?: RequestInit): Promise<T>;
|
|
11
|
+
export declare function HTML(url: string, options?: RequestInit): Promise<cheerio.Root>;
|
|
12
|
+
export declare function checkThumb(thumbnail?: string): string | undefined;
|
|
13
|
+
export declare function hasFinished(finished?: string): boolean;
|
|
14
|
+
export declare function getSlug(href?: string): string | undefined;
|
|
15
|
+
export declare function toSlug(title?: string, language?: MainLanguages): string | undefined;
|
|
16
|
+
export declare function GeekGen(title: string): string;
|
|
17
|
+
export declare function isExtra(title: string): boolean;
|
|
18
|
+
export declare function toStringNumber(value: string): string | null;
|
|
19
|
+
export declare function toNumber(value: string): number | null;
|
|
20
|
+
export declare function generateHash(size?: number): string;
|
|
21
|
+
export declare function hash(): string;
|
|
22
|
+
export declare function getChapterNumber(number?: string | number): number | undefined;
|
|
23
|
+
export declare function getChapterTitle(number?: string | number, language?: string): string;
|
|
24
|
+
export declare function getChapterId(url?: string): number | false;
|
|
25
|
+
export declare function unionChapterNumberFormat(chapter_number: number): string;
|
|
26
|
+
export declare function atob(data: string): string;
|
|
27
|
+
export declare function btoa(data: string): string;
|
|
28
|
+
export declare function removeDuplicates<T>(array: T[], callback: (a: T) => unknown): NonNullable<T>[];
|
|
29
|
+
export declare function extractContentRegex(content: string, regex: RegExp): string | undefined;
|
package/lib/utils/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type MainLanguages = "en" | "pt" | "es";
|
|
2
|
-
export type Languages = "en" | "pt" | "pt-br" | "es" | "es-la" | "ja-ro";
|
|
3
|
-
export type LanguageItem = {
|
|
4
|
-
[key in Languages]?: string;
|
|
5
|
-
};
|
|
1
|
+
export type MainLanguages = "en" | "pt" | "es";
|
|
2
|
+
export type Languages = "en" | "pt" | "pt-br" | "es" | "es-la" | "ja-ro";
|
|
3
|
+
export type LanguageItem = {
|
|
4
|
+
[key in Languages]?: string;
|
|
5
|
+
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mgbuild",
|
|
3
|
-
"version": "
|
|
4
|
-
"scripts": {},
|
|
5
|
-
"description": "",
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"keywords": [],
|
|
8
|
-
"author": "",
|
|
9
|
-
"license": "ISC"
|
|
10
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mgbuild",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"scripts": {},
|
|
5
|
+
"description": "",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"keywords": [],
|
|
8
|
+
"author": "",
|
|
9
|
+
"license": "ISC"
|
|
10
|
+
}
|