@@ -67,14 +67,16 @@ export class LfxGraphDependency {
6767 public resolvedEntry : LfxGraphEntry | undefined = undefined ;
6868
6969 public constructor ( options : ILfxGraphDependencyOptions ) {
70- this . name = options . name ;
71- this . versionPath = options . versionPath ;
72- this . entryId = options . entryId ;
73- this . originalSpecifier = options . originalSpecifier ;
74- this . dependencyKind = options . dependencyKind ;
75- this . peerDependencyMeta = options . peerDependencyMeta ;
76-
77- this . containingEntry = options . containingEntry ;
70+ const { name, versionPath, entryId, originalSpecifier, dependencyKind, peerDependencyMeta, containingEntry } =
71+ options ;
72+ this . name = name ;
73+ this . versionPath = versionPath ;
74+ this . entryId = entryId ;
75+ this . originalSpecifier = originalSpecifier ;
76+ this . dependencyKind = dependencyKind ;
77+ this . peerDependencyMeta = peerDependencyMeta ;
78+
79+ this . containingEntry = containingEntry ;
7880 }
7981}
8082
@@ -154,14 +156,24 @@ export class LfxGraphEntry {
154156 public readonly referrers : LfxGraphEntry [ ] = [ ] ;
155157
156158 public constructor ( options : ILfxGraphEntryOptions ) {
157- this . kind = options . kind ;
158- this . entryId = options . entryId ;
159- this . rawEntryId = options . rawEntryId ;
160- this . packageJsonFolderPath = options . packageJsonFolderPath ;
161- this . entryPackageName = options . entryPackageName ;
162- this . displayText = options . displayText ;
163- this . entryPackageVersion = options . entryPackageVersion ;
164- this . entrySuffix = options . entrySuffix ;
159+ const {
160+ kind,
161+ entryId,
162+ rawEntryId,
163+ packageJsonFolderPath,
164+ entryPackageName,
165+ displayText,
166+ entryPackageVersion,
167+ entrySuffix
168+ } = options ;
169+ this . kind = kind ;
170+ this . entryId = entryId ;
171+ this . rawEntryId = rawEntryId ;
172+ this . packageJsonFolderPath = packageJsonFolderPath ;
173+ this . entryPackageName = entryPackageName ;
174+ this . displayText = displayText ;
175+ this . entryPackageVersion = entryPackageVersion ;
176+ this . entrySuffix = entrySuffix ;
165177 }
166178}
167179
0 commit comments