expresso-macchiato 0.3.8-dev.5 → 0.3.9-beta.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/dist/index.js CHANGED
@@ -94,7 +94,7 @@ var _DbConnector = class _DbConnector {
94
94
  for (let migration of migrations) {
95
95
  if (executedMigrationNames.includes(migration)) log.gray(`- Migration ${migration} already executed, skipping.`);
96
96
  else {
97
- log.yellow(`- Executing migration ${migration}`);
97
+ log.gray(`- Executing migration ${migration}`);
98
98
  await AppDataSource.runMigrations();
99
99
  }
100
100
  }
@@ -550,7 +550,7 @@ _DynamicDbRouter.addDbRouterSwagger = (options) => {
550
550
  const avoidList = _nullishCoalesce(options.avoid, () => ( []));
551
551
  try {
552
552
  let schemaProperties = {};
553
- if (options.bodyParameters && options.bodyParameters) {
553
+ if (options.bodyParameters) {
554
554
  const defaultOverridingSchema = options.bodyParameters;
555
555
  for (const param in defaultOverridingSchema.properties) {
556
556
  const paramValue = defaultOverridingSchema.properties[param];
@@ -737,7 +737,6 @@ var SocketWrapper = class {
737
737
  const metadata = client.handshake.query.metadata;
738
738
  const finalClientId = this.data.clientConnectionKey ? _nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _45 => _45[this.data.clientConnectionKey]]), () => ( client.id)) : client.id;
739
739
  this.connectedClients.set(finalClientId, { socket: client, connectedAt: /* @__PURE__ */ new Date(), metadata });
740
- log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} connected`);
741
740
  if (this.data.afterClientConnect) this.data.afterClientConnect(this, client, metadata);
742
741
  for (const eventName in this.data.listeners) client.on(eventName, (...params) => _optionalChain([this, 'access', _46 => _46.data, 'access', _47 => _47.listeners, 'optionalAccess', _48 => _48[eventName], 'call', _49 => _49(this, client, metadata, ...params)]));
743
742
  client.on("disconnect", () => this.handleDisconnection(client));
@@ -753,7 +752,6 @@ var SocketWrapper = class {
753
752
  try {
754
753
  if (!this.namespace) throw new Error("Socket.IO not initialized");
755
754
  this.connectedClients.delete(client.id);
756
- log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} disconnected`);
757
755
  if (this.data.onClientDisconnect) this.data.onClientDisconnect(client);
758
756
  } catch (err) {
759
757
  fullLogNok(`SOCKETWRAPPER`, `[${this.socketNamespace.toUpperCase()}]`, err);
package/dist/index.mjs CHANGED
@@ -94,7 +94,7 @@ var _DbConnector = class _DbConnector {
94
94
  for (let migration of migrations) {
95
95
  if (executedMigrationNames.includes(migration)) log.gray(`- Migration ${migration} already executed, skipping.`);
96
96
  else {
97
- log.yellow(`- Executing migration ${migration}`);
97
+ log.gray(`- Executing migration ${migration}`);
98
98
  await AppDataSource.runMigrations();
99
99
  }
100
100
  }
@@ -550,7 +550,7 @@ _DynamicDbRouter.addDbRouterSwagger = (options) => {
550
550
  const avoidList = options.avoid ?? [];
551
551
  try {
552
552
  let schemaProperties = {};
553
- if (options.bodyParameters && options.bodyParameters) {
553
+ if (options.bodyParameters) {
554
554
  const defaultOverridingSchema = options.bodyParameters;
555
555
  for (const param in defaultOverridingSchema.properties) {
556
556
  const paramValue = defaultOverridingSchema.properties[param];
@@ -737,7 +737,6 @@ var SocketWrapper = class {
737
737
  const metadata = client.handshake.query.metadata;
738
738
  const finalClientId = this.data.clientConnectionKey ? metadata?.[this.data.clientConnectionKey] ?? client.id : client.id;
739
739
  this.connectedClients.set(finalClientId, { socket: client, connectedAt: /* @__PURE__ */ new Date(), metadata });
740
- log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} connected`);
741
740
  if (this.data.afterClientConnect) this.data.afterClientConnect(this, client, metadata);
742
741
  for (const eventName in this.data.listeners) client.on(eventName, (...params) => this.data.listeners?.[eventName](this, client, metadata, ...params));
743
742
  client.on("disconnect", () => this.handleDisconnection(client));
@@ -753,7 +752,6 @@ var SocketWrapper = class {
753
752
  try {
754
753
  if (!this.namespace) throw new Error("Socket.IO not initialized");
755
754
  this.connectedClients.delete(client.id);
756
- log.cyan(`[SOCKETWRAPPER] [${this.socketNamespace.toUpperCase()}] Client ${client.id} disconnected`);
757
755
  if (this.data.onClientDisconnect) this.data.onClientDisconnect(client);
758
756
  } catch (err) {
759
757
  fullLogNok(`SOCKETWRAPPER`, `[${this.socketNamespace.toUpperCase()}]`, err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expresso-macchiato",
3
- "version": "0.3.8-dev.5",
3
+ "version": "0.3.9-beta.1",
4
4
  "author": "Alessio Velluso",
5
5
  "license": "MIT",
6
6
  "description": "Description",