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

@cerbos/grpc

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cerbos/grpc - npm Package Compare versions

Comparing version 0.13.0 to 0.14.0

1

lib/index.js

@@ -25,2 +25,3 @@ "use strict";

class GRPC extends core_1.Client {
client;
/**

@@ -27,0 +28,0 @@ * Create a client for interacting with the Cerbos policy decision point (PDP) server over gRPC.

3

lib/protobuf/cerbos/svc/v1/svc.d.ts
/// <reference types="node" />
import { CallOptions, ChannelCredentials, Client, ClientOptions, ClientReadableStream, ClientUnaryCall, handleServerStreamingCall, handleUnaryCall, Metadata, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
import { ChannelCredentials, Client, ClientReadableStream, handleServerStreamingCall, Metadata } from "@grpc/grpc-js";
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
import { AddOrUpdatePolicyRequest, AddOrUpdateSchemaRequest, CheckResourceBatchRequest, CheckResourceSetRequest, CheckResourcesRequest, DeleteSchemaRequest, DisablePolicyRequest, EnablePolicyRequest, GetPolicyRequest, GetSchemaRequest, ListAuditLogEntriesRequest, ListPoliciesRequest, ListSchemasRequest, PlanResourcesRequest, ReloadStoreRequest, ServerInfoRequest } from "../../request/v1/request";

@@ -4,0 +5,0 @@ import { AddOrUpdatePolicyResponse, AddOrUpdateSchemaResponse, CheckResourceBatchResponse, CheckResourceSetResponse, CheckResourcesResponse, DeleteSchemaResponse, DisablePolicyResponse, EnablePolicyResponse, GetPolicyResponse, GetSchemaResponse, ListAuditLogEntriesResponse, ListPoliciesResponse, ListSchemasResponse, PlanResourcesResponse, ReloadStoreResponse, ServerInfoResponse } from "../../response/v1/response";

{
"name": "@cerbos/grpc",
"version": "0.13.0",
"version": "0.14.0",
"description": "Client library for interacting with the Cerbos policy decision point over gRPC from server-side Node.js applications",

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

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

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

"dependencies": {
"@cerbos/core": "^0.13.0",
"@grpc/grpc-js": "^1.9.0",
"@cerbos/core": "^0.14.0",
"@grpc/grpc-js": "^1.9.4",
"long": "^5.2.3",
"protobufjs": "^7.2.4"
"protobufjs": "^7.2.5"
}
}

@@ -10,3 +10,3 @@ # @cerbos/grpc

- Cerbos 0.16+
- Node.js 16+
- Node.js 18+

@@ -19,8 +19,2 @@ ## Installation

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

@@ -37,3 +31,3 @@

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

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

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

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

/* eslint-disable */
import {
CallOptions,
ChannelCredentials,
Client,
ClientOptions,
ClientReadableStream,
ClientUnaryCall,
handleServerStreamingCall,
handleUnaryCall,
makeGenericClientConstructor,
Metadata,
} from "@grpc/grpc-js";
import type {
CallOptions,
ClientOptions,
ClientUnaryCall,
handleUnaryCall,
ServiceError,

@@ -14,0 +16,0 @@ UntypedServiceImplementation,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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