@sdflc/backend-helpers 1.0.46 → 1.0.47

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/BaseCore.js CHANGED
@@ -804,6 +804,7 @@ var BaseCore = /** @class */ (function () {
804
804
  context.roleId = token.roleId;
805
805
  context.userId = token.userId;
806
806
  context.spaceId = token.spaceId || context.spaceId;
807
+ context.lang = token.lang || context.requestedLang;
807
808
  authByToken = true;
808
809
  }
809
810
  if (!authByToken) {
@@ -19,5 +19,6 @@ export interface ApiContext {
19
19
  accountId?: string;
20
20
  roleId?: string;
21
21
  userId?: string;
22
+ lang?: string;
22
23
  [key: string]: any;
23
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sdflc/backend-helpers",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
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",