@lifeomic/abac
Advanced tools
Comparing version 4.3.0 to 4.3.1
@@ -76,3 +76,3 @@ export type AbacRuleComparison = ( | ||
*/ | ||
export function enforce(operationName: string, policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforce(operationName: string, policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -94,3 +94,3 @@ /** | ||
*/ | ||
export function enforceLenient(operationName: string, policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforceLenient(operationName: string, policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -106,3 +106,3 @@ /** | ||
*/ | ||
export function enforceAny(operationName: string[], policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforceAny(operationName: string[], policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -109,0 +109,0 @@ /** |
@@ -118,3 +118,3 @@ 'use strict'; | ||
const getAttributeValues = (attributes, path) => { | ||
if (attributes === undefined) { | ||
if (attributes === undefined || attributes === null) { | ||
return []; | ||
@@ -121,0 +121,0 @@ } |
@@ -76,3 +76,3 @@ export type AbacRuleComparison = ( | ||
*/ | ||
export function enforce(operationName: string, policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforce(operationName: string, policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -94,3 +94,3 @@ /** | ||
*/ | ||
export function enforceLenient(operationName: string, policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforceLenient(operationName: string, policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -106,3 +106,3 @@ /** | ||
*/ | ||
export function enforceAny(operationName: string[], policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforceAny(operationName: string[], policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -109,0 +109,0 @@ /** |
@@ -133,3 +133,3 @@ 'use strict'; | ||
var getAttributeValues = function getAttributeValues(attributes, path) { | ||
if (attributes === undefined) { | ||
if (attributes === undefined || attributes === null) { | ||
return []; | ||
@@ -136,0 +136,0 @@ } |
@@ -76,3 +76,3 @@ export type AbacRuleComparison = ( | ||
*/ | ||
export function enforce(operationName: string, policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforce(operationName: string, policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -94,3 +94,3 @@ /** | ||
*/ | ||
export function enforceLenient(operationName: string, policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforceLenient(operationName: string, policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -106,3 +106,3 @@ /** | ||
*/ | ||
export function enforceAny(operationName: string[], policy: AbacReducedPolicy, attributes: object): boolean; | ||
export function enforceAny(operationName: string[], policy: AbacReducedPolicy, attributes?: object): boolean; | ||
@@ -109,0 +109,0 @@ /** |
@@ -91,3 +91,3 @@ 'use strict'; | ||
const getAttributeValues = (attributes, path) => { | ||
if (attributes === undefined) { | ||
if (attributes === undefined || attributes === null) { | ||
return []; | ||
@@ -94,0 +94,0 @@ } |
{ | ||
"name": "@lifeomic/abac", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Lifeomic Attribute Based Access Control Support Module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161739