@synonymdev/pubky 0.4.0-rc1 → 0.4.0-rc2

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@synonymdev/pubky",
3
3
  "type": "module",
4
4
  "description": "Pubky client",
5
- "version": "0.4.0-rc1",
5
+ "version": "0.4.0-rc2",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/pubky.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
+ export function setLogLevel(level: string): void;
3
4
  /**
4
5
  * Create a recovery file of the `keypair`, containing the secret key encrypted
5
6
  * using the `passphrase`.
@@ -10,12 +11,22 @@ export function createRecoveryFile(keypair: Keypair, passphrase: string): Uint8A
10
11
  * using the `passphrase`.
11
12
  */
12
13
  export function decryptRecoveryFile(recovery_file: Uint8Array, passphrase: string): Keypair;
13
- export function setLogLevel(level: string): void;
14
14
  /**
15
15
  * A client for Pubky homeserver API, as well as generic HTTP requests to Pubky urls.
16
16
  */
17
17
  export class Client {
18
18
  free(): void;
19
+ /**
20
+ * Create Client with default Settings including default relays
21
+ */
22
+ constructor();
23
+ /**
24
+ * Create a client with with configurations appropriate for local testing:
25
+ * - set Pkarr relays to `["http://localhost:15411"]` instead of default relay.
26
+ * - transform `pubky://<pkarr public key>` to `http://<pkarr public key` instead of `https:`
27
+ * and read the homeserver HTTP port from the [reserved service parameter key](pubky_common::constants::reserved_param_keys::HTTP_PORT)
28
+ */
29
+ static testnet(): Client;
19
30
  /**
20
31
  * Signup to a homeserver and update Pkarr accordingly.
21
32
  *
@@ -63,15 +74,6 @@ export class Client {
63
74
  */
64
75
  list(url: string, cursor?: string, reverse?: boolean, limit?: number, shallow?: boolean): Promise<Array<any>>;
65
76
  fetch(url: string, request_init?: any): Promise<Promise<any>>;
66
- /**
67
- * Create Client with default Settings including default relays
68
- */
69
- constructor();
70
- /**
71
- * Create a client with with configurations appropriate for local testing:
72
- * - set Pkarr relays to `["http://localhost:15411"]` instead of default relay.
73
- */
74
- static testnet(): Client;
75
77
  }
76
78
  export class Keypair {
77
79
  private constructor();
package/pubky_bg.wasm CHANGED
Binary file