Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/request / src / adapters / wretch.ts
Size: Mime:
import wretch from 'wretch'
import { OneRequestStore } from '../typings'
import { fromMapToObj } from 'exotic'

function wretchAdapter(store: OneRequestStore) {
  const url = store.get('url')
  const wretchRequest = wretch(url)
  return wretchRequest
}

export function adaptRequest(store: OneRequestStore) {
  return wretchAdapter(store)
}