@synonymdev/pubky 0.1.2 → 0.1.4

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.
Files changed (3) hide show
  1. package/README.md +6 -5
  2. package/browser.js +16 -5
  3. package/package.json +1 -2
package/README.md CHANGED
@@ -43,6 +43,9 @@ await client.put(url, body);
43
43
 
44
44
  let response = await client.get(url);
45
45
  }
46
+
47
+ // Delete public data, by authorized client
48
+ await client.delete(url);
46
49
  ```
47
50
 
48
51
  ## Test and Development
@@ -68,12 +71,10 @@ Run the local testnet server
68
71
  npm run testnet
69
72
  ```
70
73
 
71
- Pass the logged addresses as inputs to `PubkyClient`
74
+ Use the logged addresses as inputs to `PubkyClient`
72
75
 
73
76
  ```js
74
- import { PubkyClient, PublicKey } from '../index.js'
75
-
76
- const client = new PubkyClient().setPkarrRelays(["http://localhost:15411/pkarr"]);
77
+ import { PubkyClient } from '../index.js'
77
78
 
78
- let homeserver = PublicKey.from("8pinxxgqs41n4aididenw5apqp1urfmzdztr8jt4abrkdn435ewo");
79
+ const client = new PubkyClient().testnet();
79
80
  ```