Compare commits
7 Commits
feat/2.0
...
feat/2.0.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e1e65205c | ||
|
|
6157405fe1 | ||
|
|
eaa5f9a751 | ||
|
|
2abf448bb2 | ||
|
|
4140bd7a7f | ||
|
|
f513103785 | ||
|
|
ea19c5b9e1 |
1
.github/workflows/npm-publish.yml
vendored
1
.github/workflows/npm-publish.yml
vendored
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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()
|
||||||
|
: '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user