@crysoline/lib 0.1.2 → 0.1.3

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.
@@ -10,6 +10,8 @@ import type { LEpisodeMeta, LInfoMeta, LSearchMeta, LSourcesMeta } from './lunar
10
10
  import type { UniqueEpisodeMeta, UniqueInfoMeta, UniqueSearchMeta } from './uniquestream';
11
11
  declare const Anime: {
12
12
  OneTwoThreeAnime: (apiKey: string) => {
13
+ name: string;
14
+ } & {
13
15
  search: (q: string) => Promise<import("../types").Search<OneTwoThreeAnimeSearchMeta>[]>;
14
16
  info: (id: string | number) => Promise<import("../types").Info<OneTwoThreeAnimeInfoMeta, import("../types").Episode<unknown>>>;
15
17
  episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
@@ -21,6 +23,8 @@ declare const Anime: {
21
23
  }) => Promise<import("../types").Source<unknown>>;
22
24
  };
23
25
  AnimeParadise: (apiKey: string) => {
26
+ name: string;
27
+ } & {
24
28
  search: (q: string) => Promise<import("../types").Search<unknown>[]>;
25
29
  info: (id: string | number) => Promise<import("../types").Info<unknown, import("../types").Episode<unknown>>>;
26
30
  episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
@@ -32,6 +36,8 @@ declare const Anime: {
32
36
  }) => Promise<import("../types").Source<unknown>>;
33
37
  };
34
38
  AnimeHeaven: (apiKey: string) => {
39
+ name: string;
40
+ } & {
35
41
  search: (q: string) => Promise<import("../types").Search<unknown>[]>;
36
42
  info: (id: string | number) => Promise<import("../types").Info<unknown, import("../types").Episode<unknown>>>;
37
43
  episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
@@ -43,6 +49,8 @@ declare const Anime: {
43
49
  }) => Promise<import("../types").Source<unknown>>;
44
50
  };
45
51
  AnimeKai: (apiKey: string) => {
52
+ name: string;
53
+ } & {
46
54
  search: (q: string) => Promise<import("../types").Search<KaiSearchMeta>[]>;
47
55
  info: (id: string | number) => Promise<import("../types").Info<KaiInfoMeta, import("../types").Episode<KaiEpisodeMeta>>>;
48
56
  episodes: (id: string | number) => Promise<import("../types").Episode<KaiEpisodeMeta>[]>;
@@ -54,6 +62,8 @@ declare const Anime: {
54
62
  }) => Promise<import("../types").Source<unknown>>;
55
63
  };
56
64
  AnimeNexus: (apiKey: string) => {
65
+ name: string;
66
+ } & {
57
67
  search: (q: string) => Promise<import("../types").Search<NSearchMeta>[]>;
58
68
  info: (id: string | number) => Promise<import("../types").Info<NInfoMeta, import("../types").Episode<NEpisodeMeta>>>;
59
69
  episodes: (id: string | number) => Promise<import("../types").Episode<NEpisodeMeta>[]>;
@@ -65,6 +75,8 @@ declare const Anime: {
65
75
  }) => Promise<import("../types").Source<unknown>>;
66
76
  };
67
77
  AnimeOnsen: (apiKey: string) => {
78
+ name: string;
79
+ } & {
68
80
  search: (q: string) => Promise<import("../types").Search<unknown>[]>;
69
81
  info: (id: string | number) => Promise<import("../types").Info<OInfoMeta, import("../types").Episode<OEpisodeMeta>>>;
70
82
  episodes: (id: string | number) => Promise<import("../types").Episode<OEpisodeMeta>[]>;
@@ -76,6 +88,8 @@ declare const Anime: {
76
88
  }) => Promise<import("../types").Source<unknown>>;
77
89
  };
78
90
  AnimePahe: (apiKey: string) => {
91
+ name: string;
92
+ } & {
79
93
  search: (q: string) => Promise<import("../types").Search<PaheSearchMeta>[]>;
80
94
  info: (id: string | number) => Promise<import("../types").Info<PaheInfoMeta, import("../types").Episode<PaheEpisodeMeta>>>;
81
95
  episodes: (id: string | number) => Promise<import("../types").Episode<PaheEpisodeMeta>[]>;
@@ -87,6 +101,8 @@ declare const Anime: {
87
101
  }) => Promise<import("../types").Source<unknown>>;
88
102
  };
89
103
  AniZone: (apiKey: string) => {
104
+ name: string;
105
+ } & {
90
106
  search: (q: string) => Promise<import("../types").Search<AZSearchMeta>[]>;
91
107
  info: (id: string | number) => Promise<import("../types").Info<AZInfoMeta, import("../types").Episode<AZEpisodeMeta>>>;
92
108
  episodes: (id: string | number) => Promise<import("../types").Episode<AZEpisodeMeta>[]>;
@@ -98,6 +114,8 @@ declare const Anime: {
98
114
  }) => Promise<import("../types").Source<unknown>>;
99
115
  };
100
116
  HiAnime: (apiKey: string) => {
117
+ name: string;
118
+ } & {
101
119
  search: (q: string) => Promise<import("../types").Search<HianimeSearchMeta>[]>;
102
120
  info: (id: string | number) => Promise<import("../types").Info<HianimeInfoMeta, import("../types").Episode<HianimeEpisodeMeta>>>;
103
121
  episodes: (id: string | number) => Promise<import("../types").Episode<HianimeEpisodeMeta>[]>;
@@ -113,6 +131,8 @@ declare const Anime: {
113
131
  }) => Promise<import("../types").Server<HianimeServerMeta>>;
114
132
  };
115
133
  KickAssAnime: (apiKey: string) => {
134
+ name: string;
135
+ } & {
116
136
  search: (q: string) => Promise<import("../types").Search<KSearchMeta>[]>;
117
137
  info: (id: string | number) => Promise<import("../types").Info<KInfoMeta, import("../types").Episode<KEpisodeMeta>>>;
118
138
  episodes: (id: string | number) => Promise<import("../types").Episode<KEpisodeMeta>[]>;
@@ -124,6 +144,8 @@ declare const Anime: {
124
144
  }) => Promise<import("../types").Source<KSourceMeta>>;
125
145
  };
126
146
  LunarAnime: (apiKey: string) => {
147
+ name: string;
148
+ } & {
127
149
  search: (q: string) => Promise<import("../types").Search<LSearchMeta>[]>;
128
150
  info: (id: string | number) => Promise<import("../types").Info<LInfoMeta, import("../types").Episode<LEpisodeMeta>>>;
129
151
  episodes: (id: string | number) => Promise<import("../types").Episode<LEpisodeMeta>[]>;
@@ -135,6 +157,8 @@ declare const Anime: {
135
157
  }) => Promise<import("../types").Source<LSourcesMeta>>;
136
158
  };
137
159
  UniqueStream: (apiKey: string) => {
160
+ name: string;
161
+ } & {
138
162
  search: (q: string) => Promise<import("../types").Search<UniqueSearchMeta>[]>;
139
163
  info: (id: string | number) => Promise<import("../types").Info<UniqueInfoMeta, import("../types").Episode<UniqueEpisodeMeta>>>;
140
164
  episodes: (id: string | number) => Promise<import("../types").Episode<UniqueEpisodeMeta>[]>;
@@ -4,6 +4,8 @@ import type { HavenEpisodeMeta, HavenInfoMeta, HavenSourceMeta } from './hentaih
4
4
  import type { HStreamSearchMeta } from './hstream';
5
5
  declare const Hentai: {
6
6
  HAnime: (apiKey: string) => {
7
+ name: string;
8
+ } & {
7
9
  search: (q: string) => Promise<import("../types").Search<HAnimeSearchMeta>[]>;
8
10
  info: (id: string | number) => Promise<import("../types").Info<HAnimeInfoMeta, import("../types").Episode<HianimeEpisodeMeta>>>;
9
11
  episodes: (id: string | number) => Promise<import("../types").Episode<HianimeEpisodeMeta>[]>;
@@ -15,6 +17,8 @@ declare const Hentai: {
15
17
  }) => Promise<import("../types").Source<unknown>>;
16
18
  };
17
19
  HentaiHaven: (apiKey: string) => {
20
+ name: string;
21
+ } & {
18
22
  search: (q: string) => Promise<import("../types").Search<unknown>[]>;
19
23
  info: (id: string | number) => Promise<import("../types").Info<HavenInfoMeta, import("../types").Episode<HavenEpisodeMeta>>>;
20
24
  episodes: (id: string | number) => Promise<import("../types").Episode<HavenEpisodeMeta>[]>;
@@ -26,6 +30,8 @@ declare const Hentai: {
26
30
  }) => Promise<import("../types").Source<HavenSourceMeta>>;
27
31
  };
28
32
  HStream: (apiKey: string) => {
33
+ name: string;
34
+ } & {
29
35
  search: (q: string) => Promise<import("../types").Search<HStreamSearchMeta>[]>;
30
36
  info: (id: string | number) => Promise<import("../types").Info<unknown, import("../types").Episode<unknown>>>;
31
37
  episodes: (id: string | number) => Promise<import("../types").Episode<unknown>[]>;
@@ -3,6 +3,8 @@ import type { MDXInfoMeta, MDXSearchMeta } from './mangadex';
3
3
  import type { MFInfoMeta, MFSearchMeta } from './mangafire';
4
4
  declare const Manga: {
5
5
  LunarManga: (apiKey: string) => {
6
+ name: string;
7
+ } & {
6
8
  search: (q: string) => Promise<import("../types").Search<LMangaSearchMeta>[]>;
7
9
  info: (id: string | number) => Promise<import("../types").Info<LMangaInfoMeta, import("../types").Episode<unknown>>>;
8
10
  chapters: (id: string | number) => Promise<import("../types").Chapter<unknown>[]>;
@@ -13,6 +15,8 @@ declare const Manga: {
13
15
  }) => Promise<import("../types").Page[]>;
14
16
  };
15
17
  MangaDex: (apiKey: string) => {
18
+ name: string;
19
+ } & {
16
20
  search: (q: string) => Promise<import("../types").Search<MDXSearchMeta>[]>;
17
21
  info: (id: string | number) => Promise<import("../types").Info<MDXInfoMeta, import("../types").Episode<unknown>>>;
18
22
  chapters: (id: string | number) => Promise<import("../types").Chapter<unknown>[]>;
@@ -23,6 +27,8 @@ declare const Manga: {
23
27
  }) => Promise<import("../types").Page[]>;
24
28
  };
