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 +3 -12
- package/dist/types/GetPost.d.ts +4 -2
- package/package.json +1 -1
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
|
-
|
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
|
-
|
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();
|
package/dist/types/GetPost.d.ts
CHANGED
package/package.json
CHANGED