tmdb-ts 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.parseOptions = void 0;
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
5
5
|
function parseOptions(options) {
|
|
6
|
-
return options
|
|
6
|
+
return options
|
|
7
|
+
? new URLSearchParams(Object.entries(options).filter(([, v]) => v) // remove undefined
|
|
8
|
+
).toString()
|
|
9
|
+
: '';
|
|
7
10
|
}
|
|
8
11
|
exports.parseOptions = parseOptions;
|
|
9
12
|
//# sourceMappingURL=parseOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseOptions.js","sourceRoot":"","sources":["../../src/utils/parseOptions.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,SAAgB,YAAY,CAAC,OAA6B;IACxD,OAAO,OAAO,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"parseOptions.js","sourceRoot":"","sources":["../../src/utils/parseOptions.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,SAAgB,YAAY,CAAC,OAA6B;IACxD,OAAO,OAAO;QACZ,CAAC,CAAC,IAAI,eAAe,CACjB,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,mBAAmB;SACjE,CAAC,QAAQ,EAAE;QACd,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAND,oCAMC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tmdb-ts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "TMDB v3 library wrapper",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@eslint/js": "^9.4.0",
|
|
33
33
|
"@types/eslint__js": "^8.42.3",
|
|
34
|
-
"@types/node": "^20.
|
|
34
|
+
"@types/node": "^20.16.10",
|
|
35
35
|
"@types/node-fetch": "^3.0.3",
|
|
36
36
|
"dotenv": "^16.4.5",
|
|
37
37
|
"eslint-config-prettier": "^9.1.0",
|