lemmy-js-client 0.17.0-rc.9 → 0.17.2-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +23 -4
- package/dist/http.d.ts +198 -16
- package/dist/http.js +245 -26
- package/dist/index.js +5 -1
- package/dist/interfaces/aggregates.d.ts +3 -0
- package/dist/interfaces/api/comment.d.ts +12 -11
- package/dist/interfaces/api/community.d.ts +5 -0
- package/dist/interfaces/api/index.js +5 -1
- package/dist/interfaces/api/person.d.ts +40 -6
- package/dist/interfaces/api/post.d.ts +19 -8
- package/dist/interfaces/api/site.d.ts +96 -21
- package/dist/interfaces/index.js +5 -1
- package/dist/interfaces/others.d.ts +122 -85
- package/dist/interfaces/others.js +133 -59
- package/dist/interfaces/source.d.ts +124 -16
- package/dist/interfaces/source.js +7 -0
- package/dist/interfaces/views.d.ts +66 -18
- package/dist/utils.d.ts +0 -0
- package/dist/utils.js +0 -0
- package/dist/websocket.d.ts +44 -14
- package/dist/websocket.js +67 -19
- package/package.json +26 -24
package/package.json
CHANGED
@@ -1,40 +1,21 @@
|
|
1
1
|
{
|
2
2
|
"name": "lemmy-js-client",
|
3
|
+
"version": "0.17.2-rc.2",
|
3
4
|
"description": "A javascript / typescript client for Lemmy",
|
4
|
-
"
|
5
|
-
"author": "Dessalines <tyhou13@gmx.com>",
|
5
|
+
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
6
6
|
"license": "AGPL-3.0",
|
7
|
+
"author": "Dessalines <tyhou13@gmx.com>",
|
7
8
|
"main": "./dist/index.js",
|
9
|
+
"types": "./dist/index.d.ts",
|
8
10
|
"files": [
|
9
11
|
"/dist"
|
10
12
|
],
|
11
13
|
"scripts": {
|
12
14
|
"build": "tsc",
|
13
15
|
"docs": "typedoc src/index.ts --sourcefile-url-prefix 'https://github.com/LemmyNet/lemmy-js-client/tree/main/src/'",
|
14
|
-
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src",
|
16
|
+
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
|
15
17
|
"prepare": "yarn run build && husky install"
|
16
18
|
},
|
17
|
-
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
18
|
-
"devDependencies": {
|
19
|
-
"@types/node": "^17.0.10",
|
20
|
-
"@types/node-fetch": "^3.0.3",
|
21
|
-
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
22
|
-
"@typescript-eslint/parser": "^5.10.0",
|
23
|
-
"eslint": "^8.7.0",
|
24
|
-
"eslint-plugin-prettier": "^4.0.0",
|
25
|
-
"husky": "^7.0.4",
|
26
|
-
"lint-staged": "^12.2.2",
|
27
|
-
"node-fetch": "^3.1.1",
|
28
|
-
"prettier": "^2.5.0",
|
29
|
-
"prettier-plugin-import-sort": "^0.0.7",
|
30
|
-
"prettier-plugin-organize-imports": "^2.3.4",
|
31
|
-
"prettier-plugin-packagejson": "^2.2.15",
|
32
|
-
"sortpack": "^2.2.0",
|
33
|
-
"typedoc": "^0.21.6",
|
34
|
-
"typedoc-plugin-sourcefile-url": "^1.0.6",
|
35
|
-
"typescript": "^4.5.4"
|
36
|
-
},
|
37
|
-
"types": "./dist/index.d.ts",
|
38
19
|
"lint-staged": {
|
39
20
|
"*.{ts,tsx,js}": [
|
40
21
|
"prettier --write",
|
@@ -44,6 +25,27 @@
|
|
44
25
|
"sortpack"
|
45
26
|
]
|
46
27
|
},
|
28
|
+
"dependencies": {
|
29
|
+
"node-fetch": "2.6.6"
|
30
|
+
},
|
31
|
+
"devDependencies": {
|
32
|
+
"@types/node": "^18.6.2",
|
33
|
+
"@types/node-fetch": "2.6.2",
|
34
|
+
"@typescript-eslint/eslint-plugin": "^5.31.0",
|
35
|
+
"@typescript-eslint/parser": "^5.31.0",
|
36
|
+
"eslint": "^8.20.0",
|
37
|
+
"eslint-plugin-prettier": "^4.2.1",
|
38
|
+
"husky": "^8.0.1",
|
39
|
+
"lint-staged": "^13.0.3",
|
40
|
+
"prettier": "^2.7.1",
|
41
|
+
"prettier-plugin-import-sort": "^0.0.7",
|
42
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
43
|
+
"prettier-plugin-packagejson": "^2.2.18",
|
44
|
+
"sortpack": "^2.3.0",
|
45
|
+
"typedoc": "^0.21.6",
|
46
|
+
"typedoc-plugin-sourcefile-url": "^1.0.6",
|
47
|
+
"typescript": "^4.7.4"
|
48
|
+
},
|
47
49
|
"importSort": {
|
48
50
|
".js, .jsx, .ts, .tsx": {
|
49
51
|
"style": "module",
|