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

Function normalizeVantaFramework

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

Source from the content-addressed store, hash-verified

346}
347
348export function normalizeVantaFramework(resource: JsonRecord): VantaFramework {
349 return {
350 id: getString(resource.id),
351 displayName: getString(resource.displayName),
352 shorthandName: getString(resource.shorthandName),
353 description: getString(resource.description),
354 numControlsCompleted: getNumber(resource.numControlsCompleted),
355 numControlsTotal: getNumber(resource.numControlsTotal),
356 numDocumentsPassing: getNumber(resource.numDocumentsPassing),
357 numDocumentsTotal: getNumber(resource.numDocumentsTotal),
358 numTestsPassing: getNumber(resource.numTestsPassing),
359 numTestsTotal: getNumber(resource.numTestsTotal),
360 }
361}
362
363function normalizeVantaFrameworkRequirementControl(
364 resource: JsonRecord

Callers 1

Calls 2

getStringFunction · 0.70
getNumberFunction · 0.70

Tested by

no test coverage detected