grpc-code-gen
Advanced tools
Comparing version 3.4.7 to 3.4.8
@@ -371,3 +371,3 @@ "use strict"; | ||
request: ${requestType}, | ||
options?: { deadline?: Date | number; flags?: number; host?: string; }, | ||
options?: { timeout?: number; flags?: number; host?: string; }, | ||
callback?: (err: Error, response: ${responseType}) => void, | ||
@@ -405,2 +405,6 @@ ): Promise<${responseType}>; | ||
if (typeof options.timeout !== 'undefined') { | ||
options.deadline = Date.now() + options.timeout; | ||
} | ||
return (origin as any).apply(this, [request, options, callback]); | ||
@@ -407,0 +411,0 @@ }); |
{ | ||
"name": "grpc-code-gen", | ||
"version": "3.4.7", | ||
"version": "3.4.8", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/yunkeCN/grpc-code-gen.git", |
@@ -444,3 +444,3 @@ import * as fs from 'fs-extra'; | ||
request: ${requestType}, | ||
options?: { deadline?: Date | number; flags?: number; host?: string; }, | ||
options?: { timeout?: number; flags?: number; host?: string; }, | ||
callback?: (err: Error, response: ${responseType}) => void, | ||
@@ -479,2 +479,6 @@ ): Promise<${responseType}>; | ||
if (typeof options.timeout !== 'undefined') { | ||
options.deadline = Date.now() + options.timeout; | ||
} | ||
return (origin as any).apply(this, [request, options, callback]); | ||
@@ -481,0 +485,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
121231
1801