mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: remove deprecated apis
This commit is contained in:
1 parent
05b27fc1eb
commit
ec0ba8a394
9 files changed
+24
-37
No files matched your search
@@ -1,5 +1,5 @@
|
||||
const versionNum = +process.version.replace(/v/gim, '').split('.')[0];
|
||||
if (versionNum < 14) throw new Error('NodeJS >=14 required');
|
||||
if (versionNum < 18) throw new Error('NodeJS >=18 required');
|
||||
|
||||
console.log('Process', process.pid, 'running as', process.env.NODE_APP_INSTANCE === '0' ? 'master' : 'worker');
|
||||
if (!global.Hydro) {
|
||||
|
||||
Reference in new issue
Block a user