MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeVantaVulnerableAsset

Function normalizeVantaVulnerableAsset

apps/sim/tools/vanta/utils.ts:757–766  ·  view source on GitHub ↗
(resource: JsonRecord)

Source from the content-addressed store, hash-verified

755}
756
757export function normalizeVantaVulnerableAsset(resource: JsonRecord): VantaVulnerableAsset {
758 return {
759 id: getString(resource.id),
760 name: getString(resource.name),
761 assetType: getString(resource.assetType),
762 hasBeenScanned: getBoolean(resource.hasBeenScanned),
763 imageScanTag: getString(resource.imageScanTag),
764 scanners: getRecordArray(resource.scanners).map(normalizeVantaVulnerableAssetScanner),
765 }
766}
767
768export function normalizeVantaVulnerability(resource: JsonRecord): VantaVulnerability {
769 const deactivateMetadata = isRecordLike(resource.deactivateMetadata)

Callers 1

buildVantaOutputFunction · 0.90

Calls 3

getStringFunction · 0.70
getBooleanFunction · 0.70
getRecordArrayFunction · 0.70

Tested by

no test coverage detected