fix linting
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tmdb-ts",
|
"name": "tmdb-ts",
|
||||||
"version": "2.0.0",
|
"version": "2.0.1",
|
||||||
"description": "TMDB v3 library wrapper",
|
"description": "TMDB v3 library wrapper",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
|||||||
@@ -2,8 +2,7 @@
|
|||||||
export function parseOptions(options?: Record<string, any>): string {
|
export function parseOptions(options?: Record<string, any>): string {
|
||||||
return options
|
return options
|
||||||
? new URLSearchParams(
|
? new URLSearchParams(
|
||||||
Object.entries(options)
|
Object.entries(options).filter(([, v]) => v) // remove undefined
|
||||||
.filter(([k, v]) => v) // remove undefined
|
|
||||||
).toString()
|
).toString()
|
||||||
: '';
|
: '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user