@ddadaal/tsgrpc-server
Advanced tools
Comparing version 0.18.0 to 0.18.1
# 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 @@ |
@@ -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 @@ |
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
34691
52
+ Added@ddadaal/tsgrpc-common@0.2.0(transitive)
+ Addedpino@8.7.0(transitive)
+ Addedtslib@2.4.1(transitive)
- Removed@ddadaal/tsgrpc-common@0.1.0(transitive)
- Removedpino@8.6.1(transitive)
- Removedtslib@2.4.0(transitive)
Updated@ddadaal/tsgrpc-common@0.2.0
Updatedpino@8.7.0
Updatedtslib@2.4.1