@blocklet/did-space-js 1.0.63 → 1.1.0

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.
@@ -140,7 +140,7 @@ class IncrementalSyncBaseCommand extends base_1.BaseCommand {
140
140
  // FIXME: retryCount === 0 表示,重试次数刚好用完了,后续优化 server 显示错误的进度 @yejianchao
141
141
  // 防呆控制,retryCount < 0 说明调用基础接口始终是失败的,遇到了预料之外的事情,因此需要停止运行
142
142
  if (this.input.retryCount <= 0 ||
143
- [400, 401, 403, 404, 413].includes(statusCode) ||
143
+ [400, 401, 402, 403, 404, 413].includes(statusCode) ||
144
144
  this.context.abortController?.signal.aborted) {
145
145
  return {
146
146
  statusCode,
@@ -152,7 +152,7 @@ class SyncFolderBaseCommand extends base_1.BaseCommand {
152
152
  });
153
153
  // FIXME: retryCount === 0 表示,重试次数刚好用完了,后续优化 server 显示错误的进度 @yejianchao
154
154
  // 防呆控制,retryCount < 0 说明调用基础接口始终是失败的,遇到了预料之外的事情,因此需要停止运行
155
- if (this.input.retryCount <= 0 || [400, 401, 403, 404, 413].includes(statusCode)) {
155
+ if (this.input.retryCount <= 0 || [400, 401, 402, 403, 404, 413].includes(statusCode)) {
156
156
  await this.onFailed?.(error);
157
157
  await this.destroy();
158
158
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/did-space-js",
3
- "version": "1.0.63",
3
+ "version": "1.1.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -29,15 +29,15 @@
29
29
  "link": "yarn link"
30
30
  },
31
31
  "dependencies": {
32
- "@arcblock/did": "^1.20.14",
33
- "@arcblock/jwt": "^1.20.14",
34
- "@arcblock/validator": "^1.20.14",
32
+ "@arcblock/did": "^1.20.15",
33
+ "@arcblock/jwt": "^1.20.15",
34
+ "@arcblock/validator": "^1.20.15",
35
35
  "@blocklet/env": "^1.16.44",
36
- "@did-space/constants": "^1.0.63",
37
- "@did-space/core": "^1.0.63",
38
- "@ocap/mcrypto": "^1.20.14",
39
- "@ocap/util": "^1.20.14",
40
- "@ocap/wallet": "^1.20.14",
36
+ "@did-space/constants": "^1.1.0",
37
+ "@did-space/core": "^1.1.0",
38
+ "@ocap/mcrypto": "^1.20.15",
39
+ "@ocap/util": "^1.20.15",
40
+ "@ocap/wallet": "^1.20.15",
41
41
  "agentkeepalive": "^4.6.0",
42
42
  "axios": "^1.10.0",
43
43
  "base64-url": "^2.3.3",
@@ -59,7 +59,7 @@
59
59
  "p-queue": "6.6.2",
60
60
  "ufo": "^1.6.1",
61
61
  "xbytes": "^1.9.1",
62
- "zod": "^3.25.64"
62
+ "zod": "^3.25.67"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@arcblock/eslint-config-ts": "^0.3.3",
@@ -78,5 +78,5 @@
78
78
  "ts-jest": "^28.0.8",
79
79
  "typescript": "^4.9.5"
80
80
  },
81
- "gitHead": "7412e2fc8d017cf57628b68bcbfff9e84fc4611f"
81
+ "gitHead": "5b93f14e6011e4d81663549078127e4b927c5f12"
82
82
  }