pg-manipulator 1.0.10 → 1.0.12
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/database/index.js +1 -1
- package/package.json +1 -1
package/dist/database/index.js
CHANGED
|
@@ -35,7 +35,7 @@ class db {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
static get(db_name) {
|
|
38
|
-
if (!db_name || typeof db_name
|
|
38
|
+
if (!db_name || typeof db_name !== 'string' || !this.connections[db_name]) {
|
|
39
39
|
throw `Incorrectly reported database`;
|
|
40
40
|
}
|
|
41
41
|
return this.connections[db_name];
|