Skip to content

Commit

Permalink
fix: throw Type Error in Identity and Resource statements for actions…
Browse files Browse the repository at this point in the history
… and resources
  • Loading branch information
roggervalf committed Oct 18, 2020
1 parent 2e4409d commit 78c52ca
Show file tree
Hide file tree
Showing 13 changed files with 527 additions and 180 deletions.
16 changes: 10 additions & 6 deletions dist/main.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ declare class ActionBased extends Statement {
constructor(action: ActionBasedType);
getStatement(): ActionBasedType;
matches({ action, context, conditionResolver }: MatchActionBasedInterface): boolean;
private checkAndAssignActions;
private matchActions;
private matchNotActions;
}
Expand All @@ -141,6 +142,8 @@ declare class IdentityBased extends Statement {
constructor(identity: IdentityBasedType);
getStatement(): IdentityBasedType;
matches({ action, resource, context, conditionResolver }: MatchIdentityBasedInterface): boolean;
private checkAndAssignActions;
private checkAndAssignResources;
private matchActions;
private matchNotActions;
private matchResources;
Expand All @@ -158,12 +161,13 @@ declare class ResourceBased extends Statement {
constructor(identity: ResourceBasedType);
getStatement(): ResourceBasedType;
matches({ principal, action, resource, principalType, context, conditionResolver }: MatchResourceBasedInterface): boolean;
matchPrincipals(principal: string, principalType?: string, context?: Context): boolean;
matchNotPrincipals(principal: string, principalType?: string, context?: Context): boolean;
matchActions(action: string, context?: Context): boolean;
matchNotActions(action: string, context?: Context): boolean;
matchResources(resource: string, context?: Context): boolean;
matchNotResources(resource: string, context?: Context): boolean;
private checkAndAssignActions;
private matchPrincipals;
private matchNotPrincipals;
private matchActions;
private matchNotActions;
private matchResources;
private matchNotResources;
}

declare class Policy {
Expand Down
163 changes: 116 additions & 47 deletions dist/main.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/main.es.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 78c52ca

Please sign in to comment.