Compare commits

...

2 Commits

Author SHA1 Message Date
41d105cda8 v2.0.0-beta.2 2021-04-20 10:40:08 +02:00
73028f4803 Fixed get serie pointing the old endpoint
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
2021-04-20 10:39:45 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@tcgdex/sdk", "name": "@tcgdex/sdk",
"version": "2.0.0-beta.1", "version": "2.0.0-beta.2",
"main": "./tcgdex.js", "main": "./tcgdex.js",
"types": "./main.d.ts", "types": "./main.d.ts",
"repository": "https://github.com/tcgdex/javascript-sdk.git", "repository": "https://github.com/tcgdex/javascript-sdk.git",

View File

@ -53,12 +53,12 @@ export default class TCGdex {
} }
public async getSerie(expansion: string): Promise<Serie | undefined> { public async getSerie(expansion: string): Promise<Serie | undefined> {
const req = this.rwgr<Serie>(`/expansions/${expansion}/`) const req = this.rwgr<Serie>(`/series/${expansion}/`)
return req.get() return req.get()
} }
public async getSeries(): Promise<SerieList | undefined> { public async getSeries(): Promise<SerieList | undefined> {
const req = this.rwgr<SerieList>(`/expansions/`) const req = this.rwgr<SerieList>(`/series/`)
return req.get() return req.get()
} }