lemmy-js-client 0.19.3-alpha.2 → 0.19.3-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/types/Community.d.ts +0 -2
- package/dist/types/CommunityAggregates.d.ts +0 -1
- package/dist/types/CreateCommunity.d.ts +0 -2
- package/dist/types/EditCommunity.d.ts +0 -2
- package/package.json +14 -14
- package/dist/types/CommunityVisibility.d.ts +0 -1
- package/dist/types/CommunityVisibility.js +0 -3
package/README.md
CHANGED
@@ -13,7 +13,7 @@ A javascript / typescript http client and type system for [Lemmy](https://github
|
|
13
13
|
|
14
14
|
## Installation
|
15
15
|
|
16
|
-
`
|
16
|
+
`pnpm install lemmy-js-client`
|
17
17
|
|
18
18
|
## Usage
|
19
19
|
|
@@ -38,7 +38,7 @@ let jwt = await client.login(loginForm).jwt;
|
|
38
38
|
You can use [yalc](https://github.com/wclr/yalc) to develop and test changes locally:
|
39
39
|
|
40
40
|
```
|
41
|
-
|
41
|
+
pnpm i --global add yalc
|
42
42
|
|
43
43
|
# Go to lemmy-js-client dir
|
44
44
|
yalc publish --push
|
package/dist/index.d.ts
CHANGED
@@ -48,7 +48,6 @@ export { CommunityId } from "./types/CommunityId";
|
|
48
48
|
export { CommunityModeratorView } from "./types/CommunityModeratorView";
|
49
49
|
export { CommunityResponse } from "./types/CommunityResponse";
|
50
50
|
export { CommunityView } from "./types/CommunityView";
|
51
|
-
export { CommunityVisibility } from "./types/CommunityVisibility";
|
52
51
|
export { CreateComment } from "./types/CreateComment";
|
53
52
|
export { CreateCommentLike } from "./types/CreateCommentLike";
|
54
53
|
export { CreateCommentReport } from "./types/CreateCommentReport";
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { CommunityVisibility } from "./CommunityVisibility";
|
3
2
|
import type { InstanceId } from "./InstanceId";
|
4
3
|
export interface Community {
|
5
4
|
id: CommunityId;
|
@@ -18,5 +17,4 @@ export interface Community {
|
|
18
17
|
hidden: boolean;
|
19
18
|
posting_restricted_to_mods: boolean;
|
20
19
|
instance_id: InstanceId;
|
21
|
-
visibility: CommunityVisibility;
|
22
20
|
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import type { CommunityVisibility } from "./CommunityVisibility";
|
2
1
|
import type { LanguageId } from "./LanguageId";
|
3
2
|
export interface CreateCommunity {
|
4
3
|
name: string;
|
@@ -9,5 +8,4 @@ export interface CreateCommunity {
|
|
9
8
|
nsfw?: boolean;
|
10
9
|
posting_restricted_to_mods?: boolean;
|
11
10
|
discussion_languages?: Array<LanguageId>;
|
12
|
-
visibility?: CommunityVisibility;
|
13
11
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import type { CommunityId } from "./CommunityId";
|
2
|
-
import type { CommunityVisibility } from "./CommunityVisibility";
|
3
2
|
import type { LanguageId } from "./LanguageId";
|
4
3
|
export interface EditCommunity {
|
5
4
|
community_id: CommunityId;
|
@@ -10,5 +9,4 @@ export interface EditCommunity {
|
|
10
9
|
nsfw?: boolean;
|
11
10
|
posting_restricted_to_mods?: boolean;
|
12
11
|
discussion_languages?: Array<LanguageId>;
|
13
|
-
visibility?: CommunityVisibility;
|
14
12
|
}
|
package/package.json
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemmy-js-client",
|
3
|
-
"version": "0.19.3-alpha.2",
|
4
3
|
"description": "A javascript / typescript client for Lemmy",
|
5
|
-
"
|
6
|
-
"license": "AGPL-3.0",
|
4
|
+
"version": "0.19.3-alpha.4",
|
7
5
|
"author": "Dessalines <tyhou13@gmx.com>",
|
6
|
+
"license": "AGPL-3.0",
|
8
7
|
"main": "./dist/index.js",
|
9
|
-
"types": "./dist/index.d.ts",
|
10
8
|
"files": [
|
11
9
|
"/dist"
|
12
10
|
],
|
@@ -14,17 +12,9 @@
|
|
14
12
|
"build": "tsc",
|
15
13
|
"docs": "typedoc src/index.ts",
|
16
14
|
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
|
17
|
-
"prepare": "
|
18
|
-
},
|
19
|
-
"lint-staged": {
|
20
|
-
"*.{ts,tsx,js}": [
|
21
|
-
"prettier --write",
|
22
|
-
"eslint --fix"
|
23
|
-
],
|
24
|
-
"package.json": [
|
25
|
-
"sortpack"
|
26
|
-
]
|
15
|
+
"prepare": "pnpm run build && husky install"
|
27
16
|
},
|
17
|
+
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
28
18
|
"dependencies": {
|
29
19
|
"cross-fetch": "^3.1.5",
|
30
20
|
"form-data": "^4.0.0"
|
@@ -45,6 +35,16 @@
|
|
45
35
|
"typedoc": "^0.24.7",
|
46
36
|
"typescript": "^5.3.2"
|
47
37
|
},
|
38
|
+
"types": "./dist/index.d.ts",
|
39
|
+
"lint-staged": {
|
40
|
+
"*.{ts,tsx,js}": [
|
41
|
+
"prettier --write",
|
42
|
+
"eslint --fix"
|
43
|
+
],
|
44
|
+
"package.json": [
|
45
|
+
"sortpack"
|
46
|
+
]
|
47
|
+
},
|
48
48
|
"importSort": {
|
49
49
|
".js, .jsx, .ts, .tsx": {
|
50
50
|
"style": "module",
|
@@ -1 +0,0 @@
|
|
1
|
-
export type CommunityVisibility = "Public" | "LocalOnly";
|