var ContainerConstants = require("../constants/ContainerConstants");

const AppTypes = ["DEFAULT"].concat(
  Object.keys(ContainerConstants.TYPE)
    .map((typeKey) => ContainerConstants.TYPE[typeKey])
  );

module.exports = Object.freeze(AppTypes);

const AppTypes = {
  DEFAULT: "DEFAULT",
  DOCKER: "DOCKER"
};

module.exports = Object.freeze(AppTypes);

Refactor the app type constants
Refactor the app type constants

Use an ``Object`` instead of an ``Array`` for the app type constants. This will improve the readabllity and is more consistent. BREAKING CHANGE: ``AppTypes`` is no longer iterable.
