lemmy-js-client 0.19.0-rc.15 → 0.19.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.d.ts +0 -1
- package/dist/http.js +2 -3
- package/package.json +12 -13
package/dist/http.d.ts
CHANGED
package/dist/http.js
CHANGED
@@ -25,7 +25,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
25
|
var _LemmyHttp_instances, _LemmyHttp_apiUrl, _LemmyHttp_headers, _LemmyHttp_pictrsUrl, _LemmyHttp_fetchFunction, _LemmyHttp_buildFullUrl, _LemmyHttp_wrapper;
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
27
27
|
exports.LemmyHttp = void 0;
|
28
|
-
const cross_fetch_1 = __importDefault(require("cross-fetch"));
|
29
28
|
const form_data_1 = __importDefault(require("form-data"));
|
30
29
|
const other_types_1 = require("./other_types");
|
31
30
|
var HttpType;
|
@@ -48,7 +47,7 @@ class LemmyHttp {
|
|
48
47
|
_LemmyHttp_apiUrl.set(this, void 0);
|
49
48
|
_LemmyHttp_headers.set(this, {});
|
50
49
|
_LemmyHttp_pictrsUrl.set(this, void 0);
|
51
|
-
_LemmyHttp_fetchFunction.set(this,
|
50
|
+
_LemmyHttp_fetchFunction.set(this, fetch);
|
52
51
|
__classPrivateFieldSet(this, _LemmyHttp_apiUrl, `${baseUrl.replace(/\/+$/, "")}/api/${other_types_1.VERSION}`, "f");
|
53
52
|
__classPrivateFieldSet(this, _LemmyHttp_pictrsUrl, `${baseUrl}/pictrs/image`, "f");
|
54
53
|
if (options === null || options === void 0 ? void 0 : options.headers) {
|
@@ -848,7 +847,7 @@ class LemmyHttp {
|
|
848
847
|
method: HttpType.Get,
|
849
848
|
headers: __classPrivateFieldGet(this, _LemmyHttp_headers, "f"),
|
850
849
|
});
|
851
|
-
return
|
850
|
+
return response.status == 204;
|
852
851
|
});
|
853
852
|
}
|
854
853
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemmy-js-client",
|
3
|
-
"version": "0.19.0-rc.
|
3
|
+
"version": "0.19.0-rc.16",
|
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",
|
@@ -26,24 +26,23 @@
|
|
26
26
|
]
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"cross-fetch": "^3.1.5",
|
30
29
|
"form-data": "^4.0.0"
|
31
30
|
},
|
32
31
|
"devDependencies": {
|
33
|
-
"@types/node": "^20.
|
34
|
-
"@typescript-eslint/eslint-plugin": "^
|
35
|
-
"@typescript-eslint/parser": "^
|
36
|
-
"eslint": "^8.
|
37
|
-
"eslint-plugin-prettier": "^
|
32
|
+
"@types/node": "^20.10.0",
|
33
|
+
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
34
|
+
"@typescript-eslint/parser": "^6.13.1",
|
35
|
+
"eslint": "^8.54.0",
|
36
|
+
"eslint-plugin-prettier": "^5.0.1",
|
38
37
|
"husky": "^8.0.3",
|
39
|
-
"lint-staged": "^
|
40
|
-
"prettier": "^3.
|
38
|
+
"lint-staged": "^15.1.0",
|
39
|
+
"prettier": "^3.1.0",
|
41
40
|
"prettier-plugin-import-sort": "^0.0.7",
|
42
|
-
"prettier-plugin-organize-imports": "^3.2.
|
43
|
-
"prettier-plugin-packagejson": "^2.4.
|
44
|
-
"sortpack": "^2.3.
|
41
|
+
"prettier-plugin-organize-imports": "^3.2.4",
|
42
|
+
"prettier-plugin-packagejson": "^2.4.6",
|
43
|
+
"sortpack": "^2.3.5",
|
45
44
|
"typedoc": "^0.24.7",
|
46
|
-
"typescript": "^5.
|
45
|
+
"typescript": "^5.3.2"
|
47
46
|
},
|
48
47
|
"importSort": {
|
49
48
|
".js, .jsx, .ts, .tsx": {
|