Skip to content

Commit 7287ab8

Browse files
committed
Bump packages: @typescript-eslint/eslint-plugin: 5.16.0 -> 5.17.0, @typescript-eslint/parser: 5.16.0 -> 5.17.0
1 parent bb19c8b commit 7287ab8

File tree

6 files changed

+149
-117
lines changed

6 files changed

+149
-117
lines changed

package-lock.json

Lines changed: 80 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@
420420
"@types/mocha": "^9.1.0",
421421
"@types/node": "^17.0.23",
422422
"@types/vscode": "^1.65.0",
423-
"@typescript-eslint/eslint-plugin": "^5.16.0",
424-
"@typescript-eslint/parser": "^5.16.0",
423+
"@typescript-eslint/eslint-plugin": "^5.17.0",
424+
"@typescript-eslint/parser": "^5.17.0",
425425
"eslint": "^8.12.0",
426426
"glob": "^7.2.0",
427427
"supports-color": "^9.2.2",

src/commands/generateDependencyInjectionGraph.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,17 @@ export class GenerateDependencyInjectionGraph extends ShowHierarchyBase {
121121
componentFilename = componentFilename.split('\\').join('/');
122122
const componentPosition = this.graphState.nodePositions[component.name];
123123
appendNodes([new Node(component.name, this.generatedComponentNode(component), componentFilename, component.filename, false, NodeType.component, componentPosition)]);
124-
component.dependencyInjections.forEach(injectable => {
125-
const injectablePosition = this.graphState.nodePositions[injectable.name];
126-
appendNodes([new Node(injectable.name, injectable.name, injectable.filename.replace(this.workspaceDirectory, ''), injectable.filename, false, NodeType.injectable, injectablePosition)]);
127-
appendEdges([new Edge((this.edges.length + 1).toString(), injectable.name, component.name, ArrowType.injectable)]);
124+
component.dependencies.forEach(injectable => {
125+
const injectablePosition = this.graphState.nodePositions[injectable.name];
126+
appendNodes([new Node(injectable.name, injectable.name, injectable.filename.replace(this.workspaceDirectory, ''), injectable.filename, false, NodeType.injectable, injectablePosition)]);
127+
appendEdges([new Edge((this.edges.length + 1).toString(), injectable.name, component.name, ArrowType.injectable)]);
128+
});
129+
});
130+
project.injectables.forEach(injectable=> {
131+
injectable.dependencies.forEach(dependency => {
132+
const dependencyPosition = this.graphState.nodePositions[dependency.name];
133+
appendNodes([new Node(dependency.name, dependency.name, dependency.filename.replace(this.workspaceDirectory, ''), dependency.filename, false, NodeType.injectable, dependencyPosition)]);
134+
appendEdges([new Edge((this.edges.length + 1).toString(), dependency.name, injectable.name, ArrowType.injectable)]);
128135
});
129136
});
130137
}

src/model/Component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { NamedEntity } from "./NamedEntity";
22

33
export class Component extends NamedEntity {
4-
public dependencyInjections: NamedEntity[] = [];
54
public inputs: NamedEntity[] = [];
65
public outputs: NamedEntity[] = [];
76
public viewChilds: NamedEntity[] = [];

src/model/NamedEntity.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
export class NamedEntity {
33
public name: string = '';
44
public filename: string = '';
5+
6+
public dependencies: NamedEntity[] = [];
7+
58
public constructor(name: string, filename: string) {
69
this.name = name;
710
this.filename = filename;

0 commit comments

Comments
 (0)