Comparing version 2.0.0 to 2.0.1
@@ -6,5 +6,8 @@ "use strict"; | ||
function parseOptions(options) { | ||
return options ? new URLSearchParams(Object.entries(options)).toString() : ''; | ||
return options | ||
? new URLSearchParams(Object.entries(options).filter(([, v]) => v) // remove undefined | ||
).toString() | ||
: ''; | ||
} | ||
exports.parseOptions = parseOptions; | ||
//# sourceMappingURL=parseOptions.js.map |
{ | ||
"name": "tmdb-ts", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "TMDB v3 library wrapper", | ||
@@ -34,3 +34,3 @@ "main": "dist/index.js", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/node": "^20.14.2", | ||
"@types/node": "^20.16.10", | ||
"@types/node-fetch": "^3.0.3", | ||
@@ -37,0 +37,0 @@ "dotenv": "^16.4.5", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147116
3470