gc-json-logger-express
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -5,5 +5,3 @@ export * from './log'; | ||
export * from './types/LogOptions'; | ||
export * from './types/LogRequest'; | ||
export * from './types/LogResponse'; | ||
export * from './types/LogTransformFunction'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -8,5 +8,3 @@ "use strict"; | ||
tslib_1.__exportStar(require("./types/LogOptions"), exports); | ||
tslib_1.__exportStar(require("./types/LogRequest"), exports); | ||
tslib_1.__exportStar(require("./types/LogResponse"), exports); | ||
tslib_1.__exportStar(require("./types/LogTransformFunction"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -47,10 +47,6 @@ "use strict"; | ||
}, | ||
request: (0, clone_1.clone)({ | ||
headers: req.headers, | ||
body: req.body, | ||
}), | ||
response: (0, clone_1.clone)({ | ||
headers: res.getHeaders(), | ||
body: _body, | ||
}), | ||
httpRequestHeaders: (0, clone_1.clone)(req.headers), | ||
httpRequestBody: (0, clone_1.clone)(req.body), | ||
httpResponseHeaders: (0, clone_1.clone)(res.getHeaders()), | ||
httpResponseBody: (0, clone_1.clone)(_body), | ||
}, | ||
@@ -60,3 +56,3 @@ }); | ||
} | ||
catch { | ||
catch (err) { | ||
/* istanbul ignore next */ | ||
@@ -80,10 +76,6 @@ } | ||
}, | ||
request: (0, clone_1.clone)({ | ||
headers: req.headers, | ||
body: req.body, | ||
}), | ||
response: (0, clone_1.clone)({ | ||
headers: res.getHeaders(), | ||
body: _body, | ||
}), | ||
httpRequestHeaders: (0, clone_1.clone)(req.headers), | ||
httpRequestBody: (0, clone_1.clone)(req.body), | ||
httpResponseHeaders: (0, clone_1.clone)(res.getHeaders()), | ||
httpResponseBody: (0, clone_1.clone)(_body), | ||
}, | ||
@@ -90,0 +82,0 @@ }); |
@@ -6,4 +6,4 @@ import { Severity } from 'gc-json-logger'; | ||
message: string; | ||
meta?: LogEntryMetadata; | ||
meta: LogEntryMetadata; | ||
} | ||
//# sourceMappingURL=LogEntry.d.ts.map |
import { LogEntryMetadata as ILogEntryMetadata } from 'gc-json-logger'; | ||
import { LogRequest } from './LogRequest'; | ||
import { LogResponse } from './LogResponse'; | ||
export interface LogEntryMetadata extends ILogEntryMetadata { | ||
request: LogRequest; | ||
response: LogResponse; | ||
httpRequestBody?: unknown; | ||
httpRequestHeaders: Record<string, string>; | ||
httpResponseBody?: unknown; | ||
httpResponseHeaders: Record<string, string>; | ||
} | ||
//# sourceMappingURL=LogEntryMetadata.d.ts.map |
@@ -5,5 +5,5 @@ "use strict"; | ||
function clone(o) { | ||
return JSON.parse(JSON.stringify(o)); | ||
return o === undefined ? undefined : JSON.parse(JSON.stringify(o)); | ||
} | ||
exports.clone = clone; | ||
//# sourceMappingURL=clone.js.map |
{ | ||
"name": "gc-json-logger-express", | ||
"description": "Structured logging for express.js app in GKE", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/igrek8/gc-json-logger-express#readme", | ||
@@ -6,0 +6,0 @@ "author": "Igor Korchagin (https://github.com/igrek8)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19038
32
160