@peerbit/server 5.4.2 → 5.4.3

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.
@@ -23,7 +23,7 @@
23
23
  Learn how to configure a non-root public URL by running `npm run build`.
24
24
  -->
25
25
  <title>Peerbit</title>
26
- <script type="module" crossorigin src="/assets/index-D-KTj4Kv.js"></script>
26
+ <script type="module" crossorigin src="/assets/index-B0s7LdTp.js"></script>
27
27
  <link rel="stylesheet" crossorigin href="/assets/index-CIfVvUo9.css">
28
28
  </head>
29
29
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peerbit/server",
3
- "version": "5.4.2",
3
+ "version": "5.4.3",
4
4
  "author": "dao.xyz",
5
5
  "repository": {
6
6
  "type": "git",
package/src/client.ts CHANGED
@@ -208,8 +208,10 @@ export const createClient = async (
208
208
  await axiosInstance.get(endpoint + PROGRAMS_PATH, {
209
209
  validateStatus,
210
210
  }),
211
+ ) as { data: Record<string, any> };
212
+ await Promise.all(
213
+ [...Object.keys(resp.data)].map((address: string) => close(address)),
211
214
  );
212
- await Promise.all(resp.data.map((address: string) => close(address)));
213
215
  },
214
216
 
215
217
  drop: async (address: string): Promise<void> => {
@@ -221,8 +223,10 @@ export const createClient = async (
221
223
  await axiosInstance.get(endpoint + PROGRAMS_PATH, {
222
224
  validateStatus,
223
225
  }),
226
+ ) as { data: Record<string, any> };
227
+ await Promise.all(
228
+ [...Object.keys(resp.data)].map((address: string) => drop(address)),
224
229
  );
225
- await Promise.all(resp.data.map((address: string) => drop(address)));
226
230
  },
227
231
 
228
232
  list: async (): Promise<Record<string, Record<string, any> | null>> => {