2020117-agent 0.6.13 → 0.6.14

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.
@@ -13,7 +13,12 @@ export class HttpProcessor {
13
13
  this.url = url;
14
14
  }
15
15
  get name() {
16
- return `http:${this.url}`;
16
+ try {
17
+ return new URL(this.url).host;
18
+ }
19
+ catch {
20
+ return this.url;
21
+ }
17
22
  }
18
23
  async verify() {
19
24
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "2020117-agent",
3
- "version": "0.6.13",
3
+ "version": "0.6.14",
4
4
  "description": "2020117 agent runtime — Nostr-native relay subscription + Hyperswarm P2P + Lightning payments",
5
5
  "type": "module",
6
6
  "bin": {