@grpc/grpc-js
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -485,3 +485,7 @@ "use strict"; | ||
if (this.options.parentCall && this.options.flags & constants_1.Propagate.DEADLINE) { | ||
return this.options.parentCall.getDeadline(); | ||
const parentDeadline = this.options.parentCall.getDeadline(); | ||
const selfDeadline = this.options.deadline; | ||
const parentDeadlineMsecs = parentDeadline instanceof Date ? parentDeadline.getTime() : parentDeadline; | ||
const selfDeadlineMsecs = selfDeadline instanceof Date ? selfDeadline.getTime() : selfDeadline; | ||
return Math.min(parentDeadlineMsecs, selfDeadlineMsecs); | ||
} | ||
@@ -488,0 +492,0 @@ else { |
{ | ||
"name": "@grpc/grpc-js", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "gRPC Library for Node - pure JS implementation", | ||
@@ -5,0 +5,0 @@ "homepage": "https://grpc.io/", |
@@ -633,3 +633,7 @@ /* | ||
if (this.options.parentCall && this.options.flags & Propagate.DEADLINE) { | ||
return this.options.parentCall.getDeadline(); | ||
const parentDeadline = this.options.parentCall.getDeadline(); | ||
const selfDeadline = this.options.deadline; | ||
const parentDeadlineMsecs = parentDeadline instanceof Date ? parentDeadline.getTime() : parentDeadline; | ||
const selfDeadlineMsecs = selfDeadline instanceof Date ? selfDeadline.getTime() : selfDeadline; | ||
return Math.min(parentDeadlineMsecs, selfDeadlineMsecs); | ||
} else { | ||
@@ -636,0 +640,0 @@ return this.options.deadline; |
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
931733
19391