eslint-plugin-slonik 1.5.0 → 1.5.1
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.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1281,14 +1281,23 @@ function reportCheck(params) {
|
|
|
1281
1281
|
{ _tag: "InvalidMigrationError" },
|
|
1282
1282
|
{ _tag: "InvalidMigrationsPathError" },
|
|
1283
1283
|
{ _tag: "DatabaseInitializationError" },
|
|
1284
|
-
{ _tag: "InternalError" },
|
|
1285
1284
|
(error2) => {
|
|
1286
1285
|
if (params.connection.keepAlive === true) {
|
|
1287
1286
|
fatalError = error2;
|
|
1288
1287
|
}
|
|
1289
1288
|
return checkSql_utils.reportBaseError({ context, error: error2, tag });
|
|
1290
1289
|
}
|
|
1291
|
-
).
|
|
1290
|
+
).with({ _tag: "InternalError" }, (error2) => {
|
|
1291
|
+
const isConfigError = error2.message.includes("Invalid override column key");
|
|
1292
|
+
if (isConfigError) {
|
|
1293
|
+
return checkSql_utils.reportBaseError({ context, error: error2, tag });
|
|
1294
|
+
}
|
|
1295
|
+
console.warn(
|
|
1296
|
+
`[eslint-plugin-slonik] Skipping query due to unsupported SQL syntax: ${error2.message}
|
|
1297
|
+
If you believe this query should be supported, please open an issue at https://github.com/gajus/eslint-plugin-slonik/issues`
|
|
1298
|
+
);
|
|
1299
|
+
return;
|
|
1300
|
+
}).exhaustive();
|
|
1292
1301
|
},
|
|
1293
1302
|
({ result, checker, parser }) => {
|
|
1294
1303
|
if (result === null) {
|