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

@cerbos/http

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cerbos/http - npm Package Compare versions

Comparing version 0.14.0 to 0.15.0

8

package.json
{
"name": "@cerbos/http",
"version": "0.14.0",
"version": "0.15.0",
"description": "Client library for interacting with the Cerbos policy decision point over HTTP from browser-based applications",

@@ -17,3 +17,3 @@ "repository": {

"engines": {
"node": ">= 16"
"node": ">= 18"
},

@@ -30,8 +30,8 @@ "main": "./lib/index.js",

"dependencies": {
"@cerbos/core": "^0.13.0",
"@cerbos/core": "^0.14.0",
"qs": "^6.11.2"
},
"devDependencies": {
"@types/qs": "6.9.7"
"@types/qs": "6.9.8"
}
}

@@ -12,10 +12,6 @@ # @cerbos/http

- For Node.js up to 17.4, you'll need [a polyfill](https://www.npmjs.com/package/cross-fetch) to make `fetch` happen.
- From Node.js 17.5, you can instead enable the [`--experimental-fetch`](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch) option at the command line or via `NODE_OPTIONS`.
- From Node.js 18 onwards `fetch` is available without any additional configuration.
## Prerequisites
- Cerbos 0.16+
- Node.js 16+
- Node.js 18+
- `fetch`

@@ -29,8 +25,2 @@

or
```console
$ yarn add @cerbos/http
```
## Example usage

@@ -47,3 +37,3 @@

roles: ["USER"],
attributes: { tier: "PREMIUM" },
attr: { tier: "PREMIUM" },
},

@@ -53,3 +43,3 @@ resource: {

id: "1",
attributes: { owner: "user@example.com" },
attr: { owner: "user@example.com" },
},

@@ -56,0 +46,0 @@ action: "view",

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