How to use the netlify-cms-lib-util.then function in netlify-cms-lib-util

To help you get started, we’ve selected a few netlify-cms-lib-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github netlify / netlify-cms / packages / netlify-cms-backend-git-gateway / src / GitLabAPI.js View on Github external
request = async req =>
    flow([this.buildRequest, this.authenticateRequest, then(unsentRequest.performRequest)])(req);
github netlify / netlify-cms / packages / netlify-cms-backend-bitbucket / src / API.js View on Github external
traverseCursor = async (cursor, action) =>
    flow([
      this.requestJSON,
      then(this.getEntriesAndCursor),
      then(({ cursor: newCursor, entries }) => ({
        cursor: newCursor,
        entries: this.processFiles(entries),
      })),
    ])(cursor.data.getIn(['links', action]));