@dnax/core 0.69.2 → 0.69.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.
Files changed (2) hide show
  1. package/app/index.ts +30 -23
  2. package/package.json +1 -1
package/app/index.ts CHANGED
@@ -78,34 +78,41 @@ async function runApp(config?: configRunApp, clb?: Function): Promise<Server> {
78
78
  process.env.SERVER_NAME || Cfg?.server?.name || "SERVER";
79
79
 
80
80
  let envName = process.env?.NODE_ENV || "dev";
81
-
82
81
  spinner.clear();
83
82
  spinner.stop();
84
83
  await sleep(250);
85
84
 
85
+ let info = "";
86
+
87
+ info += `${serverName}`.gray.underline.bold;
88
+ info += `\n`;
89
+ info += `\n`;
90
+ info += `Env: ${envName}`.green.bold + "\n";
91
+ info += `url: http://localhost:${PORT}\n`.gray.bold;
92
+ //info += `Jwt Secret: ${Cfg.server.jwt?.secret}\n`.gray;
93
+ info += `\n`;
94
+ info += "TENANTS :".gray.underline.bold;
95
+ info += `\n`;
96
+ Cfg.tenants?.map((t: any) => {
97
+ info += `\n${t?.name?.blue || "_"} : ${t?.id?.green}`.bold;
98
+ });
99
+ info += `\n\n`;
100
+ info += `šŸ”„ ${new Date().toLocaleString()}`.gray;
101
+ if (clb) clb();
102
+
103
+ console.log();
86
104
  console.log(
87
- "\n---------------------------------------".gray +
88
- "\n✨ Your server is up and running\n".green.bold +
89
- "---------------------------------------\n".gray +
90
- `🌐 Pid : ${process.pid}`.gray.bold +
91
- `\n` +
92
- `🟢 Version : ${pkg.version}`.gray.bold +
93
- `\n\n` +
94
- `āš™ļø Environment : ${
95
- process.env.NODE_ENV || envName || "development"
96
- }\n`.gray.bold +
97
- `šŸ•’ Started at : ${new Date().toLocaleString()}\n`.gray.bold +
98
- `\n` +
99
- `🌐 Server : ${serverName}`.gray.bold +
100
- `\n` +
101
- `šŸš€ Url : http://localhost:${PORT}\n\n`.gray.bold +
102
- `Tenants :`.gray.underline.bold +
103
- `\n` +
104
- Cfg.tenants?.map((t: any) => {
105
- return `\n${t?.name?.blue || "_"} : ${t?.id?.green}`.bold;
106
- }) +
107
- `\n\n` +
108
- `---------------------------------------\n`.gray
105
+ boxen(info, {
106
+ borderStyle: "double",
107
+ title: `@dnax/server ${pkg.version}`,
108
+ padding: 1.5,
109
+ dimBorder: true,
110
+
111
+ titleAlignment: "center",
112
+ //float: "center",
113
+ //margin: 1,
114
+ borderColor: "gray",
115
+ })
109
116
  );
110
117
 
111
118
  if (clb) clb();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.69.2",
3
+ "version": "0.69.4",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},