import deepmerge from 'deepmerge';
import common from '../definitions/common.json';
import rawDefinition from '../definitions/vulnerability.json';

import { Base } from './Base';

class Vulnerability extends Base {
  constructor() {
    const definition_extension = {
      img: 'vulnerability.png',
      prefix: 'vulnerability--',
      active: true,
      relationships: [],
    };

    const def = deepmerge(definition_extension, rawDefinition);

    super(common, def);
  }
}

const singleton = new Vulnerability();

export default singleton;
