@plotwist_app/tmdb
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -306,3 +306,9 @@ "use strict"; | ||
}; | ||
var season = { details: details4, videos: videos2, images: images2 }; | ||
var credits2 = async (seriesId, seasonNumber) => { | ||
const { data } = await axiosClient.get( | ||
`/tv/${seriesId}/season/${seasonNumber}/credits` | ||
); | ||
return data; | ||
}; | ||
var season = { details: details4, videos: videos2, images: images2, credits: credits2 }; | ||
@@ -309,0 +315,0 @@ // src/api/tv-series.ts |
import { Language } from '../models/language.js'; | ||
import { Credits } from '../models/credits.js'; | ||
import { GetImagesResponse } from '../models/images.js'; | ||
import { SeasonDetails } from '../models/season.js'; | ||
import { GetVideosResponse } from '../models/videos.js'; | ||
import '../models/credits.js'; | ||
@@ -11,4 +11,5 @@ declare const season: { | ||
images: (seriesId: number, seasonNumber: number) => Promise<GetImagesResponse>; | ||
credits: (seriesId: number, seasonNumber: number) => Promise<Credits>; | ||
}; | ||
export { season }; |
@@ -65,3 +65,9 @@ "use strict"; | ||
}; | ||
var season = { details, videos: videos2, images: images2 }; | ||
var credits2 = async (seriesId, seasonNumber) => { | ||
const { data } = await axiosClient.get( | ||
`/tv/${seriesId}/season/${seasonNumber}/credits` | ||
); | ||
return data; | ||
}; | ||
var season = { details, videos: videos2, images: images2, credits: credits2 }; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
@@ -68,0 +74,0 @@ 0 && (module.exports = { |
@@ -84,2 +84,3 @@ import { ListResponse } from './utils/list-response.js'; | ||
images: (seriesId: number, seasonNumber: number) => Promise<GetImagesResponse>; | ||
credits: (seriesId: number, seasonNumber: number) => Promise<Credits>; | ||
}; | ||
@@ -86,0 +87,0 @@ tv: { |
@@ -305,3 +305,9 @@ "use strict"; | ||
}; | ||
var season = { details: details4, videos, images: images2 }; | ||
var credits2 = async (seriesId, seasonNumber) => { | ||
const { data } = await axiosClient.get( | ||
`/tv/${seriesId}/season/${seasonNumber}/credits` | ||
); | ||
return data; | ||
}; | ||
var season = { details: details4, videos, images: images2, credits: credits2 }; | ||
@@ -308,0 +314,0 @@ // src/api/tv-series.ts |
{ | ||
"name": "@plotwist_app/tmdb", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -1,2 +0,7 @@ | ||
import { axiosClient, type GetImagesResponse, type GetVideosResponse } from '..' | ||
import { | ||
axiosClient, | ||
type Credits, | ||
type GetImagesResponse, | ||
type GetVideosResponse, | ||
} from '..' | ||
import type { Language } from '../models/language' | ||
@@ -38,2 +43,10 @@ import type { SeasonDetails } from '../models/season' | ||
export const season = { details, videos, images } | ||
const credits = async (seriesId: number, seasonNumber: number) => { | ||
const { data } = await axiosClient.get<Credits>( | ||
`/tv/${seriesId}/season/${seasonNumber}/credits` | ||
) | ||
return data | ||
} | ||
export const season = { details, videos, images, credits } |
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
365873
5081