4bnode 4.0.9 → 4.1.0
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/package.json +1 -1
- package/skeleton/index.js +5 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "4bnode",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "4bnode is a CLI-powered backend development platform with a built-in visual dashboard to generate, manage, and test Node.js/Express APIs faster.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
package/skeleton/index.js
CHANGED
|
@@ -7,7 +7,6 @@ import os from "os";
|
|
|
7
7
|
import { createInterface } from "readline";
|
|
8
8
|
|
|
9
9
|
// ── Environment ─────────────────────────────────────
|
|
10
|
-
const env = process.env.NODE_ENV || "development";
|
|
11
10
|
dotenv.config();
|
|
12
11
|
|
|
13
12
|
const app = express();
|
|
@@ -19,13 +18,11 @@ app.use(express.json({ limit: "50mb" }));
|
|
|
19
18
|
app.use(express.urlencoded({ extended: true, limit: "50mb" }));
|
|
20
19
|
app.use(cors({ origin: "*" }));
|
|
21
20
|
|
|
22
|
-
// ── Dev Dashboard
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} catch {}
|
|
28
|
-
}
|
|
21
|
+
// ── Dev Dashboard ───────────────────────────────────
|
|
22
|
+
try {
|
|
23
|
+
const devApi = await import("./.4bnode/dev-api.js");
|
|
24
|
+
app.use("/_dev", devApi.default);
|
|
25
|
+
} catch {}
|
|
29
26
|
|
|
30
27
|
// ── Static Files ────────────────────────────────────
|
|
31
28
|
app.use(express.static(path.join(__dirname, "public")));
|