@loopback/authorization
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -14,9 +14,9 @@ "use strict"; | ||
constructor() { | ||
this.bindings = [core_1.createBindingFromClass(authorize_interceptor_1.AuthorizationInterceptor)]; | ||
this.bindings = [(0, core_1.createBindingFromClass)(authorize_interceptor_1.AuthorizationInterceptor)]; | ||
} | ||
}; | ||
AuthorizationComponent = tslib_1.__decorate([ | ||
core_1.injectable({ tags: { [core_1.ContextTags.KEY]: keys_1.AuthorizationBindings.COMPONENT.key } }) | ||
AuthorizationComponent = (0, tslib_1.__decorate)([ | ||
(0, core_1.injectable)({ tags: { [core_1.ContextTags.KEY]: keys_1.AuthorizationBindings.COMPONENT.key } }) | ||
], AuthorizationComponent); | ||
exports.AuthorizationComponent = AuthorizationComponent; | ||
//# sourceMappingURL=authorization-component.js.map |
@@ -11,3 +11,3 @@ "use strict"; | ||
const security_1 = require("@loopback/security"); | ||
const debug_1 = tslib_1.__importDefault(require("debug")); | ||
const debug_1 = (0, tslib_1.__importDefault)(require("debug")); | ||
const authorize_1 = require("./decorators/authorize"); | ||
@@ -17,3 +17,3 @@ const keys_1 = require("./keys"); | ||
const util_1 = require("./util"); | ||
const debug = debug_1.default('loopback:authorization:interceptor'); | ||
const debug = (0, debug_1.default)('loopback:authorization:interceptor'); | ||
let AuthorizationInterceptor = class AuthorizationInterceptor { | ||
@@ -35,3 +35,3 @@ constructor(options = {}) { | ||
const description = debug.enabled ? invocationCtx.description : ''; | ||
let metadata = authorize_1.getAuthorizationMetadata(invocationCtx.target, invocationCtx.methodName); | ||
let metadata = (0, authorize_1.getAuthorizationMetadata)(invocationCtx.target, invocationCtx.methodName); | ||
if (!metadata) { | ||
@@ -53,3 +53,3 @@ debug('No authorization metadata is found for %s', description); | ||
const authorizationCtx = { | ||
principals: user ? [util_1.createPrincipalFromUserProfile(user)] : [], | ||
principals: user ? [(0, util_1.createPrincipalFromUserProfile)(user)] : [], | ||
roles: [], | ||
@@ -94,6 +94,6 @@ scopes: [], | ||
}; | ||
AuthorizationInterceptor = tslib_1.__decorate([ | ||
core_1.injectable(core_1.asGlobalInterceptor('authorization')), | ||
tslib_1.__param(0, core_1.config({ fromBinding: keys_1.AuthorizationBindings.COMPONENT })), | ||
tslib_1.__metadata("design:paramtypes", [Object]) | ||
AuthorizationInterceptor = (0, tslib_1.__decorate)([ | ||
(0, core_1.injectable)((0, core_1.asGlobalInterceptor)('authorization')), | ||
(0, tslib_1.__param)(0, (0, core_1.config)({ fromBinding: keys_1.AuthorizationBindings.COMPONENT })), | ||
(0, tslib_1.__metadata)("design:paramtypes", [Object]) | ||
], AuthorizationInterceptor); | ||
@@ -100,0 +100,0 @@ exports.AuthorizationInterceptor = AuthorizationInterceptor; |
@@ -18,7 +18,7 @@ "use strict"; | ||
*/ | ||
tslib_1.__exportStar(require("./authorization-component"), exports); | ||
tslib_1.__exportStar(require("./authorize-interceptor"), exports); | ||
tslib_1.__exportStar(require("./decorators/authorize"), exports); | ||
tslib_1.__exportStar(require("./keys"), exports); | ||
tslib_1.__exportStar(require("./types"), exports); | ||
(0, tslib_1.__exportStar)(require("./authorization-component"), exports); | ||
(0, tslib_1.__exportStar)(require("./authorize-interceptor"), exports); | ||
(0, tslib_1.__exportStar)(require("./decorators/authorize"), exports); | ||
(0, tslib_1.__exportStar)(require("./keys"), exports); | ||
(0, tslib_1.__exportStar)(require("./types"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@loopback/authorization", | ||
"description": "A LoopBack component for authorization support.", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"keywords": [ | ||
@@ -43,6 +43,6 @@ "LoopBack", | ||
"peerDependencies": { | ||
"@loopback/core": "^2.17.0" | ||
"@loopback/core": "^2.18.0" | ||
}, | ||
"dependencies": { | ||
"@loopback/security": "^0.5.3", | ||
"@loopback/security": "^0.5.4", | ||
"debug": "^4.3.2", | ||
@@ -52,5 +52,5 @@ "tslib": "^2.3.1" | ||
"devDependencies": { | ||
"@loopback/build": "^7.0.1", | ||
"@loopback/core": "^2.17.0", | ||
"@loopback/testlab": "^3.4.3", | ||
"@loopback/build": "^7.0.2", | ||
"@loopback/core": "^2.18.0", | ||
"@loopback/testlab": "^3.4.4", | ||
"@types/debug": "^4.1.7", | ||
@@ -60,3 +60,3 @@ "@types/node": "10.17.60", | ||
}, | ||
"gitHead": "1df36bb1ee2e513d9e197bd6010c4cfb296d50b8" | ||
"gitHead": "d9a29c85dbe38f12ba219d8c495cf6038bbc3590" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
62469
Updated@loopback/security@^0.5.4