lib/adapters/couchdb.js
function couchdb (json) {
  return {
    prepareEndpoint (endpointOptions, sourceOptions) {
      return prepareEndpoint(json, endpointOptions, sourceOptions)
    },

    async send (request) {
      return send(json, request)
    },

    async serialize (data, request) {
      const serializedData = await serializeData(data, request, json)
      return json.serialize(serializedData, request)
    },

    async normalize (data, request) {
      const normalizedData = await json.normalize(data, request)
      return normalizeData(normalizedData)
    }
  }
}
function couchdb (json) {
  return {
    prepareEndpoint (endpointOptions, sourceOptions) {
      return prepareEndpoint(json, endpointOptions, sourceOptions)
    },

    async send (request) {
      return send(json, request)
    },

    async serialize (data, request) {
      const serializedData = await serializeData(data, request, json)
      return json.serialize(serializedData, request)
    },

    async normalize (data, request) {
      const normalizedData = await json.normalize(data, request)
      return normalizeData(normalizedData)
    }
  }
}
function couchdb ( json ) { return { prepareEndpoint ( endpointOptions , sourceOptions ) { return prepareEndpoint ( json , endpointOptions , sourceOptions ) } , async send ( request ) { return send ( json , request ) } , async serialize ( data , request ) { const serializedData = await serializeData ( data , request , json ) return json . serialize ( serializedData , request ) } , async normalize ( data , request ) { const normalizedData = await json . normalize ( data , request ) return normalizeData ( normalizedData ) } } }
Wrap json adapter to provide adjustments for couchdb.
@param {Object} json - The json adapter
@returns {Object} The couchdb adapter
Wrap json adapter to provide adjustments for couchdb .