react-native-consumet 1.6.0 → 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.
Files changed (1037) hide show
  1. package/Consumet.podspec +2 -2
  2. package/README.md +24 -15
  3. package/android/build.gradle +9 -8
  4. package/android/generated/java/com/consumet/NativeConsumetSpec.java +0 -4
  5. package/android/generated/jni/RNConsumetSpec-generated.cpp +0 -6
  6. package/android/generated/jni/react/renderer/components/RNConsumetSpec/RNConsumetSpecJSI.h +0 -10
  7. package/android/src/androidTest/AndroidManifest.xml +4 -0
  8. package/android/src/androidTest/java/com/consumet/DeobfuscatorModuleTest.kt +88 -0
  9. package/android/src/androidTest/java/com/consumet/SynchronyEngineTest.kt +75 -0
  10. package/android/src/androidTest/java/com/consumet/TestSupport.kt +115 -0
  11. package/android/src/androidTest/java/com/consumet/WebViewContractTest.kt +125 -0
  12. package/android/src/main/java/com/consumet/ConsumetModule.kt +0 -13
  13. package/android/src/main/java/com/consumet/DdosGuardModule.kt +26 -60
  14. package/android/src/main/java/com/consumet/DeobfuscatorModule.kt +59 -68
  15. package/android/src/main/java/com/consumet/HttpRequestModule.kt +171 -285
  16. package/android/src/main/java/com/consumet/Synchrony.kt +65 -0
  17. package/android/src/main/java/com/consumet/SynchronyScriptCache.kt +121 -0
  18. package/android/src/main/java/com/consumet/WebViewDebugging.kt +36 -0
  19. package/android/src/main/java/com/consumet/WebViewTask.kt +101 -0
  20. package/ios/Consumet.mm +205 -184
  21. package/ios/RCConsumetSynchronyCache.h +51 -0
  22. package/ios/RCConsumetSynchronyCache.m +246 -0
  23. package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec-generated.mm +0 -7
  24. package/ios/generated/ReactCodegen/RNConsumetSpec/RNConsumetSpec.h +0 -2
  25. package/ios/generated/ReactCodegen/RNConsumetSpecJSI.h +0 -10
  26. package/lib/commonjs/NativeConsumet.ts +68 -2
  27. package/lib/commonjs/extension-registry.json +174 -54
  28. package/lib/commonjs/extension-registry.json.sig +1 -0
  29. package/lib/commonjs/extractors/asianload.js +11 -5
  30. package/lib/commonjs/extractors/asianload.js.map +1 -1
  31. package/lib/commonjs/extractors/filemoon.js +11 -6
  32. package/lib/commonjs/extractors/filemoon.js.map +1 -1
  33. package/lib/commonjs/extractors/flixcloud.js +0 -2
  34. package/lib/commonjs/extractors/flixcloud.js.map +1 -1
  35. package/lib/commonjs/extractors/gdflix.js +0 -2
  36. package/lib/commonjs/extractors/gdflix.js.map +1 -1
  37. package/lib/commonjs/extractors/gofile.js +0 -2
  38. package/lib/commonjs/extractors/gofile.js.map +1 -1
  39. package/lib/commonjs/extractors/gogocdn.js +13 -7
  40. package/lib/commonjs/extractors/gogocdn.js.map +1 -1
  41. package/lib/commonjs/extractors/hubcloud.js +0 -2
  42. package/lib/commonjs/extractors/hubcloud.js.map +1 -1
  43. package/lib/commonjs/extractors/index.js +28 -29
  44. package/lib/commonjs/extractors/index.js.map +1 -1
  45. package/lib/commonjs/extractors/kwik.js +0 -2
  46. package/lib/commonjs/extractors/kwik.js.map +1 -1
  47. package/lib/commonjs/extractors/megaplay.js +0 -2
  48. package/lib/commonjs/extractors/megaplay.js.map +1 -1
  49. package/lib/commonjs/extractors/megaup.js +2 -6
  50. package/lib/commonjs/extractors/megaup.js.map +1 -1
  51. package/lib/commonjs/extractors/mixdrop.js +10 -5
  52. package/lib/commonjs/extractors/mixdrop.js.map +1 -1
  53. package/lib/commonjs/extractors/mp4player.js +11 -6
  54. package/lib/commonjs/extractors/mp4player.js.map +1 -1
  55. package/lib/commonjs/extractors/mp4upload.js +10 -5
  56. package/lib/commonjs/extractors/mp4upload.js.map +1 -1
  57. package/lib/commonjs/extractors/rapidcloud.js +16 -10
  58. package/lib/commonjs/extractors/rapidcloud.js.map +1 -1
  59. package/lib/commonjs/extractors/streamhub.js +11 -6
  60. package/lib/commonjs/extractors/streamhub.js.map +1 -1
  61. package/lib/commonjs/extractors/streamlare.js +13 -8
  62. package/lib/commonjs/extractors/streamlare.js.map +1 -1
  63. package/lib/commonjs/extractors/streamsb.js +11 -6
  64. package/lib/commonjs/extractors/streamsb.js.map +1 -1
  65. package/lib/commonjs/extractors/streamtape.js +10 -5
  66. package/lib/commonjs/extractors/streamtape.js.map +1 -1
  67. package/lib/commonjs/extractors/vidhide.js +4 -4
  68. package/lib/commonjs/extractors/vidhide.js.map +1 -1
  69. package/lib/commonjs/extractors/vidmoly.js +11 -6
  70. package/lib/commonjs/extractors/vidmoly.js.map +1 -1
  71. package/lib/commonjs/extractors/vizcloud.js +11 -6
  72. package/lib/commonjs/extractors/vizcloud.js.map +1 -1
  73. package/lib/commonjs/extractors/voe.js +11 -6
  74. package/lib/commonjs/extractors/voe.js.map +1 -1
  75. package/lib/commonjs/index.js +112 -0
  76. package/lib/commonjs/index.js.map +1 -1
  77. package/lib/commonjs/models/base-provider.js +4 -0
  78. package/lib/commonjs/models/base-provider.js.map +1 -1
  79. package/lib/commonjs/models/extension-manifest.js +0 -4
  80. package/lib/commonjs/models/index.js +7 -0
  81. package/lib/commonjs/models/index.js.map +1 -1
  82. package/lib/commonjs/models/meta-error.js +36 -0
  83. package/lib/commonjs/models/meta-error.js.map +1 -0
  84. package/lib/commonjs/models/types.js +15 -0
  85. package/lib/commonjs/models/types.js.map +1 -1
  86. package/lib/commonjs/providers/anime/anikoto/anikoto.js +14 -10
  87. package/lib/commonjs/providers/anime/anikoto/anikoto.js.map +1 -1
  88. package/lib/commonjs/providers/anime/anikoto/create-anikoto.js +6 -4
  89. package/lib/commonjs/providers/anime/anikoto/create-anikoto.js.map +1 -1
  90. package/lib/commonjs/providers/anime/animekai/animekai.js +14 -8
  91. package/lib/commonjs/providers/anime/animekai/animekai.js.map +1 -1
  92. package/lib/commonjs/providers/anime/animekai/create-animekai.js +6 -4
  93. package/lib/commonjs/providers/anime/animekai/create-animekai.js.map +1 -1
  94. package/lib/commonjs/providers/anime/animepahe/animepahe.js +17 -11
  95. package/lib/commonjs/providers/anime/animepahe/animepahe.js.map +1 -1
  96. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js +6 -15
  97. package/lib/commonjs/providers/anime/animepahe/create-animepahe.js.map +1 -1
  98. package/lib/commonjs/providers/anime/animeunity.js +23 -10
  99. package/lib/commonjs/providers/anime/animeunity.js.map +1 -1
  100. package/lib/commonjs/providers/anime/anineko/anineko.js +18 -8
  101. package/lib/commonjs/providers/anime/anineko/anineko.js.map +1 -1
  102. package/lib/commonjs/providers/anime/anineko/create-anineko.js +4 -2
  103. package/lib/commonjs/providers/anime/anineko/create-anineko.js.map +1 -1
  104. package/lib/commonjs/providers/anime/index.js +26 -35
  105. package/lib/commonjs/providers/anime/index.js.map +1 -1
  106. package/lib/commonjs/providers/anime/reanime/create-reanime.js +4 -5
  107. package/lib/commonjs/providers/anime/reanime/create-reanime.js.map +1 -1
  108. package/lib/commonjs/providers/anime/reanime/reanime.js +13 -8
  109. package/lib/commonjs/providers/anime/reanime/reanime.js.map +1 -1
  110. package/lib/commonjs/providers/anime/zoro/create-zoro.js +8 -8
  111. package/lib/commonjs/providers/anime/zoro/create-zoro.js.map +1 -1
  112. package/lib/commonjs/providers/anime/zoro/zoro.js +17 -11
  113. package/lib/commonjs/providers/anime/zoro/zoro.js.map +1 -1
  114. package/lib/commonjs/providers/index.js +8 -8
  115. package/lib/commonjs/providers/index.js.map +1 -1
  116. package/lib/commonjs/providers/light-novels/index.js +6 -7
  117. package/lib/commonjs/providers/light-novels/index.js.map +1 -1
  118. package/lib/commonjs/providers/light-novels/novelupdates.js +32 -11
  119. package/lib/commonjs/providers/light-novels/novelupdates.js.map +1 -1
  120. package/lib/commonjs/providers/light-novels/readlightnovels.js +15 -7
  121. package/lib/commonjs/providers/light-novels/readlightnovels.js.map +1 -1
  122. package/lib/commonjs/providers/manga/asurascans.js +12 -7
  123. package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
  124. package/lib/commonjs/providers/manga/brmangas.js +12 -7
  125. package/lib/commonjs/providers/manga/brmangas.js.map +1 -1
  126. package/lib/commonjs/providers/manga/comick.js +21 -16
  127. package/lib/commonjs/providers/manga/comick.js.map +1 -1
  128. package/lib/commonjs/providers/manga/flamescans.js +12 -7
  129. package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
  130. package/lib/commonjs/providers/manga/index.js +28 -31
  131. package/lib/commonjs/providers/manga/index.js.map +1 -1
  132. package/lib/commonjs/providers/manga/mangadex.js +18 -13
  133. package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
  134. package/lib/commonjs/providers/manga/mangahere.js +13 -8
  135. package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
  136. package/lib/commonjs/providers/manga/mangahost.js +12 -7
  137. package/lib/commonjs/providers/manga/mangahost.js.map +1 -1
  138. package/lib/commonjs/providers/manga/mangakakalot.js +12 -7
  139. package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
  140. package/lib/commonjs/providers/manga/mangapark.js +12 -7
  141. package/lib/commonjs/providers/manga/mangapark.js.map +1 -1
  142. package/lib/commonjs/providers/manga/mangapill.js +12 -7
  143. package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
  144. package/lib/commonjs/providers/manga/mangareader.js +13 -8
  145. package/lib/commonjs/providers/manga/mangareader.js.map +1 -1
  146. package/lib/commonjs/providers/manga/mangasee123.js +12 -7
  147. package/lib/commonjs/providers/manga/mangasee123.js.map +1 -1
  148. package/lib/commonjs/providers/manga/readmanga.js +20 -9
  149. package/lib/commonjs/providers/manga/readmanga.js.map +1 -1
  150. package/lib/commonjs/providers/manga/vyvymanga.js +13 -8
  151. package/lib/commonjs/providers/manga/vyvymanga.js.map +1 -1
  152. package/lib/commonjs/providers/meta/anilist.js +560 -1024
  153. package/lib/commonjs/providers/meta/anilist.js.map +1 -1
  154. package/lib/commonjs/providers/meta/index.js +1 -0
  155. package/lib/commonjs/providers/meta/index.js.map +1 -1
  156. package/lib/commonjs/providers/meta/mal.js +86 -89
  157. package/lib/commonjs/providers/meta/mal.js.map +1 -1
  158. package/lib/commonjs/providers/meta/tmdb-api-key.js +29 -0
  159. package/lib/commonjs/providers/meta/tmdb-api-key.js.map +1 -0
  160. package/lib/commonjs/providers/meta/tmdb.js +122 -94
  161. package/lib/commonjs/providers/meta/tmdb.js.map +1 -1
  162. package/lib/commonjs/providers/movies/himovies/create-himovies.js +3 -3
  163. package/lib/commonjs/providers/movies/himovies/create-himovies.js.map +1 -1
  164. package/lib/commonjs/providers/movies/himovies/himovies.js +13 -8
  165. package/lib/commonjs/providers/movies/himovies/himovies.js.map +1 -1
  166. package/lib/commonjs/providers/movies/index.js +20 -30
  167. package/lib/commonjs/providers/movies/index.js.map +1 -1
  168. package/lib/commonjs/providers/movies/multimovies/create-multimovies.js +3 -3
  169. package/lib/commonjs/providers/movies/multimovies/create-multimovies.js.map +1 -1
  170. package/lib/commonjs/providers/movies/multimovies/multimovies.js +13 -8
  171. package/lib/commonjs/providers/movies/multimovies/multimovies.js.map +1 -1
  172. package/lib/commonjs/providers/movies/multistream/index.js +28 -17
  173. package/lib/commonjs/providers/movies/multistream/index.js.map +1 -1
  174. package/lib/commonjs/providers/movies/multistream/utils.js +18 -19
  175. package/lib/commonjs/providers/movies/multistream/utils.js.map +1 -1
  176. package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js +451 -185
  177. package/lib/commonjs/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
  178. package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js +22 -0
  179. package/lib/commonjs/providers/movies/netflixmirror/disneymirror.js.map +1 -0
  180. package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js +11 -24
  181. package/lib/commonjs/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
  182. package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js +30 -0
  183. package/lib/commonjs/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
  184. package/lib/commonjs/providers/movies/netflixmirror/primemirror.js +22 -0
  185. package/lib/commonjs/providers/movies/netflixmirror/primemirror.js.map +1 -0
  186. package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js +57 -40
  187. package/lib/commonjs/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
  188. package/lib/commonjs/providers/movies/vegamovies/vegamovies.js +11 -14
  189. package/lib/commonjs/providers/movies/vegamovies/vegamovies.js.map +1 -1
  190. package/lib/commonjs/providers/movies/yflix/create-yflix.js +2 -2
  191. package/lib/commonjs/providers/movies/yflix/create-yflix.js.map +1 -1
  192. package/lib/commonjs/providers/movies/yflix/yflix.js +13 -6
  193. package/lib/commonjs/providers/movies/yflix/yflix.js.map +1 -1
  194. package/lib/commonjs/providers/provider-args.js +17 -0
  195. package/lib/commonjs/providers/provider-args.js.map +1 -0
  196. package/lib/commonjs/registry-signing-keys.js +26 -0
  197. package/lib/commonjs/registry-signing-keys.js.map +1 -0
  198. package/lib/commonjs/utils/ExtractorManager.js +136 -233
  199. package/lib/commonjs/utils/ExtractorManager.js.map +1 -1
  200. package/lib/commonjs/utils/ProviderManager.js +181 -251
  201. package/lib/commonjs/utils/ProviderManager.js.map +1 -1
  202. package/lib/commonjs/utils/create-extractor-context.js +0 -1
  203. package/lib/commonjs/utils/create-extractor-context.js.map +1 -1
  204. package/lib/commonjs/utils/create-provider-context.js +37 -29
  205. package/lib/commonjs/utils/create-provider-context.js.map +1 -1
  206. package/lib/commonjs/utils/extension-integrity.js +62 -0
  207. package/lib/commonjs/utils/extension-integrity.js.map +1 -0
  208. package/lib/commonjs/utils/extension-modules.js +109 -0
  209. package/lib/commonjs/utils/extension-modules.js.map +1 -0
  210. package/lib/commonjs/utils/extension-utils.js +46 -40
  211. package/lib/commonjs/utils/extension-utils.js.map +1 -1
  212. package/lib/commonjs/utils/fetch-with-timeout.js +76 -0
  213. package/lib/commonjs/utils/fetch-with-timeout.js.map +1 -0
  214. package/lib/commonjs/utils/index.js +77 -2
  215. package/lib/commonjs/utils/index.js.map +1 -1
  216. package/lib/commonjs/utils/meta-http.js +42 -0
  217. package/lib/commonjs/utils/meta-http.js.map +1 -0
  218. package/lib/commonjs/utils/provider-maps.js +26 -18
  219. package/lib/commonjs/utils/provider-maps.js.map +1 -1
  220. package/lib/commonjs/utils/queries.js +24 -11
  221. package/lib/commonjs/utils/queries.js.map +1 -1
  222. package/lib/commonjs/utils/registry-schema.js +263 -0
  223. package/lib/commonjs/utils/registry-schema.js.map +1 -0
  224. package/lib/commonjs/utils/registry-signature.js +180 -0
  225. package/lib/commonjs/utils/registry-signature.js.map +1 -0
  226. package/lib/commonjs/utils/url-polyfill.js +1075 -426
  227. package/lib/commonjs/utils/url-polyfill.js.map +1 -1
  228. package/lib/commonjs/utils/utils.js +2 -30
  229. package/lib/commonjs/utils/utils.js.map +1 -1
  230. package/lib/module/NativeConsumet.ts +68 -2
  231. package/lib/module/extension-registry.json +174 -54
  232. package/lib/module/extension-registry.json.sig +1 -0
  233. package/lib/module/extractors/asianload.js +10 -5
  234. package/lib/module/extractors/asianload.js.map +1 -1
  235. package/lib/module/extractors/filemoon.js +10 -5
  236. package/lib/module/extractors/filemoon.js.map +1 -1
  237. package/lib/module/extractors/flixcloud.js +0 -1
  238. package/lib/module/extractors/flixcloud.js.map +1 -1
  239. package/lib/module/extractors/gdflix.js +0 -1
  240. package/lib/module/extractors/gdflix.js.map +1 -1
  241. package/lib/module/extractors/gofile.js +0 -1
  242. package/lib/module/extractors/gofile.js.map +1 -1
  243. package/lib/module/extractors/gogocdn.js +12 -7
  244. package/lib/module/extractors/gogocdn.js.map +1 -1
  245. package/lib/module/extractors/hubcloud.js +0 -1
  246. package/lib/module/extractors/hubcloud.js.map +1 -1
  247. package/lib/module/extractors/index.js +24 -25
  248. package/lib/module/extractors/index.js.map +1 -1
  249. package/lib/module/extractors/kwik.js +0 -1
  250. package/lib/module/extractors/kwik.js.map +1 -1
  251. package/lib/module/extractors/megaplay.js +0 -1
  252. package/lib/module/extractors/megaplay.js.map +1 -1
  253. package/lib/module/extractors/megaup.js +2 -4
  254. package/lib/module/extractors/megaup.js.map +1 -1
  255. package/lib/module/extractors/mixdrop.js +9 -4
  256. package/lib/module/extractors/mixdrop.js.map +1 -1
  257. package/lib/module/extractors/mp4player.js +10 -5
  258. package/lib/module/extractors/mp4player.js.map +1 -1
  259. package/lib/module/extractors/mp4upload.js +9 -4
  260. package/lib/module/extractors/mp4upload.js.map +1 -1
  261. package/lib/module/extractors/rapidcloud.js +15 -10
  262. package/lib/module/extractors/rapidcloud.js.map +1 -1
  263. package/lib/module/extractors/streamhub.js +10 -5
  264. package/lib/module/extractors/streamhub.js.map +1 -1
  265. package/lib/module/extractors/streamlare.js +11 -6
  266. package/lib/module/extractors/streamlare.js.map +1 -1
  267. package/lib/module/extractors/streamsb.js +10 -5
  268. package/lib/module/extractors/streamsb.js.map +1 -1
  269. package/lib/module/extractors/streamtape.js +9 -4
  270. package/lib/module/extractors/streamtape.js.map +1 -1
  271. package/lib/module/extractors/vidhide.js +4 -3
  272. package/lib/module/extractors/vidhide.js.map +1 -1
  273. package/lib/module/extractors/vidmoly.js +10 -5
  274. package/lib/module/extractors/vidmoly.js.map +1 -1
  275. package/lib/module/extractors/vizcloud.js +10 -5
  276. package/lib/module/extractors/vizcloud.js.map +1 -1
  277. package/lib/module/extractors/voe.js +10 -5
  278. package/lib/module/extractors/voe.js.map +1 -1
  279. package/lib/module/index.js +11 -7
  280. package/lib/module/index.js.map +1 -1
  281. package/lib/module/models/base-provider.js +4 -0
  282. package/lib/module/models/base-provider.js.map +1 -1
  283. package/lib/module/models/extension-manifest.js +0 -2
  284. package/lib/module/models/index.js +2 -1
  285. package/lib/module/models/index.js.map +1 -1
  286. package/lib/module/models/meta-error.js +31 -0
  287. package/lib/module/models/meta-error.js.map +1 -0
  288. package/lib/module/models/types.js +21 -0
  289. package/lib/module/models/types.js.map +1 -1
  290. package/lib/module/providers/anime/anikoto/anikoto.js +13 -8
  291. package/lib/module/providers/anime/anikoto/anikoto.js.map +1 -1
  292. package/lib/module/providers/anime/anikoto/create-anikoto.js +6 -4
  293. package/lib/module/providers/anime/anikoto/create-anikoto.js.map +1 -1
  294. package/lib/module/providers/anime/animekai/animekai.js +13 -6
  295. package/lib/module/providers/anime/animekai/animekai.js.map +1 -1
  296. package/lib/module/providers/anime/animekai/create-animekai.js +6 -4
  297. package/lib/module/providers/anime/animekai/create-animekai.js.map +1 -1
  298. package/lib/module/providers/anime/animepahe/animepahe.js +13 -8
  299. package/lib/module/providers/anime/animepahe/animepahe.js.map +1 -1
  300. package/lib/module/providers/anime/animepahe/create-animepahe.js +6 -15
  301. package/lib/module/providers/anime/animepahe/create-animepahe.js.map +1 -1
  302. package/lib/module/providers/anime/animeunity.js +21 -9
  303. package/lib/module/providers/anime/animeunity.js.map +1 -1
  304. package/lib/module/providers/anime/anineko/anineko.js +17 -6
  305. package/lib/module/providers/anime/anineko/anineko.js.map +1 -1
  306. package/lib/module/providers/anime/anineko/create-anineko.js +4 -2
  307. package/lib/module/providers/anime/anineko/create-anineko.js.map +1 -1
  308. package/lib/module/providers/anime/index.js +13 -21
  309. package/lib/module/providers/anime/index.js.map +1 -1
  310. package/lib/module/providers/anime/reanime/create-reanime.js +3 -4
  311. package/lib/module/providers/anime/reanime/create-reanime.js.map +1 -1
  312. package/lib/module/providers/anime/reanime/reanime.js +12 -6
  313. package/lib/module/providers/anime/reanime/reanime.js.map +1 -1
  314. package/lib/module/providers/anime/zoro/create-zoro.js +8 -9
  315. package/lib/module/providers/anime/zoro/create-zoro.js.map +1 -1
  316. package/lib/module/providers/anime/zoro/zoro.js +13 -8
  317. package/lib/module/providers/anime/zoro/zoro.js.map +1 -1
  318. package/lib/module/providers/index.js +4 -4
  319. package/lib/module/providers/index.js.map +1 -1
  320. package/lib/module/providers/light-novels/index.js +3 -3
  321. package/lib/module/providers/light-novels/index.js.map +1 -1
  322. package/lib/module/providers/light-novels/novelupdates.js +29 -11
  323. package/lib/module/providers/light-novels/novelupdates.js.map +1 -1
  324. package/lib/module/providers/light-novels/readlightnovels.js +12 -7
  325. package/lib/module/providers/light-novels/readlightnovels.js.map +1 -1
  326. package/lib/module/providers/manga/asurascans.js +11 -6
  327. package/lib/module/providers/manga/asurascans.js.map +1 -1
  328. package/lib/module/providers/manga/brmangas.js +11 -6
  329. package/lib/module/providers/manga/brmangas.js.map +1 -1
  330. package/lib/module/providers/manga/comick.js +20 -16
  331. package/lib/module/providers/manga/comick.js.map +1 -1
  332. package/lib/module/providers/manga/flamescans.js +11 -6
  333. package/lib/module/providers/manga/flamescans.js.map +1 -1
  334. package/lib/module/providers/manga/index.js +14 -16
  335. package/lib/module/providers/manga/index.js.map +1 -1
  336. package/lib/module/providers/manga/mangadex.js +17 -13
  337. package/lib/module/providers/manga/mangadex.js.map +1 -1
  338. package/lib/module/providers/manga/mangahere.js +12 -7
  339. package/lib/module/providers/manga/mangahere.js.map +1 -1
  340. package/lib/module/providers/manga/mangahost.js +11 -6
  341. package/lib/module/providers/manga/mangahost.js.map +1 -1
  342. package/lib/module/providers/manga/mangakakalot.js +11 -6
  343. package/lib/module/providers/manga/mangakakalot.js.map +1 -1
  344. package/lib/module/providers/manga/mangapark.js +11 -6
  345. package/lib/module/providers/manga/mangapark.js.map +1 -1
  346. package/lib/module/providers/manga/mangapill.js +11 -7
  347. package/lib/module/providers/manga/mangapill.js.map +1 -1
  348. package/lib/module/providers/manga/mangareader.js +12 -8
  349. package/lib/module/providers/manga/mangareader.js.map +1 -1
  350. package/lib/module/providers/manga/mangasee123.js +11 -7
  351. package/lib/module/providers/manga/mangasee123.js.map +1 -1
  352. package/lib/module/providers/manga/readmanga.js +19 -8
  353. package/lib/module/providers/manga/readmanga.js.map +1 -1
  354. package/lib/module/providers/manga/vyvymanga.js +12 -7
  355. package/lib/module/providers/manga/vyvymanga.js.map +1 -1
  356. package/lib/module/providers/meta/anilist.js +562 -1024
  357. package/lib/module/providers/meta/anilist.js.map +1 -1
  358. package/lib/module/providers/meta/index.js +1 -0
  359. package/lib/module/providers/meta/index.js.map +1 -1
  360. package/lib/module/providers/meta/mal.js +87 -89
  361. package/lib/module/providers/meta/mal.js.map +1 -1
  362. package/lib/module/providers/meta/tmdb-api-key.js +24 -0
  363. package/lib/module/providers/meta/tmdb-api-key.js.map +1 -0
  364. package/lib/module/providers/meta/tmdb.js +123 -93
  365. package/lib/module/providers/meta/tmdb.js.map +1 -1
  366. package/lib/module/providers/movies/himovies/create-himovies.js +3 -3
  367. package/lib/module/providers/movies/himovies/create-himovies.js.map +1 -1
  368. package/lib/module/providers/movies/himovies/himovies.js +12 -9
  369. package/lib/module/providers/movies/himovies/himovies.js.map +1 -1
  370. package/lib/module/providers/movies/index.js +14 -11
  371. package/lib/module/providers/movies/index.js.map +1 -1
  372. package/lib/module/providers/movies/multimovies/create-multimovies.js +3 -3
  373. package/lib/module/providers/movies/multimovies/create-multimovies.js.map +1 -1
  374. package/lib/module/providers/movies/multimovies/multimovies.js +12 -8
  375. package/lib/module/providers/movies/multimovies/multimovies.js.map +1 -1
  376. package/lib/module/providers/movies/multistream/index.js +27 -17
  377. package/lib/module/providers/movies/multistream/index.js.map +1 -1
  378. package/lib/module/providers/movies/multistream/utils.js +8 -9
  379. package/lib/module/providers/movies/multistream/utils.js.map +1 -1
  380. package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js +449 -185
  381. package/lib/module/providers/movies/netflixmirror/create-netflixmirror.js.map +1 -1
  382. package/lib/module/providers/movies/netflixmirror/disneymirror.js +17 -0
  383. package/lib/module/providers/movies/netflixmirror/disneymirror.js.map +1 -0
  384. package/lib/module/providers/movies/netflixmirror/netflixmirror.js +9 -24
  385. package/lib/module/providers/movies/netflixmirror/netflixmirror.js.map +1 -1
  386. package/lib/module/providers/movies/netflixmirror/netmirror-parser.js +25 -0
  387. package/lib/module/providers/movies/netflixmirror/netmirror-parser.js.map +1 -0
  388. package/lib/module/providers/movies/netflixmirror/primemirror.js +17 -0
  389. package/lib/module/providers/movies/netflixmirror/primemirror.js.map +1 -0
  390. package/lib/module/providers/movies/vegamovies/create-vegamovies.js +57 -40
  391. package/lib/module/providers/movies/vegamovies/create-vegamovies.js.map +1 -1
  392. package/lib/module/providers/movies/vegamovies/vegamovies.js +12 -10
  393. package/lib/module/providers/movies/vegamovies/vegamovies.js.map +1 -1
  394. package/lib/module/providers/movies/yflix/create-yflix.js +2 -2
  395. package/lib/module/providers/movies/yflix/create-yflix.js.map +1 -1
  396. package/lib/module/providers/movies/yflix/yflix.js +12 -6
  397. package/lib/module/providers/movies/yflix/yflix.js.map +1 -1
  398. package/lib/module/providers/provider-args.js +14 -0
  399. package/lib/module/providers/provider-args.js.map +1 -0
  400. package/lib/module/registry-signing-keys.js +22 -0
  401. package/lib/module/registry-signing-keys.js.map +1 -0
  402. package/lib/module/utils/ExtractorManager.js +138 -234
  403. package/lib/module/utils/ExtractorManager.js.map +1 -1
  404. package/lib/module/utils/ProviderManager.js +180 -250
  405. package/lib/module/utils/ProviderManager.js.map +1 -1
  406. package/lib/module/utils/create-extractor-context.js +1 -2
  407. package/lib/module/utils/create-extractor-context.js.map +1 -1
  408. package/lib/module/utils/create-provider-context.js +39 -30
  409. package/lib/module/utils/create-provider-context.js.map +1 -1
  410. package/lib/module/utils/extension-integrity.js +52 -0
  411. package/lib/module/utils/extension-integrity.js.map +1 -0
  412. package/lib/module/utils/extension-modules.js +101 -0
  413. package/lib/module/utils/extension-modules.js.map +1 -0
  414. package/lib/module/utils/extension-utils.js +46 -40
  415. package/lib/module/utils/extension-utils.js.map +1 -1
  416. package/lib/module/utils/fetch-with-timeout.js +71 -0
  417. package/lib/module/utils/fetch-with-timeout.js.map +1 -0
  418. package/lib/module/utils/index.js +6 -3
  419. package/lib/module/utils/index.js.map +1 -1
  420. package/lib/module/utils/meta-http.js +37 -0
  421. package/lib/module/utils/meta-http.js.map +1 -0
  422. package/lib/module/utils/provider-maps.js +26 -18
  423. package/lib/module/utils/provider-maps.js.map +1 -1
  424. package/lib/module/utils/queries.js +22 -9
  425. package/lib/module/utils/queries.js.map +1 -1
  426. package/lib/module/utils/registry-schema.js +255 -0
  427. package/lib/module/utils/registry-schema.js.map +1 -0
  428. package/lib/module/utils/registry-signature.js +168 -0
  429. package/lib/module/utils/registry-signature.js.map +1 -0
  430. package/lib/module/utils/url-polyfill.js +1073 -425
  431. package/lib/module/utils/url-polyfill.js.map +1 -1
  432. package/lib/module/utils/utils.js +0 -26
  433. package/lib/module/utils/utils.js.map +1 -1
  434. package/lib/typescript/commonjs/src/NativeConsumet.d.ts +68 -2
  435. package/lib/typescript/commonjs/src/NativeConsumet.d.ts.map +1 -1
  436. package/lib/typescript/commonjs/src/extractors/asianload.d.ts +5 -3
  437. package/lib/typescript/commonjs/src/extractors/asianload.d.ts.map +1 -1
  438. package/lib/typescript/commonjs/src/extractors/filemoon.d.ts +5 -3
  439. package/lib/typescript/commonjs/src/extractors/filemoon.d.ts.map +1 -1
  440. package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts +0 -1
  441. package/lib/typescript/commonjs/src/extractors/flixcloud.d.ts.map +1 -1
  442. package/lib/typescript/commonjs/src/extractors/gdflix.d.ts +0 -1
  443. package/lib/typescript/commonjs/src/extractors/gdflix.d.ts.map +1 -1
  444. package/lib/typescript/commonjs/src/extractors/gofile.d.ts +0 -1
  445. package/lib/typescript/commonjs/src/extractors/gofile.d.ts.map +1 -1
  446. package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts +5 -3
  447. package/lib/typescript/commonjs/src/extractors/gogocdn.d.ts.map +1 -1
  448. package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts +0 -1
  449. package/lib/typescript/commonjs/src/extractors/hubcloud.d.ts.map +1 -1
  450. package/lib/typescript/commonjs/src/extractors/index.d.ts +24 -25
  451. package/lib/typescript/commonjs/src/extractors/index.d.ts.map +1 -1
  452. package/lib/typescript/commonjs/src/extractors/kwik.d.ts +0 -1
  453. package/lib/typescript/commonjs/src/extractors/kwik.d.ts.map +1 -1
  454. package/lib/typescript/commonjs/src/extractors/megaplay.d.ts +0 -1
  455. package/lib/typescript/commonjs/src/extractors/megaplay.d.ts.map +1 -1
  456. package/lib/typescript/commonjs/src/extractors/megaup.d.ts +0 -1
  457. package/lib/typescript/commonjs/src/extractors/megaup.d.ts.map +1 -1
  458. package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts +5 -3
  459. package/lib/typescript/commonjs/src/extractors/mixdrop.d.ts.map +1 -1
  460. package/lib/typescript/commonjs/src/extractors/mp4player.d.ts +5 -3
  461. package/lib/typescript/commonjs/src/extractors/mp4player.d.ts.map +1 -1
  462. package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts +5 -3
  463. package/lib/typescript/commonjs/src/extractors/mp4upload.d.ts.map +1 -1
  464. package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts +5 -3
  465. package/lib/typescript/commonjs/src/extractors/rapidcloud.d.ts.map +1 -1
  466. package/lib/typescript/commonjs/src/extractors/streamhub.d.ts +5 -3
  467. package/lib/typescript/commonjs/src/extractors/streamhub.d.ts.map +1 -1
  468. package/lib/typescript/commonjs/src/extractors/streamlare.d.ts +5 -4
  469. package/lib/typescript/commonjs/src/extractors/streamlare.d.ts.map +1 -1
  470. package/lib/typescript/commonjs/src/extractors/streamsb.d.ts +5 -3
  471. package/lib/typescript/commonjs/src/extractors/streamsb.d.ts.map +1 -1
  472. package/lib/typescript/commonjs/src/extractors/streamtape.d.ts +5 -3
  473. package/lib/typescript/commonjs/src/extractors/streamtape.d.ts.map +1 -1
  474. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts +0 -1
  475. package/lib/typescript/commonjs/src/extractors/vidhide.d.ts.map +1 -1
  476. package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts +5 -3
  477. package/lib/typescript/commonjs/src/extractors/vidmoly.d.ts.map +1 -1
  478. package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts +5 -3
  479. package/lib/typescript/commonjs/src/extractors/vizcloud.d.ts.map +1 -1
  480. package/lib/typescript/commonjs/src/extractors/voe.d.ts +5 -3
  481. package/lib/typescript/commonjs/src/extractors/voe.d.ts.map +1 -1
  482. package/lib/typescript/commonjs/src/index.d.ts +15 -9
  483. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  484. package/lib/typescript/commonjs/src/models/base-provider.d.ts +5 -1
  485. package/lib/typescript/commonjs/src/models/base-provider.d.ts.map +1 -1
  486. package/lib/typescript/commonjs/src/models/extension-manifest.d.ts +27 -5
  487. package/lib/typescript/commonjs/src/models/extension-manifest.d.ts.map +1 -1
  488. package/lib/typescript/commonjs/src/models/extractor-context.d.ts +1 -2
  489. package/lib/typescript/commonjs/src/models/extractor-context.d.ts.map +1 -1
  490. package/lib/typescript/commonjs/src/models/index.d.ts +6 -4
  491. package/lib/typescript/commonjs/src/models/index.d.ts.map +1 -1
  492. package/lib/typescript/commonjs/src/models/meta-error.d.ts +20 -0
  493. package/lib/typescript/commonjs/src/models/meta-error.d.ts.map +1 -0
  494. package/lib/typescript/commonjs/src/models/provider-context.d.ts +21 -16
  495. package/lib/typescript/commonjs/src/models/provider-context.d.ts.map +1 -1
  496. package/lib/typescript/commonjs/src/models/types.d.ts +106 -3
  497. package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
  498. package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts +7 -2
  499. package/lib/typescript/commonjs/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
  500. package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
  501. package/lib/typescript/commonjs/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
  502. package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts +7 -2
  503. package/lib/typescript/commonjs/src/providers/anime/animekai/animekai.d.ts.map +1 -1
  504. package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts +3 -3
  505. package/lib/typescript/commonjs/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
  506. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts +7 -2
  507. package/lib/typescript/commonjs/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  508. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
  509. package/lib/typescript/commonjs/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  510. package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts +11 -3
  511. package/lib/typescript/commonjs/src/providers/anime/animeunity.d.ts.map +1 -1
  512. package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts +7 -2
  513. package/lib/typescript/commonjs/src/providers/anime/anineko/anineko.d.ts.map +1 -1
  514. package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts +3 -3
  515. package/lib/typescript/commonjs/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
  516. package/lib/typescript/commonjs/src/providers/anime/index.d.ts +13 -22
  517. package/lib/typescript/commonjs/src/providers/anime/index.d.ts.map +1 -1
  518. package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts +1 -2
  519. package/lib/typescript/commonjs/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
  520. package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts +7 -2
  521. package/lib/typescript/commonjs/src/providers/anime/reanime/reanime.d.ts.map +1 -1
  522. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts +3 -3
  523. package/lib/typescript/commonjs/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  524. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts +7 -2
  525. package/lib/typescript/commonjs/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  526. package/lib/typescript/commonjs/src/providers/index.d.ts +4 -4
  527. package/lib/typescript/commonjs/src/providers/index.d.ts.map +1 -1
  528. package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts +3 -4
  529. package/lib/typescript/commonjs/src/providers/light-novels/index.d.ts.map +1 -1
  530. package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts +7 -3
  531. package/lib/typescript/commonjs/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  532. package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts +5 -3
  533. package/lib/typescript/commonjs/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  534. package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +5 -3
  535. package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
  536. package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +5 -3
  537. package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +1 -1
  538. package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +7 -4
  539. package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +1 -1
  540. package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +5 -3
  541. package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
  542. package/lib/typescript/commonjs/src/providers/manga/index.d.ts +14 -17
  543. package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
  544. package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +5 -3
  545. package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
  546. package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +5 -3
  547. package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
  548. package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +5 -3
  549. package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +1 -1
  550. package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +5 -3
  551. package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
  552. package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +5 -3
  553. package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +1 -1
  554. package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +5 -3
  555. package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
  556. package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +5 -3
  557. package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +1 -1
  558. package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +5 -3
  559. package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +1 -1
  560. package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +11 -3
  561. package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +1 -1
  562. package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +5 -3
  563. package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +1 -1
  564. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts +26 -9
  565. package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
  566. package/lib/typescript/commonjs/src/providers/meta/index.d.ts +1 -0
  567. package/lib/typescript/commonjs/src/providers/meta/index.d.ts.map +1 -1
  568. package/lib/typescript/commonjs/src/providers/meta/mal.d.ts +9 -4
  569. package/lib/typescript/commonjs/src/providers/meta/mal.d.ts.map +1 -1
  570. package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts +7 -0
  571. package/lib/typescript/commonjs/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
  572. package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts +18 -5
  573. package/lib/typescript/commonjs/src/providers/meta/tmdb.d.ts.map +1 -1
  574. package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts +8 -3
  575. package/lib/typescript/commonjs/src/providers/movies/himovies/himovies.d.ts.map +1 -1
  576. package/lib/typescript/commonjs/src/providers/movies/index.d.ts +14 -10
  577. package/lib/typescript/commonjs/src/providers/movies/index.d.ts.map +1 -1
  578. package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts +8 -3
  579. package/lib/typescript/commonjs/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
  580. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts +10 -3
  581. package/lib/typescript/commonjs/src/providers/movies/multistream/index.d.ts.map +1 -1
  582. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts +7 -6
  583. package/lib/typescript/commonjs/src/providers/movies/multistream/utils.d.ts.map +1 -1
  584. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
  585. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
  586. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
  587. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
  588. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
  589. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
  590. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
  591. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
  592. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
  593. package/lib/typescript/commonjs/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
  594. package/lib/typescript/commonjs/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
  595. package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
  596. package/lib/typescript/commonjs/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
  597. package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts +8 -3
  598. package/lib/typescript/commonjs/src/providers/movies/yflix/yflix.d.ts.map +1 -1
  599. package/lib/typescript/commonjs/src/providers/provider-args.d.ts +8 -0
  600. package/lib/typescript/commonjs/src/providers/provider-args.d.ts.map +1 -0
  601. package/lib/typescript/commonjs/src/registry-signing-keys.d.ts +18 -0
  602. package/lib/typescript/commonjs/src/registry-signing-keys.d.ts.map +1 -0
  603. package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts +33 -15
  604. package/lib/typescript/commonjs/src/utils/ExtractorManager.d.ts.map +1 -1
  605. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts +73 -21
  606. package/lib/typescript/commonjs/src/utils/ProviderManager.d.ts.map +1 -1
  607. package/lib/typescript/commonjs/src/utils/create-extractor-context.d.ts.map +1 -1
  608. package/lib/typescript/commonjs/src/utils/create-provider-context.d.ts.map +1 -1
  609. package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts +40 -0
  610. package/lib/typescript/commonjs/src/utils/extension-integrity.d.ts.map +1 -0
  611. package/lib/typescript/commonjs/src/utils/extension-modules.d.ts +49 -0
  612. package/lib/typescript/commonjs/src/utils/extension-modules.d.ts.map +1 -0
  613. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts +24 -46
  614. package/lib/typescript/commonjs/src/utils/extension-utils.d.ts.map +1 -1
  615. package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts +29 -0
  616. package/lib/typescript/commonjs/src/utils/fetch-with-timeout.d.ts.map +1 -0
  617. package/lib/typescript/commonjs/src/utils/index.d.ts +11 -4
  618. package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
  619. package/lib/typescript/commonjs/src/utils/meta-http.d.ts +16 -0
  620. package/lib/typescript/commonjs/src/utils/meta-http.d.ts.map +1 -0
  621. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts +14 -7
  622. package/lib/typescript/commonjs/src/utils/provider-maps.d.ts.map +1 -1
  623. package/lib/typescript/commonjs/src/utils/queries.d.ts +17 -8
  624. package/lib/typescript/commonjs/src/utils/queries.d.ts.map +1 -1
  625. package/lib/typescript/commonjs/src/utils/registry-schema.d.ts +66 -0
  626. package/lib/typescript/commonjs/src/utils/registry-schema.d.ts.map +1 -0
  627. package/lib/typescript/commonjs/src/utils/registry-signature.d.ts +66 -0
  628. package/lib/typescript/commonjs/src/utils/registry-signature.d.ts.map +1 -0
  629. package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts +20 -8
  630. package/lib/typescript/commonjs/src/utils/url-polyfill.d.ts.map +1 -1
  631. package/lib/typescript/commonjs/src/utils/utils.d.ts +0 -1
  632. package/lib/typescript/commonjs/src/utils/utils.d.ts.map +1 -1
  633. package/lib/typescript/module/src/NativeConsumet.d.ts +68 -2
  634. package/lib/typescript/module/src/NativeConsumet.d.ts.map +1 -1
  635. package/lib/typescript/module/src/extractors/asianload.d.ts +5 -3
  636. package/lib/typescript/module/src/extractors/asianload.d.ts.map +1 -1
  637. package/lib/typescript/module/src/extractors/filemoon.d.ts +5 -3
  638. package/lib/typescript/module/src/extractors/filemoon.d.ts.map +1 -1
  639. package/lib/typescript/module/src/extractors/flixcloud.d.ts +0 -1
  640. package/lib/typescript/module/src/extractors/flixcloud.d.ts.map +1 -1
  641. package/lib/typescript/module/src/extractors/gdflix.d.ts +0 -1
  642. package/lib/typescript/module/src/extractors/gdflix.d.ts.map +1 -1
  643. package/lib/typescript/module/src/extractors/gofile.d.ts +0 -1
  644. package/lib/typescript/module/src/extractors/gofile.d.ts.map +1 -1
  645. package/lib/typescript/module/src/extractors/gogocdn.d.ts +5 -3
  646. package/lib/typescript/module/src/extractors/gogocdn.d.ts.map +1 -1
  647. package/lib/typescript/module/src/extractors/hubcloud.d.ts +0 -1
  648. package/lib/typescript/module/src/extractors/hubcloud.d.ts.map +1 -1
  649. package/lib/typescript/module/src/extractors/index.d.ts +24 -25
  650. package/lib/typescript/module/src/extractors/index.d.ts.map +1 -1
  651. package/lib/typescript/module/src/extractors/kwik.d.ts +0 -1
  652. package/lib/typescript/module/src/extractors/kwik.d.ts.map +1 -1
  653. package/lib/typescript/module/src/extractors/megaplay.d.ts +0 -1
  654. package/lib/typescript/module/src/extractors/megaplay.d.ts.map +1 -1
  655. package/lib/typescript/module/src/extractors/megaup.d.ts +0 -1
  656. package/lib/typescript/module/src/extractors/megaup.d.ts.map +1 -1
  657. package/lib/typescript/module/src/extractors/mixdrop.d.ts +5 -3
  658. package/lib/typescript/module/src/extractors/mixdrop.d.ts.map +1 -1
  659. package/lib/typescript/module/src/extractors/mp4player.d.ts +5 -3
  660. package/lib/typescript/module/src/extractors/mp4player.d.ts.map +1 -1
  661. package/lib/typescript/module/src/extractors/mp4upload.d.ts +5 -3
  662. package/lib/typescript/module/src/extractors/mp4upload.d.ts.map +1 -1
  663. package/lib/typescript/module/src/extractors/rapidcloud.d.ts +5 -3
  664. package/lib/typescript/module/src/extractors/rapidcloud.d.ts.map +1 -1
  665. package/lib/typescript/module/src/extractors/streamhub.d.ts +5 -3
  666. package/lib/typescript/module/src/extractors/streamhub.d.ts.map +1 -1
  667. package/lib/typescript/module/src/extractors/streamlare.d.ts +5 -4
  668. package/lib/typescript/module/src/extractors/streamlare.d.ts.map +1 -1
  669. package/lib/typescript/module/src/extractors/streamsb.d.ts +5 -3
  670. package/lib/typescript/module/src/extractors/streamsb.d.ts.map +1 -1
  671. package/lib/typescript/module/src/extractors/streamtape.d.ts +5 -3
  672. package/lib/typescript/module/src/extractors/streamtape.d.ts.map +1 -1
  673. package/lib/typescript/module/src/extractors/vidhide.d.ts +0 -1
  674. package/lib/typescript/module/src/extractors/vidhide.d.ts.map +1 -1
  675. package/lib/typescript/module/src/extractors/vidmoly.d.ts +5 -3
  676. package/lib/typescript/module/src/extractors/vidmoly.d.ts.map +1 -1
  677. package/lib/typescript/module/src/extractors/vizcloud.d.ts +5 -3
  678. package/lib/typescript/module/src/extractors/vizcloud.d.ts.map +1 -1
  679. package/lib/typescript/module/src/extractors/voe.d.ts +5 -3
  680. package/lib/typescript/module/src/extractors/voe.d.ts.map +1 -1
  681. package/lib/typescript/module/src/index.d.ts +15 -9
  682. package/lib/typescript/module/src/index.d.ts.map +1 -1
  683. package/lib/typescript/module/src/models/base-provider.d.ts +5 -1
  684. package/lib/typescript/module/src/models/base-provider.d.ts.map +1 -1
  685. package/lib/typescript/module/src/models/extension-manifest.d.ts +27 -5
  686. package/lib/typescript/module/src/models/extension-manifest.d.ts.map +1 -1
  687. package/lib/typescript/module/src/models/extractor-context.d.ts +1 -2
  688. package/lib/typescript/module/src/models/extractor-context.d.ts.map +1 -1
  689. package/lib/typescript/module/src/models/index.d.ts +6 -4
  690. package/lib/typescript/module/src/models/index.d.ts.map +1 -1
  691. package/lib/typescript/module/src/models/meta-error.d.ts +20 -0
  692. package/lib/typescript/module/src/models/meta-error.d.ts.map +1 -0
  693. package/lib/typescript/module/src/models/provider-context.d.ts +21 -16
  694. package/lib/typescript/module/src/models/provider-context.d.ts.map +1 -1
  695. package/lib/typescript/module/src/models/types.d.ts +106 -3
  696. package/lib/typescript/module/src/models/types.d.ts.map +1 -1
  697. package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts +7 -2
  698. package/lib/typescript/module/src/providers/anime/anikoto/anikoto.d.ts.map +1 -1
  699. package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts +3 -3
  700. package/lib/typescript/module/src/providers/anime/anikoto/create-anikoto.d.ts.map +1 -1
  701. package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts +7 -2
  702. package/lib/typescript/module/src/providers/anime/animekai/animekai.d.ts.map +1 -1
  703. package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts +3 -3
  704. package/lib/typescript/module/src/providers/anime/animekai/create-animekai.d.ts.map +1 -1
  705. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts +7 -2
  706. package/lib/typescript/module/src/providers/anime/animepahe/animepahe.d.ts.map +1 -1
  707. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts +3 -3
  708. package/lib/typescript/module/src/providers/anime/animepahe/create-animepahe.d.ts.map +1 -1
  709. package/lib/typescript/module/src/providers/anime/animeunity.d.ts +11 -3
  710. package/lib/typescript/module/src/providers/anime/animeunity.d.ts.map +1 -1
  711. package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts +7 -2
  712. package/lib/typescript/module/src/providers/anime/anineko/anineko.d.ts.map +1 -1
  713. package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts +3 -3
  714. package/lib/typescript/module/src/providers/anime/anineko/create-anineko.d.ts.map +1 -1
  715. package/lib/typescript/module/src/providers/anime/index.d.ts +13 -22
  716. package/lib/typescript/module/src/providers/anime/index.d.ts.map +1 -1
  717. package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts +1 -2
  718. package/lib/typescript/module/src/providers/anime/reanime/create-reanime.d.ts.map +1 -1
  719. package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts +7 -2
  720. package/lib/typescript/module/src/providers/anime/reanime/reanime.d.ts.map +1 -1
  721. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts +3 -3
  722. package/lib/typescript/module/src/providers/anime/zoro/create-zoro.d.ts.map +1 -1
  723. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts +7 -2
  724. package/lib/typescript/module/src/providers/anime/zoro/zoro.d.ts.map +1 -1
  725. package/lib/typescript/module/src/providers/index.d.ts +4 -4
  726. package/lib/typescript/module/src/providers/index.d.ts.map +1 -1
  727. package/lib/typescript/module/src/providers/light-novels/index.d.ts +3 -4
  728. package/lib/typescript/module/src/providers/light-novels/index.d.ts.map +1 -1
  729. package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts +7 -3
  730. package/lib/typescript/module/src/providers/light-novels/novelupdates.d.ts.map +1 -1
  731. package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts +5 -3
  732. package/lib/typescript/module/src/providers/light-novels/readlightnovels.d.ts.map +1 -1
  733. package/lib/typescript/module/src/providers/manga/asurascans.d.ts +5 -3
  734. package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
  735. package/lib/typescript/module/src/providers/manga/brmangas.d.ts +5 -3
  736. package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +1 -1
  737. package/lib/typescript/module/src/providers/manga/comick.d.ts +7 -4
  738. package/lib/typescript/module/src/providers/manga/comick.d.ts.map +1 -1
  739. package/lib/typescript/module/src/providers/manga/flamescans.d.ts +5 -3
  740. package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
  741. package/lib/typescript/module/src/providers/manga/index.d.ts +14 -17
  742. package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
  743. package/lib/typescript/module/src/providers/manga/mangadex.d.ts +5 -3
  744. package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
  745. package/lib/typescript/module/src/providers/manga/mangahere.d.ts +5 -3
  746. package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
  747. package/lib/typescript/module/src/providers/manga/mangahost.d.ts +5 -3
  748. package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +1 -1
  749. package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +5 -3
  750. package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
  751. package/lib/typescript/module/src/providers/manga/mangapark.d.ts +5 -3
  752. package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +1 -1
  753. package/lib/typescript/module/src/providers/manga/mangapill.d.ts +5 -3
  754. package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
  755. package/lib/typescript/module/src/providers/manga/mangareader.d.ts +5 -3
  756. package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +1 -1
  757. package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +5 -3
  758. package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +1 -1
  759. package/lib/typescript/module/src/providers/manga/readmanga.d.ts +11 -3
  760. package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +1 -1
  761. package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +5 -3
  762. package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +1 -1
  763. package/lib/typescript/module/src/providers/meta/anilist.d.ts +26 -9
  764. package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
  765. package/lib/typescript/module/src/providers/meta/index.d.ts +1 -0
  766. package/lib/typescript/module/src/providers/meta/index.d.ts.map +1 -1
  767. package/lib/typescript/module/src/providers/meta/mal.d.ts +9 -4
  768. package/lib/typescript/module/src/providers/meta/mal.d.ts.map +1 -1
  769. package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts +7 -0
  770. package/lib/typescript/module/src/providers/meta/tmdb-api-key.d.ts.map +1 -0
  771. package/lib/typescript/module/src/providers/meta/tmdb.d.ts +18 -5
  772. package/lib/typescript/module/src/providers/meta/tmdb.d.ts.map +1 -1
  773. package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts +8 -3
  774. package/lib/typescript/module/src/providers/movies/himovies/himovies.d.ts.map +1 -1
  775. package/lib/typescript/module/src/providers/movies/index.d.ts +14 -10
  776. package/lib/typescript/module/src/providers/movies/index.d.ts.map +1 -1
  777. package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts +8 -3
  778. package/lib/typescript/module/src/providers/movies/multimovies/multimovies.d.ts.map +1 -1
  779. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts +10 -3
  780. package/lib/typescript/module/src/providers/movies/multistream/index.d.ts.map +1 -1
  781. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts +7 -6
  782. package/lib/typescript/module/src/providers/movies/multistream/utils.d.ts.map +1 -1
  783. package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts +2 -6
  784. package/lib/typescript/module/src/providers/movies/netflixmirror/create-netflixmirror.d.ts.map +1 -1
  785. package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts +12 -0
  786. package/lib/typescript/module/src/providers/movies/netflixmirror/disneymirror.d.ts.map +1 -0
  787. package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts +9 -17
  788. package/lib/typescript/module/src/providers/movies/netflixmirror/netflixmirror.d.ts.map +1 -1
  789. package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts +21 -0
  790. package/lib/typescript/module/src/providers/movies/netflixmirror/netmirror-parser.d.ts.map +1 -0
  791. package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts +12 -0
  792. package/lib/typescript/module/src/providers/movies/netflixmirror/primemirror.d.ts.map +1 -0
  793. package/lib/typescript/module/src/providers/movies/vegamovies/create-vegamovies.d.ts.map +1 -1
  794. package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts +8 -5
  795. package/lib/typescript/module/src/providers/movies/vegamovies/vegamovies.d.ts.map +1 -1
  796. package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts +8 -3
  797. package/lib/typescript/module/src/providers/movies/yflix/yflix.d.ts.map +1 -1
  798. package/lib/typescript/module/src/providers/provider-args.d.ts +8 -0
  799. package/lib/typescript/module/src/providers/provider-args.d.ts.map +1 -0
  800. package/lib/typescript/module/src/registry-signing-keys.d.ts +18 -0
  801. package/lib/typescript/module/src/registry-signing-keys.d.ts.map +1 -0
  802. package/lib/typescript/module/src/utils/ExtractorManager.d.ts +33 -15
  803. package/lib/typescript/module/src/utils/ExtractorManager.d.ts.map +1 -1
  804. package/lib/typescript/module/src/utils/ProviderManager.d.ts +73 -21
  805. package/lib/typescript/module/src/utils/ProviderManager.d.ts.map +1 -1
  806. package/lib/typescript/module/src/utils/create-extractor-context.d.ts.map +1 -1
  807. package/lib/typescript/module/src/utils/create-provider-context.d.ts.map +1 -1
  808. package/lib/typescript/module/src/utils/extension-integrity.d.ts +40 -0
  809. package/lib/typescript/module/src/utils/extension-integrity.d.ts.map +1 -0
  810. package/lib/typescript/module/src/utils/extension-modules.d.ts +49 -0
  811. package/lib/typescript/module/src/utils/extension-modules.d.ts.map +1 -0
  812. package/lib/typescript/module/src/utils/extension-utils.d.ts +24 -46
  813. package/lib/typescript/module/src/utils/extension-utils.d.ts.map +1 -1
  814. package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts +29 -0
  815. package/lib/typescript/module/src/utils/fetch-with-timeout.d.ts.map +1 -0
  816. package/lib/typescript/module/src/utils/index.d.ts +11 -4
  817. package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
  818. package/lib/typescript/module/src/utils/meta-http.d.ts +16 -0
  819. package/lib/typescript/module/src/utils/meta-http.d.ts.map +1 -0
  820. package/lib/typescript/module/src/utils/provider-maps.d.ts +14 -7
  821. package/lib/typescript/module/src/utils/provider-maps.d.ts.map +1 -1
  822. package/lib/typescript/module/src/utils/queries.d.ts +17 -8
  823. package/lib/typescript/module/src/utils/queries.d.ts.map +1 -1
  824. package/lib/typescript/module/src/utils/registry-schema.d.ts +66 -0
  825. package/lib/typescript/module/src/utils/registry-schema.d.ts.map +1 -0
  826. package/lib/typescript/module/src/utils/registry-signature.d.ts +66 -0
  827. package/lib/typescript/module/src/utils/registry-signature.d.ts.map +1 -0
  828. package/lib/typescript/module/src/utils/url-polyfill.d.ts +20 -8
  829. package/lib/typescript/module/src/utils/url-polyfill.d.ts.map +1 -1
  830. package/lib/typescript/module/src/utils/utils.d.ts +0 -1
  831. package/lib/typescript/module/src/utils/utils.d.ts.map +1 -1
  832. package/package.json +30 -19
  833. package/src/NativeConsumet.ts +68 -2
  834. package/src/extension-registry.json +174 -54
  835. package/src/extension-registry.json.sig +1 -0
  836. package/src/extractors/asianload.ts +10 -7
  837. package/src/extractors/filemoon.ts +10 -7
  838. package/src/extractors/flixcloud.ts +0 -2
  839. package/src/extractors/gdflix.ts +0 -2
  840. package/src/extractors/gofile.ts +0 -2
  841. package/src/extractors/gogocdn.ts +12 -9
  842. package/src/extractors/hubcloud.ts +0 -2
  843. package/src/extractors/index.ts +24 -51
  844. package/src/extractors/kwik.ts +0 -2
  845. package/src/extractors/megaplay.ts +0 -2
  846. package/src/extractors/megaup.ts +2 -6
  847. package/src/extractors/mixdrop.ts +9 -5
  848. package/src/extractors/mp4player.ts +10 -6
  849. package/src/extractors/mp4upload.ts +9 -5
  850. package/src/extractors/rapidcloud.ts +15 -12
  851. package/src/extractors/streamhub.ts +10 -6
  852. package/src/extractors/streamlare.ts +10 -8
  853. package/src/extractors/streamsb.ts +10 -7
  854. package/src/extractors/streamtape.ts +9 -5
  855. package/src/extractors/vidhide.ts +3 -4
  856. package/src/extractors/vidmoly.ts +10 -6
  857. package/src/extractors/vizcloud.ts +10 -7
  858. package/src/extractors/voe.ts +10 -7
  859. package/src/index.tsx +109 -3
  860. package/src/models/base-provider.ts +6 -1
  861. package/src/models/extension-manifest.ts +30 -6
  862. package/src/models/extractor-context.ts +0 -2
  863. package/src/models/index.ts +13 -1
  864. package/src/models/meta-error.ts +33 -0
  865. package/src/models/provider-context.ts +21 -58
  866. package/src/models/types.ts +110 -3
  867. package/src/providers/anime/anikoto/anikoto.ts +14 -10
  868. package/src/providers/anime/anikoto/create-anikoto.ts +5 -4
  869. package/src/providers/anime/animekai/animekai.ts +14 -9
  870. package/src/providers/anime/animekai/create-animekai.ts +5 -5
  871. package/src/providers/anime/animepahe/animepahe.ts +14 -11
  872. package/src/providers/anime/animepahe/create-animepahe.ts +5 -14
  873. package/src/providers/anime/animeunity.ts +20 -10
  874. package/src/providers/anime/anineko/anineko.ts +18 -8
  875. package/src/providers/anime/anineko/create-anineko.ts +3 -2
  876. package/src/providers/anime/index.ts +13 -21
  877. package/src/providers/anime/reanime/create-reanime.ts +2 -4
  878. package/src/providers/anime/reanime/reanime.ts +13 -9
  879. package/src/providers/anime/zoro/create-zoro.ts +6 -7
  880. package/src/providers/anime/zoro/zoro.ts +14 -11
  881. package/src/providers/index.ts +4 -4
  882. package/src/providers/light-novels/index.ts +3 -3
  883. package/src/providers/light-novels/novelupdates.ts +33 -19
  884. package/src/providers/light-novels/readlightnovels.ts +12 -8
  885. package/src/providers/manga/asurascans.ts +13 -7
  886. package/src/providers/manga/brmangas.ts +11 -7
  887. package/src/providers/manga/comick.ts +17 -12
  888. package/src/providers/manga/flamescans.ts +11 -7
  889. package/src/providers/manga/index.ts +14 -16
  890. package/src/providers/manga/mangadex.ts +18 -14
  891. package/src/providers/manga/mangahere.ts +12 -8
  892. package/src/providers/manga/mangahost.ts +11 -7
  893. package/src/providers/manga/mangakakalot.ts +11 -7
  894. package/src/providers/manga/mangapark.ts +11 -7
  895. package/src/providers/manga/mangapill.ts +11 -7
  896. package/src/providers/manga/mangareader.ts +12 -8
  897. package/src/providers/manga/mangasee123.ts +11 -7
  898. package/src/providers/manga/readmanga.ts +36 -23
  899. package/src/providers/manga/vyvymanga.ts +12 -8
  900. package/src/providers/meta/anilist.ts +566 -1439
  901. package/src/providers/meta/index.ts +6 -1
  902. package/src/providers/meta/mal.ts +102 -139
  903. package/src/providers/meta/tmdb-api-key.ts +27 -0
  904. package/src/providers/meta/tmdb.ts +150 -141
  905. package/src/providers/movies/himovies/create-himovies.ts +3 -3
  906. package/src/providers/movies/himovies/himovies.ts +13 -11
  907. package/src/providers/movies/index.ts +14 -12
  908. package/src/providers/movies/multimovies/create-multimovies.ts +3 -3
  909. package/src/providers/movies/multimovies/multimovies.ts +13 -11
  910. package/src/providers/movies/multistream/index.ts +30 -18
  911. package/src/providers/movies/multistream/utils.ts +27 -15
  912. package/src/providers/movies/netflixmirror/create-netflixmirror.ts +567 -232
  913. package/src/providers/movies/netflixmirror/disneymirror.ts +16 -0
  914. package/src/providers/movies/netflixmirror/netflixmirror.ts +13 -43
  915. package/src/providers/movies/netflixmirror/netmirror-parser.ts +43 -0
  916. package/src/providers/movies/netflixmirror/primemirror.ts +16 -0
  917. package/src/providers/movies/vegamovies/create-vegamovies.ts +75 -50
  918. package/src/providers/movies/vegamovies/vegamovies.ts +13 -13
  919. package/src/providers/movies/yflix/create-yflix.ts +2 -2
  920. package/src/providers/movies/yflix/yflix.ts +13 -10
  921. package/src/providers/provider-args.ts +15 -0
  922. package/src/registry-signing-keys.ts +20 -0
  923. package/src/utils/ExtractorManager.ts +165 -247
  924. package/src/utils/ProviderManager.ts +235 -285
  925. package/src/utils/create-extractor-context.ts +0 -2
  926. package/src/utils/create-provider-context.ts +45 -29
  927. package/src/utils/extension-integrity.ts +82 -0
  928. package/src/utils/extension-modules.ts +123 -0
  929. package/src/utils/extension-utils.ts +45 -42
  930. package/src/utils/fetch-with-timeout.ts +76 -0
  931. package/src/utils/index.ts +31 -4
  932. package/src/utils/meta-http.ts +35 -0
  933. package/src/utils/provider-maps.ts +39 -19
  934. package/src/utils/queries.ts +30 -26
  935. package/src/utils/registry-schema.ts +273 -0
  936. package/src/utils/registry-signature.ts +215 -0
  937. package/src/utils/url-polyfill.ts +1146 -460
  938. package/src/utils/utils.ts +0 -26
  939. package/lib/commonjs/extractors/StreamP2P.js +0 -69
  940. package/lib/commonjs/extractors/StreamP2P.js.map +0 -1
  941. package/lib/commonjs/extractors/kisskh/kkey.js +0 -98
  942. package/lib/commonjs/extractors/kisskh/kkey.js.map +0 -1
  943. package/lib/commonjs/extractors/kisskh/staticdata.js +0 -9
  944. package/lib/commonjs/extractors/kisskh/staticdata.js.map +0 -1
  945. package/lib/commonjs/providers/anime/anify.js +0 -195
  946. package/lib/commonjs/providers/anime/anify.js.map +0 -1
  947. package/lib/commonjs/providers/anime/animedrive.js +0 -228
  948. package/lib/commonjs/providers/anime/animedrive.js.map +0 -1
  949. package/lib/commonjs/providers/anime/animesuge/animesuge.js +0 -78
  950. package/lib/commonjs/providers/anime/animesuge/animesuge.js.map +0 -1
  951. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js +0 -312
  952. package/lib/commonjs/providers/anime/animesuge/create-animesuge.js.map +0 -1
  953. package/lib/commonjs/providers/anime/kickassanime.js +0 -48
  954. package/lib/commonjs/providers/anime/kickassanime.js.map +0 -1
  955. package/lib/commonjs/providers/anime/marin.js +0 -282
  956. package/lib/commonjs/providers/anime/marin.js.map +0 -1
  957. package/lib/commonjs/providers/movies/dramacool.js +0 -397
  958. package/lib/commonjs/providers/movies/dramacool.js.map +0 -1
  959. package/lib/commonjs/providers/movies/yflix.js +0 -561
  960. package/lib/commonjs/providers/movies/yflix.js.map +0 -1
  961. package/lib/module/extractors/StreamP2P.js +0 -63
  962. package/lib/module/extractors/StreamP2P.js.map +0 -1
  963. package/lib/module/extractors/kisskh/kkey.js +0 -92
  964. package/lib/module/extractors/kisskh/kkey.js.map +0 -1
  965. package/lib/module/extractors/kisskh/staticdata.js +0 -5
  966. package/lib/module/extractors/kisskh/staticdata.js.map +0 -1
  967. package/lib/module/providers/anime/anify.js +0 -192
  968. package/lib/module/providers/anime/anify.js.map +0 -1
  969. package/lib/module/providers/anime/animedrive.js +0 -223
  970. package/lib/module/providers/anime/animedrive.js.map +0 -1
  971. package/lib/module/providers/anime/animesuge/animesuge.js +0 -73
  972. package/lib/module/providers/anime/animesuge/animesuge.js.map +0 -1
  973. package/lib/module/providers/anime/animesuge/create-animesuge.js +0 -309
  974. package/lib/module/providers/anime/animesuge/create-animesuge.js.map +0 -1
  975. package/lib/module/providers/anime/kickassanime.js +0 -45
  976. package/lib/module/providers/anime/kickassanime.js.map +0 -1
  977. package/lib/module/providers/anime/marin.js +0 -281
  978. package/lib/module/providers/anime/marin.js.map +0 -1
  979. package/lib/module/providers/movies/dramacool.js +0 -397
  980. package/lib/module/providers/movies/dramacool.js.map +0 -1
  981. package/lib/module/providers/movies/yflix.js +0 -561
  982. package/lib/module/providers/movies/yflix.js.map +0 -1
  983. package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts +0 -10
  984. package/lib/typescript/commonjs/src/extractors/StreamP2P.d.ts.map +0 -1
  985. package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts +0 -25
  986. package/lib/typescript/commonjs/src/extractors/kisskh/kkey.d.ts.map +0 -1
  987. package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts +0 -3
  988. package/lib/typescript/commonjs/src/extractors/kisskh/staticdata.d.ts.map +0 -1
  989. package/lib/typescript/commonjs/src/providers/anime/anify.d.ts +0 -40
  990. package/lib/typescript/commonjs/src/providers/anime/anify.d.ts.map +0 -1
  991. package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts +0 -33
  992. package/lib/typescript/commonjs/src/providers/anime/animedrive.d.ts.map +0 -1
  993. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts +0 -34
  994. package/lib/typescript/commonjs/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
  995. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
  996. package/lib/typescript/commonjs/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
  997. package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts +0 -30
  998. package/lib/typescript/commonjs/src/providers/anime/kickassanime.d.ts.map +0 -1
  999. package/lib/typescript/commonjs/src/providers/anime/marin.d.ts +0 -32
  1000. package/lib/typescript/commonjs/src/providers/anime/marin.d.ts.map +0 -1
  1001. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts +0 -1
  1002. package/lib/typescript/commonjs/src/providers/movies/dramacool.d.ts.map +0 -1
  1003. package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts +0 -1
  1004. package/lib/typescript/commonjs/src/providers/movies/yflix.d.ts.map +0 -1
  1005. package/lib/typescript/module/src/extractors/StreamP2P.d.ts +0 -10
  1006. package/lib/typescript/module/src/extractors/StreamP2P.d.ts.map +0 -1
  1007. package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts +0 -25
  1008. package/lib/typescript/module/src/extractors/kisskh/kkey.d.ts.map +0 -1
  1009. package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts +0 -3
  1010. package/lib/typescript/module/src/extractors/kisskh/staticdata.d.ts.map +0 -1
  1011. package/lib/typescript/module/src/providers/anime/anify.d.ts +0 -40
  1012. package/lib/typescript/module/src/providers/anime/anify.d.ts.map +0 -1
  1013. package/lib/typescript/module/src/providers/anime/animedrive.d.ts +0 -33
  1014. package/lib/typescript/module/src/providers/anime/animedrive.d.ts.map +0 -1
  1015. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts +0 -34
  1016. package/lib/typescript/module/src/providers/anime/animesuge/animesuge.d.ts.map +0 -1
  1017. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts +0 -14
  1018. package/lib/typescript/module/src/providers/anime/animesuge/create-animesuge.d.ts.map +0 -1
  1019. package/lib/typescript/module/src/providers/anime/kickassanime.d.ts +0 -30
  1020. package/lib/typescript/module/src/providers/anime/kickassanime.d.ts.map +0 -1
  1021. package/lib/typescript/module/src/providers/anime/marin.d.ts +0 -32
  1022. package/lib/typescript/module/src/providers/anime/marin.d.ts.map +0 -1
  1023. package/lib/typescript/module/src/providers/movies/dramacool.d.ts +0 -1
  1024. package/lib/typescript/module/src/providers/movies/dramacool.d.ts.map +0 -1
  1025. package/lib/typescript/module/src/providers/movies/yflix.d.ts +0 -1
  1026. package/lib/typescript/module/src/providers/movies/yflix.d.ts.map +0 -1
  1027. package/src/extractors/StreamP2P.ts +0 -60
  1028. package/src/extractors/kisskh/kkey.ts +0 -161
  1029. package/src/extractors/kisskh/staticdata.ts +0 -144
  1030. package/src/providers/anime/anify.ts +0 -276
  1031. package/src/providers/anime/animedrive.ts +0 -245
  1032. package/src/providers/anime/animesuge/animesuge.ts +0 -77
  1033. package/src/providers/anime/animesuge/create-animesuge.ts +0 -327
  1034. package/src/providers/anime/kickassanime.ts +0 -51
  1035. package/src/providers/anime/marin.ts +0 -319
  1036. package/src/providers/movies/dramacool.ts +0 -395
  1037. package/src/providers/movies/yflix.ts +0 -559
