Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kaguya-anime/parsers

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kaguya-anime/parsers - npm Package Compare versions

Comparing version 1.14.6 to 1.14.7

2

build/core/Monitor.js

@@ -38,3 +38,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

catch (err) {
console.log('Monitor error');
console.error('Monitor error', err);
}

@@ -41,0 +41,0 @@ });

@@ -6,3 +6,3 @@ import AnimeScraper, { GetServersQuery, GetSourcesQuery, VideoSource } from '../../core/AnimeScraper';

constructor();
shouldMonitorChange(oldPage: string, newPage: string): boolean;
shouldMonitorChange(): boolean;
scrapeAnimePage(page: number): Promise<SourceAnime[]>;

@@ -9,0 +9,0 @@ scrapeAnime(sourceId: string): Promise<SourceAnime>;

@@ -12,17 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });

super('a47', 'A47', { baseURL: 'https://anime47.com' });
this.monitor.onRequest = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
const { data } = yield this.client.get('/danh-sach/phim-moi/1.html');
return data;
});
this.monitor.isRequestDisabled = true;
this.locales = ['vi'];
}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const selector = '.movie-item:first-child';
const $old = (0, cheerio_1.load)(oldPage);
const $new = (0, cheerio_1.load)(newPage);
const oldTitle = $old(selector).find('.movie-title-1').text().trim();
const newTitle = $new(selector).find('.movie-title-1').text().trim();
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -29,0 +19,0 @@ scrapeAnimePage(page) {

@@ -6,3 +6,3 @@ import AnimeScraper, { GetSourcesQuery } from '../../core/AnimeScraper';

constructor();
shouldMonitorChange(oldPage: string, newPage: string): boolean;
shouldMonitorChange(): boolean;
scrapeAnimePage(page: number): Promise<SourceAnime[]>;

@@ -9,0 +9,0 @@ scrapeAnime(sourceId: string): Promise<SourceAnime>;

@@ -9,13 +9,7 @@ Object.defineProperty(exports, "__esModule", { value: true });

super('af', 'AF', { baseURL: 'https://animefull2.org' });
this.monitor.isRequestDisabled = true;
this.locales = ['vi'];
}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const selector = '.film-item:first-child';
const $old = (0, cheerio_1.load)(oldPage);
const $new = (0, cheerio_1.load)(newPage);
const oldTitle = $old(selector).find('.title .name').text().trim();
const newTitle = $new(selector).find('.title .name').text().trim();
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -22,0 +16,0 @@ scrapeAnimePage(page) {

@@ -6,3 +6,3 @@ import AnimeScraper, { AnimeServer, AnimeSource, GetServersQuery, GetSourcesQuery, VideoSource } from '../../core/AnimeScraper';

constructor();
shouldMonitorChange(oldPage: string, newPage: string): boolean;
shouldMonitorChange(): boolean;
scrapeAnimePage(page: number): Promise<SourceAnime[]>;

@@ -9,0 +9,0 @@ scrapeAnime(sourceId: string): Promise<SourceAnime>;

@@ -10,13 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });

super('ah', 'AH', { baseURL: 'https://animehay.fan' });
this.monitor.isRequestDisabled = true;
this.locales = ['vi'];
}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const selector = '.movie-item:first-child';
const $old = (0, cheerio_1.load)(oldPage);
const $new = (0, cheerio_1.load)(newPage);
const oldTitle = $old(selector).find('.name-movie').text().trim();
const newTitle = $new(selector).find('.name-movie').text().trim();
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -23,0 +17,0 @@ scrapeAnimePage(page) {

@@ -8,3 +8,3 @@ import { AxiosInstance } from 'axios';

constructor();
shouldMonitorChange(oldPage: string, newPage: string): boolean;
shouldMonitorChange(): boolean;
scrapeAnimePage(page: number): Promise<SourceAnime[]>;

@@ -11,0 +11,0 @@ scrapeAnime(animeId: string): Promise<SourceAnime>;

@@ -12,13 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });

super('at', 'AT', { baseURL: BASE_URL });
this.monitor.isRequestDisabled = true;
this.locales = ['vi'];
}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const selector = 'main .MovieList .TPostMv:first-child';
const $old = (0, cheerio_1.load)(oldPage);
const $new = (0, cheerio_1.load)(newPage);
const oldTitle = $old(selector).find('h2.Title').text().trim();
const newTitle = $new(selector).find('h2.Title').text().trim();
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -25,0 +19,0 @@ scrapeAnimePage(page) {

@@ -5,3 +5,3 @@ import AnimeScraper, { AnimeSource, GetSourcesQuery } from '../../core/AnimeScraper';

constructor();
shouldMonitorChange(oldPage: string, newPage: string): boolean;
shouldMonitorChange(): boolean;
scrapeAnimePage(page: number): Promise<SourceAnime[]>;

@@ -8,0 +8,0 @@ getEpisodes(sourceSlug: string, sourceId?: string): Promise<SourceEpisode[]>;

@@ -14,17 +14,6 @@ Object.defineProperty(exports, "__esModule", { value: true });

this.locales = ['en'];
this.monitor.onRequest = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
const { data } = yield axios_1.default.get(`${BASE_AJAX_URL}/page-recent-release.html?page=1&type=1`);
return data;
});
this.monitor.isRequestDisabled = true;
}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const selector = '.items li:first-child';
const nameSelector = '.name';
const $old = (0, cheerio_1.load)(oldPage);
const $new = (0, cheerio_1.load)(newPage);
const oldTitle = $old(selector).find(nameSelector).text().trim();
const newTitle = $new(selector).find(nameSelector).text().trim();
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -31,0 +20,0 @@ scrapeAnimePage(page) {

@@ -5,3 +5,3 @@ import AnimeScraper, { AnimeServer, GetServersQuery, GetSourcesQuery, VideoSource } from '../../core/AnimeScraper';

constructor();
shouldMonitorChange(oldPage: string, newPage: string): boolean;
shouldMonitorChange(): boolean;
scrapeAnimePage(page: number): Promise<SourceAnime[]>;

@@ -8,0 +8,0 @@ scrapeAnime(sourceId: string): Promise<SourceAnime>;

@@ -19,11 +19,4 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const selector = '.film_item:first-child .title';
const $old = (0, cheerio_1.load)(oldPage);
const $new = (0, cheerio_1.load)(newPage);
const oldTitle = $old(selector).text().trim();
const newTitle = $new(selector).text().trim();
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -30,0 +23,0 @@ scrapeAnimePage(page) {

@@ -1,2 +0,1 @@

import { IAnimeResult, ISearch } from '@consumet/extensions';
import AnimeScraper, { AnimeSource, GetSourcesQuery } from '../../core/AnimeScraper';

@@ -6,3 +5,3 @@ import { SourceAnime } from '../../types/data';

constructor();
shouldMonitorChange(oldPage: ISearch<IAnimeResult>, newPage: ISearch<IAnimeResult>): boolean;
shouldMonitorChange(): boolean;
scrapeAnimePage(page: number): Promise<SourceAnime[]>;

@@ -9,0 +8,0 @@ scrapeAnime(sourceId: string): Promise<SourceAnime>;

@@ -13,12 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });

this.locales = ['en'];
this.monitor.onRequest = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
const data = yield parser.fetchRecentEpisodes(1);
return data;
});
this.monitor.isRequestDisabled = true;
}
shouldMonitorChange(oldPage, newPage) {
var _a, _b, _c, _d;
const oldTitle = (_b = (_a = oldPage === null || oldPage === void 0 ? void 0 : oldPage.results) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.title;
const newTitle = (_d = (_c = newPage === null || newPage === void 0 ? void 0 : newPage.results) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.title;
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -25,0 +19,0 @@ scrapeAnimePage(page) {

@@ -5,3 +5,3 @@ import MangaScraper, { GetImagesQuery, ImageSource } from '../../core/MangaScraper';

constructor();
shouldMonitorChange(oldPage: any, newPage: any): boolean;
shouldMonitorChange(): boolean;
scrapeMangaPage(page: number): Promise<SourceManga[]>;

@@ -8,0 +8,0 @@ scrapeManga(sourceId: string): Promise<SourceManga>;

@@ -10,13 +10,7 @@ Object.defineProperty(exports, "__esModule", { value: true });

super('gtth', 'GTTH', { baseURL: BASE_URL });
this.monitor.onRequest = () => tslib_1.__awaiter(this, void 0, void 0, function* () {
const { data } = yield this.client.get('/api/comic/search/recent?p=0');
return data;
});
this.monitor.isRequestDisabled = true;
this.locales = ['vi'];
}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const oldFirstItem = oldPage.result.data[0];
const newFirstItem = newPage.result.data[0];
return oldFirstItem.nameEn !== newFirstItem.nameEn;
shouldMonitorChange() {
return true;
}

@@ -23,0 +17,0 @@ scrapeMangaPage(page) {

@@ -5,3 +5,3 @@ import MangaScraper, { GetImagesQuery, ImageSource } from '../../core/MangaScraper';

constructor();
shouldMonitorChange(oldPage: string, newPage: string): boolean;
shouldMonitorChange(): boolean;
scrapeMangaPage(page: number): Promise<SourceManga[]>;

@@ -8,0 +8,0 @@ scrapeManga(sourceId: string): Promise<SourceManga>;

@@ -23,11 +23,4 @@ Object.defineProperty(exports, "__esModule", { value: true });

}
shouldMonitorChange(oldPage, newPage) {
if (!oldPage || !newPage)
return false;
const selector = '.items .item:first-child';
const $old = (0, cheerio_1.load)(oldPage);
const $new = (0, cheerio_1.load)(newPage);
const oldTitle = $old(selector).find('h3').text().trim();
const newTitle = $new(selector).find('h3').text().trim();
return oldTitle !== newTitle;
shouldMonitorChange() {
return true;
}

@@ -34,0 +27,0 @@ scrapeMangaPage(page) {

{
"name": "@kaguya-anime/parsers",
"version": "1.14.6",
"version": "1.14.7",
"main": "build/index.js",

@@ -43,3 +43,3 @@ "license": "MIT",

},
"gitHead": "6bf6e022c9298f712378020426c60aebad72f135"
"gitHead": "e6aa760ef862641d0b24dbb3444839110380feed"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc