@plotwist_app/tmdb
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -312,3 +312,9 @@ "use strict"; | ||
}; | ||
var season = { details: details4, videos: videos2, images: images2, credits: credits2 }; | ||
var watchProviders2 = async (seriesId, seasonNumber) => { | ||
const { data } = await axiosClient.get( | ||
`/tv/${seriesId}/season/${seasonNumber}/watch-providers` | ||
); | ||
return data; | ||
}; | ||
var season = { details: details4, videos: videos2, images: images2, credits: credits2, watchProviders: watchProviders2 }; | ||
@@ -315,0 +321,0 @@ // src/api/tv-series.ts |
@@ -6,2 +6,3 @@ import { Language } from '../models/language.js'; | ||
import { GetVideosResponse } from '../models/videos.js'; | ||
import { WatchProviders } from '../models/watch-providers.js'; | ||
@@ -13,4 +14,5 @@ declare const season: { | ||
credits: (seriesId: number, seasonNumber: number) => Promise<Credits>; | ||
watchProviders: (seriesId: number, seasonNumber: number) => Promise<WatchProviders>; | ||
}; | ||
export { season }; |
@@ -71,3 +71,9 @@ "use strict"; | ||
}; | ||
var season = { details, videos: videos2, images: images2, credits: credits2 }; | ||
var watchProviders2 = async (seriesId, seasonNumber) => { | ||
const { data } = await axiosClient.get( | ||
`/tv/${seriesId}/season/${seasonNumber}/watch-providers` | ||
); | ||
return data; | ||
}; | ||
var season = { details, videos: videos2, images: images2, credits: credits2, watchProviders: watchProviders2 }; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -74,0 +80,0 @@ 0 && (module.exports = { |
@@ -85,2 +85,3 @@ import { ListResponse } from './utils/list-response.js'; | ||
credits: (seriesId: number, seasonNumber: number) => Promise<Credits>; | ||
watchProviders: (seriesId: number, seasonNumber: number) => Promise<WatchProviders>; | ||
}; | ||
@@ -87,0 +88,0 @@ tv: { |
@@ -48,3 +48,3 @@ "use strict"; | ||
videos: () => videos2, | ||
watchProviders: () => watchProviders | ||
watchProviders: () => watchProviders2 | ||
}); | ||
@@ -312,3 +312,9 @@ module.exports = __toCommonJS(src_exports); | ||
}; | ||
var season = { details: details4, videos, images: images2, credits: credits2 }; | ||
var watchProviders = async (seriesId, seasonNumber) => { | ||
const { data } = await axiosClient.get( | ||
`/tv/${seriesId}/season/${seasonNumber}/watch-providers` | ||
); | ||
return data; | ||
}; | ||
var season = { details: details4, videos, images: images2, credits: credits2, watchProviders }; | ||
@@ -394,3 +400,3 @@ // src/api/tv-series.ts | ||
}; | ||
var watchProviders = { list: list3, item, regions }; | ||
var watchProviders2 = { list: list3, item, regions }; | ||
@@ -419,3 +425,3 @@ // src/index.ts | ||
videos: videos2, | ||
watchProviders, | ||
watchProviders: watchProviders2, | ||
person | ||
@@ -422,0 +428,0 @@ }; |
{ | ||
"name": "@plotwist_app/tmdb", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
import { | ||
axiosClient, | ||
type WatchProviders, | ||
type Credits, | ||
@@ -51,2 +52,10 @@ type GetImagesResponse, | ||
export const season = { details, videos, images, credits } | ||
const watchProviders = async (seriesId: number, seasonNumber: number) => { | ||
const { data } = await axiosClient.get<WatchProviders>( | ||
`/tv/${seriesId}/season/${seasonNumber}/watch-providers` | ||
) | ||
return data | ||
} | ||
export const season = { details, videos, images, credits, watchProviders } |
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
369354
5117