lemmy-js-client 0.17.2-rc.10 → 0.17.2-rc.11

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 CHANGED
@@ -828,19 +828,10 @@ var LemmyHttp = /** @class */ (function () {
828
828
  }());
829
829
  exports.LemmyHttp = LemmyHttp;
830
830
  function encodeGetParams(p) {
831
- // console.log(JSON.stringify(p));
832
- // console.log(new URLSearchParams(JSON.stringify(p)).toString());
833
- // return new URLSearchParams(JSON.stringify(p)).toString();
834
- return (Object.entries(p)
831
+ return Object.entries(p)
835
832
  .filter(function (kv) { return !!kv[1]; })
836
- .map(function (kv) {
837
- return kv
838
- .map(function (e) { return JSON.stringify(e); })
839
- .map(encodeURIComponent)
840
- .join("=");
841
- })
842
- // .map(kv => (kv.0 + '=' + JSON.stringify(kv.1)))
843
- .join("&"));
833
+ .map(function (kv) { return kv.map(encodeURIComponent).join("="); })
834
+ .join("&");
844
835
  }
845
836
  function createFormData(image) {
846
837
  var formData = new form_data_1.default();
@@ -1,5 +1,7 @@
1
- import type { PostOrCommentId } from "./PostOrCommentId";
1
+ import type { CommentId } from "./CommentId";
2
+ import type { PostId } from "./PostId";
2
3
  export interface GetPost {
3
- id: PostOrCommentId;
4
+ id?: PostId;
5
+ comment_id?: CommentId;
4
6
  auth?: string;
5
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.17.2-rc.10",
3
+ "version": "0.17.2-rc.11",
4
4
  "description": "A javascript / typescript client for Lemmy",
5
5
  "repository": "https://github.com/LemmyNet/lemmy-js-client",
6
6
  "license": "AGPL-3.0",