Comparing version 0.0.22 to 0.0.23
@@ -33,3 +33,3 @@ /*! | ||
_removeObjects = [], | ||
_gracefulCleanup = false, | ||
@@ -258,11 +258,17 @@ _uncaughtException = false; | ||
process.addListener('uncaughtException', function _uncaughtExceptionThrown( err ) { | ||
_uncaughtException = true; | ||
_garbageCollector(); | ||
var version = process.versions.node.split('.').map(function (value) { | ||
return parseInt(value, 10); | ||
}); | ||
if (process.versions.node.indexOf('0.8') == 0) | ||
if (version[0] === 0 && (version[1] < 9 || version[1] === 9 && version[2] < 5)) { | ||
process.addListener('uncaughtException', function _uncaughtExceptionThrown( err ) { | ||
_uncaughtException = true; | ||
_garbageCollector(); | ||
throw err; | ||
}); | ||
}); | ||
} | ||
process.addListener('exit', function _exit() { | ||
process.addListener('exit', function _exit(code) { | ||
if (code) _uncaughtException = true; | ||
_garbageCollector(); | ||
@@ -269,0 +275,0 @@ }); |
{ | ||
"name": "tmp", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "Temporary file and directory creator", | ||
@@ -5,0 +5,0 @@ "author": "KARASZI István <github@spam.raszi.hu> (http://raszi.hu/)", |
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
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
28236
727