7 Commits

Author SHA1 Message Date
Blake Joynes
9e1e65205c fix linting 2024-10-04 01:58:25 -04:00
Blake
6157405fe1 Merge pull request #59 from fadhilx/main
Fix images array is empty because languages equal to undefined on URLSearchParams
2024-10-04 01:54:06 -04:00
Fadhil Ahmad
eaa5f9a751 fix: images is empty because languages undefined on querystring 2024-10-02 12:36:51 +08:00
Blake
2abf448bb2 Merge pull request #57 from blakejoy/test-build
test license changes
2024-06-09 17:03:49 -04:00
Blake Joynes
4140bd7a7f test license changes 2024-06-09 17:03:27 -04:00
Blake
f513103785 Update npm-publish.yml 2024-06-09 16:59:29 -04:00
Blake
ea19c5b9e1 Merge pull request #56 from blakejoy/feat/2.0
Feat/2.0
2024-06-09 16:57:48 -04:00
4 changed files with 7 additions and 4 deletions

View File

@@ -16,7 +16,6 @@ jobs:
with: with:
node-version: '20.x' node-version: '20.x'
- run: npm ci - run: npm ci
- run: npm test
publish-npm: publish-npm:
needs: build needs: build

View File

@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2021 Blake Joynes Copyright (c) 2024 Blake Joynes
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@@ -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",

View File

@@ -1,4 +1,8 @@
/* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-explicit-any */
export function parseOptions(options?: Record<string, any>): string { export function parseOptions(options?: Record<string, any>): string {
return options ? new URLSearchParams(Object.entries(options)).toString() : ''; return options
? new URLSearchParams(
Object.entries(options).filter(([, v]) => v) // remove undefined
).toString()
: '';
} }