aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/createProviderMiddleware.js
blob: 8a939ba4ef80c3fa2e086a42f82783d3f3ccd1c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module.exports = createProviderMiddleware

/**
 * Forwards an HTTP request to the current Web3 provider
 *
 * @param {{ provider: Object }} config Configuration containing current Web3 provider
 */
function createProviderMiddleware ({ provider }) {
  return (req, res, next, end) => {
    provider.sendAsync(req, (err, _res) => {
      if (err) return end(err)
      res.result = _res.result
      end()
    })
  }
}
tabases/p5-Cache-Memcached?h=2022Q3'>diffstats
path: root/databases/p5-Cache-Memcached
Commit message (Expand)AuthorAgeFilesLines
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
* Add NO_ARCHSunpoet Po-Chuan Hsieh2020-01-141-1/+3
* Update WWWSunpoet Po-Chuan Hsieh2018-05-281-1/+1
* Fix license information for portgs that use "the same license as Perl".Mathieu Arnold2017-09-151-1/+1
* - Fix trailing whitespace in pkg-descrs, categories [a-f]*Dmitry Marakasov2016-05-191-1/+1
* Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.Mathieu Arnold2016-04-011-2/+2
* Some OCD cleanups on some of the perl@ ports.Adam Weinberger2015-03-131-1/+1
* Change the way Perl modules are installed, update the default Perl to 5.18.Mathieu Arnold2014-11-262-1/+1
* Cleanup plistBaptiste Daroussin2014-10-201-4/+0
* Support STAGEDIR.Vanilla I. Shu2013-11-032-3/+1
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...Baptiste Daroussin2013-09-211-0/+1
* - Convert to new perl frameworkMathieu Arnold2013-08-031-6/+3
* Do not try to remove a directory not owned by the portBaptiste Daroussin2013-03-13