@8ms/helpers 1.1.61 → 1.1.62
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/initClients.d.ts +1 -1
- package/initClients.js +6 -4
- package/package.json +1 -1
package/initClients.d.ts
CHANGED
|
@@ -26,5 +26,5 @@ declare type InitClients = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Function to simplify initialising the clients.
|
|
28
28
|
*/
|
|
29
|
-
declare const initClients: ({ athenaExpress, awsConfig, awsGlue, awsS3, awsSes, awsSsm, googleAds, prisma, }: InitClients) => Promise<void>;
|
|
29
|
+
declare const initClients: ({ athenaExpress, awsConfig, awsGlue, awsS3, awsSes, awsSsm, deepCrawl, googleAds, prisma, }: InitClients) => Promise<void>;
|
|
30
30
|
export default initClients;
|
package/initClients.js
CHANGED
|
@@ -52,7 +52,7 @@ var initClient_8 = __importDefault(require("./prisma/initClient"));
|
|
|
52
52
|
* Function to simplify initialising the clients.
|
|
53
53
|
*/
|
|
54
54
|
var initClients = function (_a) {
|
|
55
|
-
var athenaExpress = _a.athenaExpress, awsConfig = _a.awsConfig, awsGlue = _a.awsGlue, awsS3 = _a.awsS3, awsSes = _a.awsSes, awsSsm = _a.awsSsm, googleAds = _a.googleAds, prisma = _a.prisma;
|
|
55
|
+
var athenaExpress = _a.athenaExpress, awsConfig = _a.awsConfig, awsGlue = _a.awsGlue, awsS3 = _a.awsS3, awsSes = _a.awsSes, awsSsm = _a.awsSsm, deepCrawl = _a.deepCrawl, googleAds = _a.googleAds, prisma = _a.prisma;
|
|
56
56
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
57
57
|
var deepcrawlParameter, googleAdsParameter;
|
|
58
58
|
return __generator(this, function (_b) {
|
|
@@ -78,9 +78,9 @@ var initClients = function (_a) {
|
|
|
78
78
|
if (true === awsSsm) {
|
|
79
79
|
(0, initClient_5.default)({ config: awsConfig });
|
|
80
80
|
}
|
|
81
|
-
if (!(undefined !==
|
|
81
|
+
if (!(undefined !== deepCrawl)) return [3 /*break*/, 3];
|
|
82
82
|
return [4 /*yield*/, (0, getParameter_1.default)({
|
|
83
|
-
name:
|
|
83
|
+
name: deepCrawl.parameterName,
|
|
84
84
|
})];
|
|
85
85
|
case 1:
|
|
86
86
|
deepcrawlParameter = _b.sent();
|
|
@@ -101,7 +101,9 @@ var initClients = function (_a) {
|
|
|
101
101
|
_b.label = 6;
|
|
102
102
|
case 6:
|
|
103
103
|
if (undefined !== prisma) {
|
|
104
|
-
(0, initClient_8.default)({
|
|
104
|
+
(0, initClient_8.default)({
|
|
105
|
+
debug: true === prisma ? false : prisma.debug || false,
|
|
106
|
+
});
|
|
105
107
|
}
|
|
106
108
|
return [2 /*return*/];
|
|
107
109
|
}
|