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

@ngx-grpc/core

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngx-grpc/core - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

1

bundles/ngx-grpc-core.umd.js

@@ -278,2 +278,3 @@ (function (global, factory) {

var stream = _this.client.rpcCall(_this.settings.host + path, req, metadata || {}, new grpcWeb.AbstractClientBase.MethodInfo(resclss, function (request) { return reqclss.toBinary(request); }, resclss.fromBinary), function () { return null; });
// take only status 0 because unary error already includes non-zero statuses
stream.on('status', function (status) { return status.code === 0 ? obs.next(new common.GrpcStatusEvent(status.code, status.details, status.metadata)) : null; });

@@ -280,0 +281,0 @@ stream.on('error', function (error) {

3

esm2015/lib/grpc-standard-client.js

@@ -27,2 +27,3 @@ import { __decorate } from "tslib";

const stream = this.client.rpcCall(this.settings.host + path, req, metadata || {}, new AbstractClientBase.MethodInfo(resclss, (request) => reqclss.toBinary(request), resclss.fromBinary), () => null);
// take only status 0 because unary error already includes non-zero statuses
stream.on('status', status => status.code === 0 ? obs.next(new GrpcStatusEvent(status.code, status.details, status.metadata)) : null);

@@ -52,2 +53,2 @@ stream.on('error', error => {

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JwYy1zdGFuZGFyZC1jbGllbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWdycGMvY29yZS8iLCJzb3VyY2VzIjpbImxpYi9ncnBjLXN0YW5kYXJkLWNsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQXFELGFBQWEsRUFBNEMsZUFBZSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDL0osT0F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31,2 +31,3 @@ import { __assign, __decorate } from "tslib";

var stream = _this.client.rpcCall(_this.settings.host + path, req, metadata || {}, new AbstractClientBase.MethodInfo(resclss, function (request) { return reqclss.toBinary(request); }, resclss.fromBinary), function () { return null; });
// take only status 0 because unary error already includes non-zero statuses
stream.on('status', function (status) { return status.code === 0 ? obs.next(new GrpcStatusEvent(status.code, status.details, status.metadata)) : null; });

@@ -59,2 +60,2 @@ stream.on('error', function (error) {

export { GrpcStandardClient };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JwYy1zdGFuZGFyZC1jbGllbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWdycGMvY29yZS8iLCJzb3VyY2VzIjpbImxpYi9ncnBjLXN0YW5kYXJkLWNsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQXFELGFBQWEsRUFBNEMsZUFBZSxFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDL0osT0FBTyxFQUFFLGtCQUFrQixFQUFFLGlCQUFpQixFQUFZLE1BQU0sVUFBVSxDQUFDO0FBQzNFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxNQUFNLENBQUM7O0FBS2xDO0lBQUE7S0FNQztJQUpDLGdEQUFZLEdBQVosVUFBYSxTQUFpQixFQUFFLFFBQTRCO1FBQzFELE9BQU8sSUFBSSxrQkFBa0IsY0FBTSxRQUFRLEVBQUcsQ0FBQztJQUNqRCxDQUFDOztJQUpVLHlCQUF5QjtRQUhyQyxVQUFVLENBQUM7WUFDVixVQUFVLEVBQUUsTUFBTTtTQUNuQixDQUFDO09BQ1cseUJBQXlCLENBTXJDO29DQWREO0NBY0MsQUFORCxJQU1DO1NBTlkseUJBQXlCO0FBUXRDO0lBSUUsNEJBQ1UsUUFBNEI7UUFBNUIs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ZXJTdHJlYW1pbmcoXG4gICAgICAgIHRoaXMuc2V0dGluZ3MuaG9zdCArIHBhdGgsXG4gICAgICAgIHJlcSxcbiAgICAgICAgbWV0YWRhdGEgfHwge30sXG4gICAgICAgIG5ldyBBYnN0cmFjdENsaWVudEJhc2UuTWV0aG9kSW5mbyhyZXNjbHNzLCAocmVxdWVzdDogUSkgPT4gcmVxY2xzcy50b0JpbmFyeShyZXF1ZXN0KSwgcmVzY2xzcy5mcm9tQmluYXJ5KVxuICAgICAgKTtcblxuICAgICAgc3RyZWFtLm9uKCdzdGF0dXMnLCBzdGF0dXMgPT4gb2JzLm5leHQobmV3IEdycGNTdGF0dXNFdmVudChzdGF0dXMuY29kZSwgc3RhdHVzLmRldGFpbHMsIHN0YXR1cy5tZXRhZGF0YSkpKTtcbiAgICAgIHN0cmVhbS5vbignZXJyb3InLCBlcnJvciA9PiB7XG4gICAgICAgIG9icy5uZXh0KG5ldyBHcnBjU3RhdHVzRXZlbnQoZXJyb3IuY29kZSwgZXJyb3IubWVzc2FnZSwgKGVycm9yIGFzIGFueSkubWV0YWRhdGEpKTtcbiAgICAgICAgb2JzLmNvbXBsZXRlKCk7XG4gICAgICB9KTtcbiAgICAgIHN0cmVhbS5vbignZGF0YScsIGRhdGEgPT4gb2JzLm5leHQobmV3IEdycGNEYXRhRXZlbnQoZGF0YSkpKTtcbiAgICAgIHN0cmVhbS5vbignZW5kJywgKCkgPT4gb2JzLmNvbXBsZXRlKCkpO1xuXG4gICAgICByZXR1cm4gKCkgPT4gc3RyZWFtLmNhbmNlbCgpO1xuICAgIH0pO1xuICB9XG5cbn1cbiJdfQ==

@@ -76,2 +76,3 @@ import { __decorate, __param } from 'tslib';

const stream = this.client.rpcCall(this.settings.host + path, req, metadata || {}, new AbstractClientBase.MethodInfo(resclss, (request) => reqclss.toBinary(request), resclss.fromBinary), () => null);
// take only status 0 because unary error already includes non-zero statuses
stream.on('status', status => status.code === 0 ? obs.next(new GrpcStatusEvent(status.code, status.details, status.metadata)) : null);

@@ -78,0 +79,0 @@ stream.on('error', error => {

@@ -82,2 +82,3 @@ import { __decorate, __param, __assign } from 'tslib';

var stream = _this.client.rpcCall(_this.settings.host + path, req, metadata || {}, new AbstractClientBase.MethodInfo(resclss, function (request) { return reqclss.toBinary(request); }, resclss.fromBinary), function () { return null; });
// take only status 0 because unary error already includes non-zero statuses
stream.on('status', function (status) { return status.code === 0 ? obs.next(new GrpcStatusEvent(status.code, status.details, status.metadata)) : null; });

@@ -84,0 +85,0 @@ stream.on('error', function (error) {

@@ -17,3 +17,3 @@ {

"peerDependencies": {
"@ngx-grpc/common": "0.3.0",
"@ngx-grpc/common": "0.3.1",
"@angular/core": ">=8.0.0",

@@ -34,3 +34,3 @@ "grpc-web": "^1.0.0",

"sideEffects": false,
"version": "0.3.0"
"version": "0.3.1"
}

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