adminforth 1.9.1-next.1 → 1.9.1-next.2
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.
|
@@ -64,7 +64,7 @@ function checkNodeVersion(minRequiredVersion = 20) {
|
|
|
64
64
|
if (isNaN(major) || major < minRequiredVersion) {
|
|
65
65
|
throw new Error(
|
|
66
66
|
`Node.js v${minRequiredVersion}+ is required. You have ${process.versions.node}. ` +
|
|
67
|
-
`Please upgrade Node.js.`
|
|
67
|
+
`Please upgrade Node.js. We recommend using nvm for managing multiple Node.js versions.`
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -80,6 +80,8 @@ function detectDbProvider(protocol) {
|
|
|
80
80
|
return 'postgresql';
|
|
81
81
|
} else if (protocol.startsWith('mongodb')) {
|
|
82
82
|
return 'mongodb';
|
|
83
|
+
} else if (protocol.startsWith('mysql')) {
|
|
84
|
+
return 'mysql';
|
|
83
85
|
}
|
|
84
86
|
|
|
85
87
|
const message = `Unknown database provider for ${protocol}. Only SQLite, PostgreSQL, and MongoDB are supported now.`;
|