@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.
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/client.js +2 -2
- package/dist/src/client.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/assets/{index-D-KTj4Kv.js → index-B0s7LdTp.js} +1 -1
- package/dist/ui/index.html +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -2
package/dist/ui/index.html
CHANGED
|
@@ -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-
|
|
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
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>> => {
|