@quillsql/node 0.1.3 → 0.1.4
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/index.js +0 -9
- package/index.ts +0 -10
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -14,15 +14,6 @@ var PgError = require("pg-error");
|
|
|
14
14
|
Connection.prototype.parseE = PgError.parse;
|
|
15
15
|
Connection.prototype.parseN = PgError.parse;
|
|
16
16
|
module.exports = ({ publicKey, privateKey, databaseConnectionString, stagingDatabaseConnectionString, }) => {
|
|
17
|
-
if (!publicKey) {
|
|
18
|
-
throw new Error("No publicKey provided");
|
|
19
|
-
}
|
|
20
|
-
if (!privateKey) {
|
|
21
|
-
throw new Error("No privateKey provided");
|
|
22
|
-
}
|
|
23
|
-
if (!databaseConnectionString) {
|
|
24
|
-
throw new Error("No databaseConnectionString provided");
|
|
25
|
-
}
|
|
26
17
|
const pool = new Pool({ connectionString: databaseConnectionString });
|
|
27
18
|
const stagingPool = new Pool({
|
|
28
19
|
connectionString: stagingDatabaseConnectionString,
|
package/index.ts
CHANGED
|
@@ -27,16 +27,6 @@ module.exports = ({
|
|
|
27
27
|
databaseConnectionString,
|
|
28
28
|
stagingDatabaseConnectionString,
|
|
29
29
|
}: QuillConfig) => {
|
|
30
|
-
if (!publicKey) {
|
|
31
|
-
throw new Error("No publicKey provided");
|
|
32
|
-
}
|
|
33
|
-
if (!privateKey) {
|
|
34
|
-
throw new Error("No privateKey provided");
|
|
35
|
-
}
|
|
36
|
-
if (!databaseConnectionString) {
|
|
37
|
-
throw new Error("No databaseConnectionString provided");
|
|
38
|
-
}
|
|
39
|
-
|
|
40
30
|
const pool = new Pool({ connectionString: databaseConnectionString });
|
|
41
31
|
const stagingPool = new Pool({
|
|
42
32
|
connectionString: stagingDatabaseConnectionString,
|