@ngx-grpc/common
Advanced tools
Comparing version 2.4.1 to 3.0.0
@@ -50,2 +50,22 @@ import { Observable } from 'rxjs'; | ||
serverStream<Q extends GrpcMessage, S extends GrpcMessage>(path: string, req: Q, metadata: GrpcMetadata, reqclss: GrpcMessageClass<Q>, resclss: GrpcMessageClass<S>): Observable<GrpcEvent<S>>; | ||
/** | ||
* Handle client stream RPC | ||
* | ||
* @param path gRPC method path (rpc path) | ||
* @param inputStream streamed request data | ||
* @param metadata request metadata | ||
* @param reqclss request message class | ||
* @param resclss response message class | ||
*/ | ||
clientStream<Q extends GrpcMessage, S extends GrpcMessage>(path: string, inputStream: Observable<Q>, metadata: GrpcMetadata, reqclss: GrpcMessageClass<Q>, resclss: GrpcMessageClass<S>): Observable<GrpcEvent<S>>; | ||
/** | ||
* Handle bidirectional stream RPC | ||
* | ||
* @param path gRPC method path (rpc path) | ||
* @param inputStream streamed request data | ||
* @param metadata request metadata | ||
* @param reqclss request message class | ||
* @param resclss response message class | ||
*/ | ||
bidiStream<Q extends GrpcMessage, S extends GrpcMessage>(path: string, inputStream: Observable<Q>, metadata: GrpcMetadata, reqclss: GrpcMessageClass<Q>, resclss: GrpcMessageClass<S>): Observable<GrpcEvent<S>>; | ||
} | ||
@@ -57,3 +77,5 @@ /** | ||
unary = 0, | ||
serverStream = 1 | ||
serverStream = 1, | ||
clientStream = 2, | ||
bidiStream = 3 | ||
} | ||
@@ -67,3 +89,3 @@ /** | ||
type: GrpcCallType; | ||
requestData: Q; | ||
requestData: Q | Observable<Q>; | ||
requestMetadata: GrpcMetadata; | ||
@@ -70,0 +92,0 @@ requestClass: GrpcMessageClass<Q>; |
@@ -5,3 +5,4 @@ # MIT License | ||
Copyright (c) 2020 Semen Bobrov (smnbbrv) | ||
Copyright (c) 2019-2022 Semen Bobrov (smnbbrv) | ||
Permission is hereby granted, free of charge, to any person | ||
@@ -8,0 +9,0 @@ obtaining a copy of this software and associated documentation |
/** | ||
* Generated bundle index. Do not edit. | ||
*/ | ||
/// <amd-module name="@ngx-grpc/common" /> | ||
export * from './public-api'; |
@@ -12,3 +12,3 @@ { | ||
"google-protobuf": "^3.10.0", | ||
"rxjs": "^6.0.0" | ||
"rxjs": ">=6.0.0" | ||
}, | ||
@@ -18,11 +18,23 @@ "dependencies": { | ||
}, | ||
"main": "bundles/ngx-grpc-common.umd.js", | ||
"module": "fesm2015/ngx-grpc-common.js", | ||
"es2015": "fesm2015/ngx-grpc-common.js", | ||
"esm2015": "esm2015/ngx-grpc-common.js", | ||
"fesm2015": "fesm2015/ngx-grpc-common.js", | ||
"module": "fesm2015/ngx-grpc-common.mjs", | ||
"es2020": "fesm2020/ngx-grpc-common.mjs", | ||
"esm2020": "esm2020/ngx-grpc-common.mjs", | ||
"fesm2020": "fesm2020/ngx-grpc-common.mjs", | ||
"fesm2015": "fesm2015/ngx-grpc-common.mjs", | ||
"typings": "ngx-grpc-common.d.ts", | ||
"metadata": "ngx-grpc-common.metadata.json", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./ngx-grpc-common.d.ts", | ||
"esm2020": "./esm2020/ngx-grpc-common.mjs", | ||
"es2020": "./fesm2020/ngx-grpc-common.mjs", | ||
"es2015": "./fesm2015/ngx-grpc-common.mjs", | ||
"node": "./fesm2015/ngx-grpc-common.mjs", | ||
"default": "./fesm2020/ngx-grpc-common.mjs" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"version": "2.4.1" | ||
"version": "3.0.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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
51928
27
462
1