grpc-code-gen
Advanced tools
Comparing version 5.3.2 to 5.4.0
@@ -38,2 +38,4 @@ "use strict"; | ||
const filterError = config.filterError || (err: Error)=> e; | ||
function needRetry(err: any): boolean { | ||
@@ -105,3 +107,3 @@ const message = err.details || err.message || err.data; | ||
} else { | ||
callback(err, response, metadataRes); | ||
callback(filterError(err), response, metadataRes); | ||
} | ||
@@ -108,0 +110,0 @@ }]); |
{ | ||
"name": "grpc-code-gen", | ||
"version": "5.3.2", | ||
"version": "5.4.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/yunkeCN/grpc-code-gen.git", |
@@ -64,2 +64,3 @@ # grpc-code-gen | ||
logOptions? | [logOptions](#logOptions) | 日志配置 | null | ||
filterError? | (err: Error) => Error | 错误过滤 | (err) => err | ||
@@ -66,0 +67,0 @@ #### callOptions |
@@ -41,2 +41,4 @@ import { fileTip, getImportPath, tslintDisable } from "./utils"; | ||
const filterError = config.filterError || (err: Error)=> e; | ||
function needRetry(err: any): boolean { | ||
@@ -108,3 +110,3 @@ const message = err.details || err.message || err.data; | ||
} else { | ||
callback(err, response, metadataRes); | ||
callback(filterError(err), response, metadataRes); | ||
} | ||
@@ -111,0 +113,0 @@ }]); |
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
90272
2461
115