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

@untidy/thetvdb

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@untidy/thetvdb - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

9

dist/extended.d.ts

@@ -41,2 +41,6 @@ import { Base } from './core.js';

}
interface Shared {
id: number;
name: string;
}
type GetContentRatings = Data<ContentRating[]>;

@@ -47,6 +51,3 @@ type GetCountries = Data<Country[]>;

type GetUpdates = DataLink<Update[] | null[]>;
type GetArtworkStatuses = Data<Array<{
id: number;
name: string;
}>>;
type GetArtworkStatuses = Data<Shared[]>;
type GetArtworkTypes = Data<ArtworkType[]>;

@@ -53,0 +54,0 @@ export declare class TheTVDBExtended extends Base {

@@ -8,2 +8,27 @@ import { Base } from './core.js';

}
interface AwardCategory {
id: number;
name: string;
allowCoNominees: boolean;
forSeries: boolean;
forMovies: boolean;
award: AwardsHelper;
}
interface AwardExtended extends AwardsHelper {
categories: AwardCategory[];
}
interface AwardCategoryExtended extends AwardCategory {
nominees: Array<{
character: Character;
details: string;
episode: Episode;
id: number;
isWinner: boolean;
movie: Movie;
series: Serie;
year: string;
category: string;
name: string;
}>;
}
type NameImageYear = Record<'name' | 'image' | 'year', string>;

@@ -334,2 +359,7 @@ interface RemoteId {

type GetArtwork<O extends ArtworkOptions> = O['extended'] extends true ? Data<ArtworkExtended> : Data<Artwork>;
type GetAwards = Data<AwardsHelper[]>;
type GetAwardsById = Data<AwardsHelper>;
type GetAwardsByIdExtended = Data<AwardExtended>;
type GetAwardsCategoriesById = Data<AwardCategory>;
type GetAwardsCategoriesByIdExtended = Data<AwardCategoryExtended>;
type GetCharacter = Data<Character>;

@@ -346,2 +376,7 @@ type GetFilteredMovie = DataLink<Movie[]>;

getArtwork<O extends ArtworkOptions>(options: O): Promise<GetArtwork<O>>;
getAwards(): Promise<GetAwards>;
getAwardsById(id: string): Promise<GetAwardsById>;
getAwardsByIdExtended(id: string): Promise<GetAwardsByIdExtended>;
getAwardsCategoriesById(id: string): Promise<GetAwardsCategoriesById>;
getAwardsCategoriesByIdExtended(id: string): Promise<GetAwardsCategoriesByIdExtended>;
getCharacter(id: string): Promise<GetCharacter>;

@@ -348,0 +383,0 @@ getFilteredMovie(options: FilterOptions): Promise<GetFilteredMovie>;

@@ -10,2 +10,26 @@ import { Base } from './core.js';

}
async getAwards() {
const endpoint = this.api + '/v4/awards';
return await this.fetcher(endpoint);
}
async getAwardsById(id) {
this.validateInput(id, 'Required id');
const endpoint = `${this.api}/v4/awards/${id}`;
return await this.fetcher(endpoint);
}
async getAwardsByIdExtended(id) {
this.validateInput(id, 'Required id');
const endpoint = `${this.api}/v4/awards/${id}/extended`;
return await this.fetcher(endpoint);
}
async getAwardsCategoriesById(id) {
this.validateInput(id, 'Required id');
const endpoint = `${this.api}/v4/awards/categories/${id}`;
return await this.fetcher(endpoint);
}
async getAwardsCategoriesByIdExtended(id) {
this.validateInput(id, 'Required id');
const endpoint = `${this.api}/v4/awards/categories/${id}/extended`;
return await this.fetcher(endpoint);
}
async getCharacter(id) {

@@ -12,0 +36,0 @@ this.validateInput(id, 'Required character id');

{
"name": "@untidy/thetvdb",
"description": "fully-typed client for accessing the TheTVDB API V4 for Node.js",
"version": "0.2.0",
"version": "0.3.0",
"type": "module",

@@ -29,3 +29,3 @@ "exports": {

"@changesets/cli": "^2.26.2",
"@swc/core": "^1.3.71",
"@swc/core": "^1.3.72",
"@swc/jest": "^0.2.27",

@@ -37,10 +37,10 @@ "@types/jest": "^29.5.3",

"dotenv": "^16.3.1",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-promise": "^6.1.1",
"jest": "^29.6.1",
"jest": "^29.6.2",
"msw": "^1.2.3",

@@ -76,6 +76,6 @@ "prettier": "^3.0.0",

"release": "pnpm run build && changeset publish",
"docs:dev": "vitepress dev web",
"docs:build": "vitepress build web",
"docs:preview": "vitepress preview web"
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
}
}
# @untidy/thetvdb
![thetvdb logo](https://github.com/falsepopsky/thetvdb/blob/main/docs/public/favicon.png)
## :information_source: About

@@ -4,0 +6,0 @@

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