react-native-consumet 1.0.0-rc.1 → 1.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/android/generated/java/com/consumet/NativeConsumetSpec.java +4 -0
- package/android/generated/jni/RNConsumetSpec-generated.cpp +6 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI-generated.cpp +8 -0
- package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +9 -0
- package/android/src/main/java/com/consumet/ConsumetModule.kt +7 -0
- package/android/src/main/java/com/consumet/DdosGuardModule.kt +248 -189
- package/ios/generated/RNConsumetSpec/RNConsumetSpec-generated.mm +7 -0
- package/ios/generated/RNConsumetSpec/RNConsumetSpec.h +2 -0
- package/ios/generated/RNConsumetSpecJSI-generated.cpp +8 -0
- package/ios/generated/RNConsumetSpecJSI.h +9 -0
- package/lib/commonjs/NativeConsumet.ts +2 -0
- package/lib/commonjs/extension-registry.json +12 -12
- package/lib/commonjs/extractors/kwik.js +60 -15
- package/lib/commonjs/extractors/kwik.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +12 -8
- package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/commonjs/providers/anime/animesuge/animesuge.js +78 -0
- package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +1 -0
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +312 -0
- package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +1 -0
- package/lib/commonjs/providers/anime/zoro/create-zoro.js +2 -1
- package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/commonjs/providers/anime/zoro/zoro.js +4 -3
- package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/index.js +5 -4
- package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
- package/lib/commonjs/providers/movies/multistream/utils.js +142 -130
- package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
- package/lib/commonjs/utils/ProviderManager.js +60 -9
- package/lib/commonjs/utils/ProviderManager.js.map +1 -1
- package/lib/commonjs/utils/create-extractor-context.js +9 -1
- package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
- package/lib/commonjs/utils/create-provider-context.js +5 -1
- package/lib/commonjs/utils/create-provider-context.js.map +1 -1
- package/lib/commonjs/utils/extension-utils.js +9 -1
- package/lib/commonjs/utils/extension-utils.js.map +1 -1
- package/lib/commonjs/utils/provider-maps.js +0 -1
- package/lib/commonjs/utils/provider-maps.js.map +1 -1
- package/lib/module/NativeConsumet.ts +2 -0
- package/lib/module/extension-registry.json +12 -12
- package/lib/module/extractors/kwik.js +60 -15
- package/lib/module/extractors/kwik.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/providers/anime/animepahe/create-animepahe.js +12 -8
- package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
- package/lib/module/providers/anime/animesuge/animesuge.js +73 -0
- package/lib/module/providers/anime/animesuge/animesuge.js.map +1 -0
- package/lib/module/providers/anime/animesuge/create-animesuge.js +309 -0
- package/lib/module/providers/anime/animesuge/create-animesuge.js.map +1 -0
- package/lib/module/providers/anime/zoro/create-zoro.js +2 -1
- package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
- package/lib/module/providers/anime/zoro/zoro.js +4 -3
- package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
- package/lib/module/providers/movies/multistream/index.js +5 -4
- package/lib/module/providers/movies/multistream/index.js.map +1 -1
- package/lib/module/providers/movies/multistream/utils.js +141 -129
- package/lib/module/providers/movies/multistream/utils.js.map +1 -1
- package/lib/module/utils/ProviderManager.js +60 -9
- package/lib/module/utils/ProviderManager.js.map +1 -1
- package/lib/module/utils/create-extractor-context.js +10 -1
- package/lib/module/utils/create-extractor-context.js.map +1 -1
- package/lib/module/utils/create-provider-context.js +6 -2
- package/lib/module/utils/create-provider-context.js.map +1 -1
- package/lib/module/utils/extension-utils.js +9 -1
- package/lib/module/utils/extension-utils.js.map +1 -1
- package/lib/module/utils/provider-maps.js +0 -1
- package/lib/module/utils/provider-maps.js.map +1 -1
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts +2 -0
- package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts +8 -0
- package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/provider-context.d.ts +6 -2
- package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +34 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
- package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +2 -2
- package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +6 -1
- package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +0 -1
- package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
- package/lib/typescript/module/src/NativeConsumet.d.ts +2 -0
- package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
- package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +2 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/extractor-context.d.ts +8 -0
- package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/models/index.d.ts +2 -2
- package/lib/typescript/module/src/models/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/provider-context.d.ts +6 -2
- package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +34 -0
- package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +14 -0
- package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +1 -0
- package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +2 -2
- package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts +6 -1
- package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts +0 -1
- package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
- package/package.json +207 -206
- package/src/NativeConsumet.ts +2 -0
- package/src/extension-registry.json +12 -12
- package/src/extractors/kwik.ts +75 -12
- package/src/index.tsx +2 -0
- package/src/models/extractor-context.ts +14 -0
- package/src/models/index.ts +2 -1
- package/src/models/provider-context.ts +12 -2
- package/src/providers/anime/animepahe/create-animepahe.ts +10 -8
- package/src/providers/anime/animesuge/animesuge.ts +77 -0
- package/src/providers/anime/animesuge/create-animesuge.ts +327 -0
- package/src/providers/anime/zoro/create-zoro.ts +2 -1
- package/src/providers/anime/zoro/zoro.ts +4 -3
- package/src/providers/movies/multistream/index.ts +6 -5
- package/src/providers/movies/multistream/utils.ts +147 -270
- package/src/utils/ProviderManager.ts +68 -10
- package/src/utils/create-extractor-context.ts +14 -0
- package/src/utils/create-provider-context.ts +11 -1
- package/src/utils/extension-utils.ts +14 -0
- package/src/utils/provider-maps.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-animepahe.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/anime/animepahe/create-animepahe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,eAAe,EAIrB,MAAM,iBAAiB,CAAC;AAEzB,iBAAS,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,MAAM;;
|
|
1
|
+
{"version":3,"file":"create-animepahe.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/anime/animepahe/create-animepahe.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,eAAe,EAIrB,MAAM,iBAAiB,CAAC;AAEzB,iBAAS,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,MAAM;;aA4T9C,MAAM;;;oBAzOE,MAAM,SAAQ,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;yBA2BpD,MAAM,gBAAe,MAAM,KAAQ,OAAO,CAAC,UAAU,CAAC;qCA4G3E,MAAM,WACT,gBAAgB,aACd,QAAQ,KACjB,OAAO,CAAC,OAAO,CAAC;qCAuD2B,MAAM,YAAY,QAAQ,KAAG,OAAO,CAAC,cAAc,EAAE,CAAC;EAoDrG;AAGD,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAG3E,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AnimeParser } from '../../../models';
|
|
2
|
+
import { type AnimeSugeProviderInstance } from './create-animesuge';
|
|
3
|
+
export declare class AnimeSuge extends AnimeParser {
|
|
4
|
+
private instance;
|
|
5
|
+
logo: string;
|
|
6
|
+
constructor(customBaseURL?: string);
|
|
7
|
+
get name(): string;
|
|
8
|
+
get baseUrl(): string;
|
|
9
|
+
set baseUrl(value: string);
|
|
10
|
+
get classPath(): string;
|
|
11
|
+
/**
|
|
12
|
+
* @param query Search query
|
|
13
|
+
* @param page Page number (optional)
|
|
14
|
+
*/
|
|
15
|
+
search: AnimeSugeProviderInstance['search'];
|
|
16
|
+
/**
|
|
17
|
+
* @param id Anime id
|
|
18
|
+
*/
|
|
19
|
+
fetchAnimeInfo: AnimeSugeProviderInstance['fetchAnimeInfo'];
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @param episodeId Episode id
|
|
23
|
+
* @param server server type (default `VidCloud`) (optional)
|
|
24
|
+
* @param subOrDub sub or dub (default `SubOrDub.SUB`) (optional)
|
|
25
|
+
*/
|
|
26
|
+
fetchEpisodeSources: AnimeSugeProviderInstance['fetchEpisodeSources'];
|
|
27
|
+
/**
|
|
28
|
+
* Method not implemented in AnimeSuge provider.
|
|
29
|
+
* @param episodeId Episode id
|
|
30
|
+
*/
|
|
31
|
+
fetchEpisodeServers: AnimeSugeProviderInstance['fetchEpisodeServers'];
|
|
32
|
+
}
|
|
33
|
+
export default AnimeSuge;
|
|
34
|
+
//# sourceMappingURL=animesuge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animesuge.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/anime/animesuge/animesuge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAGrF,qBAAa,SAAU,SAAQ,WAAW;IACxC,OAAO,CAAC,QAAQ,CAA4B;IACrC,IAAI,EAAE,MAAM,CAAC;gBAER,aAAa,CAAC,EAAE,MAAM;IAiBlC,IAAI,IAAI,WAEP;IACD,IAAI,OAAO,IAGQ,MAAM,CADxB;IACD,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAExB;IACD,IAAI,SAAS,WAEZ;IACD;;;OAGG;IACH,MAAM,EAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC;IAC7C;;OAEG;IACH,cAAc,EAAG,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IAC7D;;;;;OAKG;IACH,mBAAmB,EAAG,yBAAyB,CAAC,qBAAqB,CAAC,CAAC;IACvE;;;OAGG;IACH,mBAAmB,EAAG,yBAAyB,CAAC,qBAAqB,CAAC,CAAC;CACxE;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type ISearch, type IAnimeInfo, type IAnimeResult, type ISource, type IEpisodeServer, type StreamingServers, type SubOrDub, type ProviderContext } from '../../../models';
|
|
2
|
+
declare function createAnimeSuge(ctx: ProviderContext, customBaseURL?: string): {
|
|
3
|
+
name: string;
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
logo: string;
|
|
6
|
+
classPath: string;
|
|
7
|
+
search: (query: string, page?: number) => Promise<ISearch<IAnimeResult>>;
|
|
8
|
+
fetchAnimeInfo: (id: string) => Promise<IAnimeInfo>;
|
|
9
|
+
fetchEpisodeSources: (episodeId: string, server?: StreamingServers, subOrDub?: SubOrDub) => Promise<ISource>;
|
|
10
|
+
fetchEpisodeServers: (episodeId: string, subOrDub: SubOrDub) => Promise<IEpisodeServer[]>;
|
|
11
|
+
};
|
|
12
|
+
export type AnimeSugeProviderInstance = ReturnType<typeof createAnimeSuge>;
|
|
13
|
+
export default createAnimeSuge;
|
|
14
|
+
//# sourceMappingURL=create-animesuge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-animesuge.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/anime/animesuge/create-animesuge.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,QAAQ,EACb,KAAK,eAAe,EAErB,MAAM,iBAAiB,CAAC;AAEzB,iBAAS,eAAe,CAAC,GAAG,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,MAAM;;aAsS9C,MAAM;;;oBApQE,MAAM,SAAQ,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;yBAKpD,MAAM,KAAG,OAAO,CAAC,UAAU,CAAC;qCAyGjD,MAAM,WACT,gBAAgB,aACd,QAAQ,KACjB,OAAO,CAAC,OAAO,CAAC;qCAkC2B,MAAM,YAAY,QAAQ,KAAG,OAAO,CAAC,cAAc,EAAE,CAAC;EA6HrG;AAGD,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;AAG3E,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-zoro.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/anime/zoro/create-zoro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAErB,MAAM,iBAAiB,CAAC;AAEzB,iBAAS,UAAU,CAAC,GAAG,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,MAAM;;
|
|
1
|
+
{"version":3,"file":"create-zoro.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/anime/zoro/create-zoro.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,eAAe,EAErB,MAAM,iBAAiB,CAAC;AAEzB,iBAAS,UAAU,CAAC,GAAG,EAAE,eAAe,EAAE,aAAa,CAAC,EAAE,MAAM;;aAulBzC,MAAM;;;oBAzjBE,MAAM,SAAQ,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;iCAM9E,MAAM,SACL,MAAM,WACJ,MAAM,UACP,MAAM,UACN,MAAM,WACL,MAAM,aACJ,MAAM,cACL;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,YAC9C;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,SAC/C,MAAM,WACJ,MAAM,EAAE,KAChB,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;4BAkGG,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;8BAKzC,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;+BAK1C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;kCAKxC,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;kCAK3C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;gCAK7C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;8BAK7C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;0BAK9C,MAAM,SAAQ,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;8BAKtD,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;8BAK3C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;wBAKjD,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;qBAK9C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;sBAK1C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;sBAK3C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;0BAKvC,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;yBAK5C,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;yBAK1C,MAAM,SAAQ,MAAM,KAAO,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;0BAKxD,MAAM,KAAG,OAAO,CAAC,YAAY,EAAE,CAAC;0BAYlC,OAAO,CAAC,YAAY,EAAE,CAAC;oCAmCX,MAAM,KAAG,OAAO,CAAC,YAAY,EAAE,CAAC;iCAYrC,OAAO,CAAC,YAAY,EAAE,CAAC;oCAYlB,aAAa,KAAG,OAAO,CAAC,YAAY,EAAE,CAAC;yBAYlD,MAAM,KAAG,OAAO,CAAC,UAAU,CAAC;qCA6GjD,MAAM,WACT,gBAAgB,aACd,QAAQ,KACjB,OAAO,CAAC,OAAO,CAAC;qCAkC2B,MAAM,YAAY,QAAQ,KAAG,OAAO,CAAC,cAAc,EAAE,CAAC;EA+KrG;AAGD,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAGjE,eAAe,UAAU,CAAC"}
|
|
@@ -25,7 +25,7 @@ declare class MultiStream extends MovieParser {
|
|
|
25
25
|
* @param mediaId media id
|
|
26
26
|
* @param server server type (defaults to the first from `fetchEpisodeServers`) (optional)
|
|
27
27
|
*/
|
|
28
|
-
fetchEpisodeSources: (episodeId: string, mediaId: string, server
|
|
28
|
+
fetchEpisodeSources: (episodeId: string, mediaId: string, server?: StreamingServers) => Promise<ISource>;
|
|
29
29
|
/**
|
|
30
30
|
*
|
|
31
31
|
* @param episodeId takes episode link or movie id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/movies/multistream/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,MAAM,EACN,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,gBAAgB,EAChB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAC;AAGzB,cAAM,WAAY,SAAQ,WAAW;IACnC,SAAkB,IAAI,iBAAiB;IACvC,UAAmB,OAAO,SAA4B;IACtD,SAAS,CAAC,MAAM,SAAkC;IAClD,OAAO,CAAC,MAAM,CAA8C;IAC5D,UAAmB,IAAI,SAA4D;IACnF,UAAmB,SAAS,SAAwB;IAC3C,cAAc,cAA4C;gBACvD,aAAa,CAAC,EAAE,MAAM;IAalC;;;;OAIG;IACM,MAAM,GAAU,OAAO,MAAM,EAAE,OAAM,MAAU,KAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAqDvF;IAEF;;;OAGG;IACM,cAAc,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,UAAU,CAAC,CAoFpE;IAEF;;;;;OAKG;IACM,mBAAmB,GAC1B,WAAW,MAAM,EACjB,SAAS,MAAM,EACf,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/movies/multistream/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,MAAM,EACN,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,gBAAgB,EAChB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACb,MAAM,iBAAiB,CAAC;AAGzB,cAAM,WAAY,SAAQ,WAAW;IACnC,SAAkB,IAAI,iBAAiB;IACvC,UAAmB,OAAO,SAA4B;IACtD,SAAS,CAAC,MAAM,SAAkC;IAClD,OAAO,CAAC,MAAM,CAA8C;IAC5D,UAAmB,IAAI,SAA4D;IACnF,UAAmB,SAAS,SAAwB;IAC3C,cAAc,cAA4C;gBACvD,aAAa,CAAC,EAAE,MAAM;IAalC;;;;OAIG;IACM,MAAM,GAAU,OAAO,MAAM,EAAE,OAAM,MAAU,KAAG,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAqDvF;IAEF;;;OAGG;IACM,cAAc,GAAU,SAAS,MAAM,KAAG,OAAO,CAAC,UAAU,CAAC,CAoFpE;IAEF;;;;;OAKG;IACM,mBAAmB,GAC1B,WAAW,MAAM,EACjB,SAAS,MAAM,EACf,SAAS,gBAAgB,KACxB,OAAO,CAAC,OAAO,CAAC,CAGjB;IAEF;;;;OAIG;IACM,mBAAmB,GAAU,WAAW,MAAM,EAAE,UAAU,MAAM,KAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAQnG;CACH;AAiBD,eAAe,WAAW,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IEpisodeServer, ISource } from '../../../models';
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getVidsrcSourcesAndServers(id: string): Promise<ISource & {
|
|
3
3
|
servers: IEpisodeServer[];
|
|
4
4
|
}>;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function get111MoviesSourcesAndServers(id: string): Promise<ISource & {
|
|
6
6
|
servers: IEpisodeServer[];
|
|
7
7
|
}>;
|
|
8
8
|
export declare function getMultiServers(id: string): Promise<IEpisodeServer[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/movies/multistream/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAqB,MAAM,iBAAiB,CAAC;AAKlF,wBAAsB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/providers/movies/multistream/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAqB,MAAM,iBAAiB,CAAC;AAKlF,wBAAsB,0BAA0B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG;IAAE,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,CAkF7G;AAED,wBAAsB,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG;IAAE,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC,CAuIhH;AAED,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAa3E;AAED,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CA2BlF"}
|
|
@@ -2,7 +2,7 @@ import type { ProviderContext } from '../models/provider-context';
|
|
|
2
2
|
import { type IAnimeResult, type IMovieResult, type ISearch, type ProviderContextConfig } from '../models';
|
|
3
3
|
import extensionRegistry from '../extension-registry.json';
|
|
4
4
|
import type { ExtensionManifest, ProviderType } from '../models/extension-manifest';
|
|
5
|
-
import
|
|
5
|
+
import { animeProviders, movieProviders, type AnimeProvider, type MovieProvider } from './provider-maps';
|
|
6
6
|
export declare class ProviderManager {
|
|
7
7
|
private providerContext;
|
|
8
8
|
private loadedExtensions;
|
|
@@ -28,6 +28,11 @@ export declare class ProviderManager {
|
|
|
28
28
|
* Load an extension by ID from the extensionManifest
|
|
29
29
|
*/
|
|
30
30
|
loadExtension<T extends AnimeProvider | MovieProvider>(extensionId: T): Promise<T extends AnimeProvider ? InstanceType<(typeof animeProviders)[T]> : T extends MovieProvider ? InstanceType<(typeof movieProviders)[T]> : never>;
|
|
31
|
+
/**
|
|
32
|
+
* Attach the correct prototype to the loaded provider instance so runtime instanceof checks pass
|
|
33
|
+
* and developer tooling understands the shape better.
|
|
34
|
+
*/
|
|
35
|
+
private attachProviderPrototype;
|
|
31
36
|
/**
|
|
32
37
|
* Execute provider code and create instance (extensionManifest-based)
|
|
33
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProviderManager.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ProviderManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProviderManager.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ProviderManager.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAC3G,OAAO,iBAAiB,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACpF,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEzG,qBAAa,eAAe;IAC1B,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAA0B;IAClD,OAAO,CAAC,iBAAiB,CAAwC;gBAErD,QAAQ,EAAE,OAAO,iBAAiB,EAAE,cAAc,GAAE,qBAA0B;IAK1F;;OAEG;IACH,OAAO,CAAC,YAAY;IAsBpB;;OAEG;IACH,sBAAsB,IAAI,iBAAiB,EAAE;IAI7C;;OAEG;IACH,uBAAuB,CAAC,QAAQ,EAAE,YAAY,GAAG,iBAAiB,EAAE;IAIpE;;OAEG;IACH,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,iBAAiB;IAkB5D;;OAEG;IACG,aAAa,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACzD,WAAW,EAAE,CAAC,GACb,OAAO,CACR,CAAC,SAAS,aAAa,GACnB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,aAAa,GACrB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,KAAK,CACZ;IA6ED;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAwB/B;;OAEG;IACU,mBAAmB,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,EACtE,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,iBAAiB,GAAG;QAAE,EAAE,EAAE,CAAC,CAAA;KAAE,GACtC,OAAO,CACR,CAAC,SAAS,aAAa,GACnB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,CAAC,SAAS,aAAa,GACrB,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GACxC,KAAK,CACZ;IAuDD;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA6D9B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAmC3B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA4B3B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAmBhC;;OAEG;IACG,gBAAgB,CAAC,CAAC,SAAS,aAAa,EAAE,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAclH;;OAEG;IACG,gBAAgB,CAAC,CAAC,SAAS,aAAa,EAAE,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAclH;;OAEG;IACH,kBAAkB,IAAI,eAAe;IAIrC;;OAEG;IACG,qBAAqB,CACzB,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,MAAM,EACb,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC,CAAA;KAAE,CAAC,CAAC;CAe1F;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-extractor-context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/create-extractor-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"create-extractor-context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/create-extractor-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAS1E;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,GAAE,sBAA2B,GAAG,gBAAgB,CAiB5F;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-provider-context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/create-provider-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"create-provider-context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/create-provider-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA0BzF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,qBAA0B,GAAG,eAAe,CAkFzF;AACD,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extension-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EAEP,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,EACP,QAAQ,EACR,OAAO,EACP,GAAG,EACH,MAAM,EACP,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extension-utils.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EAEP,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,OAAO,EACP,QAAQ,EACR,OAAO,EACP,GAAG,EACH,MAAM,EACP,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAUlD,eAAO,MAAM,YAAY,+BAUvB,CAAC;AAGH,eAAO,MAAM,uBAAuB,EAAE,gBAarC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;gBAIhB,gBAAgB;;;;;qBAKX,gBAAgB;;;;;;;;;;;CAWlC,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;gBAlBT,gBAAgB;;;;;;;;qBAKX,gBAAgB;CA2BlC,CAAC;AAGF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -12,7 +12,6 @@ export declare const animeProviders: {
|
|
|
12
12
|
export declare const movieProviders: {
|
|
13
13
|
HiMovies: typeof import("../providers/movies/himovies/himovies").default;
|
|
14
14
|
MultiMovies: typeof import("../providers/movies/multimovies").default;
|
|
15
|
-
DramaCool: typeof import("../providers/movies/dramacool").default;
|
|
16
15
|
MultiStream: typeof import("../providers/movies/multistream").default;
|
|
17
16
|
};
|
|
18
17
|
declare const metaProviders: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-maps.d.ts","sourceRoot":"","sources":["../../../../../src/utils/provider-maps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,cAAc;;;CAG1B,CAAC;AAEF,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"provider-maps.d.ts","sourceRoot":"","sources":["../../../../../src/utils/provider-maps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,eAAO,MAAM,cAAc;;;CAG1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;CAI1B,CAAC;AAEF,QAAA,MAAM,aAAa;;;;CAIlB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AACxD,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AACxD,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,aAAa,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,206 +1,207 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "react-native-consumet",
|
|
3
|
-
"version": "1.0.0
|
|
4
|
-
"description": "React Native library providing access to entertainment media information (anime, movies, manga, etc.) from multiple sources, adapting the Consumet API for mobile applications.",
|
|
5
|
-
"source": "./src/index.tsx",
|
|
6
|
-
"main": "./lib/commonjs/index.js",
|
|
7
|
-
"module": "./lib/module/index.js",
|
|
8
|
-
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
9
|
-
"sideEffects": false,
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"import": {
|
|
13
|
-
"types": "./lib/typescript/module/src/index.d.ts",
|
|
14
|
-
"default": "./lib/module/index.js"
|
|
15
|
-
},
|
|
16
|
-
"require": {
|
|
17
|
-
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
18
|
-
"default": "./lib/commonjs/index.js"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"./package.json": "./package.json"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"src",
|
|
25
|
-
"lib",
|
|
26
|
-
"android",
|
|
27
|
-
"ios",
|
|
28
|
-
"cpp",
|
|
29
|
-
"*.podspec",
|
|
30
|
-
"react-native.config.js",
|
|
31
|
-
"!ios/build",
|
|
32
|
-
"!android/build",
|
|
33
|
-
"!android/gradle",
|
|
34
|
-
"!android/gradlew",
|
|
35
|
-
"!android/gradlew.bat",
|
|
36
|
-
"!android/local.properties",
|
|
37
|
-
"!dist",
|
|
38
|
-
"!**/__tests__",
|
|
39
|
-
"!**/test",
|
|
40
|
-
"!**/__fixtures__",
|
|
41
|
-
"!**/__mocks__",
|
|
42
|
-
"!**/.*"
|
|
43
|
-
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"example:bare": "yarn workspace react-native-consumet-bare-example",
|
|
46
|
-
"example:expo": "yarn workspace react-native-consumet-expo-example",
|
|
47
|
-
"build": "tsc -p tsconfig.dist.json",
|
|
48
|
-
"build:clean": "del-cli dist && yarn build",
|
|
49
|
-
"test": "jest",
|
|
50
|
-
"typecheck": "tsc",
|
|
51
|
-
"lint": "eslint --fix .",
|
|
52
|
-
"clean": "del-cli android/build lib dist \"apps/*/android/.gradle\" \"apps/*/android/build\" \"apps/*/android/app/build\" \"apps/*/ios/build\" \"apps/*/ios/Pods\"",
|
|
53
|
-
"prepare": "bob build && yarn build && husky",
|
|
54
|
-
"prepublishOnly": "yarn build",
|
|
55
|
-
"release": "release-it",
|
|
56
|
-
"prettier": "prettier --write ."
|
|
57
|
-
},
|
|
58
|
-
"lint-staged": {
|
|
59
|
-
"*.{js,jsx,ts,tsx}": [
|
|
60
|
-
"eslint --fix",
|
|
61
|
-
"prettier --write"
|
|
62
|
-
],
|
|
63
|
-
"*.{json,md,html,css}": [
|
|
64
|
-
"prettier --write"
|
|
65
|
-
]
|
|
66
|
-
},
|
|
67
|
-
"keywords": [
|
|
68
|
-
"react-native",
|
|
69
|
-
"ios",
|
|
70
|
-
"android"
|
|
71
|
-
],
|
|
72
|
-
"repository": {
|
|
73
|
-
"type": "git",
|
|
74
|
-
"url": "git+https://github.com/2004durgesh/react-native-consumet.git"
|
|
75
|
-
},
|
|
76
|
-
"author": "Durgesh Kumar Dwivedi <durgeshdwivedi81@gmail.com> (https://github.com/2004durgesh)",
|
|
77
|
-
"license": "GPL-3.0-only",
|
|
78
|
-
"bugs": {
|
|
79
|
-
"url": "https://github.com/2004durgesh/react-native-consumet/issues"
|
|
80
|
-
},
|
|
81
|
-
"homepage": "https://github.com/2004durgesh/react-native-consumet#readme",
|
|
82
|
-
"publishConfig": {
|
|
83
|
-
"registry": "https://registry.npmjs.org/"
|
|
84
|
-
},
|
|
85
|
-
"devDependencies": {
|
|
86
|
-
"@babel/preset-env": "^7.26.9",
|
|
87
|
-
"@babel/runtime": "^7.28.3",
|
|
88
|
-
"@commitlint/config-conventional": "^19.6.0",
|
|
89
|
-
"@eslint/compat": "^1.2.7",
|
|
90
|
-
"@eslint/eslintrc": "^3.3.0",
|
|
91
|
-
"@eslint/js": "^9.22.0",
|
|
92
|
-
"@react-native-community/cli": "15.0.1",
|
|
93
|
-
"@react-native/eslint-config": "^0.78.0",
|
|
94
|
-
"@release-it/conventional-changelog": "^9.0.2",
|
|
95
|
-
"@types/crypto-js": "^4.2.2",
|
|
96
|
-
"@types/jest": "^29.5.5",
|
|
97
|
-
"@types/react": "^19.0.0",
|
|
98
|
-
"@types/string-similarity": "^4.0.2",
|
|
99
|
-
"babel-jest": "^29.7.0",
|
|
100
|
-
"commitlint": "^19.6.1",
|
|
101
|
-
"del-cli": "^5.1.0",
|
|
102
|
-
"eslint": "^9.22.0",
|
|
103
|
-
"eslint-config-prettier": "^10.1.1",
|
|
104
|
-
"eslint-plugin-prettier": "^5.2.3",
|
|
105
|
-
"eslint-plugin-unused-imports": "^4.1.4",
|
|
106
|
-
"husky": "^9.1.7",
|
|
107
|
-
"jest": "^29.7.0",
|
|
108
|
-
"lint-staged": "^16.1.5",
|
|
109
|
-
"prettier": "^3.0.3",
|
|
110
|
-
"react": "19.0.0",
|
|
111
|
-
"react-native": "0.78.1",
|
|
112
|
-
"react-native-builder-bob": "^0.38.3",
|
|
113
|
-
"release-it": "^17.10.0",
|
|
114
|
-
"ts-jest": "^29.3.1",
|
|
115
|
-
"ts-node": "^10.9.2",
|
|
116
|
-
"turbo": "^1.10.7",
|
|
117
|
-
"typescript": "^5.2.2"
|
|
118
|
-
},
|
|
119
|
-
"peerDependencies": {
|
|
120
|
-
"react": "*",
|
|
121
|
-
"react-native": "*"
|
|
122
|
-
},
|
|
123
|
-
"workspaces": [
|
|
124
|
-
"apps/bare-example",
|
|
125
|
-
"apps/expo-example"
|
|
126
|
-
],
|
|
127
|
-
"packageManager": "yarn@3.6.1",
|
|
128
|
-
"commitlint": {
|
|
129
|
-
"extends": [
|
|
130
|
-
"@commitlint/config-conventional"
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
"release-it": {
|
|
134
|
-
"git": {
|
|
135
|
-
"commitMessage": "chore: release ${version}",
|
|
136
|
-
"tagName": "v${version}"
|
|
137
|
-
},
|
|
138
|
-
"npm": {
|
|
139
|
-
"publish": true
|
|
140
|
-
},
|
|
141
|
-
"github": {
|
|
142
|
-
"release": true
|
|
143
|
-
},
|
|
144
|
-
"plugins": {
|
|
145
|
-
"@release-it/conventional-changelog": {
|
|
146
|
-
"preset": {
|
|
147
|
-
"name": "conventionalcommits"
|
|
148
|
-
},
|
|
149
|
-
"infile": "CHANGELOG.md"
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"hooks": {
|
|
153
|
-
"after:bump": "node scripts/prepare-registry.js"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
"react-native-builder-bob": {
|
|
157
|
-
"source": "src",
|
|
158
|
-
"output": "lib",
|
|
159
|
-
"targets": [
|
|
160
|
-
"codegen",
|
|
161
|
-
[
|
|
162
|
-
"module",
|
|
163
|
-
{
|
|
164
|
-
"esm": true
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
[
|
|
168
|
-
"commonjs",
|
|
169
|
-
{
|
|
170
|
-
"esm": true
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
[
|
|
174
|
-
"typescript",
|
|
175
|
-
{
|
|
176
|
-
"project": "tsconfig.build.json"
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
|
|
206
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "react-native-consumet",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "React Native library providing access to entertainment media information (anime, movies, manga, etc.) from multiple sources, adapting the Consumet API for mobile applications.",
|
|
5
|
+
"source": "./src/index.tsx",
|
|
6
|
+
"main": "./lib/commonjs/index.js",
|
|
7
|
+
"module": "./lib/module/index.js",
|
|
8
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./lib/typescript/module/src/index.d.ts",
|
|
14
|
+
"default": "./lib/module/index.js"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./lib/typescript/commonjs/src/index.d.ts",
|
|
18
|
+
"default": "./lib/commonjs/index.js"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"src",
|
|
25
|
+
"lib",
|
|
26
|
+
"android",
|
|
27
|
+
"ios",
|
|
28
|
+
"cpp",
|
|
29
|
+
"*.podspec",
|
|
30
|
+
"react-native.config.js",
|
|
31
|
+
"!ios/build",
|
|
32
|
+
"!android/build",
|
|
33
|
+
"!android/gradle",
|
|
34
|
+
"!android/gradlew",
|
|
35
|
+
"!android/gradlew.bat",
|
|
36
|
+
"!android/local.properties",
|
|
37
|
+
"!dist",
|
|
38
|
+
"!**/__tests__",
|
|
39
|
+
"!**/test",
|
|
40
|
+
"!**/__fixtures__",
|
|
41
|
+
"!**/__mocks__",
|
|
42
|
+
"!**/.*"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"example:bare": "yarn workspace react-native-consumet-bare-example",
|
|
46
|
+
"example:expo": "yarn workspace react-native-consumet-expo-example",
|
|
47
|
+
"build": "tsc -p tsconfig.dist.json",
|
|
48
|
+
"build:clean": "del-cli dist && yarn build",
|
|
49
|
+
"test": "jest",
|
|
50
|
+
"typecheck": "tsc",
|
|
51
|
+
"lint": "eslint --fix .",
|
|
52
|
+
"clean": "del-cli android/build lib dist \"apps/*/android/.gradle\" \"apps/*/android/build\" \"apps/*/android/app/build\" \"apps/*/ios/build\" \"apps/*/ios/Pods\"",
|
|
53
|
+
"prepare": "bob build && yarn build && husky",
|
|
54
|
+
"prepublishOnly": "yarn build",
|
|
55
|
+
"release": "release-it",
|
|
56
|
+
"prettier": "prettier --write ."
|
|
57
|
+
},
|
|
58
|
+
"lint-staged": {
|
|
59
|
+
"*.{js,jsx,ts,tsx}": [
|
|
60
|
+
"eslint --fix",
|
|
61
|
+
"prettier --write"
|
|
62
|
+
],
|
|
63
|
+
"*.{json,md,html,css}": [
|
|
64
|
+
"prettier --write"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"keywords": [
|
|
68
|
+
"react-native",
|
|
69
|
+
"ios",
|
|
70
|
+
"android"
|
|
71
|
+
],
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "git+https://github.com/2004durgesh/react-native-consumet.git"
|
|
75
|
+
},
|
|
76
|
+
"author": "Durgesh Kumar Dwivedi <durgeshdwivedi81@gmail.com> (https://github.com/2004durgesh)",
|
|
77
|
+
"license": "GPL-3.0-only",
|
|
78
|
+
"bugs": {
|
|
79
|
+
"url": "https://github.com/2004durgesh/react-native-consumet/issues"
|
|
80
|
+
},
|
|
81
|
+
"homepage": "https://github.com/2004durgesh/react-native-consumet#readme",
|
|
82
|
+
"publishConfig": {
|
|
83
|
+
"registry": "https://registry.npmjs.org/"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@babel/preset-env": "^7.26.9",
|
|
87
|
+
"@babel/runtime": "^7.28.3",
|
|
88
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
89
|
+
"@eslint/compat": "^1.2.7",
|
|
90
|
+
"@eslint/eslintrc": "^3.3.0",
|
|
91
|
+
"@eslint/js": "^9.22.0",
|
|
92
|
+
"@react-native-community/cli": "15.0.1",
|
|
93
|
+
"@react-native/eslint-config": "^0.78.0",
|
|
94
|
+
"@release-it/conventional-changelog": "^9.0.2",
|
|
95
|
+
"@types/crypto-js": "^4.2.2",
|
|
96
|
+
"@types/jest": "^29.5.5",
|
|
97
|
+
"@types/react": "^19.0.0",
|
|
98
|
+
"@types/string-similarity": "^4.0.2",
|
|
99
|
+
"babel-jest": "^29.7.0",
|
|
100
|
+
"commitlint": "^19.6.1",
|
|
101
|
+
"del-cli": "^5.1.0",
|
|
102
|
+
"eslint": "^9.22.0",
|
|
103
|
+
"eslint-config-prettier": "^10.1.1",
|
|
104
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
105
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
106
|
+
"husky": "^9.1.7",
|
|
107
|
+
"jest": "^29.7.0",
|
|
108
|
+
"lint-staged": "^16.1.5",
|
|
109
|
+
"prettier": "^3.0.3",
|
|
110
|
+
"react": "19.0.0",
|
|
111
|
+
"react-native": "0.78.1",
|
|
112
|
+
"react-native-builder-bob": "^0.38.3",
|
|
113
|
+
"release-it": "^17.10.0",
|
|
114
|
+
"ts-jest": "^29.3.1",
|
|
115
|
+
"ts-node": "^10.9.2",
|
|
116
|
+
"turbo": "^1.10.7",
|
|
117
|
+
"typescript": "^5.2.2"
|
|
118
|
+
},
|
|
119
|
+
"peerDependencies": {
|
|
120
|
+
"react": "*",
|
|
121
|
+
"react-native": "*"
|
|
122
|
+
},
|
|
123
|
+
"workspaces": [
|
|
124
|
+
"apps/bare-example",
|
|
125
|
+
"apps/expo-example"
|
|
126
|
+
],
|
|
127
|
+
"packageManager": "yarn@3.6.1",
|
|
128
|
+
"commitlint": {
|
|
129
|
+
"extends": [
|
|
130
|
+
"@commitlint/config-conventional"
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"release-it": {
|
|
134
|
+
"git": {
|
|
135
|
+
"commitMessage": "chore: release ${version}",
|
|
136
|
+
"tagName": "v${version}"
|
|
137
|
+
},
|
|
138
|
+
"npm": {
|
|
139
|
+
"publish": true
|
|
140
|
+
},
|
|
141
|
+
"github": {
|
|
142
|
+
"release": true
|
|
143
|
+
},
|
|
144
|
+
"plugins": {
|
|
145
|
+
"@release-it/conventional-changelog": {
|
|
146
|
+
"preset": {
|
|
147
|
+
"name": "conventionalcommits"
|
|
148
|
+
},
|
|
149
|
+
"infile": "CHANGELOG.md"
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"hooks": {
|
|
153
|
+
"after:bump": "node scripts/prepare-registry.js"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"react-native-builder-bob": {
|
|
157
|
+
"source": "src",
|
|
158
|
+
"output": "lib",
|
|
159
|
+
"targets": [
|
|
160
|
+
"codegen",
|
|
161
|
+
[
|
|
162
|
+
"module",
|
|
163
|
+
{
|
|
164
|
+
"esm": true
|
|
165
|
+
}
|
|
166
|
+
],
|
|
167
|
+
[
|
|
168
|
+
"commonjs",
|
|
169
|
+
{
|
|
170
|
+
"esm": true
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
[
|
|
174
|
+
"typescript",
|
|
175
|
+
{
|
|
176
|
+
"project": "tsconfig.build.json",
|
|
177
|
+
"esm": true
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"codegenConfig": {
|
|
183
|
+
"name": "RNConsumetSpec",
|
|
184
|
+
"type": "modules",
|
|
185
|
+
"jsSrcsDir": "src",
|
|
186
|
+
"outputDir": {
|
|
187
|
+
"ios": "ios/generated",
|
|
188
|
+
"android": "android/generated"
|
|
189
|
+
},
|
|
190
|
+
"android": {
|
|
191
|
+
"javaPackageName": "com.consumet"
|
|
192
|
+
},
|
|
193
|
+
"includesGeneratedCode": true
|
|
194
|
+
},
|
|
195
|
+
"create-react-native-library": {
|
|
196
|
+
"type": "turbo-module",
|
|
197
|
+
"languages": "kotlin-objc",
|
|
198
|
+
"version": "0.49.0"
|
|
199
|
+
},
|
|
200
|
+
"dependencies": {
|
|
201
|
+
"ascii-url-encoder": "^1.2.0",
|
|
202
|
+
"axios": "^1.8.4",
|
|
203
|
+
"cheerio": "1.0.0-rc.12",
|
|
204
|
+
"crypto-js": "^4.2.0",
|
|
205
|
+
"string-similarity": "^4.0.4"
|
|
206
|
+
}
|
|
207
|
+
}
|
package/src/NativeConsumet.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface Spec extends TurboModule {
|
|
|
14
14
|
status: string;
|
|
15
15
|
}>;
|
|
16
16
|
deobfuscateScript: (source: string) => Promise<string | null>;
|
|
17
|
+
multiply: (a: number, b: number) => number;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
const NativeConsumet = TurboModuleRegistry.getEnforcing<Spec>('Consumet');
|
|
@@ -22,5 +23,6 @@ export const bypassDdosGuard = NativeConsumet.bypassDdosGuard;
|
|
|
22
23
|
export const getDdosGuardCookiesWithWebView = NativeConsumet.getDdosGuardCookiesWithWebView;
|
|
23
24
|
export const makeGetRequestWithWebView = NativeConsumet.makeGetRequestWithWebView;
|
|
24
25
|
export const deobfuscateScript = NativeConsumet.deobfuscateScript;
|
|
26
|
+
export const multiply = NativeConsumet.multiply;
|
|
25
27
|
|
|
26
28
|
export default NativeConsumet;
|