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

tmdb-ts

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tmdb-ts - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

dist/types/account.d.ts

2

dist/api.js

@@ -21,3 +21,3 @@ "use strict";

});
return await response.json();
return (await response.json());
}

@@ -24,0 +24,0 @@ }

import { BaseEndpoint } from './base';
import { AccountDetails } from '../types/account';
export declare class AccountEndpoint extends BaseEndpoint {
constructor(accessToken: string);
details(): Promise<any>;
details(): Promise<AccountDetails>;
}

@@ -23,5 +23,5 @@ import { BaseEndpoint } from './base';

/**
* Powered by JustWatch
* @param id
*/
* Powered by JustWatch
* @param id
*/
watchProviders(id: number): Promise<WatchProviders>;

@@ -28,0 +28,0 @@ latest(): Promise<LatestTvShows>;

@@ -65,5 +65,5 @@ "use strict";

/**
* Powered by JustWatch
* @param id
*/
* Powered by JustWatch
* @param id
*/
async watchProviders(id) {

@@ -70,0 +70,0 @@ return await this.api.get(`${BASE_TV}/${id}/watch/providers`);

@@ -123,3 +123,3 @@ export * from './options';

adult: boolean;
backdrop_path?: any;
backdrop_path?: string;
genre_ids: number[];

@@ -131,3 +131,3 @@ id: number;

release_date: string;
poster_path?: any;
poster_path?: string;
popularity: number;

@@ -134,0 +134,0 @@ title: string;

import { Genre, Movie, ProductionCompany, ProductionCountry, SpokenLanguage } from './';
export interface BelongsToCollection {
id: number;
name: string;
poster_path: string;
backdrop_path: string;
}
export interface MovieDetails {
adult: boolean;
backdrop_path: string;
belongs_to_collection?: any;
belongs_to_collection?: BelongsToCollection;
budget: number;

@@ -15,3 +21,3 @@ genres: Genre[];

popularity: number;
poster_path?: any;
poster_path?: string;
production_companies: ProductionCompany[];

@@ -93,4 +99,4 @@ production_countries: ProductionCountry[];

adult: boolean;
backdrop_path?: any;
belongs_to_collection?: any;
backdrop_path?: string;
belongs_to_collection?: BelongsToCollection;
budget: number;

@@ -106,8 +112,8 @@ genres: Genre[];

poster_path: string;
production_companies: any[];
production_countries: any[];
production_companies: ProductionCompany[];
production_countries: ProductionCountry[];
release_date: string;
revenue: number;
runtime: number;
spoken_languages: any[];
spoken_languages: SpokenLanguage[];
status: string;

@@ -114,0 +120,0 @@ tagline: string;

@@ -9,2 +9,16 @@ import { Genre, ProductionCompany, ProductionCountry, SpokenLanguage, Crew } from './';

}
export interface NextEpisodeToAir {
id: number;
name: string;
overview: string;
vote_average: number;
vote_count: number;
air_date: string;
episode_number: number;
production_code: string;
runtime: number;
season_number: number;
show_id: number;
still_path: string;
}
export interface LastEpisodeToAir {

@@ -50,3 +64,3 @@ air_date: string;

name: string;
next_episode_to_air?: any;
next_episode_to_air?: NextEpisodeToAir;
networks: Network[];

@@ -113,5 +127,5 @@ number_of_episodes: number;

time: string;
value: any;
value: Array<number>;
iso_639_1: string;
original_value: any;
original_value: Array<number>;
}

@@ -175,4 +189,4 @@ export interface TvShowChange {

export interface LatestTvShows {
backdrop_path?: any;
created_by: any[];
backdrop_path?: string;
created_by: CreatedBy[];
episode_run_time: number[];

@@ -193,6 +207,6 @@ first_air_date: string;

original_name: string;
overview?: any;
overview?: string;
popularity: number;
poster_path?: any;
production_companies: any[];
poster_path?: string;
production_companies: ProductionCompany[];
seasons: Season[];

@@ -199,0 +213,0 @@ status: string;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseOptions = void 0;
/* eslint-disable @typescript-eslint/no-explicit-any */
function parseOptions(options) {
return options
? new URLSearchParams(Object.entries(options)).toString()
: '';
return options ? new URLSearchParams(Object.entries(options)).toString() : '';
}
exports.parseOptions = parseOptions;
//# sourceMappingURL=parseOptions.js.map
{
"name": "tmdb-ts",
"version": "0.1.8",
"version": "0.1.9",
"description": "TMDB v3 library wrapper",

@@ -11,3 +11,4 @@ "main": "dist/index.js",

"lint:fix": "eslint --ext .ts src/ --fix",
"prepublish": "tsc",
"format": "npx prettier --write src",
"pre-commit": "npm run lint",
"copy-types": "mkdir dist/types && cp src/types/*.d.ts dist/types"

@@ -35,10 +36,13 @@ },

"@types/node-fetch": "^2.5.10",
"@typescript-eslint/eslint-plugin": "^4.23.0",
"@typescript-eslint/parser": "^4.23.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"dotenv": "^9.0.2",
"eslint": "^7.26.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.23.1",
"eslint": "^8.38.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"prettier": "^2.8.7",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
"typescript": "^4.9.5"
},

@@ -53,2 +57,7 @@ "dependencies": {

},
"husky": {
"hooks": {
"pre-commit": "npm run pre-commit"
}
},
"files": [

@@ -55,0 +64,0 @@ "dist"

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

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

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