mikroserve 0.0.9 → 0.0.10
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/MikroServe.js
CHANGED
|
@@ -438,7 +438,7 @@ var MikroServe = class {
|
|
|
438
438
|
this.setupGracefulShutdown(server);
|
|
439
439
|
server.listen(port, host, () => {
|
|
440
440
|
const address = server.address();
|
|
441
|
-
const protocol = this.config.useHttps ? "https" : "http";
|
|
441
|
+
const protocol = this.config.useHttps || this.config.useHttp2 ? "https" : "http";
|
|
442
442
|
console.log(
|
|
443
443
|
`MikroServe running at ${protocol}://${address.address !== "::" ? address.address : "localhost"}:${address.port}`
|
|
444
444
|
);
|
package/lib/MikroServe.mjs
CHANGED
|
@@ -91,7 +91,7 @@ var MikroServe = class {
|
|
|
91
91
|
this.setupGracefulShutdown(server);
|
|
92
92
|
server.listen(port, host, () => {
|
|
93
93
|
const address = server.address();
|
|
94
|
-
const protocol = this.config.useHttps ? "https" : "http";
|
|
94
|
+
const protocol = this.config.useHttps || this.config.useHttp2 ? "https" : "http";
|
|
95
95
|
console.log(
|
|
96
96
|
`MikroServe running at ${protocol}://${address.address !== "::" ? address.address : "localhost"}:${address.port}`
|
|
97
97
|
);
|
package/lib/index.js
CHANGED
|
@@ -440,7 +440,7 @@ var MikroServe = class {
|
|
|
440
440
|
this.setupGracefulShutdown(server);
|
|
441
441
|
server.listen(port, host, () => {
|
|
442
442
|
const address = server.address();
|
|
443
|
-
const protocol = this.config.useHttps ? "https" : "http";
|
|
443
|
+
const protocol = this.config.useHttps || this.config.useHttp2 ? "https" : "http";
|
|
444
444
|
console.log(
|
|
445
445
|
`MikroServe running at ${protocol}://${address.address !== "::" ? address.address : "localhost"}:${address.port}`
|
|
446
446
|
);
|
package/lib/index.mjs
CHANGED