mgbuild 1.6.5 → 1.6.7

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.
@@ -4,10 +4,10 @@ import type { GetRecentChaptersResponse } from "../types/recents";
4
4
  import type { GetChapterPagesResponse } from "../types/pages";
5
5
  import { Chapter, MangaInfo, Recent } from "../types/transform";
6
6
  import { RecentScrapeList } from "../../../@types";
7
- import { Languages } from "../../../utils/type";
7
+ import { Languages, MainLanguages } from "../../../utils/type";
8
8
  export declare class Transform {
9
9
  chapterList(response?: GetMangaChaptersResponse, language?: Languages, slug?: string): Chapter[];
10
- mangaInfo(response?: GetMangaInfoResponse, language?: Languages): MangaInfo;
10
+ mangaInfo(response?: GetMangaInfoResponse, language?: MainLanguages): MangaInfo;
11
11
  chapterPages(response?: GetChapterPagesResponse): {
12
12
  pages: string[];
13
13
  };
@@ -1,9 +1,9 @@
1
1
  import { Logger } from "./core/scraper";
2
- import { Languages } from "../../utils/type";
2
+ import { Languages, MainLanguages } from "../../utils/type";
3
3
  declare type MangaConfig = {
4
4
  full?: boolean;
5
5
  last?: boolean;
6
- language: Languages;
6
+ language: MainLanguages;
7
7
  };
8
8
  export declare class Scraper {
9
9
  private bruteScraper;
@@ -17,6 +17,6 @@ export declare class Scraper {
17
17
  chapterById(chapter_id: string): Promise<{
18
18
  pages: string[];
19
19
  }>;
20
- recents(language: Languages): Promise<import("../../@types").RecentScrapeList[]>;
20
+ recents(language: Languages): Promise<import("../..").RecentScrapeList[]>;
21
21
  }
22
22
  export {};
@@ -1,3 +1,4 @@
1
+ import { MainLanguages } from "../../../utils/type";
1
2
  export declare type Chapter = {
2
3
  id: string;
3
4
  number: number;
@@ -37,6 +38,7 @@ export declare type MangaInfo = {
37
38
  cover: string;
38
39
  tags: string[];
39
40
  available: boolean;
41
+ language: MainLanguages;
40
42
  alternative_name?: string;
41
43
  chapters?: Chapter[];
42
44
  };
@@ -1,12 +1,13 @@
1
1
  /// <reference types="cheerio" />
2
2
  import { RequestInit } from "node-fetch";
3
+ import { MainLanguages } from "./type";
3
4
  export declare function getText(url: string, options?: RequestInit): Promise<string>;
4
5
  export declare function getJSON(url: string, options?: RequestInit): Promise<any>;
5
6
  export declare function HTML(url: string, options?: RequestInit): Promise<cheerio.Root>;
6
7
  export declare function checkThumb(thumbnail?: string): string | undefined;
7
8
  export declare function hasFinished(finished?: string): boolean;
8
9
  export declare function getSlug(href?: string): string | undefined;
9
- export declare function toSlug(title?: string): string | undefined;
10
+ export declare function toSlug(title?: string, language?: MainLanguages): string | undefined;
10
11
  export declare function GeekGen(title: string): string;
11
12
  export declare function isExtra(title: string): boolean;
12
13
  export declare function toStringNumber(value: string): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mgbuild",
3
- "version": "1.6.5",
3
+ "version": "1.6.7",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "keywords": [],