Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 70a464f

Browse files
committed
fix(src/config): only parse JSON for valid connection fields
Should have set valid keys in the first place. Resolves #147
1 parent c292cb4 commit 70a464f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/config/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,12 @@ export const connectionOptions = (() => {
7272

7373
options.namedPlaceholders = options.namedPlaceholders === 'false' ? false : true;
7474

75-
for (const key in options) {
75+
for (const key in ['dateStrings', 'flags', 'ssl']) {
7676
const value = options[key];
7777

7878
if (typeof value === 'string') {
7979
try {
8080
options[key] = JSON.parse(value);
81-
console.log(key, options[key]);
8281
} catch {}
8382
}
8483
}

0 commit comments

Comments
 (0)