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.mjs
CHANGED
|
@@ -1257,14 +1257,23 @@ function reportCheck(params) {
|
|
|
1257
1257
|
{ _tag: "InvalidMigrationError" },
|
|
1258
1258
|
{ _tag: "InvalidMigrationsPathError" },
|
|
1259
1259
|
{ _tag: "DatabaseInitializationError" },
|
|
1260
|
-
{ _tag: "InternalError" },
|
|
1261
1260
|
(error2) => {
|
|
1262
1261
|
if (params.connection.keepAlive === true) {
|
|
1263
1262
|
fatalError = error2;
|
|
1264
1263
|
}
|
|
1265
1264
|
return reportBaseError({ context, error: error2, tag });
|
|
1266
1265
|
}
|
|
1267
|
-
).
|
|
1266
|
+
).with({ _tag: "InternalError" }, (error2) => {
|
|
1267
|
+
const isConfigError = error2.message.includes("Invalid override column key");
|
|
1268
|
+
if (isConfigError) {
|
|
1269
|
+
return reportBaseError({ context, error: error2, tag });
|
|
1270
|
+
}
|
|
1271
|
+
console.warn(
|
|
1272
|
+
`[eslint-plugin-slonik] Skipping query due to unsupported SQL syntax: ${error2.message}
|
|
1273
|
+
If you believe this query should be supported, please open an issue at https://github.com/gajus/eslint-plugin-slonik/issues`
|
|
1274
|
+
);
|
|
1275
|
+
return;
|
|
1276
|
+
}).exhaustive();
|
|
1268
1277
|
},
|
|
1269
1278
|
({ result, checker, parser }) => {
|
|
1270
1279
|
if (result === null) {
|