Comparing version 6.3.1 to 6.4.0
@@ -54,3 +54,3 @@ "use strict"; | ||
var _stackTrace = require("stack-trace"); | ||
var _getStackTrace = require("get-stack-trace"); | ||
@@ -152,4 +152,12 @@ var _serializeError = _interopRequireDefault(require("serialize-error")); | ||
if (_config.SLONIK_LOG_STACK_TRACE) { | ||
stackTrace = (0, _stackTrace.get)().map(callSite => { | ||
return callSite.getFileName() + ':' + callSite.getLineNumber() + ':' + callSite.getColumnNumber(); | ||
const callSites = await (0, _getStackTrace.getOriginalStackTrace)((0, _getStackTrace.getStackTrace)()); | ||
stackTrace = callSites.map(callSite => { | ||
const oncs = callSite.originalNormalisedCallSite; | ||
const rncs = callSite.reportedNormalisedCallSite; | ||
if (oncs) { | ||
return oncs.fileName + ':' + oncs.lineNumber + ':' + oncs.columnNumber; | ||
} | ||
return rncs.fileName + ':' + rncs.lineNumber + ':' + rncs.columnNumber; | ||
}); | ||
@@ -156,0 +164,0 @@ } |
@@ -17,8 +17,8 @@ { | ||
"es6-error": "^4.1.1", | ||
"get-stack-trace": "^1.0.1", | ||
"pg": "^7.4.3", | ||
"pg-connection-string": "^2.0.0", | ||
"pretty-hrtime": "^1.0.3", | ||
"roarr": "^2.9.4", | ||
"roarr": "^2.10.0", | ||
"serialize-error": "^2.1.0", | ||
"stack-trace": "0.0.10", | ||
"ulid": "^2.3.0" | ||
@@ -92,3 +92,3 @@ }, | ||
}, | ||
"version": "6.3.1" | ||
"version": "6.4.0" | ||
} |
@@ -10,4 +10,5 @@ // @flow | ||
import { | ||
get as getStackTrace | ||
} from 'stack-trace'; | ||
getOriginalStackTrace, | ||
getStackTrace | ||
} from 'get-stack-trace'; | ||
import serializeError from 'serialize-error'; | ||
@@ -163,5 +164,14 @@ import prettyHrtime from 'pretty-hrtime'; | ||
if (SLONIK_LOG_STACK_TRACE) { | ||
stackTrace = getStackTrace() | ||
const callSites = await getOriginalStackTrace(getStackTrace()); | ||
stackTrace = callSites | ||
.map((callSite) => { | ||
return callSite.getFileName() + ':' + callSite.getLineNumber() + ':' + callSite.getColumnNumber(); | ||
const oncs = callSite.originalNormalisedCallSite; | ||
const rncs = callSite.reportedNormalisedCallSite; | ||
if (oncs) { | ||
return oncs.fileName + ':' + oncs.lineNumber + ':' + oncs.columnNumber; | ||
} | ||
return rncs.fileName + ':' + rncs.lineNumber + ':' + rncs.columnNumber; | ||
}); | ||
@@ -168,0 +178,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177564
1797
+ Addedget-stack-trace@^1.0.1
+ Addedbluebird@3.7.2(transitive)
+ Addedget-stack-trace@1.0.1(transitive)
+ Addedsource-map@0.7.4(transitive)
- Removedstack-trace@0.0.10
- Removedstack-trace@0.0.10(transitive)
Updatedroarr@^2.10.0