@onebun/core 0.1.16 → 0.1.17
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 +1 -1
- package/src/module/module.ts +5 -4
package/package.json
CHANGED
package/src/module/module.ts
CHANGED
|
@@ -326,11 +326,12 @@ export class OneBunModule implements ModuleInstance {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
if
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
329
|
+
// Only report circular dependency if there are still unresolved services
|
|
330
|
+
const unresolvedServices = pendingProviders
|
|
331
|
+
.filter((p) => typeof p === 'function')
|
|
332
|
+
.map((p) => p.name);
|
|
333
333
|
|
|
334
|
+
if (iterations >= maxIterations && unresolvedServices.length > 0) {
|
|
334
335
|
const details = unresolvedServices
|
|
335
336
|
.map((serviceName) => {
|
|
336
337
|
const deps = unresolvedDeps.get(serviceName) || [];
|