@xrystal/core 3.14.0 → 3.14.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Yusuf Yasir KAYGUSUZ",
3
3
  "name": "@xrystal/core",
4
- "version": "3.14.0",
4
+ "version": "3.14.1",
5
5
  "description": "Project core for xrystal",
6
6
  "publishConfig": {
7
7
  "access": "public",
@@ -129,11 +129,16 @@ export class X {
129
129
  }
130
130
  get(target) {
131
131
  try {
132
- const resolveName = typeof target === 'function' ? target.name.charAt(0).toLowerCase() + target.name.slice(1) : target;
132
+ const resolveName = typeof target === 'function'
133
+ ? target.name.charAt(0).toLowerCase() + target.name.slice(1)
134
+ : target;
133
135
  return this.container.resolve(resolveName);
134
136
  }
135
137
  catch (err) {
136
- console.error(`[DI][ERROR] Resolution Failed:`, err.message);
138
+ if (err.message.includes('Cyclic dependencies')) {
139
+ console.error('\nāŒ [DI] addiction detected!');
140
+ console.error(`šŸ” Hata Yolu: ${err.resolutionStack}`);
141
+ }
137
142
  throw err;
138
143
  }
139
144
  }