Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
if (!packageResult) return
devclass = packageResult.name
}
if (parentType === PACKAGE) parentName = devclass
if (!devclass || !parentName) return
const options: NewObjectOptions | NewPackageOptions = {
description,
name: this.fixName(name, objType.typeId, parentName),
objtype: objType.typeId,
parentName,
parentPath: objectPath(parentType, parentName, ""),
responsible
}
if (isPackageType(options.objtype)) {
const pkgopt = await this.getPackageOptions(options)
if (!pkgopt) return
const { swcomp, packagetype, transportLayer } = pkgopt
const pkoptions = { ...options, swcomp, packagetype, transportLayer }
return {
devclass,
options: pkoptions
}
} else return { devclass, options }
}
private async findPackage(parent: MySearchResult) {