debug-callback
Advanced tools
Comparing version 0.0.9 to 0.1.0
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
14893
7
0
81
7
+ Addedlodash.foreach@^3.0.3
+ Addedlodash._arrayeach@3.0.0(transitive)
+ Addedlodash._baseeach@3.0.4(transitive)
+ Addedlodash._bindcallback@3.0.1(transitive)
+ Addedlodash._getnative@3.9.1(transitive)
+ Addedlodash.foreach@3.0.3(transitive)
+ Addedlodash.isarguments@3.1.0(transitive)
+ Addedlodash.isarray@3.0.4(transitive)
+ Addedlodash.keys@3.1.2(transitive)
- Removedlodash@~1.1.1
- Removedlodash@1.1.1(transitive)