@hclsoftware/secagent
Version:
IAST agent
30 lines (25 loc) • 777 B
JavaScript
//IASTIGNORE
/*
* ****************************************************
* Licensed Materials - Property of HCL.
* (c) Copyright HCL Technologies Ltd. 2017, 2025.
* Note to U.S. Government Users *Restricted Rights.
* ****************************************************
*/
'use strict'
class SinkReport {
constructor(url, entityName, entityType, stack, vulnerability, isExtra) {
this.url = url;
this.entityName = entityName;
this.entityType = entityType;
this.vulnerability = vulnerability;
this.stackList = new Set();
this.addStack(stack);
this.isExtra = isExtra;
}
addStack(stack)
{
this.stackList.add(stack.toString());
}
}
module.exports = SinkReport;