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

protocat

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protocat - npm Package Compare versions

Comparing version 0.4.0-beta.0 to 0.4.0-beta.1

3

dist/index.d.ts

@@ -5,2 +5,5 @@ export { ProtoCat } from './lib/server/application';

export { Middleware, ServiceImplementation } from './lib/server/call';
export { createClient } from './lib/client/client';
export { accessLogInterceptor } from './lib/client/interceptors/access-log-interceptor';
export { metadataInterceptor } from './lib/client/interceptors/metadata-interceptor';
//# sourceMappingURL=index.d.ts.map

@@ -9,2 +9,8 @@ "use strict";

Object.defineProperty(exports, "onError", { enumerable: true, get: function () { return on_error_1.onError; } });
var client_1 = require("./lib/client/client");
Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return client_1.createClient; } });
var access_log_interceptor_1 = require("./lib/client/interceptors/access-log-interceptor");
Object.defineProperty(exports, "accessLogInterceptor", { enumerable: true, get: function () { return access_log_interceptor_1.accessLogInterceptor; } });
var metadata_interceptor_1 = require("./lib/client/interceptors/metadata-interceptor");
Object.defineProperty(exports, "metadataInterceptor", { enumerable: true, get: function () { return metadata_interceptor_1.metadataInterceptor; } });
//# sourceMappingURL=index.js.map

3

dist/lib/client/client.d.ts

@@ -27,7 +27,8 @@ import * as grpc from '@grpc/grpc-js';

}>;
declare type UpdatedClient_<C> = C extends grpc.Client ? UpdatedClient<C> : never;
declare type UpdatedClient<C extends grpc.Client> = {
[K in keyof C]: C[K] extends (request: infer Req, metadata?: grpc.Metadata, options?: Partial<grpc.CallOptions>) => grpc.ClientReadableStream<infer Res> ? ServerStreamCall<Req, Res> : C[K] extends (metadata: grpc.Metadata, options?: Partial<grpc.CallOptions>) => grpc.ClientDuplexStream<infer Req, infer Res> ? BidiCall<Req, Res> : C[K] extends (request: infer Req, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: infer Res) => void) => grpc.ClientUnaryCall ? UnaryCall<Req, Res> : C[K] extends (metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: infer Res) => void) => grpc.ClientWritableStream<infer Req> ? ClientStreamCall<Req, Res> : never;
};
export declare const createClient: <D extends Record<string, new (...args: any[]) => grpc.Client> | (new (...args: any[]) => grpc.Client)>(clientDef: D, address: string, creds?: grpc.ChannelCredentials | undefined, options?: Partial<grpc.ClientOptions> | undefined) => D extends new (...args: any[]) => infer C ? C extends grpc.Client ? UpdatedClient<C> : never : { [K in keyof D]: D[K] extends new (...args: any[]) => infer C ? C_1 extends grpc.Client ? UpdatedClient<C_1> : never : never; };
export declare const createClient: <D extends Record<string, new (...args: any[]) => grpc.Client> | (new (...args: any[]) => grpc.Client)>(clientDef: D, address: string, creds?: grpc.ChannelCredentials | undefined, options?: Partial<grpc.ClientOptions> | undefined) => D extends new (...args: any[]) => infer C ? UpdatedClient_<C> : { [K in keyof D]: D[K] extends new (...args: any[]) => infer C_ ? UpdatedClient_<C_> : never; };
export {};
//# sourceMappingURL=client.d.ts.map

@@ -67,4 +67,4 @@ "use strict";

spyInterceptors(`${ctx.options.method_definition.path} -->`);
await next();
spyInterceptors(`${ctx.options.method_definition.path} <--`);
const st = await next();
spyInterceptors(`${ctx.options.method_definition.path} <-- (${st.details})`);
});

@@ -128,24 +128,24 @@ const singleClient = client_1.createClient(hello_grpc_pb_1.GreetingClient, ADDR, grpc_js_1.ChannelCredentials.createInsecure(), {

/cats.v1.Greeting/Unary
/cats.v1.Greeting/Unary <--
/cats.v1.Greeting/Unary <-- (OK)
/cats.v1.Greeting/ServerStream -->
/cats.v1.Greeting/ServerStream
/cats.v1.Greeting/ServerStream <--
/cats.v1.Greeting/ServerStream <-- (OK)
/cats.v1.Greeting/ClientStream -->
/cats.v1.Greeting/ClientStream
/cats.v1.Greeting/ClientStream <--
/cats.v1.Greeting/ClientStream <-- (OK)
/cats.v1.Greeting/Bidi -->
/cats.v1.Greeting/Bidi
/cats.v1.Greeting/Bidi <--
/cats.v1.Greeting/Bidi <-- (OK)
/cats.v1.Greeting/Unary -->
/cats.v1.Greeting/Unary
/cats.v1.Greeting/Unary <--
/cats.v1.Greeting/Unary <-- (OK)
/cats.v1.Greeting/ServerStream -->
/cats.v1.Greeting/ServerStream
/cats.v1.Greeting/ServerStream <--
/cats.v1.Greeting/ServerStream <-- (OK)
/cats.v1.Greeting/ClientStream -->
/cats.v1.Greeting/ClientStream
/cats.v1.Greeting/ClientStream <--
/cats.v1.Greeting/ClientStream <-- (OK)
/cats.v1.Greeting/Bidi -->
/cats.v1.Greeting/Bidi
/cats.v1.Greeting/Bidi <--"
/cats.v1.Greeting/Bidi <-- (OK)"
`);

@@ -152,0 +152,0 @@ });

{
"name": "protocat",
"description": "Modern, minimalist type-safe gRPC framework for Node.js",
"version": "0.4.0-beta.0",
"version": "0.4.0-beta.1",
"author": "Jaroslav Šmolík <grissius@gmail.com>",

@@ -6,0 +6,0 @@ "main": "./dist/index.js",

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

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