@sdflc/backend-helpers 1.0.32 → 1.0.33
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/build/apiContext.js +4 -4
- package/package.json +1 -1
package/build/apiContext.js
CHANGED
|
@@ -91,11 +91,11 @@ var createApiContext = function (args) { return __awaiter(void 0, void 0, void 0
|
|
|
91
91
|
req: req,
|
|
92
92
|
};
|
|
93
93
|
context.cores = Object.keys(cores || {}).reduce(function (acc, key) {
|
|
94
|
-
acc[(0, lodash_1.camelCase)(key)] = new cores[key](__assign(__assign({}, coreContext), { context:
|
|
94
|
+
acc[(0, lodash_1.camelCase)(key)] = new cores[key](__assign(__assign({}, coreContext), { context: context }));
|
|
95
95
|
return acc;
|
|
96
96
|
}, {});
|
|
97
97
|
context.gateways = Object.keys(gateways || {}).reduce(function (acc, key) {
|
|
98
|
-
acc[(0, lodash_1.camelCase)(key)] = new gateways[key](__assign(__assign({}, gatewayContext), { context:
|
|
98
|
+
acc[(0, lodash_1.camelCase)(key)] = new gateways[key](__assign(__assign({}, gatewayContext), { context: context }));
|
|
99
99
|
return acc;
|
|
100
100
|
}, {});
|
|
101
101
|
if (!(typeof extendContext === 'function')) return [3 /*break*/, 8];
|
|
@@ -177,7 +177,7 @@ var createContextDefault = function (args) { return __awaiter(void 0, void 0, vo
|
|
|
177
177
|
case 1:
|
|
178
178
|
extendCoreConext = _a.sent();
|
|
179
179
|
_a.label = 2;
|
|
180
|
-
case 2: return [2 /*return*/, __assign({ db: db, gatewayName: '', isProduction: isProduction, logger: logger, doAuth: doAuth, spaceGw: spaceGw, interserviceApiKey: interserviceApiKey, jwtSecret: jwtSecret, verifyTokenArgs: verifyTokenArgs }, (extendCoreConext
|
|
180
|
+
case 2: return [2 /*return*/, __assign({ db: db, gatewayName: '', isProduction: isProduction, logger: logger, doAuth: doAuth, spaceGw: spaceGw, interserviceApiKey: interserviceApiKey, jwtSecret: jwtSecret, verifyTokenArgs: verifyTokenArgs }, (extendCoreConext || {}))];
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}); },
|
|
@@ -192,7 +192,7 @@ var createContextDefault = function (args) { return __awaiter(void 0, void 0, vo
|
|
|
192
192
|
case 1:
|
|
193
193
|
extendGatewayConext = _a.sent();
|
|
194
194
|
_a.label = 2;
|
|
195
|
-
case 2: return [2 /*return*/, __assign({ db: db, isProduction: isProduction, logger: logger }, (extendGatewayConext
|
|
195
|
+
case 2: return [2 /*return*/, __assign({ db: db, isProduction: isProduction, logger: logger }, (extendGatewayConext || {}))];
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
}); },
|
package/package.json
CHANGED