@peerbit/server 5.0.31 → 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/esm/server.js +4 -0
- package/lib/esm/server.js.map +1 -1
- package/lib/ui/assets/{index-BLVyvFWP.js → index-DUhlTXpa.js} +21 -21
- package/lib/ui/index.html +4 -4
- package/package.json +4 -4
- package/src/server.ts +7 -0
- /package/lib/ui/assets/{favicon-WGaUXUq4.ico → favicon-BYZpRdSr.ico} +0 -0
- /package/lib/ui/assets/{index-QwcegvyF.css → index-BDBx6C_I.css} +0 -0
- /package/lib/ui/assets/{index-mqBh2zzx.js → index-BSyx7bor.js} +0 -0
- /package/lib/ui/assets/{manifest-0qBlPE9u.json → manifest-DSoGU8T2.json} +0 -0
package/lib/ui/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="utf-8" />
|
|
6
|
-
<link rel="icon" href="/assets/favicon-
|
|
6
|
+
<link rel="icon" href="/assets/favicon-BYZpRdSr.ico" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
8
8
|
<meta name="theme-color" content="#000000" />
|
|
9
9
|
<meta name="description" content="Peerbit node" />
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
manifest.json provides metadata used when your web app is installed on a
|
|
13
13
|
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
14
14
|
-->
|
|
15
|
-
<link rel="manifest" href="/assets/manifest-
|
|
15
|
+
<link rel="manifest" href="/assets/manifest-DSoGU8T2.json" />
|
|
16
16
|
<!--
|
|
17
17
|
Notice the use of in the tags above.
|
|
18
18
|
It will be replaced with the URL of the `public` folder during the build.
|
|
@@ -23,8 +23,8 @@
|
|
|
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-
|
|
27
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
26
|
+
<script type="module" crossorigin src="/assets/index-DUhlTXpa.js"></script>
|
|
27
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BDBx6C_I.css">
|
|
28
28
|
</head>
|
|
29
29
|
|
|
30
30
|
<body>
|
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
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|