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
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MikroServe
3
- } from "./chunk-SLBFEKEH.mjs";
3
+ } from "./chunk-TQN6BEGA.mjs";
4
4
  import "./chunk-ZFBBESGU.mjs";
5
5
  import "./chunk-GUYBTPZH.mjs";
6
6
  import "./chunk-YOHL3T54.mjs";
@@ -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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  MikroServe
3
- } from "./chunk-SLBFEKEH.mjs";
3
+ } from "./chunk-TQN6BEGA.mjs";
4
4
  import "./chunk-ZFBBESGU.mjs";
5
5
  import "./chunk-GUYBTPZH.mjs";
6
6
  import "./chunk-YOHL3T54.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mikroserve",
3
3
  "description": "Minimalistic, ready-to-use API, built on Node.js primitives.",
4
- "version": "0.0.9",
4
+ "version": "0.0.10",
5
5
  "author": "Mikael Vesavuori",
6
6
  "license": "MIT",
7
7
  "keywords": [