Comparing version 1.2.2 to 1.2.3
# bedrock ChangeLog | ||
## 1.2.3 - 2016-06-01 | ||
### Changed | ||
- Use improved common uncaught exception handler. | ||
## 1.2.2 - 2016-05-30 | ||
@@ -4,0 +9,0 @@ |
@@ -313,2 +313,19 @@ /* | ||
function _setupUncaughtExceptionHandler(mode, logger) { | ||
// log uncaught exception and exit, except in test mode | ||
if(config.cli.command.name() !== 'test') { | ||
process.on('uncaughtException', function(err) { | ||
process.removeAllListeners('uncaughtException'); | ||
var msg; | ||
if(err instanceof api.util.BedrockError) { | ||
msg = err.toObject(); | ||
} else { | ||
msg = err.stack ? err.stack : err.toString(); | ||
} | ||
logger.critical(mode + ': uncaught error:', msg); | ||
process.exit(1); | ||
}); | ||
} | ||
} | ||
function _runMaster(options) { | ||
@@ -337,11 +354,3 @@ // get starting script | ||
// log uncaught exception and exit, except in test mode | ||
if(config.cli.command.name() !== 'test') { | ||
process.on('uncaughtException', function(err) { | ||
process.removeAllListeners('uncaughtException'); | ||
logger.critical( | ||
'uncaught error:', err.stack ? err.stack : err.toString); | ||
process.exit(1); | ||
}); | ||
} | ||
_setupUncaughtExceptionHandler('master', logger); | ||
@@ -407,11 +416,3 @@ logger.info('running bedrock master process "' + | ||
// log uncaught exception and exit, except in test mode | ||
if(config.cli.command.name() !== 'test') { | ||
process.on('uncaughtException', function(err) { | ||
process.removeAllListeners('uncaughtException'); | ||
logger.critical( | ||
'uncaught error:', err.stack ? err.stack : err.toString); | ||
process.exit(1); | ||
}); | ||
} | ||
_setupUncaughtExceptionHandler('worker', logger); | ||
@@ -418,0 +419,0 @@ logger.info('running bedrock worker process "' + |
{ | ||
"name": "bedrock", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "A core foundation for rich Web applications.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
112183
0