Huge News!Announcing our $40M Series B led by Abstract Ventures.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.9 to 0.1.0

.eslintrc

18

index.js
'use strict';
var _ = require('lodash');
var forEach = require('lodash.foreach');

@@ -13,3 +13,3 @@ module.exports = function (name) {

var text = '\n--- OUTSTANDING CALLBACKS ---\n';
_.each(callbackTimes, function (obj) {
forEach(callbackTimes, function (obj) {
var time = obj.time;

@@ -27,3 +27,3 @@ var msg = obj.msg;

setTimeout(function () {
if (_.keys(callbackTimes).length) {
if (Object.keys(callbackTimes).length) {
showCallbacks();

@@ -57,9 +57,9 @@ }

if (resolved) {
debug('called callback twice:', msg);
debug('called callback twice:', msg);
} else {
if (err) {
fail(err);
} else {
done(res);
}
if (err) {
fail(err);
} else {
done(res);
}
}

@@ -66,0 +66,0 @@ fin();

{
"name": "debug-callback",
"version": "0.0.9",
"version": "0.1.0",
"description": "Debug output outstanding callbacks, results, errors, and call times.",
"author": "Porch Hackers <hackers@porch.com>",
"license": "ISC",
"repository": {
"type": "git",
"url": "git://github.com/pwmckenna/node-debug-callback.git"
"url": "git://github.com/porchdotcom/node-debug-callback.git"
},
"homepage": "https://npmjs.org/package/node-debug-callback",
"bugs": "https://github.com/porchdotcom/node-debug-callback/issues",
"keywords": [

@@ -18,12 +22,9 @@ "debug",

],
"readmeFilename": "README.md",
"scripts": {
"jshint": "./node_modules/jshint/bin/jshint *.js test/*.js",
"mocha": "DEBUG=debug-callback:* ./node_modules/mocha/bin/mocha",
"test": "npm run jshint && npm run mocha"
"lint": "./node_modules/gulp/bin/gulp.js lint",
"mocha-debug": "DEBUG=debug-callback:* ./node_modules/mocha/bin/mocha",
"mocha": "./node_modules/mocha/bin/mocha",
"test": "npm run lint && npm run mocha"
},
"author": "Patrick Williams <pwmckenna@gmail.com>",
"license": "BSD",
"readmeFilename": "README.md",
"homepage": "https://npmjs.org/package/node-debug-callback",
"bugs": "https://github.com/pwmckenna/node-debug-callback/issues",
"engines": {

@@ -33,11 +34,15 @@ "node": ">=0.8.0"

"devDependencies": {
"jshint": "^2.8.0",
"babel-eslint": "^4.0.10",
"eslint": "^1.2.1",
"gulp": "^3.9.0",
"gulp-eslint": "^1.0.0",
"gulp-util": "^3.0.6",
"matchdep": "~0.1.2",
"mocha": "~1.8.1"
"mocha": "^2.2.5"
},
"dependencies": {
"debug": "^2.2.0",
"lodash": "~1.1.1"
"lodash.foreach": "^3.0.3"
},
"main": "index"
}

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