@mashroom/mashroom-security-provider-ldap
Advanced tools
Comparing version 2.2.3 to 2.3.0
@@ -240,3 +240,4 @@ "use strict"; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
this._groupToRoleMapping = require(this._groupToRoleMappingPath); | ||
const groupToRoleMappingModule = require(this._groupToRoleMappingPath); | ||
this._groupToRoleMapping = groupToRoleMappingModule.default ?? groupToRoleMappingModule; | ||
this._createRoleDefinitions(this._groupToRoleMapping, request, logger); | ||
@@ -258,3 +259,4 @@ } else { | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
this._userToRoleMapping = require(this._userToRoleMappingPath); | ||
const userToRoleMappingModule = require(this._userToRoleMappingPath); | ||
this._userToRoleMapping = userToRoleMappingModule.default ?? userToRoleMappingModule; | ||
this._createRoleDefinitions(this._userToRoleMapping, request, logger); | ||
@@ -261,0 +263,0 @@ } else { |
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"files": [ | ||
@@ -17,7 +17,7 @@ "dist/**" | ||
"devDependencies": { | ||
"@mashroom/mashroom": "2.2.3", | ||
"@mashroom/mashroom-security": "2.2.3", | ||
"@mashroom/mashroom-utils": "2.2.3", | ||
"@types/express": "^4.17.14", | ||
"@types/ldapjs": "^2.2.4" | ||
"@mashroom/mashroom": "2.3.0", | ||
"@mashroom/mashroom-security": "2.3.0", | ||
"@mashroom/mashroom-utils": "2.3.0", | ||
"@types/express": "^4.17.15", | ||
"@types/ldapjs": "^2.2.5" | ||
}, | ||
@@ -24,0 +24,0 @@ "jest": { |
29402
586