mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-29 15:51:12 +00:00
Upgrading deps, removing cross_fetch. (#216)
This commit is contained in:
parent
aecef85177
commit
50e04a9703
3 changed files with 344 additions and 460 deletions
23
package.json
23
package.json
|
@ -26,24 +26,23 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cross-fetch": "^3.1.5",
|
|
||||||
"form-data": "^4.0.0"
|
"form-data": "^4.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^20.1.2",
|
"@types/node": "^20.10.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
"@typescript-eslint/eslint-plugin": "^6.13.1",
|
||||||
"@typescript-eslint/parser": "^5.59.5",
|
"@typescript-eslint/parser": "^6.13.1",
|
||||||
"eslint": "^8.40.0",
|
"eslint": "^8.54.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^5.0.1",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"lint-staged": "^13.2.2",
|
"lint-staged": "^15.1.0",
|
||||||
"prettier": "^3.0.0",
|
"prettier": "^3.1.0",
|
||||||
"prettier-plugin-import-sort": "^0.0.7",
|
"prettier-plugin-import-sort": "^0.0.7",
|
||||||
"prettier-plugin-organize-imports": "^3.2.2",
|
"prettier-plugin-organize-imports": "^3.2.4",
|
||||||
"prettier-plugin-packagejson": "^2.4.3",
|
"prettier-plugin-packagejson": "^2.4.6",
|
||||||
"sortpack": "^2.3.4",
|
"sortpack": "^2.3.5",
|
||||||
"typedoc": "^0.24.7",
|
"typedoc": "^0.24.7",
|
||||||
"typescript": "^5.0.4"
|
"typescript": "^5.3.2"
|
||||||
},
|
},
|
||||||
"importSort": {
|
"importSort": {
|
||||||
".js, .jsx, .ts, .tsx": {
|
".js, .jsx, .ts, .tsx": {
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import fetch from "cross-fetch";
|
|
||||||
import FormData from "form-data";
|
import FormData from "form-data";
|
||||||
import { AddAdmin } from "./types/AddAdmin";
|
import { AddAdmin } from "./types/AddAdmin";
|
||||||
import { AddAdminResponse } from "./types/AddAdminResponse";
|
import { AddAdminResponse } from "./types/AddAdminResponse";
|
||||||
|
@ -1417,7 +1416,7 @@ export class LemmyHttp {
|
||||||
headers: this.#headers,
|
headers: this.#headers,
|
||||||
});
|
});
|
||||||
|
|
||||||
return (await response.status) == 204;
|
return response.status == 204;
|
||||||
}
|
}
|
||||||
|
|
||||||
#buildFullUrl(endpoint: string) {
|
#buildFullUrl(endpoint: string) {
|
||||||
|
|
Loading…
Reference in a new issue