@sdflc/backend-helpers 1.0.35 → 1.0.36

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.
@@ -132,7 +132,7 @@ var createContextDefault = function (args) { return __awaiter(void 0, void 0, vo
132
132
  ipAddress = req.headers[constants_1.HEADERS.IP_ADDRESS] || req.connection.remoteAddress;
133
133
  acceptLanguage = req.headers[constants_1.HEADERS.ACCEPT_LANGUAGE];
134
134
  languages = (0, utils_1.extractLanguages)(acceptLanguage);
135
- requestedLang = req.headers[constants_1.HEADERS.ACCEPT_LANGUAGE] || req.query[constants_1.HEADERS.ACCEPT_LANGUAGE];
135
+ requestedLang = req.headers[constants_1.HEADERS.REQUESTED_LANGUAGE] || (languages === null || languages === void 0 ? void 0 : languages[0]) || 'en';
136
136
  requestId = (0, uuid_1.v4)();
137
137
  db = new Database_1.Database({
138
138
  knexConfig: knexConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.35",
3
+ "version": "1.0.36",
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",