@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.
@@ -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: __assign(__assign({}, context), ((coreContext === null || coreContext === void 0 ? void 0 : 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: __assign(__assign({}, context), ((gatewayContext === null || gatewayContext === void 0 ? void 0 : 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.context || {}))];
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.context || {}))];
195
+ case 2: return [2 /*return*/, __assign({ db: db, isProduction: isProduction, logger: logger }, (extendGatewayConext || {}))];
196
196
  }
197
197
  });
198
198
  }); },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "Set of helper functions and classes to simplify building backend apps within @sdflc ecosystem",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",