lemmy-js-client 0.17.0-rc.15 → 0.17.0-rc.16
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.
- package/dist/http.js +4 -2
- package/package.json +1 -1
package/dist/http.js
CHANGED
@@ -1003,8 +1003,10 @@ var LemmyHttp = /** @class */ (function () {
|
|
1003
1003
|
}());
|
1004
1004
|
exports.LemmyHttp = LemmyHttp;
|
1005
1005
|
function encodeGetParams(p) {
|
1006
|
-
|
1006
|
+
// Necessary to remove the Options
|
1007
|
+
var serialized = JSON.parse((0, class_transformer_1.serialize)(p));
|
1008
|
+
return (Object.entries(serialized)
|
1007
1009
|
// TODO test this, it might serialize the undefineds
|
1008
|
-
.map(function (kv) { return kv.map(
|
1010
|
+
.map(function (kv) { return kv.map(encodeURIComponent).join("="); })
|
1009
1011
|
.join("&"));
|
1010
1012
|
}
|
package/package.json
CHANGED