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

@a38/core

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@a38/core - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "@a38/core",
"version": "0.0.3",
"version": "0.0.4",
"exports": {

@@ -5,0 +5,0 @@ ".": {

@@ -12,3 +12,3 @@ import type { HRBAC } from './hrbac.js';

privilege: string | null
) => boolean;
) => boolean | Promise<boolean>;

@@ -40,3 +40,3 @@ export interface SerializedRule {

match(hrbac: HRBAC, role: ROLE, resource: RESOURCE, privilege: string | null): boolean {
async match(hrbac: HRBAC, role: ROLE, resource: RESOURCE, privilege: string | null): Promise<boolean> {
if (null === privilege) {

@@ -48,3 +48,3 @@ if (this.privileges) return false;

return !this.assertion || this.assertion(hrbac, role, resource, privilege);
return !this.assertion || (await this.assertion(hrbac, role, resource, privilege));
}

@@ -51,0 +51,0 @@

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