Comparing version 0.0.3 to 0.0.4
@@ -80,3 +80,3 @@ "use strict"; | ||
this.log.info("Cerbos.check", data); | ||
const payload = Object.assign(Object.assign({ requestId: uuid_1.v4() }, data), { resource: Object.assign({ policyVersion: data.resource.policyVersion || "default" }, data.resource), principal: Object.assign({ policyVersion: data.principal.policyVersion || "default" }, data.principal) }); | ||
const payload = Object.assign(Object.assign({ requestId: (0, uuid_1.v4)() }, data), { resource: Object.assign({ policyVersion: data.resource.policyVersion || "default" }, data.resource), principal: Object.assign({ policyVersion: data.principal.policyVersion || "default" }, data.principal) }); | ||
this.log.debug("Cerbos.check Payload", payload); | ||
@@ -92,3 +92,3 @@ // eslint-disable-next-line prefer-const | ||
try { | ||
const response = yield node_fetch_1.default(`${this.host}/api/check`, { | ||
const response = yield (0, node_fetch_1.default)(`${this.host}/api/check`, { | ||
method: "post", | ||
@@ -95,0 +95,0 @@ body: JSON.stringify(payload), |
{ | ||
"name": "cerbos", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"homepage": "https://cerbos.dev", | ||
@@ -5,0 +5,0 @@ "description": "Cerbos helps you super-charge your authorization implementation by writing context-aware access control policies for your application resources.", |
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
31335