@wwawing/debug-server 3.12.2 → 3.12.4

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2022 WWA Wing Team
3
+ Copyright (c) 2018-2023 WWA Wing Team
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
Binary file
package/lib/index.js CHANGED
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  var express_1 = __importDefault(require("express"));
7
+ var serve_index_1 = __importDefault(require("serve-index"));
7
8
  var baseDir = process.argv.length < 3 ? "." : process.argv[2];
8
9
  var DEFAULT_PORT = 3000;
9
10
  function parseServerPort(port) {
@@ -18,7 +19,7 @@ function parseServerPort(port) {
18
19
  }
19
20
  var app = (0, express_1.default)();
20
21
  var SERVER_PORT = parseServerPort(process.env.WWA_SERVER_PORT);
21
- app.use("/", express_1.default.static(baseDir));
22
+ app.use("/", express_1.default.static(baseDir), (0, serve_index_1.default)(baseDir, { icons: true }));
22
23
  app.listen(SERVER_PORT, function () {
23
24
  console.log("Welcome to WWA Server!");
24
25
  console.log("http://localhost:".concat(SERVER_PORT, " \u3067\u30ED\u30FC\u30AB\u30EB\u3067\u30DE\u30C3\u30D7\u306E\u4ED5\u4E0A\u304C\u308A\u3092\u78BA\u8A8D\u3067\u304D\u307E\u3059\u3002"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/debug-server",
3
- "version": "3.12.2",
3
+ "version": "3.12.4",
4
4
  "description": "wwawing debug server",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -19,11 +19,13 @@
19
19
  "devDependencies": {
20
20
  "@types/express": "4.17.14",
21
21
  "@types/node": "^18.11.9",
22
+ "@types/serve-index": "1.9.1",
22
23
  "express": "^4.18.1",
23
24
  "pkg": "^5.8.0",
25
+ "serve-index": "1.9.1",
24
26
  "shelljs": "^0.8.5",
25
27
  "shx": "^0.3.4",
26
- "typescript": "^4.8.4"
28
+ "typescript": "^5.0.4"
27
29
  },
28
30
  "publishConfig": {
29
31
  "access": "public"
@@ -32,5 +34,5 @@
32
34
  "node": ">=18",
33
35
  "npm": ">=8"
34
36
  },
35
- "gitHead": "7d21c51df71824f542809f02e5de89b2c982524c"
37
+ "gitHead": "6832b6c7bcdf329f1dc81167b216300ab47a7f66"
36
38
  }