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.
Files changed (2) hide show
  1. package/dist/http.js +4 -2
  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
- return (Object.entries(p)
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(function (a) { return encodeURIComponent((0, class_transformer_1.serialize)(a)); }).join("="); })
1010
+ .map(function (kv) { return kv.map(encodeURIComponent).join("="); })
1009
1011
  .join("&"));
1010
1012
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
3
  "description": "A javascript / typescript client for Lemmy",
4
- "version": "0.17.0-rc.15",
4
+ "version": "0.17.0-rc.16",
5
5
  "author": "Dessalines <tyhou13@gmx.com>",
6
6
  "license": "AGPL-3.0",
7
7
  "main": "./dist/index.js",