@tui-sandbox/library 7.2.0 → 7.2.1
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/browser/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<title>tui-sandbox integration tests</title>
|
|
6
|
-
<script type="module" crossorigin src="/assets/index-
|
|
6
|
+
<script type="module" crossorigin src="/assets/index-DUKWG3jG.js"></script>
|
|
7
7
|
<link rel="stylesheet" crossorigin href="/assets/index-D6fBrqAi.css">
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
@@ -30,26 +30,26 @@ export class TestServer {
|
|
|
30
30
|
catch (e) {
|
|
31
31
|
// This is normal when developing the tui-sandbox library locally. It
|
|
32
32
|
// should always exist when using it as an npm package, however.
|
|
33
|
-
console.log(`⚠️ Warning: the tui-sandbox root contents directory is not accessible at: ${publicPath}`);
|
|
33
|
+
console.log(`⚠️ Warning: Looks like the tui-sandbox root contents directory is not accessible at: ${publicPath}`);
|
|
34
34
|
}
|
|
35
35
|
// eslint-disable-next-line import-x/no-named-as-default-member
|
|
36
36
|
app.use(express.static(publicPath));
|
|
37
37
|
}
|
|
38
38
|
app.use("/ping", (_, res) => {
|
|
39
|
-
console.log("🏓 received /ping")
|
|
39
|
+
// console.log("🏓 received /ping")
|
|
40
40
|
res.send("pong");
|
|
41
41
|
});
|
|
42
42
|
const server = app.listen(this.settings.port, "0.0.0.0");
|
|
43
43
|
server.on("connection", socket => {
|
|
44
|
-
const connectionInfo = `${socket.remoteAddress}:${socket.remotePort}
|
|
45
|
-
console.log(`➕➕ Connection from ${connectionInfo}`)
|
|
44
|
+
// const connectionInfo = `${socket.remoteAddress}:${socket.remotePort}`
|
|
45
|
+
// console.log(`➕➕ Connection from ${connectionInfo}`)
|
|
46
46
|
socket.once("close", () => {
|
|
47
|
-
console.log(`➖➖ Connection from ${connectionInfo}`)
|
|
47
|
+
// console.log(`➖➖ Connection from ${connectionInfo}`)
|
|
48
48
|
});
|
|
49
49
|
});
|
|
50
50
|
console.log(`✅ Server listening on port ${this.settings.port}`);
|
|
51
51
|
await Promise.race([once(process, "SIGTERM"), once(process, "SIGINT")]);
|
|
52
|
-
console.log("Shutting down...");
|
|
52
|
+
console.log("😴 Shutting down...");
|
|
53
53
|
server.close(error => {
|
|
54
54
|
if (error) {
|
|
55
55
|
console.error("Error closing server", error);
|