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

trycatch

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trycatch - npm Package Compare versions

Comparing version 0.2.12 to 0.2.13

2

lib/trycatch.js

@@ -49,3 +49,2 @@ var util = require('util')

e = normalizeError(e)
console.log('here: ', e.stack)
} else {

@@ -63,3 +62,2 @@ d.exit()

} else if (d.currentStack) {
console.log('there')
e.stack += delimitter + d.currentStack

@@ -66,0 +64,0 @@ }

2

package.json
{
"name": "trycatch",
"version": "0.2.12",
"version": "0.2.13",
"description": "An asynchronous domain-based exception handler with long stack traces for node.js",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/CrabDude/trycatch",

@@ -56,2 +56,17 @@ var trycatch = require('../lib/trycatch')

})
it('should catch Error object thrown without stack trace', function(done) {
trycatch(function() {
process.nextTick(function() {
var err = new Error('Async')
delete err.stack
throw err
})
}
, function(err) {
assert.equal(err.message, 'Async')
assert.notEqual(err.stack, undefined)
done()
})
})
})

@@ -58,0 +73,0 @@ }

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