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