@quillsql/node 0.1.1 → 0.1.3
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 +1 -3
- package/index.ts +2 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -8,13 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
11
|
const { Pool, Connection } = require("pg");
|
|
13
12
|
const axios = require("axios");
|
|
14
13
|
var PgError = require("pg-error");
|
|
15
14
|
Connection.prototype.parseE = PgError.parse;
|
|
16
15
|
Connection.prototype.parseN = PgError.parse;
|
|
17
|
-
|
|
16
|
+
module.exports = ({ publicKey, privateKey, databaseConnectionString, stagingDatabaseConnectionString, }) => {
|
|
18
17
|
if (!publicKey) {
|
|
19
18
|
throw new Error("No publicKey provided");
|
|
20
19
|
}
|
|
@@ -107,4 +106,3 @@ const quill = ({ publicKey, privateKey, databaseConnectionString, stagingDatabas
|
|
|
107
106
|
}),
|
|
108
107
|
};
|
|
109
108
|
};
|
|
110
|
-
exports.default = quill;
|
package/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ interface QuillConfig {
|
|
|
8
8
|
publicKey: string;
|
|
9
9
|
privateKey: string;
|
|
10
10
|
databaseConnectionString: string;
|
|
11
|
-
stagingDatabaseConnectionString
|
|
11
|
+
stagingDatabaseConnectionString?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
interface QuillQueryParams {
|
|
@@ -21,7 +21,7 @@ interface QuillQueryParams {
|
|
|
21
21
|
environment?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
module.exports = ({
|
|
25
25
|
publicKey,
|
|
26
26
|
privateKey,
|
|
27
27
|
databaseConnectionString,
|
|
@@ -157,5 +157,3 @@ const quill = ({
|
|
|
157
157
|
},
|
|
158
158
|
};
|
|
159
159
|
};
|
|
160
|
-
|
|
161
|
-
export default quill;
|