Socket
Socket
Sign inDemoInstall

grpc-server-js

Package Overview
Dependencies
1
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.14 to 0.1.15

lib/server-resolver.js

7

lib/server.js
'use strict';
const Http2 = require('http2');
const { URL } = require('url');
const { status, ServerCredentials } = require('@grpc/grpc-js');

@@ -12,2 +11,3 @@ const {

const { ServerCall } = require('./server-call');
const { resolveToListenOptions } = require('./server-resolver');
const { ServerSession } = require('./server-session');

@@ -127,4 +127,3 @@ const kHandlers = Symbol('handlers');

const url = new URL(`http://${port}`);
const options = { host: url.hostname, port: +url.port };
const listenOptions = resolveToListenOptions(port, creds._isSecure());
const http2ServerOptions = {

@@ -158,3 +157,3 @@ allowHTTP1: false,

this[kServer].once('error', onError);
this[kServer].listen(options, () => {
this[kServer].listen(listenOptions, () => {
const server = this[kServer];

@@ -161,0 +160,0 @@ const port = server.address().port;

{
"name": "grpc-server-js",
"version": "0.1.14",
"version": "0.1.15",
"description": "Pure JavaScript gRPC Server",

@@ -5,0 +5,0 @@ "author": "Colin J. Ihrig <cjihrig@gmail.com> (http://www.cjihrig.com/)",

@@ -44,2 +44,3 @@ # grpc-server-js

- [gRPC Keepalive](https://github.com/grpc/grpc/blob/master/doc/keepalive.md)
- [gRPC Name Resolution](https://github.com/grpc/grpc/blob/master/doc/naming.md)
- [gRPC Status Codes](https://github.com/grpc/grpc/blob/master/doc/statuscodes.md)

@@ -46,0 +47,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc