@dnax/core 0.68.6 → 0.68.8

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/app/index.ts CHANGED
@@ -15,6 +15,7 @@ import { HonoInstance } from "./hono";
15
15
  import { utils } from "..";
16
16
  import type { Server } from "bun";
17
17
  import { getPidUsage } from "../utils/os";
18
+ import { sleep } from "radash";
18
19
  type configRunApp = {
19
20
  register?: Array<Function>;
20
21
  beforeStart?: Array<Function>;
@@ -79,28 +80,32 @@ async function runApp(config?: configRunApp, clb?: Function): Promise<Server> {
79
80
  let envName = process.env?.NODE_ENV || "dev";
80
81
 
81
82
  spinner.stop();
82
- console.clear();
83
+
84
+ spinner.clear();
85
+
86
+ await sleep(250);
83
87
 
84
88
  console.log("\n");
85
89
  console.log(
86
90
  "\n---------------------------------------".gray +
87
91
  "\n✨ Your server is up and running\n".green.bold +
88
92
  "---------------------------------------\n".gray +
89
- `🟢 Version : ${pkg.version}`.gray.bold +
93
+ `🌐 Pid : ${serverName} - ${process.pid}`.gray.bold +
90
94
  `\n` +
91
- `šŸŒ Environment : ${
95
+ `🟢 Version : ${pkg.version}`.gray.bold +
96
+ `\n\n` +
97
+ `āš™ļø Environment : ${
92
98
  process.env.NODE_ENV || envName || "development"
93
99
  }\n`.gray +
94
100
  `šŸ•’ Started at : ${new Date().toLocaleString()}\n`.gray +
95
101
  `\n` +
96
- `šŸ”— Url : http://localhost:${PORT}\n\n`.gray +
102
+ `šŸš€ Url : http://localhost:${PORT}\n\n`.gray +
97
103
  `Tenants :`.gray.underline.bold +
98
104
  `\n` +
99
105
  Cfg.tenants?.map((t: any) => {
100
106
  return `\n${t?.name?.blue || "_"} : ${t?.id?.green}`.bold;
101
107
  }) +
102
- `\n` +
103
- "---------------------------------------\n".gray
108
+ `\n`
104
109
  );
105
110
 
106
111
  if (clb) clb();
package/lib/index.ts CHANGED
@@ -13,11 +13,6 @@ import ora from "ora";
13
13
 
14
14
  // load all ressource
15
15
  async function init(cf = { app: null }) {
16
- console.clear();
17
- console.log("\n");
18
- const spinner = ora("Initializing...").start();
19
- spinner.color = "green";
20
-
21
16
  //console.log("šŸ”„ Initializing...".blue);
22
17
  await loadSocket();
23
18
  //consola.success("Loaded socket");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.68.6",
3
+ "version": "0.68.8",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},