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

@ddadaal/tsgrpc-server

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ddadaal/tsgrpc-server - npm Package Compare versions

Comparing version 0.18.0 to 0.18.1

9

CHANGELOG.md
# Changelog
## 0.18.1
### Patch Changes
- 5726458: chore(deps): update all non-major dependencies
- Updated dependencies [5726458]
- Updated dependencies [3227018]
- @ddadaal/tsgrpc-common@0.2.0
## 0.18.0

@@ -4,0 +13,0 @@

10

lib/request.d.ts

@@ -9,8 +9,8 @@ import { ReaderExtensions, WriterExtensions } from "@ddadaal/tsgrpc-common";

}
export declare type AugmentedWritable<T> = {
export type AugmentedWritable<T> = {
writeAsync: WriterExtensions<T>["writeAsync"];
};
export declare type AugmentedReadable<T> = ReaderExtensions<T> & {};
export declare type AugmentedCall<TCall> = TCall & Request & (TCall extends ServerDuplexStream<infer TReq, infer TReply> ? AugmentedWritable<TReply> & AugmentedReadable<TReq> : TCall extends ServerReadableStream<infer TReq, infer _TReply> ? AugmentedReadable<TReq> : TCall extends ServerWritableStream<infer _TReq, infer TReply> ? AugmentedWritable<TReply> : {});
export declare type ServerCall = ServerUnaryCall<{}, {}> | ServerReadableStream<{}, {}> | ServerWritableStream<{}, {}> | ServerDuplexStream<{}, {}>;
export declare type RequestDecorator = (call: AugmentedCall<ServerCall>) => void | Promise<void>;
export type AugmentedReadable<T> = ReaderExtensions<T> & {};
export type AugmentedCall<TCall> = TCall & Request & (TCall extends ServerDuplexStream<infer TReq, infer TReply> ? AugmentedWritable<TReply> & AugmentedReadable<TReq> : TCall extends ServerReadableStream<infer TReq, infer _TReply> ? AugmentedReadable<TReq> : TCall extends ServerWritableStream<infer _TReq, infer TReply> ? AugmentedWritable<TReply> : {});
export type ServerCall = ServerUnaryCall<{}, {}> | ServerReadableStream<{}, {}> | ServerWritableStream<{}, {}> | ServerDuplexStream<{}, {}>;
export type RequestDecorator = (call: AugmentedCall<ServerCall>) => void | Promise<void>;

@@ -6,4 +6,4 @@ import * as grpc from "@grpc/grpc-js";

import { Rest } from "./types";
export declare type CloseCallback = () => (void | Promise<void>);
export declare type ServerConfig = {
export type CloseCallback = () => (void | Promise<void>);
export type ServerConfig = {
host?: string;

@@ -18,4 +18,4 @@ port?: number;

};
export declare type ResponseType<T extends (...args: any[]) => void> = Rest<Parameters<Parameters<T>[1]>>;
declare type RemoveIndex<T> = {
export type ResponseType<T extends (...args: any[]) => void> = Rest<Parameters<Parameters<T>[1]>>;
type RemoveIndex<T> = {
[K in keyof T as string extends K ? never : number extends K ? never : K]: T[K];

@@ -29,3 +29,3 @@ };

};
export declare type Plugin = (server: Server) => (void | Promise<void>);
export type Plugin = (server: Server) => (void | Promise<void>);
/** Helper identify function to build plugin. */

@@ -32,0 +32,0 @@ export declare function plugin(p: Plugin): Plugin;

@@ -1,3 +0,3 @@

export declare type Rest<T extends any[]> = T extends [infer _I, ...infer L] ? L : never;
export declare type First<T extends any[]> = T extends [infer I, ...infer _L] ? I : never;
export declare type ValueOf<T> = T[keyof T];
export type Rest<T extends any[]> = T extends [infer _I, ...infer L] ? L : never;
export type First<T extends any[]> = T extends [infer I, ...infer _L] ? I : never;
export type ValueOf<T> = T[keyof T];

@@ -1,2 +0,2 @@

export declare type RequiredBy<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
export type RequiredBy<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
/**

@@ -3,0 +3,0 @@ * Ensure that the values of any specified keys are not undefined

{
"name": "@ddadaal/tsgrpc-server",
"version": "0.18.0",
"version": "0.18.1",
"description": "A simple gRPC Server Framework for TypeScript Node.js",

@@ -13,5 +13,5 @@ "main": "lib/index.js",

"dependencies": {
"pino": "8.6.1",
"tslib": "2.4.0",
"@ddadaal/tsgrpc-common": "0.1.0"
"pino": "8.7.0",
"tslib": "2.4.1",
"@ddadaal/tsgrpc-common": "0.2.0"
},

@@ -22,3 +22,3 @@ "peerDependencies": {

"devDependencies": {
"@grpc/grpc-js": "1.7.2"
"@grpc/grpc-js": "1.7.3"
},

@@ -25,0 +25,0 @@ "publishConfig": {

## server: A minimal gRPC Framework
```bash
npm install --save @ddadaal/tsgrpc-server @grpc/grpc-js
npm install --save @ddadaal/tsgrpc-server @ddadaal/tsgrpc-common @grpc/grpc-js
```

@@ -6,0 +6,0 @@

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