@@ -1,19 +1,50 @@
1
+ import { ExtractorManager } from './ExtractorManager';
1
2
  import type { ProviderContext } from '../models/provider-context';
2
- import { type IAnimeResult, type IMovieResult, type ISearch, type ProviderContextConfig } from '../models';
3
+ import { type IAnimeProvider, type IAnimeResult, type IMovieProvider, type IMovieResult, type ISearch, type ProviderContextConfig } from '../models';
3
4
  import extensionRegistry from '../extension-registry.json';
4
- import type { ExtensionManifest, ProviderType } from '../models/extension-manifest';
5
- import { animeProviders, movieProviders, type AnimeProvider, type MovieProvider } from './provider-maps';
5
+ import type { ExtensionManifest, ExtensionRegistryData, ProviderType } from '../models/extension-manifest';
6
+ import { type AnimeProviderId, type MovieProviderId, type ProviderInstanceOf } from './provider-maps';
7
+ import { type ExecuteCodeOptions, type IntegrityOptions } from './extension-integrity';
8
+ export interface ProviderLoadOptions {
9
+ /** Base URL for the provider; defaults to the registry entry's `baseUrl` (so domain moves are registry-only). */
10
+ baseUrl?: string;
11
+ }
12
+ /**
13
+ * Methods a provider must have, by category; loading a provider without one of them throws.
14
+ * They match the base parsers (AnimeParser, MovieParser, MangaParser, LightNovelParser); meta
15
+ * lists what anime and movie meta providers share.
16
+ */
17
+ export declare const REQUIRED_PROVIDER_METHODS: {
18
+ readonly anime: readonly ["search", "fetchAnimeInfo", "fetchEpisodeSources", "fetchEpisodeServers"];
19
+ readonly movies: readonly ["search", "fetchMediaInfo", "fetchEpisodeSources", "fetchEpisodeServers"];
20
+ readonly manga: readonly ["search", "fetchMangaInfo", "fetchChapterPages"];
21
+ readonly 'light-novels': readonly ["search", "fetchLightNovelInfo", "fetchChapterContent"];
22
+ readonly meta: readonly ["search", "fetchEpisodeSources", "fetchEpisodeServers"];
23
+ };
24
+ /** What `getProvider(category, id)` returns: the anime or movie provider type, or the category's required methods. */
25
+ export type ProviderOfCategory<C extends ProviderType> = C extends 'anime' ? IAnimeProvider : C extends 'movies' ? IMovieProvider : {
26
+ readonly name: string;
27
+ } & {
28
+ [M in (typeof REQUIRED_PROVIDER_METHODS)[C][number]]: (...args: any[]) => Promise<any>;
29
+ };
6
30
  export declare class ProviderManager {
7
31
  private providerContext;
32
+ private extractorManager;
8
33
  private loadedExtensions;
34
+ private compiledExtensions;
9
35
  private extensionManifest;
10
- constructor(registry: typeof extensionRegistry, providerConfig?: ProviderContextConfig);
36
+ private integrityOptions;
37
+ /**
38
+ * @throws RegistryError if the registry is invalid or uses a newer schema than this library reads
39
+ */
40
+ constructor(registry: ExtensionRegistryData | typeof extensionRegistry, providerConfig?: ProviderContextConfig, integrityOptions?: IntegrityOptions);
11
41
  /**
12
- * Load and parse the extensionManifest
42
+ * Index the validated registry entries by lowercased id, for case-insensitive lookup
13
43
  */
14
44
  private loadRegistry;
15
45
  /**
16
- * Get all available extensions
46
+ * Get all available extensions, including any that need a newer extension context
47
+ * (see `isCompatibleEntry`); loading those throws a RegistryError.
17
48
  */
18
49
  getAvailableExtensions(): ExtensionManifest[];
19
50
  /**
@@ -24,41 +55,67 @@ export declare class ProviderManager {
24
55
  * Get extension metadata by ID/ name (case-insensitive) like 'zoro' or 'Zoro'
25
56
  */
26
57
  getExtensionMetadata(extensionId: string): ExtensionManifest;
58
+ private findExtensionMetadata;
59
+ /**
60
+ * Load an extension by ID from the extensionManifest. Concurrent and later calls for the same
61
+ * extension and base URL share one load; a failed load is retried on the next call.
62
+ */
63
+ loadExtension<T extends string>(extensionId: T, options?: ProviderLoadOptions): Promise<ProviderInstanceOf<T>>;
64
+ /**
65
+ * Forget a loaded extension (for every base URL) and its compiled code, so the next load
66
+ * fetches and runs it again. Extractors have their own: `getExtractorManager().invalidate(name)`.
67
+ */
68
+ invalidate(extensionId: string): void;
27
69
  /**
28
- * Load an extension by ID from the extensionManifest
70
+ * Fetch an extension's code from the registry and run it
29
71
  */
30
- loadExtension<T extends AnimeProvider | MovieProvider>(extensionId: T): Promise<T extends AnimeProvider ? InstanceType<(typeof animeProviders)[T]> : T extends MovieProvider ? InstanceType<(typeof movieProviders)[T]> : never>;
72
+ private fetchExtension;
31
73
  /**
32
74
  * Attach the correct prototype to the loaded provider instance so runtime instanceof checks pass
33
75
  * and developer tooling understands the shape better.
34
76
  */
35
77
  private attachProviderPrototype;
36
78
  /**
37
- * Execute provider code and create instance (extensionManifest-based)
79
+ * Execute provider code and create instance (extensionManifest-based).
80
+ * The code must match `metadata.sha256` unless `options.skipIntegrity` is set. Verified code is
81
+ * compiled once per id and sha256; each call returns a new instance.
82
+ *
83
+ * @throws RegistryError before running anything if the entry needs a newer extension context
84
+ * @throws IntegrityError before running anything if the hash or factory name is invalid
38
85
  */
39
- executeProviderCode<T extends AnimeProvider | MovieProvider>(code: string, factoryName: string, metadata: ExtensionManifest & {
86
+ executeProviderCode<T extends string>(code: string, factoryName: string, metadata: ExtensionManifest & {
40
87
  id: T;
41
- }): Promise<T extends AnimeProvider ? InstanceType<(typeof animeProviders)[T]> : T extends MovieProvider ? InstanceType<(typeof movieProviders)[T]> : never>;
88
+ }, options?: ExecuteCodeOptions & ProviderLoadOptions): Promise<ProviderInstanceOf<T>>;
42
89
  /**
43
- * Create execution context for provider code
90
+ * Create execution context for provider code: the globals it runs with
44
91
  */
45
92
  private createExecutionContext;
46
93
  /**
47
- * Create models context
94
+ * Create models context: the base parsers and the library's real enums
48
95
  */
49
96
  private createModelsContext;
50
97
  /**
51
- * Validate provider instance based on category
98
+ * Validate that the instance has the methods its category requires (REQUIRED_PROVIDER_METHODS)
52
99
  */
53
100
  private validateProviderInstance;
101
+ /**
102
+ * Get a provider of a category, e.g. `getProvider('manga', 'mangadex')`
103
+ *
104
+ * @throws if the extension's registry entry is of another category
105
+ */
106
+ getProvider<C extends ProviderType>(category: C, extensionId: string, options?: ProviderLoadOptions): Promise<ProviderOfCategory<C>>;
54
107
  /**
55
108
  * Get anime provider
56
109
  */
57
- getAnimeProvider<T extends AnimeProvider>(extensionId: T): Promise<InstanceType<(typeof animeProviders)[T]>>;
110
+ getAnimeProvider(extensionId: AnimeProviderId, options?: ProviderLoadOptions): Promise<IAnimeProvider>;
58
111
  /**
59
112
  * Get movie provider
60
113
  */
61
- getMovieProvider<T extends MovieProvider>(extensionId: T): Promise<InstanceType<(typeof movieProviders)[T]>>;
114
+ getMovieProvider(extensionId: MovieProviderId, options?: ProviderLoadOptions): Promise<IMovieProvider>;
115
+ /**
116
+ * Get the extractor manager shared by the providers this manager loads
117
+ */
118
+ getExtractorManager(): ExtractorManager;
62
119
  /**
63
120
  * Get the provider context
64
121
  */
@@ -70,11 +127,6 @@ export declare class ProviderManager {
70
127
  extensionId: string;
71
128
  results: ISearch<IAnimeResult | IMovieResult>;
72
129
  }>>;
73
- /**
74
- * Verify SHA-256 integrity of fetched code against the bundled registry hash.
75
- * Throws if hashes don't match. Warns (but allows) if no hash is present in registry.
76
- */
77
- private verifyCodeIntegrity;
78
130
  }
