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.1.0 to 0.1.1

5

bundles/ngx-grpc-core.umd.js

@@ -119,2 +119,7 @@ (function (global, factory) {

function () { return obs.complete(); }));
xhrStream.on('error', (/**
* @param {?} error
* @return {?}
*/
function (error) { return obs.error(error); }));
return (/**

@@ -121,0 +126,0 @@ * @return {?}

2

bundles/ngx-grpc-core.umd.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("grpc-web"),require("rxjs"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ngx-grpc/core",["exports","grpc-web","rxjs","@angular/core"],t):t(((e=e||self)["ngx-grpc"]=e["ngx-grpc"]||{},e["ngx-grpc"].core={}),e.grpcWeb,e.rxjs,e.ng.core)}(this,(function(e,t,r,n){"use strict";var o=function(){function e(e){this.settings=e,this.client=new t.GrpcWebClientBase(this.settings)}return e.prototype.unary=function(e,n,o,a,s){var i=this;return new r.Observable((function(r){i.client.rpcCall(i.settings.host+e,n,o||{},new t.AbstractClientBase.MethodInfo(s,(function(e){return a.toBinary(e)}),s.fromBinary),(function(e,t){e?r.error(e):r.next(t),r.complete()}))}))},e.prototype.serverStream=function(e,n,o,a,s){var i=this;return new r.Observable((function(r){var c=i.client.serverStreaming(i.settings.host+e,n,o||{},new t.AbstractClientBase.MethodInfo(s,(function(e){return a.toBinary(e)}),s.fromBinary));return c.on("status",(function(e){return r.next(e)})),c.on("data",(function(e){return r.next(e)})),c.on("end",(function(){return r.complete()})),function(){return c.cancel()}}))},e}();var a={unary:0,serverStream:1};a[a.unary]="unary",a[a.serverStream]="serverStream";var s=new n.InjectionToken("GRPC_INTERCEPTORS"),i=function(){function e(e){this.interceptors=e||[]}return e.prototype.handleUnary=function(e){return this.handle(e)},e.prototype.handleServerStream=function(e){return this.handle(e)},e.prototype.handle=function(t){var r=this.interceptors.slice(),n=r.shift();return n?n.intercept(t,new e(r)):t.type===a.unary?t.client.unary(t.path,t.requestData,t.requestMetadata,t.requestClass,t.responseClass):t.client.serverStream(t.path,t.requestData,t.requestMetadata,t.requestClass,t.responseClass)},e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Optional},{type:n.Inject,args:[s]}]}]},e.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new e(n.ɵɵinject(s,8))},token:e,providedIn:"root"}),e}();e.GRPC_INTERCEPTORS=s,e.GrpcCallType=a,e.GrpcClient=o,e.GrpcHandler=i,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("grpc-web"),require("rxjs"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ngx-grpc/core",["exports","grpc-web","rxjs","@angular/core"],r):r(((e=e||self)["ngx-grpc"]=e["ngx-grpc"]||{},e["ngx-grpc"].core={}),e.grpcWeb,e.rxjs,e.ng.core)}(this,(function(e,r,t,n){"use strict";var o=function(){function e(e){this.settings=e,this.client=new r.GrpcWebClientBase(this.settings)}return e.prototype.unary=function(e,n,o,a,i){var s=this;return new t.Observable((function(t){s.client.rpcCall(s.settings.host+e,n,o||{},new r.AbstractClientBase.MethodInfo(i,(function(e){return a.toBinary(e)}),i.fromBinary),(function(e,r){e?t.error(e):t.next(r),t.complete()}))}))},e.prototype.serverStream=function(e,n,o,a,i){var s=this;return new t.Observable((function(t){var c=s.client.serverStreaming(s.settings.host+e,n,o||{},new r.AbstractClientBase.MethodInfo(i,(function(e){return a.toBinary(e)}),i.fromBinary));return c.on("status",(function(e){return t.next(e)})),c.on("data",(function(e){return t.next(e)})),c.on("end",(function(){return t.complete()})),c.on("error",(function(e){return t.error(e)})),function(){return c.cancel()}}))},e}();var a={unary:0,serverStream:1};a[a.unary]="unary",a[a.serverStream]="serverStream";var i=new n.InjectionToken("GRPC_INTERCEPTORS"),s=function(){function e(e){this.interceptors=e||[]}return e.prototype.handleUnary=function(e){return this.handle(e)},e.prototype.handleServerStream=function(e){return this.handle(e)},e.prototype.handle=function(r){var t=this.interceptors.slice(),n=t.shift();return n?n.intercept(r,new e(t)):r.type===a.unary?r.client.unary(r.path,r.requestData,r.requestMetadata,r.requestClass,r.responseClass):r.client.serverStream(r.path,r.requestData,r.requestMetadata,r.requestClass,r.responseClass)},e.decorators=[{type:n.Injectable,args:[{providedIn:"root"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Optional},{type:n.Inject,args:[i]}]}]},e.ngInjectableDef=n.ɵɵdefineInjectable({factory:function(){return new e(n.ɵɵinject(i,8))},token:e,providedIn:"root"}),e}();e.GRPC_INTERCEPTORS=i,e.GrpcCallType=a,e.GrpcClient=o,e.GrpcHandler=s,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=ngx-grpc-core.umd.min.js.map

@@ -98,2 +98,7 @@ /**

() => obs.complete()));
xhrStream.on('error', (/**
* @param {?} error
* @return {?}
*/
error => obs.error(error)));
return (/**

@@ -118,2 +123,2 @@ * @return {?}

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JwYy1jbGllbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWdycGMvY29yZS8iLCJzb3VyY2VzIjpbImxpYi9ncnBjLWNsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxrQkFBa0IsRUFBUyxpQkFBaUIsRUFBb0IsTUFBTSxVQUFVLENBQUM7QUFDMUYsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7OztBQUdsQyx3Q0FJQzs7O0lBSEMsa0NBQWE7O0lBQ2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nNlID0+IG9icy5uZXh0KHJlc3BvbnNlKSk7XG4gICAgICB4aHJTdHJlYW0ub24oJ2VuZCcsICgpID0+IG9icy5jb21wbGV0ZSgpKTtcbiAgICAgIHhoclN0cmVhbS5vbignZXJyb3InLCBlcnJvciA9PiBvYnMuZXJyb3IoZXJyb3IpKTtcblxuICAgICAgcmV0dXJuICgpID0+IHhoclN0cmVhbS5jYW5jZWwoKTtcbiAgICB9KTtcbiAgfVxuXG59XG4iXX0=

@@ -115,2 +115,7 @@ /**

function () { return obs.complete(); }));
xhrStream.on('error', (/**
* @param {?} error
* @return {?}
*/
function (error) { return obs.error(error); }));
return (/**

@@ -137,2 +142,2 @@ * @return {?}

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JwYy1jbGllbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmd4LWdycGMvY29yZS8iLCJzb3VyY2VzIjpbImxpYi9ncnBjLWNsaWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLE9BQU8sRUFBRSxrQkFBa0IsRUFBUyxpQkFBaUIsRUFBb0IsTUFBTSxVQUFVLENBQUM7QUFDMUYsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQzs7OztBQUdsQyx3Q0FJQzs7O0lBSEMsa0NBQWE7O0lBQ2Isb0NBQWdCOztJQUNoQixtREFBZ0M7O0FBR2xDO0lBSUUsb0JBQ1UsUUFBNEI7UUFBNUIsYUFBUSxHQUFSLFFBQVEsQ0FBb0I7UUFFcEMsSUFBSSxDQUFDLE1BQU0sR0FBRyxJQUFJLGlCQUFpQixDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQztJQUNyRCxDQUFDOzs7Ozs7Ozs7O0lBRUQsMEJBQUs7Ozs7Ozs7OztJQUFMLFVBQ0UsSUFBWSxFQUNaLEdBQVEsRUFDUixRQUFrQixFQUNsQixPQUE4QixF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HJlYW0ub24oJ2Vycm9yJywgZXJyb3IgPT4gb2JzLmVycm9yKGVycm9yKSk7XG5cbiAgICAgIHJldHVybiAoKSA9PiB4aHJTdHJlYW0uY2FuY2VsKCk7XG4gICAgfSk7XG4gIH1cblxufVxuIl19

@@ -100,2 +100,7 @@ import { GrpcWebClientBase, AbstractClientBase } from 'grpc-web';

() => obs.complete()));
xhrStream.on('error', (/**
* @param {?} error
* @return {?}
*/
error => obs.error(error)));
return (/**

@@ -102,0 +107,0 @@ * @return {?}

@@ -117,2 +117,7 @@ import { GrpcWebClientBase, AbstractClientBase } from 'grpc-web';

function () { return obs.complete(); }));
xhrStream.on('error', (/**
* @param {?} error
* @return {?}
*/
function (error) { return obs.error(error); }));
return (/**

@@ -119,0 +124,0 @@ * @return {?}

{
"name": "@ngx-grpc/core",
"version": "0.1.0",
"version": "0.1.1",
"description": "Angular gRPC framework: core package",

@@ -5,0 +5,0 @@ "author": "smnbbrv",

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