grpc-code-gen
Advanced tools
Comparing version 3.4.6 to 3.4.7
@@ -396,3 +396,3 @@ "use strict"; | ||
const origin = Service.prototype[key]; | ||
Service.prototype[key] = promisify(function(request: any, options: any, callback: any){ | ||
Service.prototype[key] = promisify(function(this: any, request: any, options: any, callback: any) { | ||
if (typeof callback !== 'undefined') { | ||
@@ -405,3 +405,3 @@ options = Object.assign(${JSON.stringify(callOptions)}, options); | ||
return origin.call(this, request, options, callback); | ||
return (origin as any).apply(this, [request, options, callback]); | ||
}); | ||
@@ -408,0 +408,0 @@ } |
{ | ||
"name": "grpc-code-gen", | ||
"version": "3.4.6", | ||
"version": "3.4.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/yunkeCN/grpc-code-gen.git", |
@@ -470,3 +470,3 @@ import * as fs from 'fs-extra'; | ||
const origin = Service.prototype[key]; | ||
Service.prototype[key] = promisify(function(request: any, options: any, callback: any){ | ||
Service.prototype[key] = promisify(function(this: any, request: any, options: any, callback: any) { | ||
if (typeof callback !== 'undefined') { | ||
@@ -479,3 +479,3 @@ options = Object.assign(${JSON.stringify(callOptions)}, options); | ||
return origin.call(this, request, options, callback); | ||
return (origin as any).apply(this, [request, options, callback]); | ||
}); | ||
@@ -482,0 +482,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
121009