@peerbit/server 5.0.32 → 5.0.33
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/lib/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-DUhlTXpa.js"></script>
|
|
27
27
|
<link rel="stylesheet" crossorigin href="/assets/index-BDBx6C_I.css">
|
|
28
28
|
</head>
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@peerbit/server",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.33",
|
|
4
4
|
"author": "dao.xyz",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@peerbit/test-lib": "^0.0.1",
|
|
58
|
-
"@peerbit/test-utils": "2.0.
|
|
58
|
+
"@peerbit/test-utils": "2.0.33",
|
|
59
59
|
"@types/tmp": "^0.2.3",
|
|
60
60
|
"@types/yargs": "17.0.24",
|
|
61
61
|
"aws-sdk": "^2.1259.0",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@dao-xyz/libp2p-noise": "^14.1.2",
|
|
66
66
|
"axios": "^1.4.0",
|
|
67
67
|
"chalk": "^5.3.0",
|
|
68
|
-
"peerbit": "4.0.
|
|
68
|
+
"peerbit": "4.0.7",
|
|
69
69
|
"tar-stream": "^3.1.6",
|
|
70
70
|
"tmp": "^0.2.1",
|
|
71
71
|
"tty-table": "^4.2.1",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"@aws-sdk/client-ec2": "^3.390.0",
|
|
77
77
|
"@aws-sdk/client-route-53": "^3.391.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "fcd486b9a5c3b7d94e2ae14f1b06ab2a0f7841ad"
|
|
80
80
|
}
|
package/src/server.ts
CHANGED
|
@@ -161,9 +161,15 @@ export const startServerWithNode = async (properties: {
|
|
|
161
161
|
exit();
|
|
162
162
|
});
|
|
163
163
|
});
|
|
164
|
+
|
|
165
|
+
process.on("uncaughtException", (err) => {
|
|
166
|
+
console.error("Uncaught exception", err);
|
|
167
|
+
});
|
|
168
|
+
|
|
164
169
|
process.on("exit", async () => {
|
|
165
170
|
if (server.listening) {
|
|
166
171
|
console.log("Shutting down node (exit)");
|
|
172
|
+
|
|
167
173
|
await stopAndWait(server);
|
|
168
174
|
await controller.stop();
|
|
169
175
|
}
|
|
@@ -443,6 +449,7 @@ export const startApiServer = async (
|
|
|
443
449
|
res.end(program.address.toString());
|
|
444
450
|
})
|
|
445
451
|
.catch((error) => {
|
|
452
|
+
console.error(error);
|
|
446
453
|
res.writeHead(400);
|
|
447
454
|
res.end("Failed to open program: " + error.toString());
|
|
448
455
|
});
|