Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slonik

Package Overview
Dependencies
Maintainers
1
Versions
396
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slonik - npm Package Compare versions

Comparing version 6.3.1 to 6.4.0

14

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc