Comparing version 0.1.0 to 0.1.1
@@ -17,3 +17,3 @@ | ||
if (!global.unhandled) global.unhandled = exports | ||
else global.unhandled['0.1.0'] = exports | ||
else global.unhandled['0.1.1'] = exports | ||
} | ||
@@ -28,3 +28,3 @@ | ||
var timer = setTimeout(function(){ | ||
console.error('[registered as unhandled for 500ms]', error.stack) | ||
console.error('[unhandled] %s', error.stack) | ||
cleanUp() | ||
@@ -36,2 +36,3 @@ }, 500) | ||
if (e === error) { | ||
console.error('[handled] %s', e.message) | ||
clearTimeout(timer) | ||
@@ -42,3 +43,3 @@ cleanUp() | ||
function onForget(e){ | ||
if (e === error) cleanUp | ||
if (e === error) cleanUp() | ||
} | ||
@@ -45,0 +46,0 @@ function cleanUp(){ |
{ | ||
"name": "unhandled", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "a window into your programs ignorance", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
4558
94