@noormdev/sdk 1.0.0-alpha.15 → 1.0.0-alpha.16
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/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/mssql-7VB7EHRX.js +81 -0
- package/dist/mssql-7VB7EHRX.js.map +1 -0
- package/package.json +1 -1
- package/dist/mssql-T4M7OGEC.js +0 -46
- package/dist/mssql-T4M7OGEC.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1815,7 +1815,7 @@ async function getDialectFactory(dialect) {
|
|
|
1815
1815
|
case "mysql":
|
|
1816
1816
|
return (await import('./mysql-C2DR4TF7.js')).createMysqlConnection;
|
|
1817
1817
|
case "mssql":
|
|
1818
|
-
return (await import('./mssql-
|
|
1818
|
+
return (await import('./mssql-7VB7EHRX.js')).createMssqlConnection;
|
|
1819
1819
|
default:
|
|
1820
1820
|
throw new Error(`Unsupported dialect: ${dialect}`);
|
|
1821
1821
|
}
|
|
@@ -1861,6 +1861,11 @@ async function createConnection(config, configName = "__default__") {
|
|
|
1861
1861
|
if (msg.includes("authentication")) return false;
|
|
1862
1862
|
if (msg.includes("password")) return false;
|
|
1863
1863
|
if (msg.includes("missing driver")) return false;
|
|
1864
|
+
if (msg.includes("login failed")) return false;
|
|
1865
|
+
if (msg.includes("failed to open")) return false;
|
|
1866
|
+
if (msg.includes("does not exist")) return false;
|
|
1867
|
+
if (msg.includes("unknown database")) return false;
|
|
1868
|
+
if (msg.includes("access denied")) return false;
|
|
1864
1869
|
return msg.includes("econnrefused") || msg.includes("etimedout") || msg.includes("too many connections") || msg.includes("connection reset");
|
|
1865
1870
|
}
|
|
1866
1871
|
}
|