@apipass/cerbos-pep 0.0.72 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cerbos.module.js
CHANGED
|
@@ -13,6 +13,7 @@ const cerbos_interceptor_1 = require("./cerbos.interceptor");
|
|
|
13
13
|
const cerbos_service_1 = require("./cerbos.service");
|
|
14
14
|
const cerbos_authorization_adapter_1 = require("./adapters/cerbos-authorization.adapter");
|
|
15
15
|
const authorization_port_1 = require("./ports/authorization.port");
|
|
16
|
+
const authorizatio_context_1 = require("./authorizatio-context");
|
|
16
17
|
let CerbosModule = CerbosModule_1 = class CerbosModule {
|
|
17
18
|
static register(options) {
|
|
18
19
|
return {
|
|
@@ -24,6 +25,7 @@ let CerbosModule = CerbosModule_1 = class CerbosModule {
|
|
|
24
25
|
},
|
|
25
26
|
cerbos_service_1.CerbosService,
|
|
26
27
|
cerbos_interceptor_1.CerbosInterceptor,
|
|
28
|
+
authorizatio_context_1.HttpAuthorizationContextExtractor,
|
|
27
29
|
{
|
|
28
30
|
provide: authorization_port_1.AUTHORIZATION_PORT,
|
|
29
31
|
useClass: cerbos_authorization_adapter_1.CerbosAuthorizationAdapter,
|
package/lib/cerbos.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerbos.module.js","sourceRoot":"","sources":["../src/cerbos.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,6DAAyD;AACzD,qDAAiD;AACjD,0FAAqF;AACrF,mEAAgE;
|
|
1
|
+
{"version":3,"file":"cerbos.module.js","sourceRoot":"","sources":["../src/cerbos.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,6DAAyD;AACzD,qDAAiD;AACjD,0FAAqF;AACrF,mEAAgE;AAChE,iEAAyE;AAQlE,IAAM,YAAY,oBAAlB,MAAM,YAAY;IACvB,MAAM,CAAC,QAAQ,CAAC,OAA4B;QAC1C,OAAO;YACL,MAAM,EAAE,cAAY;YACpB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,gBAAgB;oBACzB,QAAQ,EAAE,OAAO;iBAClB;gBACD,8BAAa;gBACb,sCAAiB;gBACjB,wDAAiC;gBACjC;oBACE,OAAO,EAAE,uCAAkB;oBAC3B,QAAQ,EAAE,yDAA0B;iBACrC;aACF;YACD,OAAO,EAAE,CAAC,8BAAa;gBACrB,sCAAiB;gBACjB,gBAAgB;gBAChB,uCAAkB;gBAClB,sCAAiB,CAAC;SACrB,CAAC;IACJ,CAAC;CACF,CAAA;AAxBY,oCAAY;uBAAZ,YAAY;IAFxB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,YAAY,CAwBxB"}
|
package/lib/cerbos.service.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import type { CerbosModuleOptions } from './cerbos.module';
|
|
2
2
|
import { GetQueryPlanParams } from "./get-query-plan";
|
|
3
|
+
type PlanResourcesResponse = typeof import('@cerbos/core', { with: { "resolution-mode": "import" } });
|
|
3
4
|
export declare class CerbosService {
|
|
4
5
|
private readonly config;
|
|
5
6
|
private cerbos;
|
|
6
7
|
constructor(config: CerbosModuleOptions);
|
|
7
8
|
private getCerbos;
|
|
8
9
|
getCheckResource(request: unknown): Promise<unknown>;
|
|
9
|
-
getQueryPlan(params: GetQueryPlanParams): Promise<
|
|
10
|
+
getQueryPlan(params: GetQueryPlanParams): Promise<PlanResourcesResponse>;
|
|
10
11
|
}
|
|
12
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cerbos.service.js","sourceRoot":"","sources":["../src/cerbos.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;
|
|
1
|
+
{"version":3,"file":"cerbos.service.js","sourceRoot":"","sources":["../src/cerbos.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAoD;AAQ7C,IAAM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bos-pep",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.74",
|
|
4
4
|
"description": "Cerbos PEP utility for NestJS",
|
|
5
5
|
"author": "raul@apipass.com.br",
|
|
6
6
|
"license": "ISC",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"@nestjs/common": "10.4.15",
|
|
29
29
|
"@nestjs/core": "10.4.15"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "4c711e537915fff7bb0d225df9f87fb762d81628"
|
|
32
32
|
}
|