@cfworker/cosmos 1.13.3 → 1.13.5
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 +1 -1
- package/package.json +8 -8
- package/src/client.ts +1 -1
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 =
|
|
183
|
+
const retryRequest = request.clone();
|
|
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.
|
|
3
|
+
"version": "1.13.5",
|
|
4
4
|
"description": "Azure Cosmos DB client for Cloudflare Workers and service workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"azure",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"test": "cfworker test test/**/*.spec.ts"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@cfworker/worker-types": "^1.12.
|
|
40
|
+
"@cfworker/worker-types": "^1.12.3",
|
|
41
41
|
"@cloudflare/workers-types": "^2.2.2",
|
|
42
|
-
"rfc4648": "^1.5.
|
|
42
|
+
"rfc4648": "^1.5.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@cfworker/dev": "^1.14.
|
|
46
|
-
"@types/chai": "^4.3.
|
|
47
|
-
"@types/mocha": "^
|
|
45
|
+
"@cfworker/dev": "^1.14.2",
|
|
46
|
+
"@types/chai": "^4.3.3",
|
|
47
|
+
"@types/mocha": "^10.0.0",
|
|
48
48
|
"chai": "^4.3.6",
|
|
49
|
-
"mocha": "^
|
|
50
|
-
"typescript": "^4.
|
|
49
|
+
"mocha": "^10.0.0",
|
|
50
|
+
"typescript": "^4.8.4"
|
|
51
51
|
}
|
|
52
52
|
}
|
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 =
|
|
333
|
+
const retryRequest = request.clone();
|
|
334
334
|
|
|
335
335
|
const response = await this.fetch(request);
|
|
336
336
|
|