25
29
  MangaFire: (apiKey: string) => {
30
+ name: string;
31
+ } & {
26
32
  search: (q: string) => Promise<import("../types").Search<MFSearchMeta>[]>;
27
33
  info: (id: string | number) => Promise<import("../types").Info<MFInfoMeta, import("../types").Episode<unknown>>>;
28
34
  chapters: (id: string | number) => Promise<import("../types").Chapter<unknown>[]>;
@@ -20,6 +20,8 @@
20
20
  * ```
21
21
  */
22
22
  declare const Mapper: (apiKey: string) => {
23
+ name: string;
24
+ } & {
23
25
  map: (params: {
24
26
  id: number;
25
27
  provider: string;
@@ -2,10 +2,14 @@ import type { MInfoMeta, MSearchMeta } from './myanimelist';
2
2
  import type { MMLInfoMeta, MMSearchMeta } from './mymangalist';
3
3
  declare const Meta: {
4
4
  MyAnimeList: (apiKey: string) => {
5
+ name: string;
6
+ } & {
5
7
  search: (q: string) => Promise<import("../types").Search<MSearchMeta>[]>;
6
8
  info: (id: string | number) => Promise<import("../types").Info<MInfoMeta, import("../types").Episode<unknown>>>;
7
9
  };
8
10
  MyMangaList: (apiKey: string) => {
11
+ name: string;
12
+ } & {
9
13
  search: (q: string) => Promise<import("../types").Search<MMSearchMeta>[]>;
10
14
  info: (id: string | number) => Promise<import("../types").Info<MMLInfoMeta, import("../types").Episode<unknown>>>;
11
15
  };
@@ -37,6 +37,8 @@ type SelectRoutes = {
37
37
  [K in keyof RouteMap]?: boolean;
38
38
  };
39
39
  type BuildRoutes<T extends SelectRoutes, TSearchMeta = unknown, TInfoMeta = unknown, TEpisodeMeta = unknown, TSourceMeta = unknown, TServerMeta = unknown, TChapterMeta = unknown> = {
40
+ name: string;
41
+ } & {
40
42
  [K in keyof T & keyof RouteMap as T[K] extends true ? K : never]: RouteMap<TSearchMeta, TInfoMeta, TEpisodeMeta, TSourceMeta, TServerMeta, TChapterMeta>[K];
41
43
  };
42
44
  type BuildAnimeRoutes<T extends SelectRoutes, TSearchMeta = unknown, TInfoMeta = unknown, TEpisodeMeta = unknown, TSourceMeta = unknown, TServerMeta = unknown> = BuildRoutes<T, TSearchMeta, TInfoMeta, TEpisodeMeta, TSourceMeta, TServerMeta>;
@@ -29,6 +29,7 @@ export const AnimeFetch = (config) => {
29
29
  const sources = (params) => fetcher('sources', params);
30
30
  const servers = (params) => fetcher('servers', params);
31
31
  return {
32
+ name: provider,
32
33
  search,
33
34
  info,
34
35
  episodes,
@@ -46,6 +47,7 @@ export const HentaiFetch = (config) => {
46
47
  const sources = (params) => fetcher('sources', params);
47
48
  const servers = (params) => fetcher('servers', params);
48
49
  return {
50
+ name: provider,
49
51
  search,
50
52
  info,
51
53
  episodes,
@@ -62,6 +64,7 @@ export const MangaFetch = (config) => {
62
64
  const chapters = async (id) => fetcher(`chapters/${encodeURIComponent(id)}`);
63
65
  const pages = (params) => fetcher('pages', params);
64
66
  return {
67
+ name: provider,
65
68
  search,
66
69
  info,
67
70
  chapters,
@@ -75,6 +78,7 @@ export const MetaFetch = (config) => {
75
78
  const search = async (q) => fetcher('search', { q });
76
79
  const info = async (id) => fetcher(`info/${encodeURIComponent(id)}`);
77
80
  return {
81
+ name: provider,
78
82
  search,
79
83
  info,
80
84
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@crysoline/lib",
3
3
  "description": "The official crysoline library for anime, manga using the Crysoline API",
4
4
  "license": "MIT",
5
- "version": "0.1.2",
5
+ "version": "0.1.3",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",