@cfworker/cosmos 4.0.2 → 4.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -200,6 +200,7 @@ class CosmosClient {
200
200
  context.response = response;
201
201
  const { retry, delayMs } = await this.retryPolicy.shouldRetry(context);
202
202
  if (!retry) {
203
+ retryRequest.body?.cancel();
203
204
  return response;
204
205
  }
205
206
  if (delayMs !== 0) {
@@ -197,6 +197,7 @@ export class CosmosClient {
197
197
  context.response = response;
198
198
  const { retry, delayMs } = await this.retryPolicy.shouldRetry(context);
199
199
  if (!retry) {
200
+ retryRequest.body?.cancel();
200
201
  return response;
201
202
  }
202
203
  if (delayMs !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfworker/cosmos",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Azure Cosmos DB client for Cloudflare Workers and service workers",
5
5
  "keywords": [
6
6
  "azure",