Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

casbin

Package Overview
Dependencies
Maintainers
3
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casbin - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

lib/syncedEnforcer.d.ts

4

lib/coreEnforcer.d.ts

@@ -122,6 +122,6 @@ import { Effector } from './effect';

/**
* buildRoleLinks manually rebuild the
* role inheritance relations.
* buildRoleLinks manually rebuild the role inheritance relations.
*/
buildRoleLinks(): Promise<void>;
protected buildRoleLinksInternal(): Promise<void>;
private privateEnforce;

@@ -128,0 +128,0 @@ /**

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

if (this.autoBuildRoleLinks) {
yield this.buildRoleLinks();
yield this.buildRoleLinksInternal();
}

@@ -152,3 +152,3 @@ });

if (this.autoBuildRoleLinks) {
yield this.buildRoleLinks();
yield this.buildRoleLinksInternal();
}

@@ -224,7 +224,11 @@ return true;

/**
* buildRoleLinks manually rebuild the
* role inheritance relations.
* buildRoleLinks manually rebuild the role inheritance relations.
*/
buildRoleLinks() {
return __awaiter(this, void 0, void 0, function* () {
return this.buildRoleLinksInternal();
});
}
buildRoleLinksInternal() {
return __awaiter(this, void 0, void 0, function* () {
yield this.rm.clear();

@@ -231,0 +235,0 @@ yield this.model.buildRoleLinks(this.rm);

@@ -5,2 +5,3 @@ import * as Util from './util';

export * from './cachedEnforcer';
export * from './syncedEnforcer';
export * from './effect';

@@ -7,0 +8,0 @@ export * from './model';

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

__export(require("./cachedEnforcer"));
__export(require("./syncedEnforcer"));
__export(require("./effect"));

@@ -26,0 +27,0 @@ __export(require("./model"));

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

if (this.autoBuildRoleLinks) {
yield this.buildRoleLinks();
yield this.buildRoleLinksInternal();
}

@@ -422,3 +422,3 @@ return ruleadded;

if (this.autoBuildRoleLinks) {
yield this.buildRoleLinks();
yield this.buildRoleLinksInternal();
}

@@ -441,3 +441,3 @@ return ruleRemoved;

if (this.autoBuildRoleLinks) {
yield this.buildRoleLinks();
yield this.buildRoleLinksInternal();
}

@@ -444,0 +444,0 @@ return ruleRemoved;

{
"name": "casbin",
"version": "4.0.0",
"version": "4.1.0",
"description": "An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS",

@@ -42,2 +42,3 @@ "main": "lib/index.js",

"dependencies": {
"await-lock": "^2.0.1",
"expression-eval": "^2.0.0",

@@ -44,0 +45,0 @@ "ip": "^1.1.5",

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