79
131
  export default ProviderManager;
80
132
  //# sourceMappingURL=ProviderManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderManager.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ProviderManager.ts"],"names":[],"mappings":"AAEA,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;AAIzG,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;IAmFD;;;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;IA+DD;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA4D9B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAyC3B;;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;IAgBzF;;;OAGG;IACH,OAAO,CAAC,mBAAmB;CAY5B;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"ProviderManager.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ProviderManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,qBAAqB,EAC3B,MAAM,WAAW,CAAC;AACnB,OAAO,iBAAiB,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC3G,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACtB,MAAM,uBAAuB,CAAC;AAa/B,MAAM,WAAW,mBAAmB;IAClC,iHAAiH;IACjH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;CAMsB,CAAC;AAE7D,sHAAsH;AACtH,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,YAAY,IAAI,CAAC,SAAS,OAAO,GACtE,cAAc,GACd,CAAC,SAAS,QAAQ,GAChB,cAAc,GACd;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;KACzB,CAAC,IAAI,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC;CACvF,CAAC;AAWR,qBAAa,eAAe;IAC1B,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,gBAAgB,CAAmB;IAE3C,OAAO,CAAC,gBAAgB,CAAmC;IAE3D,OAAO,CAAC,kBAAkB,CAAmC;IAC7D,OAAO,CAAC,iBAAiB,CAAwC;IACjE,OAAO,CAAC,gBAAgB,CAAmB;IAE3C;;OAEG;gBAED,QAAQ,EAAE,qBAAqB,GAAG,OAAO,iBAAiB,EAC1D,cAAc,GAAE,qBAA0B,EAC1C,gBAAgB,GAAE,gBAAqB;IAiBzC;;OAEG;IACH,OAAO,CAAC,YAAY;IAMpB;;;OAGG;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;IAQ5D,OAAO,CAAC,qBAAqB;IAe7B;;;OAGG;IACG,aAAa,CAAC,CAAC,SAAS,MAAM,EAClC,WAAW,EAAE,CAAC,EACd,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAajC;;;OAGG;IACH,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAMrC;;OAEG;YACW,cAAc;IAkC5B;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IA0B/B;;;;;;;OAOG;IACU,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAC/C,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,iBAAiB,GAAG;QAAE,EAAE,EAAE,CAAC,CAAA;KAAE,EACvC,OAAO,GAAE,kBAAkB,GAAG,mBAAwB,GACrD,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IA4CjC;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAwB9B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;OAEG;IACH,OAAO,CAAC,wBAAwB;IAahC;;;;OAIG;IACG,WAAW,CAAC,CAAC,SAAS,YAAY,EACtC,QAAQ,EAAE,CAAC,EACX,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAUjC;;OAEG;IACG,gBAAgB,CAAC,WAAW,EAAE,eAAe,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIhH;;OAEG;IACG,gBAAgB,CAAC,WAAW,EAAE,eAAe,EAAE,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIhH;;OAEG;IACH,mBAAmB,IAAI,gBAAgB;IAIvC;;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":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAW1E;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,GAAE,sBAA2B,GAAG,gBAAgB,CAoB5F;AAED,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"create-extractor-context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/create-extractor-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGlD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAU1E;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,GAAE,sBAA2B,GAAG,gBAAgB,CAmB5F;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":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA4BzF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,qBAA0B,GAAG,eAAe,CAqFzF;AACD,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"create-provider-context.d.ts","sourceRoot":"","sources":["../../../../../src/utils/create-provider-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AA2BzF;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,GAAE,qBAA0B,GAAG,eAAe,CAsGzF;AACD,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,40 @@
