Merge pull request #60 from blakejoy/feat/2.0.1

feat: 2.0.1
This commit is contained in:
Blake
2024-10-04 01:59:02 -04:00
committed by GitHub
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "tmdb-ts",
"version": "2.0.0",
"version": "2.0.1",
"description": "TMDB v3 library wrapper",
"main": "dist/index.js",
"types": "dist/index.d.ts",

View File

@@ -2,8 +2,7 @@
export function parseOptions(options?: Record<string, any>): string {
return options
? new URLSearchParams(
Object.entries(options)
.filter(([k, v]) => v) // remove undefined
Object.entries(options).filter(([, v]) => v) // remove undefined
).toString()
: '';
}