@upyo/jmap 0.5.0-dev.172 → 0.5.0-dev.174
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/index.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -197,6 +197,7 @@ var JmapHttpClient = class {
|
|
|
197
197
|
lastError = error instanceof Error ? error : new Error(String(error));
|
|
198
198
|
if (attempt === this.config.retries) {
|
|
199
199
|
if (error instanceof JmapApiError) throw error;
|
|
200
|
+
if (isAbortError(error)) throw new JmapApiError("JMAP request timed out.", void 0, void 0, void 0, void 0, attempt + 1);
|
|
200
201
|
throw new JmapApiError(lastError.message, void 0, void 0, void 0, void 0, attempt + 1);
|
|
201
202
|
}
|
|
202
203
|
const delay = Math.pow(2, attempt) * 1e3;
|
package/dist/index.js
CHANGED
|
@@ -174,6 +174,7 @@ var JmapHttpClient = class {
|
|
|
174
174
|
lastError = error instanceof Error ? error : new Error(String(error));
|
|
175
175
|
if (attempt === this.config.retries) {
|
|
176
176
|
if (error instanceof JmapApiError) throw error;
|
|
177
|
+
if (isAbortError(error)) throw new JmapApiError("JMAP request timed out.", void 0, void 0, void 0, void 0, attempt + 1);
|
|
177
178
|
throw new JmapApiError(lastError.message, void 0, void 0, void 0, void 0, attempt + 1);
|
|
178
179
|
}
|
|
179
180
|
const delay = Math.pow(2, attempt) * 1e3;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@upyo/jmap",
|
|
3
|
-
"version": "0.5.0-dev.
|
|
3
|
+
"version": "0.5.0-dev.174",
|
|
4
4
|
"description": "JMAP transport for Upyo email library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"email",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@upyo/core": "0.5.0-dev.
|
|
56
|
+
"@upyo/core": "0.5.0-dev.174+b968510a"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"jmap-rfc-types": "^0.1.2",
|