Socket
Socket
Sign inDemoInstall

@grpc/grpc-js

Package Overview
Dependencies
Maintainers
3
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grpc/grpc-js - npm Package Compare versions

Comparing version 1.3.7 to 1.3.8

build/src/admin.d.ts

1

build/src/channel.js

@@ -164,2 +164,3 @@ "use strict";

]);
logging_1.trace(constants_1.LogVerbosity.DEBUG, 'channel', 'Channel constructed with options ' + JSON.stringify(options, undefined, 2));
}

@@ -166,0 +167,0 @@ callRefTimerRef() {

@@ -18,1 +18,2 @@ export interface TcpSubchannelAddress {

export declare function subchannelAddressToString(address: SubchannelAddress): string;
export declare function stringToSubchannelAddress(addressString: string, port?: number): SubchannelAddress;

@@ -19,3 +19,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.subchannelAddressToString = exports.subchannelAddressEqual = exports.isTcpSubchannelAddress = void 0;
exports.stringToSubchannelAddress = exports.subchannelAddressToString = exports.subchannelAddressEqual = exports.isTcpSubchannelAddress = void 0;
const net_1 = require("net");
function isTcpSubchannelAddress(address) {

@@ -45,2 +46,17 @@ return 'port' in address;

exports.subchannelAddressToString = subchannelAddressToString;
const DEFAULT_PORT = 443;
function stringToSubchannelAddress(addressString, port) {
if (net_1.isIP(addressString)) {
return {
host: addressString,
port: port !== null && port !== void 0 ? port : DEFAULT_PORT
};
}
else {
return {
path: addressString
};
}
}
exports.stringToSubchannelAddress = stringToSubchannelAddress;
//# sourceMappingURL=subchannel-address.js.map

@@ -176,2 +176,3 @@ "use strict";

this.subchannelAddressString = subchannelAddressToString(subchannelAddress);
trace('Subchannel constructed with options ' + JSON.stringify(options, undefined, 2));
}

@@ -178,0 +179,0 @@ handleBackoffTimer() {

2

package.json
{
"name": "@grpc/grpc-js",
"version": "1.3.7",
"version": "1.3.8",
"description": "gRPC Library for Node - pure JS implementation",

@@ -5,0 +5,0 @@ "homepage": "https://grpc.io/",

@@ -293,2 +293,3 @@ /*

]);
trace(LogVerbosity.DEBUG, 'channel', 'Channel constructed with options ' + JSON.stringify(options, undefined, 2));
}

@@ -295,0 +296,0 @@

@@ -250,2 +250,3 @@ /*

this.subchannelAddressString = subchannelAddressToString(subchannelAddress);
trace('Subchannel constructed with options ' + JSON.stringify(options, undefined, 2));
}

@@ -252,0 +253,0 @@

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