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

error-stamp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error-stamp - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

examples/example_withstamps.js

2

package.json
{
"name": "error-stamp",
"version": "0.0.3",
"version": "0.0.4",
"description": "Mutate an Error object to include a stamp of current step",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -35,4 +35,4 @@ # error-stamp [![Build Status][ci-img]][ci]

if(stamp(err)) {
callback(err);
if(err) {
callback(stamp(err));
return;

@@ -45,3 +45,3 @@ }

### Before using the module
__node example.js__
`node examples/example.js`
```bash

@@ -59,3 +59,3 @@ /tmp/error-stamp/example.js:40

### After using the module
__node example_withstamps.js__
`node examples/example_withstamps.js`
```bash

@@ -97,3 +97,3 @@ /tmp/error-stamp/example_withstamps.js:42

- [longjohn](https://github.com/mattinsler/longjohn) does the job, but as it has recommended- not intended on production environment (note it interferes with every asyc execution).
- [async-stacktrace](https://github.com/Pita/async-stacktrace) has greatly inspired this module, but it does more just adding trace stamps (throw errors, call callbacks and conditionally create Error objects).
- [async-stacktrace](https://github.com/Pita/async-stacktrace) has greatly inspired this module, but it does more than just adding trace stamps (throw errors, call callbacks and conditionally create Error objects).

@@ -100,0 +100,0 @@ ## Notes

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