@stelliajs/framework 1.5.8 → 1.5.9

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.
@@ -15,10 +15,10 @@ export class StelliaClient extends Client {
15
15
  this.environment = stelliaOptions.environment;
16
16
  }
17
17
  process.on("unhandledRejection", (error) => {
18
- logger.error(`Unhandled promise rejection: ${error.stack}`);
18
+ logger.errorWithInformation("Unhandled promise rejection", error);
19
19
  });
20
20
  process.on("uncaughtException", (error) => {
21
- logger.error(`Uncaught exception: ${error.stack}`);
21
+ logger.errorWithInformation("Uncaught exception", error);
22
22
  });
23
23
  }
24
24
  static async create(clientOptions, stelliaOptions) {
@@ -37,7 +37,7 @@ export class StelliaUtils {
37
37
  logger.success("Application commands registered successfully");
38
38
  }
39
39
  catch (error) {
40
- logger.error(`Error while registering application commands: ${error.stack}`);
40
+ logger.errorWithInformation("Error while registering application commands", error);
41
41
  }
42
42
  }
43
43
  };
@@ -72,7 +72,7 @@ export class StelliaUtils {
72
72
  logger.success("Guilds configuration loaded successfully for interactions");
73
73
  }
74
74
  catch (error) {
75
- logger.error(`Error while loading guilds configuration: ${error.stack}`);
75
+ logger.errorWithInformation("Error while loading guilds configuration", error);
76
76
  }
77
77
  }
78
78
  }
@@ -97,7 +97,7 @@ export class StelliaUtils {
97
97
  }
98
98
  }
99
99
  catch (error) {
100
- logger.error(`Error while handling autocomplete interaction: ${error.stack}`);
100
+ logger.errorWithInformation("Error while handling autocomplete interaction", error);
101
101
  }
102
102
  };
103
103
  handleButtonInteraction = async (interaction) => {
@@ -124,7 +124,7 @@ export class StelliaUtils {
124
124
  }
125
125
  }
126
126
  catch (error) {
127
- logger.error(`Error while handling button interaction: ${error.stack}`);
127
+ logger.errorWithInformation("Error while handling button interaction", error);
128
128
  }
129
129
  };
130
130
  handleCommandInteraction = async (interaction) => {
@@ -150,7 +150,7 @@ export class StelliaUtils {
150
150
  }
151
151
  }
152
152
  catch (error) {
153
- logger.error(`Error while handling command interaction: ${error.stack}`);
153
+ logger.errorWithInformation("Error while handling command interaction", error);
154
154
  }
155
155
  };
156
156
  handleContextMenuInteraction = async (interaction) => {
@@ -166,7 +166,7 @@ export class StelliaUtils {
166
166
  }
167
167
  }
168
168
  catch (error) {
169
- logger.error(`Error while handling context menu interaction: ${error.stack}`);
169
+ logger.errorWithInformation("Error while handling context menu interaction", error);
170
170
  }
171
171
  };
172
172
  handleModalInteraction = async (interaction) => {
@@ -193,7 +193,7 @@ export class StelliaUtils {
193
193
  }
194
194
  }
195
195
  catch (error) {
196
- logger.error(`Error while handling modal interaction: ${error.stack}`);
196
+ logger.errorWithInformation("Error while handling modal interaction", error);
197
197
  }
198
198
  };
199
199
  handleSelectMenuInteraction = async (interaction) => {
@@ -220,7 +220,7 @@ export class StelliaUtils {
220
220
  }
221
221
  }
222
222
  catch (error) {
223
- logger.error(`Error while handling select menu interaction: ${error.stack}`);
223
+ logger.errorWithInformation("Error while handling select menu interaction", error);
224
224
  }
225
225
  };
226
226
  handleMessageContextMenuInteraction = async (interaction) => {
@@ -245,7 +245,7 @@ export class StelliaUtils {
245
245
  }
246
246
  }
247
247
  catch (error) {
248
- logger.error(`Error while handling message context menu interaction: ${error.stack}`);
248
+ logger.errorWithInformation("Error while handling message context menu interaction", error);
249
249
  }
250
250
  };
251
251
  handleUserContextMenuInteraction = async (interaction) => {
@@ -270,7 +270,7 @@ export class StelliaUtils {
270
270
  }
271
271
  }
272
272
  catch (error) {
273
- logger.error(`Error while handling user context menu interaction: ${error.stack}`);
273
+ logger.errorWithInformation("Error while handling user context menu interaction", error);
274
274
  }
275
275
  };
276
276
  getInteractionType(interaction) {
@@ -104,7 +104,7 @@ export class EventManager extends BaseManager {
104
104
  logger.success("Guilds configuration loaded successfully for events");
105
105
  }
106
106
  catch (error) {
107
- logger.error(`Error while loading guilds configuration: ${error.stack}`);
107
+ logger.errorWithInformation("Error while loading guilds configuration", error);
108
108
  }
109
109
  }
110
110
  }
@@ -3,4 +3,5 @@ export declare const logger: {
3
3
  success: (message: string) => void;
4
4
  warn: (message: string) => void;
5
5
  error: (message: string) => void;
6
+ errorWithInformation: (message: string, error: Error) => void;
6
7
  };
@@ -12,5 +12,8 @@ export const logger = {
12
12
  },
13
13
  error: (message) => {
14
14
  console.error(`${logSymbols.error} ${prefix} ${message}`);
15
+ },
16
+ errorWithInformation: (message, error) => {
17
+ console.error(`${logSymbols.error} ${prefix} ${message}: `, error);
15
18
  }
16
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stelliajs/framework",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {
@@ -23,19 +23,19 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "discord.js": "^14.24.0",
27
- "i18next": "^25.6.0",
26
+ "discord.js": "^14.25.1",
27
+ "i18next": "^25.7.2",
28
28
  "log-symbols": "^7.0.1"
29
29
  },
30
30
  "devDependencies": {
31
- "@eslint/js": "^9.38.0",
31
+ "@eslint/js": "^9.39.1",
32
32
  "eslint-config-prettier": "^10.1.8",
33
33
  "eslint-import-resolver-typescript": "^4.4.4",
34
34
  "eslint-plugin-import": "^2.32.0",
35
- "prettier": "^3.6.2",
35
+ "prettier": "^3.7.4",
36
36
  "tsc-alias": "^1.8.16",
37
- "typescript-eslint": "^8.46.2"
37
+ "typescript-eslint": "^8.49.0"
38
38
  },
39
39
  "type": "module",
40
- "packageManager": "pnpm@10.19.0"
40
+ "packageManager": "pnpm@10.24.0"
41
41
  }