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

cerbos

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerbos - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

4

lib/cjs/index.js

@@ -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.",

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