File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import { Middleware , catchException } from "./src/node/middlewares" ;
2+ import * as Traceo from "./src/node/sdk" ;
3+
4+ export { Middleware , Traceo , catchException } ;
Original file line number Diff line number Diff line change 11{
22 "name" : " traceo-sdk" ,
3- "version" : " 0.0.84 " ,
3+ "version" : " 0.0.85 " ,
44 "license" : " MIT" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
2929 "prettier-check" : " ^2.0.0" ,
3030 "rimraf" : " ^3.0.2" ,
3131 "rollup" : " ^2.66.1" ,
32+ "stacktrace-parser-node" : " 1.1.0" ,
3233 "ts-node" : " ^10.4.0" ,
3334 "tslib" : " ^2.3.1" ,
3435 "tslint" : " ^5.11.0" ,
4849 "testMatch" : [
4950 " **/*.test.ts"
5051 ]
51- },
52- "dependencies" : {
53- "stacktrace-parser-node" : " ^1.0.4"
5452 }
5553}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import { Middleware } from ".." ;
1+ import { Middleware } from "../.. " ;
22import * as Traceo from "./sdk" ;
33
44export { Middleware , Traceo } ;
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import { TraceoEvent } from "../transport/events";
66import { TraceoIncomingMessage , TraceoServerResponse } from "../transport/http" ;
77import { ErrorMiddlewareOptions } from "../transport/options" ;
88import { getIp , getOsPlatform , getProtocol } from "./helpers" ;
9-
109/**
1110 * Base middleware to catch and intercept error across the express app.
1211 * This middleware catch errors only from the no-async methods.
@@ -121,10 +120,7 @@ const handleException = async (error: TraceoError) => {
121120 }
122121} ;
123122
124-
125- const prepareException = async (
126- error : TraceoError
127- ) : Promise < TraceoEvent > => {
123+ const prepareException = async ( error : TraceoError ) : Promise < TraceoEvent > => {
128124 const { stack } = error ;
129125 const platform = getOsPlatform ( ) ;
130126
You can’t perform that action at this time.
0 commit comments