@samitouri / QOSami-HFS / commits / 8cd2ad99

fix: removed scaring warning #894

Massimo Melina committed Feb 20, 2025 at 14:30 UTC 8cd2ad99fc29f76d6eeaa2aea6cb496fa73c1ef2
1 file changed +3
src/index.ts
+3
@@ -67,6 +67,9 @@ process.on('uncaughtException', (err: any) => {
67 if (err.syscall !== 'watch' && err.code !== 'ECONNRESET')
68 console.error("uncaught:", err)
69 })
70 +// this warning is scaring users, and has been removed in node 20.12.0 https://github.com/nodejs/node/pull/51204
71 +const original = process.emitWarning
72 +process.emitWarning = warn => String(warn).startsWith('An error event has already been emitted') || original.call(process, warn)
73
74 defineConfig('proxies', 0).sub(n => {
75 app.proxy = n > 0