Comparing version 1.2.1 to 1.2.2
@@ -18,3 +18,4 @@ "use strict"; | ||
else { | ||
throw new Error(`Unsupported protocol: '${protocol}'. Expected one of 'http', 'https'`); | ||
credentials !== null && credentials !== void 0 ? credentials : (credentials = grpc_js_1.ChannelCredentials.createInsecure()); | ||
return new grpc_js_1.Channel(address, credentials, options); | ||
} | ||
@@ -21,0 +22,0 @@ return new grpc_js_1.Channel(`${host}:${port}`, credentials, options); |
{ | ||
"name": "nice-grpc", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "A Node.js gRPC library that is nice to you", | ||
@@ -54,3 +54,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "22d3f9e050a8804787a4c0959a773eb5dc99bd48" | ||
"gitHead": "1eae2167ee0eeb1e7ab0f56278716b59269ffe46" | ||
} |
@@ -27,5 +27,5 @@ import { | ||
} else { | ||
throw new Error( | ||
`Unsupported protocol: '${protocol}'. Expected one of 'http', 'https'`, | ||
); | ||
credentials ??= ChannelCredentials.createInsecure(); | ||
return new Channel(address, credentials, options); | ||
} | ||
@@ -32,0 +32,0 @@ |
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
190002