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.8.1 to 0.8.2

11

lib/protobuf/cerbos/audit/v1/audit.d.ts

@@ -35,2 +35,5 @@ import _m0 from "protobufjs/minimal";

};
metadata: {
[key: string]: MetaValues;
};
}

@@ -47,2 +50,6 @@ export interface DecisionLogEntry_CheckResources {

}
export interface DecisionLogEntry_MetadataEntry {
key: string;
value: MetaValues | undefined;
}
export interface MetaValues {

@@ -77,2 +84,6 @@ values: string[];

};
export declare const DecisionLogEntry_MetadataEntry: {
encode(message: DecisionLogEntry_MetadataEntry, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): DecisionLogEntry_MetadataEntry;
};
export declare const MetaValues: {

@@ -79,0 +90,0 @@ encode(message: MetaValues, writer?: _m0.Writer): _m0.Writer;

56

lib/protobuf/cerbos/audit/v1/audit.js

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.Peer = exports.MetaValues = exports.DecisionLogEntry_PlanResources = exports.DecisionLogEntry_CheckResources = exports.DecisionLogEntry = exports.AccessLogEntry_MetadataEntry = exports.AccessLogEntry = exports.protobufPackage = void 0;
exports.Peer = exports.MetaValues = exports.DecisionLogEntry_MetadataEntry = exports.DecisionLogEntry_PlanResources = exports.DecisionLogEntry_CheckResources = exports.DecisionLogEntry = exports.AccessLogEntry_MetadataEntry = exports.AccessLogEntry = exports.protobufPackage = void 0;
/* eslint-disable */

@@ -109,3 +109,12 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));

function createBaseDecisionLogEntry() {
return { callId: "", timestamp: undefined, peer: undefined, inputs: [], outputs: [], error: "", method: undefined };
return {
callId: "",
timestamp: undefined,
peer: undefined,
inputs: [],
outputs: [],
error: "",
method: undefined,
metadata: {},
};
}

@@ -138,2 +147,5 @@ exports.DecisionLogEntry = {

}
Object.entries(message.metadata).forEach(([key, value]) => {
exports.DecisionLogEntry_MetadataEntry.encode({ key: key, value }, writer.uint32(122).fork()).ldelim();
});
return writer;

@@ -178,2 +190,8 @@ },

break;
case 15:
const entry15 = exports.DecisionLogEntry_MetadataEntry.decode(reader, reader.uint32());
if (entry15.value !== undefined) {
message.metadata[entry15.key] = entry15.value;
}
break;
default:

@@ -267,2 +285,36 @@ reader.skipType(tag & 7);

};
function createBaseDecisionLogEntry_MetadataEntry() {
return { key: "", value: undefined };
}
exports.DecisionLogEntry_MetadataEntry = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.key !== "") {
writer.uint32(10).string(message.key);
}
if (message.value !== undefined) {
exports.MetaValues.encode(message.value, writer.uint32(18).fork()).ldelim();
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseDecisionLogEntry_MetadataEntry();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.key = reader.string();
break;
case 2:
message.value = exports.MetaValues.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
};
function createBaseMetaValues() {

@@ -269,0 +321,0 @@ return { values: [] };

4

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

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

"@cerbos/core": "^0.8.1",
"@grpc/grpc-js": "^1.7.3",
"@grpc/grpc-js": "^1.8.5",
"long": "^4.0.0",

@@ -33,0 +33,0 @@ "protobufjs": "^6.11.3"

@@ -38,2 +38,3 @@ /* eslint-disable */

};
metadata: { [key: string]: MetaValues };
}

@@ -53,2 +54,7 @@

export interface DecisionLogEntry_MetadataEntry {
key: string;
value: MetaValues | undefined;
}
export interface MetaValues {

@@ -167,3 +173,12 @@ values: string[];

function createBaseDecisionLogEntry(): DecisionLogEntry {
return { callId: "", timestamp: undefined, peer: undefined, inputs: [], outputs: [], error: "", method: undefined };
return {
callId: "",
timestamp: undefined,
peer: undefined,
inputs: [],
outputs: [],
error: "",
method: undefined,
metadata: {},
};
}

@@ -197,2 +212,5 @@

}
Object.entries(message.metadata).forEach(([key, value]) => {
DecisionLogEntry_MetadataEntry.encode({ key: key as any, value }, writer.uint32(122).fork()).ldelim();
});
return writer;

@@ -238,2 +256,8 @@ },

break;
case 15:
const entry15 = DecisionLogEntry_MetadataEntry.decode(reader, reader.uint32());
if (entry15.value !== undefined) {
message.metadata[entry15.key] = entry15.value;
}
break;
default:

@@ -334,2 +358,39 @@ reader.skipType(tag & 7);

function createBaseDecisionLogEntry_MetadataEntry(): DecisionLogEntry_MetadataEntry {
return { key: "", value: undefined };
}
export const DecisionLogEntry_MetadataEntry = {
encode(message: DecisionLogEntry_MetadataEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
if (message.key !== "") {
writer.uint32(10).string(message.key);
}
if (message.value !== undefined) {
MetaValues.encode(message.value, writer.uint32(18).fork()).ldelim();
}
return writer;
},
decode(input: _m0.Reader | Uint8Array, length?: number): DecisionLogEntry_MetadataEntry {
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseDecisionLogEntry_MetadataEntry();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.key = reader.string();
break;
case 2:
message.value = MetaValues.decode(reader, reader.uint32());
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
},
};
function createBaseMetaValues(): MetaValues {

@@ -336,0 +397,0 @@ return { values: [] };

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