node_modules/contentful-management/dist/es-modules/entities/space.js
/**
 * This method creates the API for the given space with all the methods for
 * reading and creating other entities. It also passes down a clone of the
 * http client with a space id, so the base path for requests now has the
 * space id already set.
 * @private
 * @param  {Object} http - HTTP client instance
 * @param  {Object} data - API response for a Space
 * @return {Space}
 */
This method creates the API for the given space with all the methods for
reading and creating other entities. It also passes down a clone of the
http client with a space id, so the base path for requests now has the
space id already set.
@private
@param  {Object} http - HTTP client instance
@param  {Object} data - API response for a Space
@return {Space}
This method creates the API for the given space with all the methods for reading and creating other entities . It also passes down a clone of the http client with a space id so the base path for requests now has the space id already set . @private @param { Object } http - HTTP client instance @param { Object } data - API response for a Space @return { Space }
function wrapSpace(http, data) {
  var space = toPlainObject(cloneDeep(data));
  var _http$httpClientParam = http.httpClientParams,
      hostUpload = _http$httpClientParam.hostUpload,
      defaultHostnameUpload = _http$httpClientParam.defaultHostnameUpload;
  var spaceScopedHttpClient = http.cloneWithNewParams({
    space: space.sys.id
  });
  var spaceScopedUploadClient = http.cloneWithNewParams({
    space: space.sys.id,
    host: hostUpload || defaultHostnameUpload
  });
  var spaceApi = createSpaceApi({
    http: spaceScopedHttpClient,
    httpUpload: spaceScopedUploadClient
  });
  var enhancedSpace = enhanceWithMethods(space, spaceApi);
  return freezeSys(enhancedSpace);
}
function wrapSpace ( http , data ) { var space = toPlainObject ( cloneDeep ( data ) ) ; var _http$httpClientParam = http . httpClientParams , hostUpload = _http$httpClientParam . hostUpload , defaultHostnameUpload = _http$httpClientParam . defaultHostnameUpload ; var spaceScopedHttpClient = http . cloneWithNewParams ( { space : space . sys . id } ) ; var spaceScopedUploadClient = http . cloneWithNewParams ( { space : space . sys . id , host : hostUpload || defaultHostnameUpload } ) ; var spaceApi = createSpaceApi ( { http : spaceScopedHttpClient , httpUpload : spaceScopedUploadClient } ) ; var enhancedSpace = enhanceWithMethods ( space , spaceApi ) ; return freezeSys ( enhancedSpace ) ; }
This method creates the API for the given space with all the methods for
 reading and creating other entities.
This method creates the API for the given space with all the methods for reading and creating other entities .