@le-space/browser 0.4.3 → 0.4.5

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/index.d.ts +1 -1
  2. package/index.js +2 -2
  3. package/package.json +9 -1
package/index.d.ts CHANGED
@@ -337,7 +337,7 @@ interface RootfsResolution {
337
337
 
338
338
  declare function fetchWithTimeout(input: RequestInfo | URL, init?: RequestInit, timeoutMs?: number): Promise<Response>;
339
339
 
340
- declare const DEFAULT_ALEPH_API_HOST = "https://api2.aleph.im";
340
+ declare const DEFAULT_ALEPH_API_HOST = "https://api.aleph.im";
341
341
  declare const DEFAULT_CRN_LIST_URL = "https://crns-list.aleph.sh/crns.json";
342
342
  declare const DEFAULT_ALEPH_SCHEDULER_API_HOST = "https://scheduler.api.aleph.cloud";
343
343
  declare const DEFAULT_2N6_API_HOST = "https://api.2n6.me";
package/index.js CHANGED
@@ -48,7 +48,7 @@ async function fetchWithTimeout(input, init = {}, timeoutMs = 15e3) {
48
48
  }
49
49
 
50
50
  // src/aleph-api.ts
51
- var DEFAULT_ALEPH_API_HOST = "https://api2.aleph.im";
51
+ var DEFAULT_ALEPH_API_HOST = "https://api.aleph.im";
52
52
  var DEFAULT_CRN_LIST_URL = "https://crns-list.aleph.sh/crns.json";
53
53
  var DEFAULT_ALEPH_SCHEDULER_API_HOST = "https://scheduler.api.aleph.cloud";
54
54
  var DEFAULT_2N6_API_HOST = "https://api.2n6.me";
@@ -116,7 +116,7 @@ async function fetchInstances(address, apiHost = DEFAULT_ALEPH_API_HOST) {
116
116
  const url = new URL("/api/v0/messages.json", apiHost);
117
117
  url.searchParams.set("msgTypes", "INSTANCE");
118
118
  url.searchParams.set("addresses", address);
119
- url.searchParams.set("message_statuses", "processed,pending,rejected,removing");
119
+ url.searchParams.set("message_statuses", "processed,pending,rejected");
120
120
  url.searchParams.set("pagination", "100");
121
121
  url.searchParams.set("page", "1");
122
122
  url.searchParams.set("sortOrder", "-1");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@le-space/browser",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Shared browser-safe Aleph deployment and polling helpers.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,5 +14,13 @@
14
14
  },
15
15
  "publishConfig": {
16
16
  "access": "public"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/NiKrause/shared-aleph-tooling"
21
+ },
22
+ "homepage": "https://github.com/NiKrause/shared-aleph-tooling",
23
+ "bugs": {
24
+ "url": "https://github.com/NiKrause/shared-aleph-tooling/issues"
17
25
  }
18
26
  }