1
+ export type IntegrityErrorCode = 'INTEGRITY_MISMATCH' | 'INTEGRITY_MISSING' | 'INVALID_IDENTIFIER';
2
+ /**
3
+ * Thrown when extension/extractor code doesn't match its registry entry, or the entry
4
+ * can't be safely turned into executable code.
5
+ */
6
+ export declare class IntegrityError extends Error {
7
+ readonly code: IntegrityErrorCode;
8
+ readonly id: string;
9
+ readonly expected?: string;
10
+ readonly actual?: string;
11
+ constructor(code: IntegrityErrorCode, id: string, message: string, details?: {
12
+ expected?: string;
13
+ actual?: string;
14
+ });
15
+ }
16
+ export interface IntegrityOptions {
17
+ /** Run code whose registry entry has no `sha256`. Off by default. */
18
+ allowUnhashed?: boolean;
19
+ }
20
+ export interface ExecuteCodeOptions {
21
+ /** Run the code without checking it against the registry `sha256`. Only for code you already trust. */
22
+ skipIntegrity?: boolean;
23
+ }
24
+ export declare const sha256Hex: (code: string) => string;
25
+ /**
26
+ * Factory and extractor names are interpolated into generated code, so they must be plain identifiers.
27
+ */
28
+ export declare function assertValidIdentifier(value: unknown, what: string, id: string): asserts value is string;
29
+ /**
30
+ * Verify code against the `sha256` of its registry entry before it is executed.
31
+ * Apps can call this when installing/caching extension code.
32
+ *
33
+ * @throws IntegrityError when the hash is missing (unless `allowUnhashed`) or doesn't match
34
+ */
35
+ export declare function verifyExtensionCode(code: string, manifest: {
36
+ id?: string;
37
+ name?: string;
38
+ sha256?: string;
39
+ }, options?: IntegrityOptions): void;
40
+ //# sourceMappingURL=extension-integrity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-integrity.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extension-integrity.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,GAAG,mBAAmB,GAAG,oBAAoB,CAAC;AAEnG;;;GAGG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAGvB,IAAI,EAAE,kBAAkB,EACxB,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO;CAWvD;AAED,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,kBAAkB;IACjC,uGAAuG;IACvG,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAID,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAA0D,CAAC;AAEpG;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,IAAI,MAAM,CAIvG;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EACzD,OAAO,GAAE,gBAAqB,GAC7B,IAAI,CAiBN"}
@@ -0,0 +1,49 @@
1
+ import { StreamingServers, MediaFormat, MediaStatus, SubOrDub, WatchListType, TvType, Genres, Topics } from '../models/types';
2
+ /** Module names registry bundles import from the runtime (see scripts/build-extensions.js). */
3
+ export declare const MODELS_MODULE = "react-native-consumet/models";
4
+ export declare const UTILS_MODULE = "react-native-consumet/utils";
5
+ /** The library's enums, handed to extensions as-is so their values always match. */
6
+ export declare const extensionEnums: {
7
+ StreamingServers: typeof StreamingServers;
8
+ MediaFormat: typeof MediaFormat;
9
+ MediaStatus: typeof MediaStatus;
10
+ SubOrDub: typeof SubOrDub;
11
+ WatchListType: typeof WatchListType;
12
+ TvType: typeof TvType;
13
+ Genres: typeof Genres;
14
+ Topics: typeof Topics;
15
+ };
16
+ /**
17
+ * Builds the `require` extension code runs with. Only the modules passed in resolve; anything
18
+ * else throws, so a bundle that depends on a file the runtime can't provide fails at load
19
+ * instead of getting `{}` and losing features silently.
20
+ */
21
+ export declare function createExtensionRequire(extensionId: string, modules: Record<string, unknown>): (specifier: string) => any;
22
+ export type ExtensionFactory = (...args: any[]) => any;
23
+ /** The globals extension code runs with; each key becomes a local constant of that name. */
24
+ export type ExtensionGlobals = {
25
+ exports: Record<string, any>;
26
+ module: {
27
+ exports: any;
28
+ };
29
+ } & Record<string, unknown>;
30
+ /**
31
+ * Run single-file extension code and return the function it provides as `name`: `exports[name]`,
32
+ * `module.exports[name]`, a top-level `function name` (code without exports), or its default
33
+ * export. Undefined when it provides none. `name` must be a valid identifier (assertValidIdentifier).
34
+ */
35
+ export declare function evaluateExtensionCode(code: string, name: string, globals: ExtensionGlobals, kind: 'provider' | 'extractor'): ExtensionFactory | undefined;
36
+ /** Compiled extension code, reused only for the same code and sha256 (one entry per key). */
37
+ export type CompiledCode = {
38
+ sha256: string;
39
+ code: string;
40
+ factory: ExtensionFactory;
41
+ };
42
+ /**
43
+ * Share one load per key: concurrent callers get the same promise, later callers the result.
44
+ * A failed load is forgotten, so the next call tries again.
45
+ */
46
+ export declare function memoiseLoad<T>(cache: Map<string, Promise<T>>, key: string, load: () => Promise<T>): Promise<T>;
47
+ /** Delete the entries of one extension or extractor: keys `${id}` and `${id}|…`. */
48
+ export declare function deleteEntriesOf(cache: Map<string, unknown>, id: string): void;
49
+ //# sourceMappingURL=extension-modules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-modules.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extension-modules.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,QAAQ,EACR,aAAa,EACb,MAAM,EACN,MAAM,EACN,MAAM,EACP,MAAM,iBAAiB,CAAC;AAEzB,+FAA+F;AAC/F,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAC5D,eAAO,MAAM,YAAY,gCAAgC,CAAC;AAM1D,oFAAoF;AACpF,eAAO,MAAM,cAAc;;;;;;;;;CAS1B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAClF,WAAW,MAAM,KAAG,GAAG,CAQhC;AAED,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAEvD,4FAA4F;AAC5F,MAAM,MAAM,gBAAgB,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,MAAM,EAAE;QAAE,OAAO,EAAE,GAAG,CAAA;KAAE,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAEpH;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,gBAAgB,EACzB,IAAI,EAAE,UAAU,GAAG,WAAW,GAC7B,gBAAgB,GAAG,SAAS,CAmC9B;AAED,6FAA6F;AAC7F,MAAM,MAAM,YAAY,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,gBAAgB,CAAA;CAAE,CAAC;AAEvF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAS9G;AAED,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI,CAI7E"}
@@ -3,51 +3,29 @@ import type { ExtractorContext } from '../models';
3
3
  export declare const defaultAxios: import("axios").AxiosInstance;
4
4
  export declare const defaultExtractorContext: ExtractorContext;
5
5
  export declare const defaultExtractors: {
6
- AsianLoad: typeof AsianLoad;
7
- Filemoon: typeof Filemoon;
8
- GogoCDN: typeof GogoCDN;
9
- Kwik: (ctx: ExtractorContext) => import("../models").IVideoExtractor;
10
- MixDrop: typeof MixDrop;
11
- Mp4Player: typeof Mp4Player;
12
- Mp4Upload: typeof Mp4Upload;
13
- RapidCloud: typeof RapidCloud;
14
- MegaCloud: (ctx: ExtractorContext) => import("../models").IVideoExtractor;
15
- StreamHub: typeof StreamHub;
16
- StreamLare: typeof StreamLare;
17
- StreamSB: typeof StreamSB;
18
- StreamTape: typeof StreamTape;
19
- StreamWish: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
20
- VidMoly: typeof VidMoly;
21
- VizCloud: typeof VizCloud;
22
- VidHide: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
23
- Voe: typeof Voe;
24
- MegaUp: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
25
- MegaPlay: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
26
- GDFlix: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
27
- Gofile: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
28
- HubCloud: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
29
- FlixCloud: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
6
+ readonly AsianLoad: typeof AsianLoad;
7
+ readonly Filemoon: typeof Filemoon;
8
+ readonly GogoCDN: typeof GogoCDN;
9
+ Kwik: (ctx: ExtractorContext) => import("..").IVideoExtractor;
10
+ readonly MixDrop: typeof MixDrop;
11
+ readonly Mp4Player: typeof Mp4Player;
12
+ readonly Mp4Upload: typeof Mp4Upload;
13
+ readonly RapidCloud: typeof RapidCloud;
14
+ MegaCloud: (ctx: ExtractorContext) => import("..").IVideoExtractor;
15
+ readonly StreamHub: typeof StreamHub;
16
+ readonly StreamLare: typeof StreamLare;
17
+ readonly StreamSB: typeof StreamSB;
18
+ readonly StreamTape: typeof StreamTape;
19
+ StreamWish: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
20
+ readonly VidMoly: typeof VidMoly;
21
+ readonly VizCloud: typeof VizCloud;
22
+ VidHide: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
23
+ readonly Voe: typeof Voe;
24
+ MegaUp: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
25
+ MegaPlay: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
26
+ GDFlix: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
27
+ Gofile: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
28
+ HubCloud: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
29
+ FlixCloud: (ctx?: ExtractorContext) => import("..").IVideoExtractor;
30
30
  };
