node-csfd-api-racintom 1.6.0 → 1.7.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/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { MovieScraper } from './services/movie.service';
|
|
|
7
7
|
import { SearchScraper } from './services/search.service';
|
|
8
8
|
import { UserRatingsScraper } from './services/user-ratings.service';
|
|
9
9
|
import { SeasonScraper } from './services/season.service';
|
|
10
|
-
import {
|
|
10
|
+
import { CSFDSeason } from './interfaces/season.interface';
|
|
11
11
|
export declare class Csfd {
|
|
12
12
|
private userRatingsService;
|
|
13
13
|
private movieService;
|
|
@@ -19,6 +19,6 @@ export declare class Csfd {
|
|
|
19
19
|
movie(movie: number): Promise<CSFDMovie>;
|
|
20
20
|
creator(creator: number): Promise<CSFDCreator>;
|
|
21
21
|
search(text: string): Promise<CSFDSearch>;
|
|
22
|
-
seasonDetails(url: string): Promise<
|
|
22
|
+
seasonDetails(url: string): Promise<CSFDSeason>;
|
|
23
23
|
}
|
|
24
24
|
export declare const csfd: Csfd;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type CSFDSeason = {
|
|
2
2
|
description: string;
|
|
3
3
|
thumbnail: string;
|
|
4
|
-
episodeList:
|
|
4
|
+
episodeList: CSFDEpisodeInfo[];
|
|
5
5
|
origin: string;
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
7
|
+
export type CSFDEpisodeInfo = {
|
|
8
8
|
name: string;
|
|
9
9
|
seasonEpisodeIdentifier: string;
|
|
10
10
|
linkToDetail: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-csfd-api-racintom",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "ČSFD API in JavaScript. Amazing NPM library for scrapping csfd.cz :)",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"author": "sergeras@seznam.cz",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"lint": "eslint ./src/**/**/* --fix",
|
|
15
15
|
"test": "vitest",
|
|
16
16
|
"test:coverage": "yarn test run --coverage",
|
|
17
|
-
"publish:next": "yarn && yarn build && yarn test:coverage && cd dist &&
|
|
17
|
+
"publish:next": "yarn && yarn build && yarn test:coverage && cd dist && npm publish",
|
|
18
18
|
"postversion": "git push && git push --follow-tags",
|
|
19
19
|
"release:beta": "npm version preminor --preid=beta -m \"chore(update): prelease %s β\"",
|
|
20
20
|
"prerelease:beta": "npm version prerelease --preid=beta -m \"chore(update): prelease %s β\"",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSFDSeason } from '../interfaces/season.interface';
|
|
2
2
|
export declare class SeasonScraper {
|
|
3
|
-
season(url: string): Promise<
|
|
3
|
+
season(url: string): Promise<CSFDSeason>;
|
|
4
4
|
private buildSeason;
|
|
5
5
|
private getOriginFromHtml;
|
|
6
6
|
private getDescriptionFromHtml;
|