UNPKG
opbeat-ionic
Version:
latest (1.1.3)
1.1.3
The unofficial Opbeat client for Ionic
github.com/opbeat/opbeat-node
opbeat/opbeat-node
opbeat-ionic
/
lib
/
middleware
/
connect.js
11 lines
(9 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
;
module
.
exports
=
function
connectMiddleware
(
) {
var
client =
this
;
return
function
(
err, req, res, next
) { client.
captureError
(err, {
request
: req },
function
(
) {
next
(err); }); }; };