minimalistic-server 0.0.43 → 0.0.44

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.
Files changed (2) hide show
  1. package/index.mjs +5 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -708,7 +708,7 @@ const mimeTypes = {
708
708
  "xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
709
709
  "xltm": "application/vnd.ms-excel.template.macroenabled.12",
710
710
  "xltx": "application/vnd.openxmlformats-officedocument.spreadsheetml.template",
711
- "xml": "application/rss+xml",
711
+ "xml": "application/xml",
712
712
  "xo": "application/vnd.olpc-sugar",
713
713
  "xop": "application/xop+xml",
714
714
  "xpi": "application/x-xpinstall",
@@ -815,6 +815,10 @@ export class Request {
815
815
  });
816
816
  }
817
817
 
818
+ isAlive() {
819
+ return this.#request.socket.closed || this.#request.socket.destroyed;
820
+ }
821
+
818
822
  getMethod() {
819
823
  return this.#method;
820
824
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minimalistic-server",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "engines" : {
5
5
  "npm" : ">=8.6.0",
6
6
  "node" : ">=22.0.0"