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

debug-callback

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debug-callback - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

12

index.js

@@ -34,2 +34,3 @@ 'use strict';

var key = nextKey++;
var resolved = false;
callbackTimes[key] = {

@@ -54,8 +55,13 @@ time: Date.now(),

return function (err, res) {
if (err) {
fail(err);
if (resolved) {
debug('called callback twice:', msg);
} else {
done(res);
if (err) {
fail(err);
} else {
done(res);
}
}
fin();
resolved = true;
return callback.apply(this, arguments);

@@ -62,0 +68,0 @@ };

{
"name": "debug-callback",
"version": "0.0.5",
"version": "0.0.6",
"description": "Debug output outstanding callbacks, results, errors, and call times.",

@@ -5,0 +5,0 @@ "repository": {

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