node_modules/contentful-management/dist/es-modules/entities/environment.js
/**
 * This method wraps each environment in a collection with the environment API. See wrapEnvironment
 * above for more details.
 * @private
 * @param  {Object} http - HTTP client instance
 * @param  {Object} data - API response for a Environment collection
 * @return {SpaceCollection}
 */
This method wraps each environment in a collection with the environment API. See wrapEnvironment
above for more details.
@private
@param  {Object} http - HTTP client instance
@param  {Object} data - API response for a Environment collection
@return {SpaceCollection}
This method wraps each environment in a collection with the environment API . See wrapEnvironment above for more details . @private @param { Object } http - HTTP client instance @param { Object } data - API response for a Environment collection @return { SpaceCollection }
function wrapEnvironmentCollection(http, data) {
  var environments = toPlainObject(cloneDeep(data));
  environments.items = environments.items.map(function (entity) {
    return wrapEnvironment(http, entity);
  });
  return freezeSys(environments);
}
function wrapEnvironmentCollection ( http , data ) { var environments = toPlainObject ( cloneDeep ( data ) ) ; environments . items = environments . items . map ( function ( entity ) { return wrapEnvironment ( http , entity ) ; } ) ; return freezeSys ( environments ) ; }
This method wraps each environment in a collection with the environment API.
This method wraps each environment in a collection with the environment API .