New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

loopback4-authorization

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loopback4-authorization - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

6

dist/component.js

@@ -36,7 +36,7 @@ "use strict";

};
AuthorizationComponent = (0, tslib_1.__decorate)([
(0, tslib_1.__param)(0, (0, core_1.inject)(keys_1.AuthorizationBindings.CONFIG)),
(0, tslib_1.__metadata)("design:paramtypes", [Object])
AuthorizationComponent = tslib_1.__decorate([
tslib_1.__param(0, (0, core_1.inject)(keys_1.AuthorizationBindings.CONFIG)),
tslib_1.__metadata("design:paramtypes", [Object])
], AuthorizationComponent);
exports.AuthorizationComponent = AuthorizationComponent;
//# sourceMappingURL=component.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./authorize.decorator"), exports);
tslib_1.__exportStar(require("./authorize.decorator"), exports);
//# sourceMappingURL=index.js.map

@@ -5,2 +5,3 @@ "use strict";

const defaultResponse = (ctor, op) => ({
// eslint-disable-next-line @typescript-eslint/naming-convention
'200': {

@@ -7,0 +8,0 @@ description: `Return value of ${ctor.name}.${op}`,

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./component"), exports);
(0, tslib_1.__exportStar)(require("./types"), exports);
(0, tslib_1.__exportStar)(require("./keys"), exports);
(0, tslib_1.__exportStar)(require("./error-keys"), exports);
(0, tslib_1.__exportStar)(require("./decorators"), exports);
(0, tslib_1.__exportStar)(require("./providers"), exports);
tslib_1.__exportStar(require("./component"), exports);
tslib_1.__exportStar(require("./types"), exports);
tslib_1.__exportStar(require("./keys"), exports);
tslib_1.__exportStar(require("./error-keys"), exports);
tslib_1.__exportStar(require("./decorators"), exports);
tslib_1.__exportStar(require("./providers"), exports);
//# sourceMappingURL=index.js.map

@@ -38,8 +38,8 @@ "use strict";

};
AuthorizeActionProvider = (0, tslib_1.__decorate)([
(0, tslib_1.__param)(0, context_1.inject.getter(keys_1.AuthorizationBindings.METADATA)),
(0, tslib_1.__param)(1, (0, context_1.inject)(keys_1.AuthorizationBindings.PATHS_TO_ALLOW_ALWAYS)),
(0, tslib_1.__metadata)("design:paramtypes", [Function, Array])
AuthorizeActionProvider = tslib_1.__decorate([
tslib_1.__param(0, context_1.inject.getter(keys_1.AuthorizationBindings.METADATA)),
tslib_1.__param(1, (0, context_1.inject)(keys_1.AuthorizationBindings.PATHS_TO_ALLOW_ALWAYS)),
tslib_1.__metadata("design:paramtypes", [Function, Array])
], AuthorizeActionProvider);
exports.AuthorizeActionProvider = AuthorizeActionProvider;
//# sourceMappingURL=authorization-action.provider.js.map

@@ -19,6 +19,6 @@ "use strict";

};
AuthorizationMetadataProvider = (0, tslib_1.__decorate)([
(0, tslib_1.__param)(0, (0, context_1.inject)(core_1.CoreBindings.CONTROLLER_CLASS, { optional: true })),
(0, tslib_1.__param)(1, (0, context_1.inject)(core_1.CoreBindings.CONTROLLER_METHOD_NAME, { optional: true })),
(0, tslib_1.__metadata)("design:paramtypes", [Object, String])
AuthorizationMetadataProvider = tslib_1.__decorate([
tslib_1.__param(0, (0, context_1.inject)(core_1.CoreBindings.CONTROLLER_CLASS, { optional: true })),
tslib_1.__param(1, (0, context_1.inject)(core_1.CoreBindings.CONTROLLER_METHOD_NAME, { optional: true })),
tslib_1.__metadata("design:paramtypes", [Object, String])
], AuthorizationMetadataProvider);

@@ -25,0 +25,0 @@ exports.AuthorizationMetadataProvider = AuthorizationMetadataProvider;

@@ -7,3 +7,3 @@ "use strict";

const rest_1 = require("@loopback/rest");
const casbin = (0, tslib_1.__importStar)(require("casbin"));
const casbin = tslib_1.__importStar(require("casbin"));
const keys_1 = require("../keys");

@@ -100,9 +100,9 @@ let CasbinAuthorizationProvider = class CasbinAuthorizationProvider {

};
CasbinAuthorizationProvider = (0, tslib_1.__decorate)([
(0, tslib_1.__param)(0, core_1.inject.getter(keys_1.AuthorizationBindings.METADATA)),
(0, tslib_1.__param)(1, (0, core_1.inject)(keys_1.AuthorizationBindings.CASBIN_ENFORCER_CONFIG_GETTER)),
(0, tslib_1.__param)(2, (0, core_1.inject)(keys_1.AuthorizationBindings.PATHS_TO_ALLOW_ALWAYS)),
(0, tslib_1.__metadata)("design:paramtypes", [Function, Function, Array])
CasbinAuthorizationProvider = tslib_1.__decorate([
tslib_1.__param(0, core_1.inject.getter(keys_1.AuthorizationBindings.METADATA)),
tslib_1.__param(1, (0, core_1.inject)(keys_1.AuthorizationBindings.CASBIN_ENFORCER_CONFIG_GETTER)),
tslib_1.__param(2, (0, core_1.inject)(keys_1.AuthorizationBindings.PATHS_TO_ALLOW_ALWAYS)),
tslib_1.__metadata("design:paramtypes", [Function, Function, Array])
], CasbinAuthorizationProvider);
exports.CasbinAuthorizationProvider = CasbinAuthorizationProvider;
//# sourceMappingURL=casbin-authorization-action.provider.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./authorization-metadata.provider"), exports);
(0, tslib_1.__exportStar)(require("./authorization-action.provider"), exports);
(0, tslib_1.__exportStar)(require("./user-permissions.provider"), exports);
(0, tslib_1.__exportStar)(require("./casbin-authorization-action.provider"), exports);
(0, tslib_1.__exportStar)(require("./casbin-enforcer-config.provider"), exports);
tslib_1.__exportStar(require("./authorization-metadata.provider"), exports);
tslib_1.__exportStar(require("./authorization-action.provider"), exports);
tslib_1.__exportStar(require("./user-permissions.provider"), exports);
tslib_1.__exportStar(require("./casbin-authorization-action.provider"), exports);
tslib_1.__exportStar(require("./casbin-enforcer-config.provider"), exports);
//# sourceMappingURL=index.js.map
{
"name": "loopback4-authorization",
"version": "5.0.1",
"version": "5.0.2",
"description": "An authorization extension for loopback-next applications",

@@ -35,3 +35,4 @@ "keywords": [

"prepublishOnly": "npm run build && npm run lint",
"prepare": "husky install"
"prepare": "husky install",
"postinstall": "patch-package"
},

@@ -51,4 +52,4 @@ "repository": {

"dependencies": {
"@loopback/core": "^3.1.1",
"casbin": "^5.11.5",
"@loopback/core": "^3.1.2",
"casbin": "^5.14.0",
"casbin-pg-adapter": "^1.4.0",

@@ -58,17 +59,17 @@ "lodash": "^4.17.21"

"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@loopback/boot": "^4.1.1",
"@loopback/build": "^8.1.1",
"@loopback/context": "^4.1.1",
"@loopback/eslint-config": "^12.0.3",
"@loopback/rest": "^11.1.1",
"@loopback/testlab": "^4.1.1",
"@semantic-release/changelog": "^5.0.1",
"@commitlint/cli": "^16.2.3",
"@commitlint/config-conventional": "^16.2.1",
"@loopback/boot": "^4.1.2",
"@loopback/build": "^8.1.2",
"@loopback/context": "^4.1.2",
"@loopback/eslint-config": "^12.0.4",
"@loopback/rest": "^11.1.2",
"@loopback/testlab": "^4.1.2",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^9.0.1",
"@semantic-release/npm": "^8.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/lodash": "^4.14.161",
"@types/node": "^12.20.46",
"@types/lodash": "^4.14.181",
"@types/node": "^12.20.47",
"commitizen": "^4.2.4",

@@ -78,8 +79,18 @@ "cz-conventional-changelog": "^3.3.0",

"cz-customizable-ghooks": "^2.0.0",
"eslint": "^8.10.0",
"eslint": "^8.12.0",
"fs-extra": "^10.0.1",
"husky": "^7.0.1",
"semantic-release": "^17.4.7",
"typescript": "~4.5.5"
"husky": "^7.0.4",
"patch-package": "^6.4.7",
"semantic-release": "^19.0.2",
"typescript": "~4.6.3"
},
"overrides": {
"commitizen": {
"minimist": "^1.2.6",
"cz-conventional-changelog": "^3.3.0"
},
"jake": {
"async": "^3.2.3"
}
},
"publishConfig": {

@@ -86,0 +97,0 @@ "registry": "https://registry.npmjs.org/"

@@ -5,2 +5,3 @@ import {OperationObject} from 'openapi3-ts';

const defaultResponse = (ctor: {name: string}, op: string) => ({
// eslint-disable-next-line @typescript-eslint/naming-convention
'200': {

@@ -7,0 +8,0 @@ description: `Return value of ${ctor.name}.${op}`,

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc