@just-every/mcp-read-website-fast 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/serve-restart.js +4 -4
- package/package.json +1 -1
package/dist/serve-restart.js
CHANGED
|
@@ -42,7 +42,7 @@ const startServer = () => {
|
|
|
42
42
|
});
|
|
43
43
|
let shuttingDown = false;
|
|
44
44
|
let restartTimer = null;
|
|
45
|
-
|
|
45
|
+
const startupTimer = setTimeout(() => {
|
|
46
46
|
log('INFO', 'Server started successfully');
|
|
47
47
|
resetBackoff();
|
|
48
48
|
}, 5000);
|
|
@@ -71,7 +71,7 @@ const startServer = () => {
|
|
|
71
71
|
startServer();
|
|
72
72
|
}, backoffDelay);
|
|
73
73
|
});
|
|
74
|
-
child.on('error',
|
|
74
|
+
child.on('error', error => {
|
|
75
75
|
log('ERROR', 'Failed to start server:', error);
|
|
76
76
|
process.exit(1);
|
|
77
77
|
});
|
|
@@ -92,11 +92,11 @@ const startServer = () => {
|
|
|
92
92
|
process.on('SIGINT', () => shutdown('SIGINT'));
|
|
93
93
|
process.on('SIGTERM', () => shutdown('SIGTERM'));
|
|
94
94
|
};
|
|
95
|
-
process.on('uncaughtException',
|
|
95
|
+
process.on('uncaughtException', error => {
|
|
96
96
|
log('ERROR', 'Uncaught exception in restart wrapper:', error);
|
|
97
97
|
process.exit(1);
|
|
98
98
|
});
|
|
99
|
-
process.on('unhandledRejection',
|
|
99
|
+
process.on('unhandledRejection', reason => {
|
|
100
100
|
log('ERROR', 'Unhandled rejection in restart wrapper:', reason);
|
|
101
101
|
process.exit(1);
|
|
102
102
|
});
|
package/package.json
CHANGED