New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

longjohn

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

longjohn - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

14

dist/longjohn.js

@@ -119,3 +119,3 @@ (function() {

if (error.__previous__ != null) {
previous_stack = error.__previous__.stack;
previous_stack = error.__previous__.__cached_trace__;
if ((previous_stack != null ? previous_stack.length : void 0) > 0) {

@@ -135,3 +135,3 @@ error.__cached_trace__.push(create_callsite(exports.empty_frame));

limit_frames = function(stack) {
var count, previous;
var count, len, previous, which_previous_must_delete, _ref;
if (exports.async_trace_limit <= 0) {

@@ -147,2 +147,11 @@ return;

if (previous != null) {
which_previous_must_delete = previous;
if (previous != null ? (_ref = previous.__previous__) != null ? _ref.__cached_trace__ : void 0 : void 0) {
len = previous.__previous__.__cached_trace__.length;
previous = stack;
while ((previous != null) && previous !== which_previous_must_delete.__previous__) {
previous.__cached_trace__.length -= len + 1;
previous = previous.__previous__;
}
}
return delete previous.__previous__;

@@ -178,2 +187,3 @@ }

trace_error.__trace_count__ = current_trace_error != null ? current_trace_error.__trace_count__ + 1 : 1;
trace_error.stack;
limit_frames(trace_error);

@@ -180,0 +190,0 @@ new_callback = function() {

2

package.json
{
"name": "longjohn",
"description": "Long stack traces for node.js inspired by https://github.com/tlrobinson/long-stack-traces",
"version": "0.2.4",
"version": "0.2.5",
"homepage": "https://github.com/mattinsler/longjohn",

@@ -6,0 +6,0 @@ "author": {

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