@grpc/grpc-js
Advanced tools
Comparing version 1.3.7 to 1.3.8
@@ -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() { |
{ | ||
"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
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
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
1023458
191
20990
14