@wroud/di-tools-analyzer
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -6,2 +6,9 @@ <!-- header --> | ||
<!-- version:0.2.1 --> | ||
## 0.2.1 | ||
### 🩹 Fixes | ||
- async services resolving and stricter type checking (a028c56) | ||
<!-- version:0.2.0 --> | ||
@@ -8,0 +15,0 @@ ## 0.2.0 |
@@ -7,2 +7,3 @@ import { ServiceRegistry } from "@wroud/di"; | ||
import { ServiceLifetime } from "@wroud/di/di/ServiceLifetime.js"; | ||
import { getServiceTypeFromDependency } from "@wroud/di/helpers/getServiceTypeFromDependency.js"; | ||
export async function getDependenciesGraph(serviceCollection) { | ||
@@ -49,3 +50,3 @@ const nodes = new Map(); | ||
for (const dependency of dependencies.dependencies) { | ||
const service = Array.isArray(dependency) ? dependency[0] : dependency; | ||
const service = getServiceTypeFromDependency(dependency); | ||
const descriptors = serviceCollection.getDescriptors(service); | ||
@@ -52,0 +53,0 @@ if (descriptors.length === 0) { |
{ | ||
"name": "@wroud/di-tools-analyzer", | ||
"description": "DI Tools Analyzer is a tool that helps you to analyze the dependency injection tools in your project and generate a report for them.", | ||
"version": "0.2.0", | ||
"packageManager": "yarn@4.4.1", | ||
"version": "0.2.1", | ||
"packageManager": "yarn@4.5.0", | ||
"type": "module", | ||
@@ -7,0 +7,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
54104
632