31
- export declare const extractors: {
32
- GogoCDN: typeof GogoCDN;
33
- StreamSB: typeof StreamSB;
34
- StreamTape: typeof StreamTape;
35
- MixDrop: typeof MixDrop;
36
- Kwik: (ctx: ExtractorContext) => import("../models").IVideoExtractor;
37
- RapidCloud: typeof RapidCloud;
38
- StreamWish: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
39
- Filemoon: typeof Filemoon;
40
- Voe: typeof Voe;
41
- AsianLoad: typeof AsianLoad;
42
- StreamLare: typeof StreamLare;
43
- VidMoly: typeof VidMoly;
44
- MegaCloud: (ctx: ExtractorContext) => import("../models").IVideoExtractor;
45
- MegaUp: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
46
- MegaPlay: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
47
- GDFlix: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
48
- Gofile: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
49
- HubCloud: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
50
- FlixCloud: (ctx?: ExtractorContext) => import("../models").IVideoExtractor;
51
- };
52
- export type Extractor = keyof typeof extractors;
53
31
  //# sourceMappingURL=extension-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extension-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EAEP,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EAEV,OAAO,EACP,QAAQ,EAER,GAAG,EAOJ,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAYlD,eAAO,MAAM,YAAY,+BAUvB,CAAC;AAGH,eAAO,MAAM,uBAAuB,EAAE,gBAgBrC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;gBAIhB,gBAAgB;;;;;qBAKX,gBAAgB;;;;;uBAKd,gBAAgB;;;oBAGnB,gBAAgB;;mBAEjB,gBAAgB;qBACd,gBAAgB;mBAClB,gBAAgB;mBAChB,gBAAgB;qBACd,gBAAgB;sBACf,gBAAgB;CACnC,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;gBAvBT,gBAAgB;;uBAUT,gBAAgB;;;;;;qBALlB,gBAAgB;mBAUlB,gBAAgB;qBACd,gBAAgB;mBAClB,gBAAgB;mBAChB,gBAAgB;qBACd,gBAAgB;sBACf,gBAAgB;CAuBnC,CAAC;AAGF,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,UAAU,CAAC"}
1
+ {"version":3,"file":"extension-utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/extension-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,SAAS,EACT,QAAQ,EACR,OAAO,EAEP,OAAO,EACP,SAAS,EACT,SAAS,EACT,UAAU,EAEV,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EAEV,OAAO,EACP,QAAQ,EAER,GAAG,EAOJ,MAAM,eAAe,CAAC;AAGvB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAWlD,eAAO,MAAM,YAAY,+BAUvB,CAAC;AAGH,eAAO,MAAM,uBAAuB,EAAE,gBAerC,CAAC;AAKF,eAAO,MAAM,iBAAiB;;;;gBAUhB,gBAAgB;;;;;qBAaX,gBAAgB;;;;;uBAad,gBAAgB;;;oBAOnB,gBAAgB;;mBAIjB,gBAAgB;qBACd,gBAAgB;mBAClB,gBAAgB;mBAChB,gBAAgB;qBACd,gBAAgB;sBACf,gBAAgB;CACnC,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type { AxiosInstance, AxiosResponse } from 'axios';
2
+ /**
3
+ * `fetch` has no timeout option (the `timeout` key is silently ignored), so a stalled
4
+ * request would hang forever. Abort it after `timeoutMs`, including reading the body.
5
+ */
6
+ export declare function fetchTextWithTimeout(url: string, init?: RequestInit, timeoutMs?: number): Promise<{
7
+ ok: boolean;
8
+ status: number;
9
+ statusText: string;
10
+ text: string;
11
+ }>;
12
+ /** What the `fetch` extension code runs with resolves to. */
13
+ export interface ExtensionFetchResponse {
14
+ /** Whether the status is 2xx; HTTP errors resolve with `ok: false` instead of throwing */
15
+ ok: boolean;
16
+ status: number;
17
+ statusText: string;
18
+ headers: AxiosResponse['headers'];
19
+ /** The body as a string, also for JSON responses */
20
+ text(): Promise<string>;
21
+ json(): Promise<any>;
22
+ }
23
+ /**
24
+ * The `fetch` extension code runs with, sent through the app's axios (its proxy, headers and
25
+ * interceptors apply). Like `fetch`, it rejects only when no response arrives (network error,
26
+ * timeout); an HTTP error status resolves with `ok: false`.
27
+ */
28
+ export declare function createExtensionFetch(axios: AxiosInstance, timeoutMs?: number): (url: string, options?: any) => Promise<ExtensionFetchResponse>;
29
+ //# sourceMappingURL=fetch-with-timeout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-with-timeout.d.ts","sourceRoot":"","sources":["../../../../../src/utils/fetch-with-timeout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D;;;GAGG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,MAAM,EACX,IAAI,GAAE,WAAgB,EACtB,SAAS,SAAQ,GAChB,OAAO,CAAC;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAa5E;AAED,6DAA6D;AAC7D,MAAM,WAAW,sBAAsB;IACrC,0FAA0F;IAC1F,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,oDAAoD;IACpD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,CAAC;CACtB;AAKD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,SAAQ,IAC5D,KAAK,MAAM,EAAE,UAAS,GAAQ,KAAG,OAAO,CAAC,sBAAsB,CAAC,CA6B/E"}
@@ -1,11 +1,18 @@
1
1
  import { USER_AGENT, splitAuthor, floorID, formatTitle, genElement, capitalizeFirstLetter, range, getDays, days, isJson, convertDuration, substringAfter, substringBefore, calculateStringSimilarity } from './utils';
2
- import { anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, anilistTrendingQuery, anilistPopularQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, anilistCharacterQuery, anilistStaffInfoQuery } from './queries';
3
- export { USER_AGENT, splitAuthor, floorID, formatTitle, genElement, capitalizeFirstLetter, range, getDays, days, isJson, convertDuration, substringAfter, substringBefore, calculateStringSimilarity, anilistSearchQuery, anilistMediaDetailQuery, kitsuSearchQuery, anilistTrendingQuery, anilistPopularQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, anilistStaffInfoQuery, anilistCharacterQuery, };
2
+ import { anilistSearchQuery, anilistMediaDetailQuery, anilistTrendingQuery, anilistPopularQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, anilistCharacterQuery, anilistStaffInfoQuery } from './queries';
3
+ export { USER_AGENT, splitAuthor, floorID, formatTitle, genElement, capitalizeFirstLetter, range, getDays, days, isJson, convertDuration, substringAfter, substringBefore, calculateStringSimilarity, anilistSearchQuery, anilistMediaDetailQuery, anilistTrendingQuery, anilistPopularQuery, anilistAiringScheduleQuery, anilistGenresQuery, anilistAdvancedQuery, anilistSiteStatisticsQuery, anilistStaffInfoQuery, anilistCharacterQuery, };
4
4
  export { createProviderContext } from './create-provider-context';
5
- export { ProviderManager } from './ProviderManager';
5
+ export { ProviderManager, REQUIRED_PROVIDER_METHODS } from './ProviderManager';
6
+ export type { ProviderLoadOptions, ProviderOfCategory } from './ProviderManager';
6
7
  export { ExtractorManager } from './ExtractorManager';
8
+ export { verifyExtensionCode, IntegrityError } from './extension-integrity';
9
+ export type { IntegrityErrorCode, IntegrityOptions, ExecuteCodeOptions } from './extension-integrity';
10
+ export { CONTEXT_VERSION, REGISTRY_SCHEMA_VERSION, RegistryError, validateRegistry, isCompatibleEntry, assertCompatibleEntry, } from './registry-schema';
11
+ export type { RegistryErrorCode } from './registry-schema';
12
+ export { REGISTRY_SIGNING_KEYS, RegistrySignatureError, verifyRegistrySignature, parseSignedRegistry, } from './registry-signature';
13
+ export type { RegistrySignatureErrorCode, RegistrySignatureOptions } from './registry-signature';
7
14
  export { createExtractorContext } from './create-extractor-context';
8
15
  export { defaultAxios, defaultExtractorContext, defaultExtractors } from './extension-utils';
9
16
  export { PolyURL, PolyURLSearchParams } from './url-polyfill';
10
- export type { AnimeProvider, MovieProvider, animeProviders, movieProviders } from './provider-maps';
17
+ export type { AnimeProvider, MovieProvider, animeProviders, movieProviders, AnimeProviderId, MovieProviderId, KnownAnimeProviderId, KnownMovieProviderId, ProviderInstanceOf, } from './provider-maps';
11
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,MAAM,EACN,eAAe,EACf,cAAc,EACd,eAAe,EACf,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,MAAM,EACN,eAAe,EACf,cAAc,EACd,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,GACtB,CAAC;AAGF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/utils/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,MAAM,EACN,eAAe,EACf,cAAc,EACd,eAAe,EACf,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,UAAU,EACV,WAAW,EACX,OAAO,EACP,WAAW,EACX,UAAU,EACV,qBAAqB,EACrB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,MAAM,EACN,eAAe,EACf,cAAc,EACd,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,uBAAuB,EACvB,oBAAoB,EACpB,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,oBAAoB,EACpB,0BAA0B,EAC1B,qBAAqB,EACrB,qBAAqB,GACtB,CAAC;AAGF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC/E,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5E,YAAY,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AACtG,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACjG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC7F,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { type AxiosInstance } from 'axios';
2
+ /** Default timeout for metadata APIs (AniList, TMDB, MAL). */
3
+ export declare const META_TIMEOUT_MS = 15000;
4
+ /** Timeout for optional enrichment (ani.zip, filler lists); the call still succeeds without it. */
5
+ export declare const ENRICHMENT_TIMEOUT_MS = 5000;
6
+ /**
7
+ * Retry a request once (by default) when the server answers 429 or 5xx, waiting for
8
+ * `Retry-After` when present (capped) or a short linear backoff.
9
+ */
10
+ export declare function withRetry(instance: AxiosInstance, { retries, baseDelayMs }?: {
11
+ retries?: number | undefined;
12
+ baseDelayMs?: number | undefined;
13
+ }): AxiosInstance;
14
+ /** Shared client for meta providers: bounded by a timeout, with one retry on 429/5xx. */
15
+ export declare const metaHttp: AxiosInstance;
16
+ //# sourceMappingURL=meta-http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta-http.d.ts","sourceRoot":"","sources":["../../../../../src/utils/meta-http.ts"],"names":[],"mappings":"AAAA,OAAc,EAAmB,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAEnE,8DAA8D;AAC9D,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,mGAAmG;AACnG,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAM1C;;;GAGG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,OAAW,EAAE,WAAiB,EAAE;;;CAAK,GAAG,aAAa,CAgBzG;AAED,yFAAyF;AACzF,eAAO,MAAM,QAAQ,eAAwD,CAAC"}
@@ -7,6 +7,7 @@
7
7
  * - Utils no longer re-exports extractors (breaking one part of the circle)
8
8
  * - Lazy loading breaks the other part at runtime
9
9
  */
10
+ import type { IAnimeProvider, IMovieProvider } from '../models/types';
10
11
  export declare const animeProviders: {
11
12
  readonly Zoro: any;
12
13
  readonly AnimePahe: any;
@@ -19,14 +20,20 @@ export declare const movieProviders: {
19
20
  readonly MultiStream: any;
20
21
  readonly YFlix: any;
21
22
  readonly VegaMovies: any;
23
+ readonly NetflixMirror: any;
24
+ readonly PrimeMirror: any;
25
+ readonly DisneyMirror: any;
22
26
  };
23
- declare const metaProviders: {
24
- readonly Anilist: any;
25
- readonly TMDB: any;
26
- readonly MAL: any;
27
- };
27
+ /** @deprecated Class keys of the bundled providers; registry ids are lowercase, use `AnimeProviderId`. */
28
28
  export type AnimeProvider = keyof typeof animeProviders;
29
+ /** @deprecated Class keys of the bundled providers; registry ids are lowercase, use `MovieProviderId`. */
29
30
  export type MovieProvider = keyof typeof movieProviders;
30
- export type MetaProvider = keyof typeof metaProviders;
31
- export {};
31
+ /** Registry ids of the providers in the bundled registry. */
32
+ export type KnownAnimeProviderId = 'animepahe' | 'animekai' | 'anikoto' | 'anineko';
33
+ export type KnownMovieProviderId = 'multimovies' | 'yflix' | 'vegamovies' | 'netflixmirror' | 'primemirror' | 'disneymirror';
34
+ /** Any registry id; known ids autocomplete, and providers added to a registry later still type-check. */
35
+ export type AnimeProviderId = KnownAnimeProviderId | (string & {});
36
+ export type MovieProviderId = KnownMovieProviderId | (string & {});
37
+ /** The provider type for an id: anime or movie when the id says so, otherwise either. */
38
+ export type ProviderInstanceOf<T> = T extends AnimeProvider | KnownAnimeProviderId ? IAnimeProvider : T extends MovieProvider | KnownMovieProviderId ? IMovieProvider : IAnimeProvider | IMovieProvider;
32
39
  //# sourceMappingURL=provider-maps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"provider-maps.d.ts","sourceRoot":"","sources":["../../../../../src/utils/provider-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,eAAO,MAAM,cAAc;;;;;CAa1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;CAgB1B,CAAC;AAEF,QAAA,MAAM,aAAa;;;;CAUlB,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"}
1
+ {"version":3,"file":"provider-maps.d.ts","sourceRoot":"","sources":["../../../../../src/utils/provider-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAItE,eAAO,MAAM,cAAc;;;;;CAa1B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;CAyB1B,CAAC;AAEF,0GAA0G;AAC1G,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AACxD,0GAA0G;AAC1G,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,cAAc,CAAC;AAExD,6DAA6D;AAC7D,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AACpF,MAAM,MAAM,oBAAoB,GAC5B,aAAa,GACb,OAAO,GACP,YAAY,GACZ,eAAe,GACf,aAAa,GACb,cAAc,CAAC;AAEnB,yGAAyG;AACzG,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,oBAAoB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEnE,yFAAyF;AACzF,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,GAAG,oBAAoB,GAC9E,cAAc,GACd,CAAC,SAAS,aAAa,GAAG,oBAAoB,GAC5C,cAAc,GACd,cAAc,GAAG,cAAc,CAAC"}
@@ -1,13 +1,22 @@
1
1
  export declare const anilistAdvancedQuery: () => string;
2
- export declare const anilistSearchQuery: (query: string, page: number, perPage: number, type?: "ANIME" | "MANGA") => string;
3
- export declare const anilistMediaDetailQuery: (id: string) => string;
4
- export declare const anilistTrendingQuery: (page?: number, perPage?: number, type?: "ANIME" | "MANGA") => string;
5
- export declare const anilistPopularQuery: (page?: number, perPage?: number, type?: "ANIME" | "MANGA") => string;
6
- export declare const anilistGenresQuery: (genres: string[], page?: number, perPage?: number) => string;
7
- export declare const anilistAiringScheduleQuery: (page: number | undefined, perPage: number | undefined, weekStart: number, weekEnd: number, notYetAired: boolean) => string;
2
+ /** Variables: `search`, `page`, `perPage`, `type` (`ANIME` or `MANGA`). */
3
+ export declare const anilistSearchQuery: () => string;
4
+ /** Variables: `id`. */
5
+ export declare const anilistMediaDetailQuery: () => string;
6
+ /** Variables: `page`, `perPage`. */
7
+ export declare const anilistTrendingQuery: () => string;
8
+ /** Variables: `page`, `perPage`. */
9
+ export declare const anilistPopularQuery: () => string;
10
+ /** Variables: `genres`, `page`, `perPage`. */
11
+ export declare const anilistGenresQuery: () => string;
12
+ /** Variables: `page`, `perPage`, `notYetAired`, and `airingAtGreater` / `airingAtLesser` in Unix seconds. */
13
+ export declare const anilistAiringScheduleQuery: () => string;
8
14
  export declare const anilistSiteStatisticsQuery: () => string;
15
+ /** Variables: `id`. */
9
16
  export declare const anilistCharacterQuery: () => string;
10
17
  export declare const anilistStaffQuery: () => string;
11
- export declare const kitsuSearchQuery: (query: string) => string;
12
- export declare const anilistStaffInfoQuery: (id: number) => string;
18
+ /** Variables: `title`. */
19
+ export declare const kitsuTitleSearchQuery: () => string;
20
+ /** Variables: `id`. */
21
+ export declare const anilistStaffInfoQuery: () => string;
13
22
  //# sourceMappingURL=queries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../../src/utils/queries.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,cACiyD,CAAC;AACn0D,eAAO,MAAM,kBAAkB,GAAI,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,SAAS,MAAM,EAAE,OAAM,OAAO,GAAG,OAAiB,WACwe,CAAC;AAC3lB,eAAO,MAAM,uBAAuB,GAAI,IAAI,MAAM,WAC2xC,CAAC;AAC90C,eAAO,MAAM,oBAAoB,GAAI,OAAM,MAAU,EAAE,UAAS,MAAW,EAAE,OAAM,OAAO,GAAG,OAAiB,WACshB,CAAC;AACroB,eAAO,MAAM,mBAAmB,GAAI,OAAM,MAAU,EAAE,UAAS,MAAW,EAAE,OAAM,OAAO,GAAG,OAAiB,WACygB,CAAC;AACvnB,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,EAAE,OAAM,MAAU,EAAE,UAAS,MAAW,WAGwd,CAAC;AACpjB,eAAO,MAAM,0BAA0B,GACrC,MAAM,MAAM,YAAI,EAChB,SAAS,MAAM,YAAK,EACpB,WAAW,MAAM,EACjB,SAAS,MAAM,EACf,aAAa,OAAO,WAEmb,CAAC;AAC1c,eAAO,MAAM,0BAA0B,cAAiE,CAAC;AACzG,eAAO,MAAM,qBAAqB,cAC+Z,CAAC;AAClc,eAAO,MAAM,iBAAiB,cACqnC,CAAC;AACppC,eAAO,MAAM,gBAAgB,GAAI,OAAO,MAAM,WACoL,CAAC;AACnO,eAAO,MAAM,qBAAqB,GAChC,IAAI,MAAM,WAEX,CAAC"}
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../../src/utils/queries.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB,cACiyD,CAAC;AACn0D,2EAA2E;AAC3E,eAAO,MAAM,kBAAkB,cACihB,CAAC;AACjjB,uBAAuB;AACvB,eAAO,MAAM,uBAAuB,cAC80C,CAAC;AACn3C,oCAAoC;AACpC,eAAO,MAAM,oBAAoB,cACskB,CAAC;AACxmB,oCAAoC;AACpC,eAAO,MAAM,mBAAmB,cACyjB,CAAC;AAC1lB,8CAA8C;AAC9C,eAAO,MAAM,kBAAkB,cACoiB,CAAC;AACpkB,6GAA6G;AAC7G,eAAO,MAAM,0BAA0B,cACohB,CAAC;AAC5jB,eAAO,MAAM,0BAA0B,cAAiE,CAAC;AACzG,uBAAuB;AACvB,eAAO,MAAM,qBAAqB,cAC2a,CAAC;AAC9c,eAAO,MAAM,iBAAiB,cACqnC,CAAC;AAEppC,0BAA0B;AAC1B,eAAO,MAAM,qBAAqB,cACkE,CAAC;AACrG,uBAAuB;AACvB,eAAO,MAAM,qBAAqB,cAEjC,CAAC"}
@@ -0,0 +1,66 @@
1
+ import type { ExtensionRegistryData } from '../models/extension-manifest';
2
+ /**
3
+ * Version of the context this library gives extension code: the `ctx` helpers, the modules it can
4
+ * `require` and the globals it runs with. Bump it when extension code may need something earlier
5
+ * versions don't provide, and have the entries that need it declare `minContextVersion`.
6
+ */
7
+ export declare const CONTEXT_VERSION = 1;
8
+ /**
9
+ * Newest registry `schemaVersion` this library reads. Bump it only for changes older libraries
10
+ * would misread (a field removed, renamed or changing meaning); new optional fields don't need it.
11
+ */
12
+ export declare const REGISTRY_SCHEMA_VERSION = 1;
13
+ export type RegistryErrorCode = 'INVALID_REGISTRY' | 'UNSUPPORTED_SCHEMA' | 'INCOMPATIBLE_ENTRY';
14
+ /**
15
+ * Thrown when a registry is malformed, uses a newer schema than this library reads, or an entry
16
+ * needs a newer extension context. `updateRequired` marks the cases a newer app version fixes.
17
+ */
18
+ export declare class RegistryError extends Error {
19
+ readonly code: RegistryErrorCode;
20
+ /** Extension id or extractor name, when the error is about one entry */
21
+ readonly id?: string;
22
+ /** Every problem found, e.g. `extensions[2] (anineko): factoryName must be a JavaScript identifier` */
23
+ readonly issues: string[];
24
+ /** Version the registry or entry needs: its `schemaVersion` or `minContextVersion` */
25
+ readonly required?: number;
26
+ /** Version this library supports: REGISTRY_SCHEMA_VERSION or CONTEXT_VERSION */
27
+ readonly supported?: number;
28
+ /** True when a newer version of the app would accept it, so the user should update */
29
+ readonly updateRequired: boolean;
30
+ constructor(code: RegistryErrorCode, message: string, details?: {
31
+ id?: string;
32
+ issues?: string[];
33
+ required?: number;
34
+ supported?: number;
35
+ });
36
+ }
37
+ /**
38
+ * Whether this library can run an entry: it needs no newer context than CONTEXT_VERSION.
39
+ * Entries without `minContextVersion` need context 1. A malformed value is never compatible.
40
+ */
41
+ export declare function isCompatibleEntry(entry: {
42
+ minContextVersion?: unknown;
43
+ } | undefined): boolean;
44
+ /**
45
+ * Refuse an extension or extractor entry this library can't run. The managers call this before
46
+ * fetching or executing code, including `execute*Code` with code the app cached itself.
47
+ *
48
+ * @throws RegistryError `INCOMPATIBLE_ENTRY` (with `updateRequired`) when the entry needs a newer
49
+ * context, or `INVALID_REGISTRY` when its `minContextVersion` isn't a positive integer
50
+ */
51
+ export declare function assertCompatibleEntry(entry: {
52
+ id?: string;
53
+ name?: string;
54
+ minContextVersion?: unknown;
55
+ } | undefined): void;
56
+ /**
57
+ * Check a registry (bundled, or downloaded as JSON) before the managers use it.
58
+ * A missing `schemaVersion` reads as 1; fields not in the schema are ignored.
59
+ *
60
+ * @throws RegistryError `UNSUPPORTED_SCHEMA` (with `updateRequired`) when `schemaVersion` is newer
61
+ * than REGISTRY_SCHEMA_VERSION, or `INVALID_REGISTRY` listing every problem in `issues`
62
+ */
63
+ export declare function validateRegistry(registry: unknown): ExtensionRegistryData & {
64
+ schemaVersion: number;
65
+ };
66
+ //# sourceMappingURL=registry-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry-schema.d.ts","sourceRoot":"","sources":["../../../../../src/utils/registry-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,qBAAqB,EAGtB,MAAM,8BAA8B,CAAC;AAItC;;;;GAIG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AAEjC;;;GAGG;AACH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAKzC,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,oBAAoB,CAAC;AAEjG;;;GAGG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,uGAAuG;IACvG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;IAC1B,sFAAsF;IACtF,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,gFAAgF;IAChF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,sFAAsF;IACtF,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;gBAG/B,IAAI,EAAE,iBAAiB,EACvB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE;QAAE,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAO;CAa1F;AA6FD;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE;IAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,GAAG,OAAO,CAG7F;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,GAC7E,IAAI,CAiBN;AAyCD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,qBAAqB,GAAG;IAAE,aAAa,EAAE,MAAM,CAAA;CAAE,CAoCrG"}