lemmy-js-client 0.17.0-rc.61 → 0.17.0-rc.62

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/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![GitHub issues](https://img.shields.io/github/issues-raw/LemmyNet/lemmy-js-client.svg)](https://github.com/LemmyNet/lemmy-js-client/issues)
5
5
  [![License](https://img.shields.io/github/license/LemmyNet/lemmy-js-client.svg)](LICENSE)
6
6
  ![GitHub stars](https://img.shields.io/github/stars/LemmyNet/lemmy-js-client?style=social)
7
+
7
8
  </div>
8
9
 
9
10
  # lemmy-js-client
@@ -21,14 +22,14 @@ A javascript / typescript http and websocket client and type system for [Lemmy](
21
22
  [LemmyWebsocket docs](https://join-lemmy.org/api/classes/LemmyWebsocket.html)
22
23
 
23
24
  ```ts
24
- import { Login, LemmyWebsocket } from 'lemmy-js-client';
25
+ import { Login, LemmyWebsocket } from "lemmy-js-client";
25
26
 
26
27
  let client: LemmyWebsocket = new LemmyWebsocket();
27
28
 
28
- let form = new Login({
29
+ let form: Login = {
29
30
  username_or_email: "my_email@email.tld",
30
31
  password: "my_pass",
31
- });
32
+ };
32
33
 
33
34
  this.ws.send(client.login(form));
34
35
  ```
@@ -44,3 +45,21 @@ let baseUrl = 'https://lemmy.ml';
44
45
  let client: LemmyHttp = new LemmyHttp(baseUrl, headers?);
45
46
  let jwt = await client.httpLogin(loginForm).jwt;
46
47
  ```
48
+
49
+ ## Development
50
+
51
+ You can use [yalc](https://github.com/wclr/yalc) to develop and test changes locally:
52
+
53
+ ```
54
+ yarn global add yalc
55
+
56
+ # Go to lemmy-js-client dir
57
+ yalc publish --push
58
+
59
+ # Go to your client dir
60
+ yalc add lemmy-js-client
61
+
62
+ # To do updates, go back to the lemmy-js-client dir
63
+ # This also updates it, in every dir you've added it.
64
+ yalc publish --push
65
+ ```
@@ -56,7 +56,7 @@ export interface Site {
56
56
  }
57
57
  export declare enum RegistrationMode {
58
58
  Closed = "closed",
59
- RequireApplication = "require_application",
59
+ RequireApplication = "requireapplication",
60
60
  Open = "open"
61
61
  }
62
62
  export interface LocalSite {
@@ -4,6 +4,6 @@ exports.RegistrationMode = void 0;
4
4
  var RegistrationMode;
5
5
  (function (RegistrationMode) {
6
6
  RegistrationMode["Closed"] = "closed";
7
- RegistrationMode["RequireApplication"] = "require_application";
7
+ RegistrationMode["RequireApplication"] = "requireapplication";
8
8
  RegistrationMode["Open"] = "open";
9
9
  })(RegistrationMode = exports.RegistrationMode || (exports.RegistrationMode = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemmy-js-client",
3
- "version": "0.17.0-rc.61",
3
+ "version": "0.17.0-rc.62",
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",