lib/services/pages.js
function getRecursivePublishedPutOperations(locals) {
  return rootComponentRef => {
    /**
     * 1) Get reference (could be latest, could be other)
     * 2) Get all references within reference
     * 3) Replace all references with @published (including root reference)
     * 4) Get list of put operations needed
     */
    return components.get(rootComponentRef, locals)
      .then(data => composer.resolveComponentReferences(data, locals))
      .then(data => dbOps.getPutOperations(components.cmptPut, replaceVersion(rootComponentRef, 'published'), data, locals));
  };
}
function getRecursivePublishedPutOperations(locals) {
  return rootComponentRef => {
    /**
     * 1) Get reference (could be latest, could be other)
     * 2) Get all references within reference
     * 3) Replace all references with @published (including root reference)
     * 4) Get list of put operations needed
     */
    return components.get(rootComponentRef, locals)
      .then(data => composer.resolveComponentReferences(data, locals))
      .then(data => dbOps.getPutOperations(components.cmptPut, replaceVersion(rootComponentRef, 'published'), data, locals));
  };
}
function getRecursivePublishedPutOperations ( locals ) { return rootComponentRef => { /**
     * 1) Get reference (could be latest, could be other)
     * 2) Get all references within reference
     * 3) Replace all references with @published (including root reference)
     * 4) Get list of put operations needed
     */ return components . get ( rootComponentRef , locals ) . then ( data => composer . resolveComponentReferences ( data , locals ) ) . then ( data => dbOps . getPutOperations ( components . cmptPut , replaceVersion ( rootComponentRef , 'published' ) , data , locals ) ) ; } ; }
Get a list of all operations with all references converted to @published
@param {object} locals
@returns {function}
Get a list of all operations with all references converted to