@cfworker/cosmos 1.13.1 → 1.13.2

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.
package/dist/client.js CHANGED
@@ -180,7 +180,7 @@ export class CosmosClient {
180
180
  };
181
181
  }
182
182
  async fetchWithRetry(request, context) {
183
- const retryRequest = request.clone();
183
+ const retryRequest = new Request(request.url, request);
184
184
  const response = await this.fetch(request);
185
185
  context ??= { attempts: 0, cumulativeWaitMs: 0, request, response };
186
186
  context.attempts++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cfworker/cosmos",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "Azure Cosmos DB client for Cloudflare Workers and service workers",
5
5
  "keywords": [
6
6
  "azure",
package/src/client.ts CHANGED
@@ -330,7 +330,7 @@ export class CosmosClient {
330
330
  request: Request,
331
331
  context?: RetryContext
332
332
  ): Promise<Response> {
333
- const retryRequest = request.clone();
333
+ const retryRequest = new Request(request.url, request);
334
334
 
335
335
  const response = await this.fetch(request);
336
336