@cerbos/grpc
Advanced tools
Comparing version 0.13.0 to 0.14.0
@@ -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. |
/// <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
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
1444782
30075
51
+ Added@cerbos/core@0.14.0(transitive)
+ Added@types/node@22.10.0(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@cerbos/core@0.13.0(transitive)
- Removed@types/node@22.9.3(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@cerbos/core@^0.14.0
Updated@grpc/grpc-js@^1.9.4
Updatedprotobufjs@^7.2.5