nice-grpc-client-middleware-deadline
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -11,3 +11,4 @@ "use strict"; | ||
const deadlineMiddleware = async function* deadlineMiddleware(call, options) { | ||
if (options.deadline == null) { | ||
var _a; | ||
if (options.deadline == null || ((_a = options.signal) === null || _a === void 0 ? void 0 : _a.aborted)) { | ||
return yield* call.next(call.request, options); | ||
@@ -14,0 +15,0 @@ } |
{ | ||
"name": "nice-grpc-client-middleware-deadline", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Deadline client middleware for nice-grpc", | ||
@@ -36,3 +36,3 @@ "repository": "deeplay-io/nice-grpc", | ||
}, | ||
"gitHead": "fa26b226f2ab9f5cdaae1773b0064d7d4c84544a" | ||
"gitHead": "b562ecbc16c38e23668c0589a38f8e64a858d153" | ||
} |
@@ -21,3 +21,3 @@ import {ClientError, ClientMiddleware, Status} from 'nice-grpc-common'; | ||
async function* deadlineMiddleware(call, options) { | ||
if (options.deadline == null) { | ||
if (options.deadline == null || options.signal?.aborted) { | ||
return yield* call.next(call.request, options); | ||
@@ -24,0 +24,0 @@ } |
Sorry, the diff of this file is not supported yet
9206
109