@dnax/core 0.68.10 → 0.69.1

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
@@ -83,27 +83,29 @@ async function runApp(config?: configRunApp, clb?: Function): Promise<Server> {
83
83
  spinner.stop();
84
84
  await sleep(250);
85
85
 
86
- console.log("\n");
87
86
  console.log(
88
87
  "\n---------------------------------------".gray +
89
88
  "\n✨ Your server is up and running\n".green.bold +
90
89
  "---------------------------------------\n".gray +
91
- `🌐 Pid : ${serverName} - ${process.pid}`.gray.bold +
90
+ `🌐 Pid : ${process.pid}`.gray.bold +
92
91
  `\n` +
93
92
  `🟢 Version : ${pkg.version}`.gray.bold +
94
93
  `\n\n` +
95
94
  `āš™ļø Environment : ${
96
95
  process.env.NODE_ENV || envName || "development"
97
- }\n`.gray +
98
- `šŸ•’ Started at : ${new Date().toLocaleString()}\n`.gray +
96
+ }\n`.gray.bold +
97
+ `šŸ•’ Started at : ${new Date().toLocaleString()}\n`.gray.bold +
98
+ `\n` +
99
+ `🌐 Server : ${serverName}`.gray.bold +
99
100
  `\n` +
100
- `šŸš€ Url : http://localhost:${PORT}\n\n`.gray +
101
+ `šŸš€ Url : http://localhost:${PORT}\n\n`.gray.bold +
101
102
  `Tenants :`.gray.underline.bold +
102
103
  `\n` +
103
104
  Cfg.tenants?.map((t: any) => {
104
105
  return `\n${t?.name?.blue || "_"} : ${t?.id?.green}`.bold;
105
106
  }) +
106
- `\n`
107
+ `\n\n` +
108
+ `---------------------------------------\n`.gray
107
109
  );
108
110
 
109
111
  if (clb) clb();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.68.10",
3
+ "version": "0.69.1",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},
package/types/index.ts CHANGED
@@ -309,16 +309,16 @@ export type Collection = {
309
309
  filesystemAdapter?: any;
310
310
  };
311
311
  customApi?: {
312
- aggregate?: (ctx: ctxApi) => Array<object> | null | undefined;
313
- insertOne?: (ctx: ctxApi) => object | null | undefined;
314
- insertMany?: (ctx: ctxApi) => Array<object> | null | undefined;
315
- updateOne?: (ctx: ctxApi) => object | null | undefined;
316
- updateMany?: (ctx: ctxApi) => object | null | undefined;
317
- deleteOne?: (ctx: ctxApi) => object | null | undefined;
318
- deleteMany?: (ctx: ctxApi) => object | null | undefined;
319
- find?: (ctx: ctxApi) => Array<object> | null | undefined;
320
- findOne?: (ctx: ctxApi) => object;
321
- count?: (ctx: ctxApi) => number;
312
+ aggregate?: (ctx: ctxApi) => Array<object> | null | undefined | typeof fn.error;
313
+ insertOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
314
+ insertMany?: (ctx: ctxApi) => Array<object> | null | undefined | typeof fn.error;
315
+ updateOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
316
+ updateMany?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
317
+ deleteOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
318
+ deleteMany?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
319
+ find?: (ctx: ctxApi) => Array<object> | null | undefined | typeof fn.error;
320
+ findOne?: (ctx: ctxApi) => object | null | undefined | typeof fn.error;
321
+ count?: (ctx: ctxApi) => number | null | undefined | typeof fn.error;
322
322
  };
323
323
 
324
324
  schema?: object;