themoviedb-ts-api
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -153,2 +153,14 @@ var TheMovieDB = (function (exports,axios) { | ||
var Discover = /** @class */ (function () { | ||
function Discover(httpGet) { | ||
var _this = this; | ||
this.tv = function (query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet('/discover/tv', query); | ||
}; | ||
this.httpGet = httpGet; | ||
} | ||
return Discover; | ||
}()); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -179,2 +191,3 @@ function TheMovieDb(token, language) { | ||
this.authentication = new Authentication(this.httpGet); | ||
this.discover = new Discover(this.httpGet); | ||
} | ||
@@ -181,0 +194,0 @@ return TheMovieDb; |
@@ -150,2 +150,14 @@ import axios from 'axios'; | ||
var Discover = /** @class */ (function () { | ||
function Discover(httpGet) { | ||
var _this = this; | ||
this.tv = function (query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet('/discover/tv', query); | ||
}; | ||
this.httpGet = httpGet; | ||
} | ||
return Discover; | ||
}()); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -176,2 +188,3 @@ function TheMovieDb(token, language) { | ||
this.authentication = new Authentication(this.httpGet); | ||
this.discover = new Discover(this.httpGet); | ||
} | ||
@@ -178,0 +191,0 @@ return TheMovieDb; |
@@ -156,2 +156,14 @@ 'use strict'; | ||
var Discover = /** @class */ (function () { | ||
function Discover(httpGet) { | ||
var _this = this; | ||
this.tv = function (query) { | ||
if (query === void 0) { query = {}; } | ||
return _this.httpGet('/discover/tv', query); | ||
}; | ||
this.httpGet = httpGet; | ||
} | ||
return Discover; | ||
}()); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -182,2 +194,3 @@ function TheMovieDb(token, language) { | ||
this.authentication = new Authentication(this.httpGet); | ||
this.discover = new Discover(this.httpGet); | ||
} | ||
@@ -184,0 +197,0 @@ return TheMovieDb; |
@@ -18,2 +18,3 @@ "use strict"; | ||
var authentication_1 = require("./authentication"); | ||
var discover_1 = require("./discover"); | ||
var TheMovieDb = /** @class */ (function () { | ||
@@ -44,2 +45,3 @@ function TheMovieDb(token, language) { | ||
this.authentication = new authentication_1.Authentication(this.httpGet); | ||
this.discover = new discover_1.default(this.httpGet); | ||
} | ||
@@ -46,0 +48,0 @@ return TheMovieDb; |
import { AxiosInstance } from 'axios'; | ||
import TV from './tv'; | ||
import { Authentication } from './authentication'; | ||
import Discover from './discover'; | ||
export declare type TheMovieDbHttpGet = (endPoint: string, params?: Record<string, any>) => Promise<any>; | ||
@@ -8,5 +9,6 @@ export declare class TheMovieDb { | ||
httpGet: TheMovieDbHttpGet; | ||
authentication: Authentication; | ||
discover: Discover; | ||
tv: TV; | ||
authentication: Authentication; | ||
constructor(token: string, language?: string); | ||
} |
{ | ||
"name": "themoviedb-ts-api", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A TypeScript Library to interact with the API of TheMovieDB", | ||
@@ -5,0 +5,0 @@ "keywords": ["api", "themoviedb"], |
Sorry, the diff of this file is not supported yet
70995
24
1314