react-native-consumet 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/extension-registry.json.sig +1 -1
- package/lib/commonjs/index.js +18 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/models/types.js +6 -0
- package/lib/commonjs/models/types.js.map +1 -1
- package/lib/commonjs/providers/manga/asurascans.js +160 -96
- package/lib/commonjs/providers/manga/asurascans.js.map +1 -1
- package/lib/commonjs/providers/manga/flamescans.js +173 -91
- package/lib/commonjs/providers/manga/flamescans.js.map +1 -1
- package/lib/commonjs/providers/manga/index.js +1 -15
- package/lib/commonjs/providers/manga/index.js.map +1 -1
- package/lib/commonjs/providers/manga/mangadex.js +234 -227
- package/lib/commonjs/providers/manga/mangadex.js.map +1 -1
- package/lib/commonjs/providers/manga/mangahere.js +279 -135
- package/lib/commonjs/providers/manga/mangahere.js.map +1 -1
- package/lib/commonjs/providers/manga/mangakakalot.js +206 -107
- package/lib/commonjs/providers/manga/mangakakalot.js.map +1 -1
- package/lib/commonjs/providers/manga/mangapill.js +126 -38
- package/lib/commonjs/providers/manga/mangapill.js.map +1 -1
- package/lib/commonjs/providers/meta/anilist.js +41 -12
- package/lib/commonjs/providers/meta/anilist.js.map +1 -1
- package/lib/commonjs/utils/index.js +19 -0
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/commonjs/utils/manga.js +60 -0
- package/lib/commonjs/utils/manga.js.map +1 -0
- package/lib/module/extension-registry.json.sig +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/models/types.js +9 -0
- package/lib/module/models/types.js.map +1 -1
- package/lib/module/providers/manga/asurascans.js +161 -96
- package/lib/module/providers/manga/asurascans.js.map +1 -1
- package/lib/module/providers/manga/flamescans.js +174 -91
- package/lib/module/providers/manga/flamescans.js.map +1 -1
- package/lib/module/providers/manga/index.js +1 -15
- package/lib/module/providers/manga/index.js.map +1 -1
- package/lib/module/providers/manga/mangadex.js +236 -228
- package/lib/module/providers/manga/mangadex.js.map +1 -1
- package/lib/module/providers/manga/mangahere.js +276 -132
- package/lib/module/providers/manga/mangahere.js.map +1 -1
- package/lib/module/providers/manga/mangakakalot.js +207 -107
- package/lib/module/providers/manga/mangakakalot.js.map +1 -1
- package/lib/module/providers/manga/mangapill.js +128 -39
- package/lib/module/providers/manga/mangapill.js.map +1 -1
- package/lib/module/providers/meta/anilist.js +41 -12
- package/lib/module/providers/meta/anilist.js.map +1 -1
- package/lib/module/utils/index.js +1 -0
- package/lib/module/utils/index.js.map +1 -1
- package/lib/module/utils/manga.js +54 -0
- package/lib/module/utils/manga.js.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +2 -2
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/models/types.d.ts +38 -5
- package/lib/typescript/commonjs/src/models/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts +14 -4
- package/lib/typescript/commonjs/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts +18 -3
- package/lib/typescript/commonjs/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts +22 -5
- package/lib/typescript/commonjs/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts +15 -3
- package/lib/typescript/commonjs/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts +26 -4
- package/lib/typescript/commonjs/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts +16 -2
- package/lib/typescript/commonjs/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/utils/manga.d.ts +19 -0
- package/lib/typescript/commonjs/src/utils/manga.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +2 -2
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/models/types.d.ts +38 -5
- package/lib/typescript/module/src/models/types.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts +14 -4
- package/lib/typescript/module/src/providers/manga/asurascans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts +18 -3
- package/lib/typescript/module/src/providers/manga/flamescans.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/index.d.ts +0 -14
- package/lib/typescript/module/src/providers/manga/index.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts +22 -5
- package/lib/typescript/module/src/providers/manga/mangadex.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts +15 -3
- package/lib/typescript/module/src/providers/manga/mangahere.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts +26 -4
- package/lib/typescript/module/src/providers/manga/mangakakalot.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts +16 -2
- package/lib/typescript/module/src/providers/manga/mangapill.d.ts.map +1 -1
- package/lib/typescript/module/src/providers/meta/anilist.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/index.d.ts +1 -0
- package/lib/typescript/module/src/utils/index.d.ts.map +1 -1
- package/lib/typescript/module/src/utils/manga.d.ts +19 -0
- package/lib/typescript/module/src/utils/manga.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/extension-registry.json.sig +1 -1
- package/src/index.tsx +6 -0
- package/src/models/types.ts +38 -3
- package/src/providers/manga/asurascans.ts +200 -135
- package/src/providers/manga/flamescans.ts +221 -118
- package/src/providers/manga/index.ts +0 -14
- package/src/providers/manga/mangadex.ts +335 -282
- package/src/providers/manga/mangahere.ts +309 -156
- package/src/providers/manga/mangakakalot.ts +249 -152
- package/src/providers/manga/mangapill.ts +163 -64
- package/src/providers/meta/anilist.ts +50 -14
- package/src/utils/index.ts +1 -0
- package/src/utils/manga.ts +58 -0
- package/lib/commonjs/providers/manga/brmangas.js +0 -110
- package/lib/commonjs/providers/manga/brmangas.js.map +0 -1
- package/lib/commonjs/providers/manga/comick.js +0 -154
- package/lib/commonjs/providers/manga/comick.js.map +0 -1
- package/lib/commonjs/providers/manga/mangahost.js +0 -113
- package/lib/commonjs/providers/manga/mangahost.js.map +0 -1
- package/lib/commonjs/providers/manga/mangapark.js +0 -97
- package/lib/commonjs/providers/manga/mangapark.js.map +0 -1
- package/lib/commonjs/providers/manga/mangareader.js +0 -106
- package/lib/commonjs/providers/manga/mangareader.js.map +0 -1
- package/lib/commonjs/providers/manga/mangasee123.js +0 -161
- package/lib/commonjs/providers/manga/mangasee123.js.map +0 -1
- package/lib/commonjs/providers/manga/readmanga.js +0 -269
- package/lib/commonjs/providers/manga/readmanga.js.map +0 -1
- package/lib/commonjs/providers/manga/vyvymanga.js +0 -166
- package/lib/commonjs/providers/manga/vyvymanga.js.map +0 -1
- package/lib/module/providers/manga/brmangas.js +0 -105
- package/lib/module/providers/manga/brmangas.js.map +0 -1
- package/lib/module/providers/manga/comick.js +0 -149
- package/lib/module/providers/manga/comick.js.map +0 -1
- package/lib/module/providers/manga/mangahost.js +0 -108
- package/lib/module/providers/manga/mangahost.js.map +0 -1
- package/lib/module/providers/manga/mangapark.js +0 -92
- package/lib/module/providers/manga/mangapark.js.map +0 -1
- package/lib/module/providers/manga/mangareader.js +0 -101
- package/lib/module/providers/manga/mangareader.js.map +0 -1
- package/lib/module/providers/manga/mangasee123.js +0 -156
- package/lib/module/providers/manga/mangasee123.js.map +0 -1
- package/lib/module/providers/manga/readmanga.js +0 -264
- package/lib/module/providers/manga/readmanga.js.map +0 -1
- package/lib/module/providers/manga/vyvymanga.js +0 -161
- package/lib/module/providers/manga/vyvymanga.js.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts +0 -18
- package/lib/typescript/commonjs/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts +0 -39
- package/lib/typescript/commonjs/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts +0 -18
- package/lib/typescript/commonjs/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts +0 -14
- package/lib/typescript/commonjs/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts +0 -18
- package/lib/typescript/commonjs/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts +0 -17
- package/lib/typescript/commonjs/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts +0 -31
- package/lib/typescript/commonjs/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts +0 -17
- package/lib/typescript/commonjs/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts +0 -18
- package/lib/typescript/module/src/providers/manga/brmangas.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/comick.d.ts +0 -39
- package/lib/typescript/module/src/providers/manga/comick.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts +0 -18
- package/lib/typescript/module/src/providers/manga/mangahost.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts +0 -14
- package/lib/typescript/module/src/providers/manga/mangapark.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts +0 -18
- package/lib/typescript/module/src/providers/manga/mangareader.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts +0 -17
- package/lib/typescript/module/src/providers/manga/mangasee123.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts +0 -31
- package/lib/typescript/module/src/providers/manga/readmanga.d.ts.map +0 -1
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts +0 -17
- package/lib/typescript/module/src/providers/manga/vyvymanga.d.ts.map +0 -1
- package/src/providers/manga/brmangas.ts +0 -148
- package/src/providers/manga/comick.ts +0 -285
- package/src/providers/manga/mangahost.ts +0 -134
- package/src/providers/manga/mangapark.ts +0 -115
- package/src/providers/manga/mangareader.ts +0 -132
- package/src/providers/manga/mangasee123.ts +0 -187
- package/src/providers/manga/readmanga.ts +0 -380
- package/src/providers/manga/vyvymanga.ts +0 -237
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b25a904d511520ca9612989cdc2662038eb972b949e55ba10b9955c16908fd57080989558a1ce1ff58aa8243f032d9e7c7378acbd2696152fa03123e86f83309
|
package/lib/commonjs/index.js
CHANGED
|
@@ -357,12 +357,30 @@ Object.defineProperty(exports, "isCompatibleEntry", {
|
|
|
357
357
|
return _index2.isCompatibleEntry;
|
|
358
358
|
}
|
|
359
359
|
});
|
|
360
|
+
Object.defineProperty(exports, "parseChapterNumber", {
|
|
361
|
+
enumerable: true,
|
|
362
|
+
get: function () {
|
|
363
|
+
return _index2.parseChapterNumber;
|
|
364
|
+
}
|
|
365
|
+
});
|
|
360
366
|
Object.defineProperty(exports, "parseSignedRegistry", {
|
|
361
367
|
enumerable: true,
|
|
362
368
|
get: function () {
|
|
363
369
|
return _index2.parseSignedRegistry;
|
|
364
370
|
}
|
|
365
371
|
});
|
|
372
|
+
Object.defineProperty(exports, "parseVolumeNumber", {
|
|
373
|
+
enumerable: true,
|
|
374
|
+
get: function () {
|
|
375
|
+
return _index2.parseVolumeNumber;
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
Object.defineProperty(exports, "sortChaptersForReading", {
|
|
379
|
+
enumerable: true,
|
|
380
|
+
get: function () {
|
|
381
|
+
return _index2.sortChaptersForReading;
|
|
382
|
+
}
|
|
383
|
+
});
|
|
366
384
|
Object.defineProperty(exports, "validateRegistry", {
|
|
367
385
|
enumerable: true,
|
|
368
386
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","_urlPolyfill","_index","_extensionRegistry","_interopRequireDefault","_index2","_index3","_index4","e","__esModule","default","globalThis","URL","PolyURL","URLSearchParams","PolyURLSearchParams"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["require","_urlPolyfill","_index","_extensionRegistry","_interopRequireDefault","_index2","_index3","_index4","e","__esModule","default","globalThis","URL","PolyURL","URLSearchParams","PolyURLSearchParams"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAcA,IAAAE,MAAA,GAAAF,OAAA;AAeA,IAAAG,kBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,OAAA,GAAAL,OAAA;AAqCA,IAAAM,OAAA,GAAAN,OAAA;AA4BA,IAAAO,OAAA,GAAAP,OAAA;AAuDkB,SAAAI,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArJlB;AACA,IAAI,OAAOG,UAAU,KAAK,WAAW,EAAE;EACrC;EACA,IAAI,CAACA,UAAU,CAACC,GAAG,EAAE;IAClBD,UAAU,CAASC,GAAG,GAAGC,gBAAO;EACnC;EACA;EACA,IAAI,CAACF,UAAU,CAACG,eAAe,EAAE;IAC9BH,UAAU,CAASG,eAAe,GAAGC,4BAAmB;EAC3D;AACF;AACA;;AAGA;;AAcA;;AAqCA;;AA4BA;;AA0DA;AACA;AACA;;AAEA;;AAeA;;AAGA;;AAGA;;AA4BA;;AAuCA;;AAUA","ignoreList":[]}
|
|
@@ -91,6 +91,12 @@ let SubOrDub = exports.SubOrDub = /*#__PURE__*/function (SubOrDub) {
|
|
|
91
91
|
SubOrDub["BOTH"] = "both";
|
|
92
92
|
return SubOrDub;
|
|
93
93
|
}({});
|
|
94
|
+
/**
|
|
95
|
+
* A manga search result. Sites describe titles differently, so most fields are optional; every
|
|
96
|
+
* provider fills the ones its site has, in the same shape (see docs/guides/manga.md).
|
|
97
|
+
*/
|
|
98
|
+
/** One chapter of a title. */
|
|
99
|
+
/** One page image of a chapter. */
|
|
94
100
|
/**
|
|
95
101
|
* The start, and the end of the intro or opening in seconds.
|
|
96
102
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["MediaFormat","exports","StreamingServers","MediaStatus","WatchListType","SubOrDub","TvType","Genres","Topics"],"sourceRoot":"../../../src","sources":["models/types.ts"],"mappings":";;;;;;AAUA;AACA;AACA;AACA;AACA;AAWA;AACA;AACA;AACA;AAUA;AAAA,IA0DYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0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AARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;
|
|
1
|
+
{"version":3,"names":["MediaFormat","exports","StreamingServers","MediaStatus","WatchListType","SubOrDub","TvType","Genres","Topics"],"sourceRoot":"../../../src","sources":["models/types.ts"],"mappings":";;;;;;AAUA;AACA;AACA;AACA;AACA;AAWA;AACA;AACA;AACA;AAUA;AAAA,IA0DYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAmFvB;AACA;AACA;AACA;AAaA;AAAA,IA2DYE,gBAAgB,GAAAD,OAAA,CAAAC,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAS1B;EATUA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA;AAAA,IAgChBC,WAAW,GAAAF,OAAA,CAAAE,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAAA,IASXC,aAAa,GAAAH,OAAA,CAAAG,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAAA,IASbC,QAAQ,GAAAJ,OAAA,CAAAI,QAAA,0BAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAARA,QAAQ;EAAA,OAARA,QAAQ;AAAA;AAMpB;AACA;AACA;AACA;AAqBA;AAoCA;AAyDA;AACA;AACA;AAgBA;AACA;AACA;AAFA,IAGYC,MAAM,GAAAL,OAAA,CAAAK,MAAA,0BAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAAA,OAANA,MAAM;AAAA;AAAA,IAyJNC,MAAM,GAAAN,OAAA,CAAAM,MAAA,0BAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAAA,OAANA,MAAM;AAAA;AAAA,IAqBNC,MAAM,GAAAP,OAAA,CAAAO,MAAA,0BAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAANA,MAAM;EAAA,OAANA,MAAM;AAAA","ignoreList":[]}
|
|
@@ -7,10 +7,21 @@ exports.AsuraScans = void 0;
|
|
|
7
7
|
var _cheerio = require("cheerio");
|
|
8
8
|
var _index = require("../../models/index.js");
|
|
9
9
|
var _createProviderContext = require("../../utils/create-provider-context.js");
|
|
10
|
+
var _manga = require("../../utils/manga.js");
|
|
11
|
+
/** The JSON API behind asurascans.com (the site's own pages call it). */
|
|
12
|
+
const API_URL = 'https://api.asurascans.com/api';
|
|
13
|
+
const PAGE_SIZE = 20;
|
|
14
|
+
|
|
15
|
+
/** A series as the API lists it (search, browse and series detail). */
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* AsuraScans (asurascans.com, formerly asuracomic.net). Ids are the site's series slug
|
|
19
|
+
* (`omniscient-readers-viewpoint`) and `<slug>/chapter/<number>` for chapters.
|
|
20
|
+
*/
|
|
10
21
|
class AsuraScans extends _index.MangaParser {
|
|
11
22
|
name = 'AsuraScans';
|
|
12
|
-
baseUrl = 'https://
|
|
13
|
-
logo = 'https://
|
|
23
|
+
baseUrl = 'https://asurascans.com';
|
|
24
|
+
logo = 'https://asurascans.com/images/logo.webp';
|
|
14
25
|
classPath = 'MANGA.AsuraScans';
|
|
15
26
|
|
|
16
27
|
/** @param ctx provider context; requests go through its axios (default: `createProviderContext()`) */
|
|
@@ -18,113 +29,166 @@ class AsuraScans extends _index.MangaParser {
|
|
|
18
29
|
super();
|
|
19
30
|
this.ctx = ctx;
|
|
20
31
|
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @param query Search query
|
|
35
|
+
* @param page Page number (default: 1), 20 results per page
|
|
36
|
+
*/
|
|
37
|
+
search = async (query, page = 1) => {
|
|
38
|
+
const currentPage = Math.max(1, Math.floor(page) || 1);
|
|
39
|
+
const offset = (currentPage - 1) * PAGE_SIZE;
|
|
40
|
+
const {
|
|
41
|
+
data,
|
|
42
|
+
meta
|
|
43
|
+
} = await this.api(`/series?search=${encodeURIComponent(query)}&limit=${PAGE_SIZE}&offset=${offset}`);
|
|
44
|
+
const results = (data ?? []).map(series => this.toResult(series));
|
|
45
|
+
return {
|
|
46
|
+
currentPage,
|
|
47
|
+
hasNextPage: meta?.has_more ?? (typeof meta?.total === 'number' && offset + results.length < meta.total),
|
|
48
|
+
results
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @param mangaId series slug from `search` (`series/<slug>-<hash>` ids from asuracomic.net work too) */
|
|
21
53
|
fetchMangaInfo = async mangaId => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
updatedOn: dom.find('.grid.grid-cols-1.gap-5.mt-8 > div:nth-child(5) > h3:nth-child(2)').text().trim(),
|
|
39
|
-
genres: dom.find('.space-y-1.pt-4 > div > button').map((index, ele) => $(ele).text().trim()).get(),
|
|
40
|
-
recommendations: dom.find('.grid.grid-cols-2.gap-3.p-4 > a').map((index, ele) => {
|
|
41
|
-
return {
|
|
42
|
-
id: $(ele).attr('href'),
|
|
43
|
-
title: $(ele).find('div > h2.font-bold').text().trim(),
|
|
44
|
-
image: $(ele).find('div > div > img').attr('src'),
|
|
45
|
-
latestChapter: $(ele).find('div > h2:nth-child(3)').text().trim(),
|
|
46
|
-
status: this.determineMediaState($(ele).find('div > div:nth-child(1) > span').text().trim()),
|
|
47
|
-
rating: $(ele).find('div > div.block > span > label').text().trim()
|
|
48
|
-
};
|
|
49
|
-
}).get()
|
|
54
|
+
const slug = encodeURIComponent(mangaId.replace(/^\/?(?:series|comics)\//, '').replace(/\/+$/, ''));
|
|
55
|
+
const [detail, list] = await Promise.all([this.api(`/series/${slug}`), this.api(`/series/${slug}/chapters`)]);
|
|
56
|
+
// A 200 without the JSON the API normally sends (a challenge or error page) has no series.
|
|
57
|
+
const series = detail?.series;
|
|
58
|
+
if (!series?.slug) throw new Error(`AsuraScans: the API sent no series for "${mangaId}"`);
|
|
59
|
+
const seriesUrl = this.absolute(series.public_url);
|
|
60
|
+
const genres = (series.genres ?? []).map(genre => genre.name?.trim()).filter(Boolean);
|
|
61
|
+
const authors = names(series.author);
|
|
62
|
+
const artists = names(series.artist);
|
|
63
|
+
|
|
64
|
+
// The API lists newest first; early-access chapters can't be read until they unlock.
|
|
65
|
+
const chapters = (list?.data ?? []).filter(chapter => Number.isFinite(chapter.number) && !isLocked(chapter)).reverse().map(chapter => {
|
|
66
|
+
const result = {
|
|
67
|
+
id: `${series.slug}/chapter/${chapter.number}`,
|
|
68
|
+
title: chapter.title?.replace(/\s+/g, ' ').trim() || `Chapter ${chapter.number}`,
|
|
69
|
+
chapterNumber: chapter.number
|
|
50
70
|
};
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
throw new Error(err.message);
|
|
65
|
-
}
|
|
71
|
+
const releaseDate = isoDate(chapter.published_at);
|
|
72
|
+
if (releaseDate) result.releaseDate = releaseDate;
|
|
73
|
+
if (seriesUrl) result.url = `${seriesUrl}/chapter/${chapter.number}`;
|
|
74
|
+
return result;
|
|
75
|
+
});
|
|
76
|
+
const info = this.toResult(series);
|
|
77
|
+
if (genres.length > 0) info.genres = genres;
|
|
78
|
+
if (authors) info.authors = authors;
|
|
79
|
+
if (artists) info.artists = artists;
|
|
80
|
+
const recommendations = (detail.recommended_series ?? []).map(item => this.toResult(item));
|
|
81
|
+
if (recommendations.length > 0) info.recommendations = recommendations;
|
|
82
|
+
info.chapters = (0, _manga.sortChaptersForReading)(chapters);
|
|
83
|
+
return info;
|
|
66
84
|
};
|
|
85
|
+
|
|
86
|
+
/** @param chapterId chapter id from `fetchMangaInfo` (`<slug>/chapter/<number>`) */
|
|
67
87
|
fetchChapterPages = async chapterId => {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}));
|
|
79
|
-
} catch (err) {
|
|
80
|
-
throw new Error(err.message);
|
|
88
|
+
const match = /^\/?(?:(?:series|comics)\/)?([^/]+)\/chapters?\/([^/?#]+)\/?$/.exec(chapterId);
|
|
89
|
+
if (!match) throw new Error(`AsuraScans: invalid chapter id "${chapterId}"`);
|
|
90
|
+
const [, slug, number] = match;
|
|
91
|
+
const read = await this.api(`/series/${encodeURIComponent(slug)}/chapters/${encodeURIComponent(number)}`);
|
|
92
|
+
const data = read?.data;
|
|
93
|
+
if (!data) throw new Error(`AsuraScans: the API sent no chapter for "${chapterId}"`);
|
|
94
|
+
if (data.access_gate) throw new Error(`AsuraScans: chapter needs ${data.access_gate} on the site`);
|
|
95
|
+
if (data.is_locked) {
|
|
96
|
+
const until = data.unlock_time ? ` until ${data.unlock_time}` : '';
|
|
97
|
+
throw new Error(`AsuraScans: chapter is in early access${until}`);
|
|
81
98
|
}
|
|
99
|
+
const pages = (data.chapter?.pages ?? []).filter(page => page?.url);
|
|
100
|
+
if (pages.length === 0) throw new Error('AsuraScans: chapter has no pages');
|
|
101
|
+
return pages.map((page, index) => ({
|
|
102
|
+
page: index + 1,
|
|
103
|
+
img: this.absolute(page.url)
|
|
104
|
+
}));
|
|
82
105
|
};
|
|
83
106
|
|
|
84
|
-
/**
|
|
85
|
-
|
|
86
|
-
* @param query Search query
|
|
87
|
-
*/
|
|
88
|
-
search = async (query, page = 1) => {
|
|
107
|
+
/** GET a path of the JSON API; failures carry the API's own error message. */
|
|
108
|
+
async api(path) {
|
|
89
109
|
try {
|
|
90
|
-
const formattedQuery = encodeURI(query.toLowerCase());
|
|
91
110
|
const {
|
|
92
111
|
data
|
|
93
|
-
} = await this.ctx.axios.get(`${
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
title: $(ele).find('div > div > div:nth-child(2) > span:nth-child(1)').text().trim(),
|
|
100
|
-
image: $(ele).find('div > div > div:nth-child(1) > img').attr('src'),
|
|
101
|
-
status: this.determineMediaState($(ele).find('div > div > div:nth-child(1) > span').text().trim()),
|
|
102
|
-
latestChapter: $(ele).find('div > div > div:nth-child(2) > span:nth-child(2)').text().trim(),
|
|
103
|
-
rating: $(ele).find('div > div > div:nth-child(2) > span:nth-child(3) > label').text().trim()
|
|
104
|
-
};
|
|
105
|
-
}).get();
|
|
106
|
-
const searchResults = {
|
|
107
|
-
currentPage: page,
|
|
108
|
-
hasNextPage: dom.find('.flex.items-center.justify-center > a').attr('style').split('pointer-events:')[1].slice(1, -1) === 'auto' ? true : false,
|
|
109
|
-
results: results
|
|
110
|
-
};
|
|
111
|
-
return searchResults;
|
|
112
|
+
} = await this.ctx.axios.get(`${API_URL}${path}`, {
|
|
113
|
+
headers: {
|
|
114
|
+
Accept: 'application/json'
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return data;
|
|
112
118
|
} catch (err) {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
determineMediaState(state) {
|
|
117
|
-
switch (state.toLowerCase().trim()) {
|
|
118
|
-
case 'completed':
|
|
119
|
-
return _index.MediaStatus.COMPLETED;
|
|
120
|
-
case 'ongoing':
|
|
121
|
-
return _index.MediaStatus.ONGOING;
|
|
122
|
-
case 'dropped':
|
|
123
|
-
return _index.MediaStatus.CANCELLED;
|
|
124
|
-
default:
|
|
125
|
-
return _index.MediaStatus.UNKNOWN;
|
|
119
|
+
const response = err.response;
|
|
120
|
+
const reason = typeof response?.data?.error === 'string' ? response.data.error : err.message;
|
|
121
|
+
throw new Error(`AsuraScans: ${reason}${response?.status ? ` (${response.status})` : ''}`);
|
|
126
122
|
}
|
|
127
123
|
}
|
|
124
|
+
|
|
125
|
+
/** The fields search, info and recommendations share. */
|
|
126
|
+
toResult(series) {
|
|
127
|
+
const result = {
|
|
128
|
+
id: series.slug,
|
|
129
|
+
title: series.title.trim()
|
|
130
|
+
};
|
|
131
|
+
const altTitles = (series.alt_titles ?? []).map(title => title?.trim()).filter(Boolean);
|
|
132
|
+
if (altTitles.length > 0) result.altTitles = altTitles;
|
|
133
|
+
const image = this.absolute(series.cover ?? series.cover_url);
|
|
134
|
+
if (image) result.image = image;
|
|
135
|
+
const url = this.absolute(series.public_url);
|
|
136
|
+
if (url) result.url = url;
|
|
137
|
+
const description = plainText(series.description);
|
|
138
|
+
if (description) result.description = description;
|
|
139
|
+
const status = mediaStatus(series.status);
|
|
140
|
+
if (status) result.status = status;
|
|
141
|
+
// Site extras: manga / manhwa / manhua, the 0-10 user rating, the newest chapter's number.
|
|
142
|
+
if (series.type) result.type = series.type;
|
|
143
|
+
if (series.rating) result.rating = Math.round(series.rating * 100) / 100;
|
|
144
|
+
const latestChapter = series.latest_chapters?.[0]?.number;
|
|
145
|
+
if (typeof latestChapter === 'number') result.latestChapter = latestChapter;
|
|
146
|
+
return result;
|
|
147
|
+
}
|
|
148
|
+
absolute(url) {
|
|
149
|
+
if (!url) return undefined;
|
|
150
|
+
if (url.startsWith('//')) return `https:${url}`;
|
|
151
|
+
return url.startsWith('/') ? `${this.baseUrl}${url}` : url;
|
|
152
|
+
}
|
|
128
153
|
}
|
|
154
|
+
|
|
155
|
+
/** Early-access chapters stay locked until `early_access_until`, as the site's chapter list shows. */
|
|
129
156
|
exports.AsuraScans = AsuraScans;
|
|
157
|
+
const isLocked = chapter => chapter.early_access_until ? Date.parse(chapter.early_access_until) > Date.now() : chapter.is_premium === true;
|
|
158
|
+
const mediaStatus = status => {
|
|
159
|
+
switch (status?.toLowerCase().trim()) {
|
|
160
|
+
case 'ongoing':
|
|
161
|
+
return _index.MediaStatus.ONGOING;
|
|
162
|
+
case 'completed':
|
|
163
|
+
return _index.MediaStatus.COMPLETED;
|
|
164
|
+
case 'hiatus':
|
|
165
|
+
return _index.MediaStatus.HIATUS;
|
|
166
|
+
case 'dropped':
|
|
167
|
+
case 'axed':
|
|
168
|
+
return _index.MediaStatus.CANCELLED;
|
|
169
|
+
default:
|
|
170
|
+
return undefined;
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/** `Ahn Soseol/ Sunghyun` or `Fit, Geonjin` → separate names; undefined when there are none. */
|
|
175
|
+
const names = value => {
|
|
176
|
+
const list = (value ?? '').split(/[/,]/).map(name => name.trim()).filter(Boolean);
|
|
177
|
+
return list.length > 0 ? list : undefined;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
/** The API's ISO timestamps, normalized; its zero date (`0001-01-01`) means none. */
|
|
181
|
+
const isoDate = value => {
|
|
182
|
+
if (!value || value.startsWith('0001-')) return undefined;
|
|
183
|
+
const time = Date.parse(value);
|
|
184
|
+
return Number.isNaN(time) ? value : new Date(time).toISOString();
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/** The API's HTML synopsis as plain text, one paragraph per line. */
|
|
188
|
+
const plainText = html => {
|
|
189
|
+
if (!html) return undefined;
|
|
190
|
+
const $ = (0, _cheerio.load)(html.replace(/<br\s*\/?>/gi, '\n').replace(/<\/p>/gi, '\n'));
|
|
191
|
+
const text = $.root().text().split('\n').map(line => line.replace(/\s+/g, ' ').trim()).filter(Boolean).join('\n');
|
|
192
|
+
return text || undefined;
|
|
193
|
+
};
|
|
130
194
|
//# sourceMappingURL=asurascans.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_cheerio","require","_index","_createProviderContext","AsuraScans","MangaParser","name","baseUrl","logo","classPath","constructor","ctx","createProviderContext","
|
|
1
|
+
{"version":3,"names":["_cheerio","require","_index","_createProviderContext","_manga","API_URL","PAGE_SIZE","AsuraScans","MangaParser","name","baseUrl","logo","classPath","constructor","ctx","createProviderContext","search","query","page","currentPage","Math","max","floor","offset","data","meta","api","encodeURIComponent","results","map","series","toResult","hasNextPage","has_more","total","length","fetchMangaInfo","mangaId","slug","replace","detail","list","Promise","all","Error","seriesUrl","absolute","public_url","genres","genre","trim","filter","Boolean","authors","names","author","artists","artist","chapters","chapter","Number","isFinite","number","isLocked","reverse","result","id","title","chapterNumber","releaseDate","isoDate","published_at","url","info","recommendations","recommended_series","item","sortChaptersForReading","fetchChapterPages","chapterId","match","exec","read","access_gate","is_locked","until","unlock_time","pages","index","img","path","axios","get","headers","Accept","err","response","reason","error","message","status","altTitles","alt_titles","image","cover","cover_url","description","plainText","mediaStatus","type","rating","round","latestChapter","latest_chapters","undefined","startsWith","exports","early_access_until","Date","parse","now","is_premium","toLowerCase","MediaStatus","ONGOING","COMPLETED","HIATUS","CANCELLED","value","split","time","isNaN","toISOString","html","$","load","text","root","line","join"],"sourceRoot":"../../../../src","sources":["providers/manga/asurascans.ts"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAUA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAEA;AACA,MAAMI,OAAO,GAAG,gCAAgC;AAChD,MAAMC,SAAS,GAAG,EAAE;;AAEpB;;AAiCA;AACA;AACA;AACA;AACO,MAAMC,UAAU,SAASC,kBAAW,CAAC;EACxBC,IAAI,GAAG,YAAY;EAClBC,OAAO,GAAG,wBAAwB;EAClCC,IAAI,GAAG,yCAAyC;EAChDC,SAAS,GAAG,kBAAkB;;EAEjD;EACAC,WAAWA,CAAkBC,GAAoB,GAAG,IAAAC,4CAAqB,EAAC,CAAC,EAAE;IAC3E,KAAK,CAAC,CAAC;IAAC,KADmBD,GAAoB,GAApBA,GAAoB;EAEjD;;EAEA;AACF;AACA;AACA;EACWE,MAAM,GAAG,MAAAA,CAAOC,KAAa,EAAEC,IAAY,GAAG,CAAC,KAAqC;IAC3F,MAAMC,WAAW,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,KAAK,CAACJ,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,MAAMK,MAAM,GAAG,CAACJ,WAAW,GAAG,CAAC,IAAIb,SAAS;IAC5C,MAAM;MAAEkB,IAAI;MAAEC;IAAK,CAAC,GAAG,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