import { withName } from './shared';
import { FEATURES } from 'data/columns';

export default function isEnterprise(modules) {
  const serverModule = modules.find(withName('SERVER'));

  const hasFeatures = /[CDEFSW]/.test(serverModule[FEATURES]);
  const hasModules = ['WSINPUT', 'WSOUTPUT', 'ECOPY'].some(name => (
    modules.some(withName(name))
  ));

  return hasFeatures || hasModules;
}

import { withName } from './shared';

export default function isEnterprise(modules) {
  const hasModules = ['WSINPUT', 'WSOUTPUT', 'ECOPY'].some(name => (
    modules.some(withName(name))
  ));

  return hasModules;
}

Stop checking server features to determine enterprise vs. standard
Stop checking server features to determine enterprise vs. standard
