UNPKG

@metacall/faas

Version:

Reimplementation of MetaCall FaaS platform written in TypeScript.

10 lines (9 loc) 270 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.catchAsync = void 0; const catchAsync = (fn) => { return (req, res, next) => { return fn(req, res, next).catch(err => next(err)); }; }; exports.catchAsync = catchAsync;