This commit is contained in:
Felix Ableitner 2023-09-20 15:36:21 +02:00
parent 737f6f4c2f
commit 3c068e9774
3 changed files with 7 additions and 8 deletions

View file

@ -19,7 +19,7 @@
"eslint": "^8.40.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^29.5.0",
"lemmy-js-client": "0.19.0-rc.10",
"lemmy-js-client": "0.19.0-rc.11",
"prettier": "^3.0.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4"

View file

@ -752,16 +752,15 @@ export function getPosts(
}
export function blockInstance(
api: API,
api: LemmyHttp,
instance_id: InstanceId,
block: boolean,
): Promise<BlockInstanceResponse> {
let form: BlockInstance = {
instance_id,
block,
auth: api.auth,
};
return api.client.blockInstance(form);
return api.blockInstance(form);
}
export function delay(millis = 500) {

View file

@ -2174,10 +2174,10 @@ kleur@^3.0.3:
resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e"
integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==
lemmy-js-client@0.19.0-rc.5:
version "0.19.0-rc.5"
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.19.0-rc.5.tgz#a0d3e0ac829b1e46124edcf3a0343ae04317d51a"
integrity sha512-Z1T95Ht1VZNvWlLH9XpVnO2oC7LhMT81jTiU5BhYPIkEtGhOwN91jk5uI1oyI6/d4v9lwbrsyzFYPsiuMmXTFQ==
lemmy-js-client@0.19.0-rc.11:
version "0.19.0-rc.11"
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.19.0-rc.11.tgz#54c21f02da48b02465b698d49bf19e208f9a9b5f"
integrity sha512-GhToX/O1K3FGiEWgcPgJPVZ+tZ9QbHZ0OLH2W1P8k5uxVIF9FysN2Y6dvpteBQr4nhiZgTy50qnsgF5aiHtCAg==
dependencies:
cross-fetch "^3.1.5"
form-data "^4.0.0"