@autofleet/zehut 3.0.10-beta-6 → 3.0.10

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/lib/user/index.js CHANGED
@@ -33,10 +33,11 @@ const tracer_1 = require("../tracer");
33
33
  const app_auth_1 = require("../app-auth");
34
34
  const appDoesNotExist_1 = __importDefault(require("../exceptions/appDoesNotExist"));
35
35
  const utils_1 = require("../utils");
36
+ const IDENTITY_MS = 'identity-ms';
36
37
  const middleware = (options = {}) => async (req, res, next) => {
37
38
  try {
38
39
  const originHeader = req.headers['X-IAF-ORIGIN-SERVICE'] || req.headers['x-iaf-origin-service'] || '';
39
- if (originHeader.toLowerCase() === 'identity-ms') {
40
+ if (originHeader.toLowerCase() === IDENTITY_MS) {
40
41
  return next();
41
42
  }
42
43
  const { eagerLoadUserPermissions, eagerLoadUserPermissionsLegacy, customPermissionLoader, } = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autofleet/zehut",
3
- "version": "3.0.10-beta-6",
3
+ "version": "3.0.10",
4
4
  "description": "manage user's identity",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",