@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
|
@@ -129,11 +129,16 @@ export class X {
|
|
|
129
129
|
}
|
|
130
130
|
get(target) {
|
|
131
131
|
try {
|
|
132
|
-
const resolveName = typeof target === 'function'
|
|
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
|
-
|
|
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
|
}
|