stages.js
function loadDefaultStageHandlingOptions() {
  const options = require('./stages-options.json');
  const defaultOptions = options ? options.stageHandlingOptions : {};

  const defaults = {
    envStageName: 'STAGE',
    streamNameStageSeparator: '_',
    resourceNameStageSeparator: '_',
    injectInCase: 'upper',
    extractInCase: 'lower',
    defaultStage: undefined
  };
  return merge(defaults, defaultOptions);
}
function loadDefaultStageHandlingOptions() {
  const options = require('./stages-options.json');
  const defaultOptions = options ? options.stageHandlingOptions : {};

  const defaults = {
    envStageName: 'STAGE',
    streamNameStageSeparator: '_',
    resourceNameStageSeparator: '_',
    injectInCase: 'upper',
    extractInCase: 'lower',
    defaultStage: undefined
  };
  return merge(defaults, defaultOptions);
}
function loadDefaultStageHandlingOptions ( ) { const options = require ( './stages-options.json' ) ; const defaultOptions = options ? options . stageHandlingOptions : { } ; const defaults = { envStageName : 'STAGE' , streamNameStageSeparator : '_' , resourceNameStageSeparator : '_' , injectInCase : 'upper' , extractInCase : 'lower' , defaultStage : undefined } ; return merge ( defaults , defaultOptions ) ; }
Loads the default stage handling options from the local stages-options.json file and fills in any missing options with the
static default options.
@returns {StageHandlingOptions} the default stage handling options
Loads the default stage handling options from the local stages - options . json file and fills in any missing options with the static default options .