Comparing version 7.0.1 to 7.0.2
@@ -151,12 +151,5 @@ "use strict"; | ||
if (_config.SLONIK_LOG_STACK_TRACE) { | ||
const callSites = await (0, _getStackTrace.getOriginalStackTrace)((0, _getStackTrace.getStackTrace)()); | ||
const callSites = await (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; | ||
return (callSite.fileName || '') + ':' + callSite.lineNumber + ':' + callSite.columnNumber; | ||
}); | ||
@@ -163,0 +156,0 @@ } |
@@ -17,3 +17,3 @@ { | ||
"es6-error": "^4.1.1", | ||
"get-stack-trace": "^1.0.1", | ||
"get-stack-trace": "^2.0.1", | ||
"pg": "^7.5.0", | ||
@@ -90,5 +90,5 @@ "pg-connection-string": "^2.0.0", | ||
"lint": "eslint ./src ./test && flow", | ||
"test": "NODE_ENV=test nyc ava --verbose --serial --concurrency 1 && nyc report" | ||
"test": "NODE_ENV=test nyc ava --verbose --serial --concurrency 1" | ||
}, | ||
"version": "7.0.1" | ||
"version": "7.0.2" | ||
} |
@@ -10,3 +10,2 @@ // @flow | ||
import { | ||
getOriginalStackTrace, | ||
getStackTrace | ||
@@ -164,14 +163,7 @@ } from 'get-stack-trace'; | ||
if (SLONIK_LOG_STACK_TRACE) { | ||
const callSites = await getOriginalStackTrace(getStackTrace()); | ||
const callSites = await 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; | ||
return (callSite.fileName || '') + ':' + callSite.lineNumber + ':' + callSite.columnNumber; | ||
}); | ||
@@ -178,0 +170,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
174184
1778
+ Addedget-stack-trace@2.1.1(transitive)
+ Addedlodash.sortby@4.7.0(transitive)
+ Addedsource-map@0.8.0-beta.0(transitive)
+ Addedtr46@1.0.1(transitive)
+ Addedwebidl-conversions@4.0.2(transitive)
+ Addedwhatwg-url@7.1.0(transitive)
- Removedget-stack-trace@1.0.1(transitive)
- Removedsource-map@0.7.4(transitive)
Updatedget-stack-trace@^2.0.1