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

@lifeomic/abac

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lifeomic/abac - npm Package Compare versions

Comparing version 4.3.0 to 4.3.1

6

dist/index.d.ts

@@ -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

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