vatts 2.0.1 → 2.0.2
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.
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/helpers.js
CHANGED
|
@@ -112,6 +112,9 @@ const sendBox = (options) => {
|
|
|
112
112
|
if (localIp) {
|
|
113
113
|
console.info(timer + `${labelStyle} ┃ Network:${console_1.Colors.Reset} ${urlStyle}${protocol}://${localIp}:${exports.config?.port}${console_1.Colors.Reset}`);
|
|
114
114
|
}
|
|
115
|
+
if (exports.config?.ssl?.http3Port) {
|
|
116
|
+
console.info(timer + `${labelStyle} ┃ HTTP/3:${console_1.Colors.Reset} ${urlStyle}${protocol}://${localIp}:${exports.config.ssl.http3Port}${console_1.Colors.Reset}`);
|
|
117
|
+
}
|
|
115
118
|
// 3. Infos Extras (Redirect HTTP -> HTTPS)
|
|
116
119
|
// @ts-ignore
|
|
117
120
|
if (isSSL && exports.config.ssl?.redirectPort) {
|
|
@@ -603,10 +606,10 @@ async function initNativeServer(vattsApp, options, hostname, vattsConfig) {
|
|
|
603
606
|
});
|
|
604
607
|
// Atualiza UI
|
|
605
608
|
sendBox({ ...options });
|
|
606
|
-
const
|
|
609
|
+
const httpLabel = vattsConfig.ssl?.http3Port ? `HTTP/3 (${vattsConfig.ssl?.http3Port || ''})` : "HTTP/2";
|
|
610
|
+
const modeLabel = isSSL ? httpLabel : "HTTP (Shield active)";
|
|
607
611
|
msg.end(`${console_1.Colors.Bright}Ready on port ${console_1.Colors.BgGreen} ${publicPort} (${modeLabel}) ${console_1.Colors.Reset}\n` +
|
|
608
|
-
`${console_1.Colors.Dim} ↳ Engine running on Native Bridge (
|
|
609
|
-
`${console_1.Colors.Bright} in ${Date.now() - time}ms${console_1.Colors.Reset}\n`);
|
|
612
|
+
`${console_1.Colors.Dim} ↳ Engine running on Native Bridge in ${Date.now() - time}ms${console_1.Colors.Reset}\n`);
|
|
610
613
|
// MANTÉM O PROCESSO VIVO
|
|
611
614
|
// Como não chamamos server.listen(), o event loop do Node ficaria vazio e o processo morreria.
|
|
612
615
|
// Este intervalo mantém o processo rodando para processar os callbacks do CGO.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vatts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Vatts.js is a high-level framework for building web applications with ease and speed. It provides a robust set of tools and features to streamline development and enhance productivity.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"author": "mfraz",
|