src/middleware/parse-options.js
function parseOptions ({
  type,
  onUnauthorized,
  actions,
  types,
  requestAction,
  successAction,
  failureAction,
  isStub,
  stubData,
  adapter,
  ...requestOptions
}) {
  return {
    configOptions: omitUndefined({ 
      type,
      onUnauthorized,
      actions,
      types,
      requestAction,
      successAction,
      failureAction,
      isStub,
      stubData,
      adapter,
    }),
    requestOptions,
  }
}
function parseOptions ({
  type,
  onUnauthorized,
  actions,
  types,
  requestAction,
  successAction,
  failureAction,
  isStub,
  stubData,
  adapter,
  ...requestOptions
}) {
  return {
    configOptions: omitUndefined({ 
      type,
      onUnauthorized,
      actions,
      types,
      requestAction,
      successAction,
      failureAction,
      isStub,
      stubData,
      adapter,
    }),
    requestOptions,
  }
}
function parseOptions ( { type , onUnauthorized , actions , types , requestAction , successAction , failureAction , isStub , stubData , adapter , ... requestOptions } ) { return { configOptions : omitUndefined ( { type , onUnauthorized , actions , types , requestAction , successAction , failureAction , isStub , stubData , adapter , } ) , requestOptions , } }
Separate middleware options into config options and request options
Separate middleware options into config options and request options